Update fomantic-ui
This commit is contained in:
parent
863777d96a
commit
47698ea9fe
119 changed files with 801 additions and 396 deletions
|
@ -18,6 +18,6 @@
|
|||
"permission": false,
|
||||
"autoInstall": false,
|
||||
"rtl": false,
|
||||
"version": "2.9.0-beta.301+42e68bc",
|
||||
"version": "2.9.0-beta.311+116f84b",
|
||||
"components": ["reset", "site", "container", "grid", "button", "calendar", "card", "checkbox", "dimmer", "divider", "dropdown", "form", "header", "icon", "image", "input", "label", "list", "list", "loader", "menu", "message", "modal", "placeholder", "popup", "progress", "segment", "sidebar", "statistic", "step", "tab", "table", "text", "toast", "api", "transition"]
|
||||
}
|
2
semantic/dist/components/api.js
vendored
2
semantic/dist/components/api.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - API
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - API
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/api.min.js
vendored
2
semantic/dist/components/api.min.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* # Fomantic UI - 2.9.0-beta.301+42e68bc
|
||||
* # Fomantic UI - 2.9.0-beta.311+116f84b
|
||||
* https://github.com/fomantic/Fomantic-UI
|
||||
* http://fomantic-ui.com/
|
||||
*
|
||||
|
|
2
semantic/dist/components/button.css
vendored
2
semantic/dist/components/button.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Button
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Button
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/button.min.css
vendored
2
semantic/dist/components/button.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Button
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Button
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/calendar.css
vendored
2
semantic/dist/components/calendar.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Calendar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Calendar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
11
semantic/dist/components/calendar.js
vendored
11
semantic/dist/components/calendar.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Calendar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Calendar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -593,8 +593,8 @@ $.fn.calendar = function(parameters) {
|
|||
},
|
||||
keydown: function (event) {
|
||||
var keyCode = event.which;
|
||||
if (keyCode === 27 || keyCode === 9) {
|
||||
//esc || tab
|
||||
if (keyCode === 9) {
|
||||
//tab
|
||||
module.popup('hide');
|
||||
}
|
||||
|
||||
|
@ -630,6 +630,9 @@ $.fn.calendar = function(parameters) {
|
|||
//disable form submission:
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
} else if (keyCode === 27) {
|
||||
module.popup('hide');
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1486,7 +1489,7 @@ $.fn.calendar.settings = {
|
|||
silent: false,
|
||||
debug: false,
|
||||
verbose: false,
|
||||
performance: false,
|
||||
performance: true,
|
||||
|
||||
type : 'datetime', // picker type, can be 'datetime', 'date', 'time', 'month', or 'year'
|
||||
firstDayOfWeek : 0, // day for first day column (0 = Sunday)
|
||||
|
|
2
semantic/dist/components/calendar.min.css
vendored
2
semantic/dist/components/calendar.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Calendar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Calendar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/calendar.min.js
vendored
4
semantic/dist/components/calendar.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/card.css
vendored
2
semantic/dist/components/card.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Card
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Card
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/card.min.css
vendored
2
semantic/dist/components/card.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Card
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Card
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/checkbox.css
vendored
2
semantic/dist/components/checkbox.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Checkbox
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Checkbox
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
5
semantic/dist/components/checkbox.js
vendored
5
semantic/dist/components/checkbox.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Checkbox
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Checkbox
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -244,6 +244,7 @@ $.fn.checkbox = function(parameters) {
|
|||
module.verbose('Escape key pressed blurring field');
|
||||
$input.blur();
|
||||
shortcutPressed = true;
|
||||
event.stopPropagation();
|
||||
}
|
||||
else if(!event.ctrlKey && module.can.change()) {
|
||||
if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
|
||||
|
@ -829,7 +830,7 @@ $.fn.checkbox.settings = {
|
|||
|
||||
silent : false,
|
||||
debug : false,
|
||||
verbose : true,
|
||||
verbose : false,
|
||||
performance : true,
|
||||
|
||||
// delegated event context
|
||||
|
|
2
semantic/dist/components/checkbox.min.css
vendored
2
semantic/dist/components/checkbox.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Checkbox
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Checkbox
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/checkbox.min.js
vendored
4
semantic/dist/components/checkbox.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/container.css
vendored
2
semantic/dist/components/container.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Container
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Container
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/container.min.css
vendored
2
semantic/dist/components/container.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Container
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Container
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/dimmer.css
vendored
2
semantic/dist/components/dimmer.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dimmer
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dimmer
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
8
semantic/dist/components/dimmer.js
vendored
8
semantic/dist/components/dimmer.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dimmer
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dimmer
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -258,6 +258,9 @@ $.fn.dimmer = function(parameters) {
|
|||
}
|
||||
$dimmer
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
displayType : settings.useFlex
|
||||
? 'flex'
|
||||
: 'block',
|
||||
|
@ -307,6 +310,9 @@ $.fn.dimmer = function(parameters) {
|
|||
module.verbose('Hiding dimmer with css');
|
||||
$dimmer
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
displayType : settings.useFlex
|
||||
? 'flex'
|
||||
: 'block',
|
||||
|
|
2
semantic/dist/components/dimmer.min.css
vendored
2
semantic/dist/components/dimmer.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dimmer
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dimmer
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/dimmer.min.js
vendored
4
semantic/dist/components/dimmer.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/divider.css
vendored
2
semantic/dist/components/divider.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Divider
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Divider
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/divider.min.css
vendored
2
semantic/dist/components/divider.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Divider
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Divider
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
12
semantic/dist/components/dropdown.css
vendored
12
semantic/dist/components/dropdown.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dropdown
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dropdown
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -556,6 +556,16 @@ select.ui.dropdown {
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* User addition item */
|
||||
.ui.dropdown > .menu > .stuck.addition.item:first-child {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
-webkit-box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
|
||||
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
|
||||
background: #FFFFFF;
|
||||
z-index: 14;
|
||||
}
|
||||
|
||||
/* Hover */
|
||||
.ui.selection.dropdown:hover {
|
||||
border-color: rgba(34, 36, 38, 0.35);
|
||||
|
|
66
semantic/dist/components/dropdown.js
vendored
66
semantic/dist/components/dropdown.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dropdown
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dropdown
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -61,7 +61,7 @@ $.fn.dropdown = function(parameters) {
|
|||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context),
|
||||
$text = $module.find(selector.text),
|
||||
$search = $module.find(selector.search),
|
||||
$sizer = $module.find(selector.sizer),
|
||||
|
@ -111,6 +111,7 @@ $.fn.dropdown = function(parameters) {
|
|||
module.error(error.noNormalize, element);
|
||||
}
|
||||
|
||||
module.create.id();
|
||||
module.setup.layout();
|
||||
|
||||
if(settings.values) {
|
||||
|
@ -124,7 +125,6 @@ $.fn.dropdown = function(parameters) {
|
|||
module.save.defaults();
|
||||
module.restore.selected();
|
||||
|
||||
module.create.id();
|
||||
module.bind.events();
|
||||
|
||||
module.observeChanges();
|
||||
|
@ -366,11 +366,20 @@ $.fn.dropdown = function(parameters) {
|
|||
}
|
||||
if( module.is.search() && !module.has.search() ) {
|
||||
module.verbose('Adding search input');
|
||||
var
|
||||
labelNode = $module.prev('label')
|
||||
;
|
||||
$search = $('<input />')
|
||||
.addClass(className.search)
|
||||
.prop('autocomplete', module.is.chrome() ? 'fomantic-search' : 'off')
|
||||
.insertBefore($text)
|
||||
;
|
||||
if (labelNode.length) {
|
||||
if (!labelNode.attr('id')) {
|
||||
labelNode.attr('id', module.get.id() + '_formLabel');
|
||||
}
|
||||
$search.attr('aria-labelledby', labelNode.attr('id'));
|
||||
}
|
||||
$search.insertBefore($text);
|
||||
}
|
||||
if( module.is.multiple() && module.is.searchSelection() && !module.has.sizer()) {
|
||||
module.create.sizer();
|
||||
|
@ -439,7 +448,7 @@ $.fn.dropdown = function(parameters) {
|
|||
// replace module reference
|
||||
$module = $module.parent(selector.dropdown);
|
||||
instance = $module.data(moduleNamespace);
|
||||
element = $module.get(0);
|
||||
element = $module[0];
|
||||
module.refresh();
|
||||
module.setup.returnedObject();
|
||||
},
|
||||
|
@ -1690,6 +1699,7 @@ $.fn.dropdown = function(parameters) {
|
|||
if(pressedKey == keys.escape) {
|
||||
module.verbose('Escape key pressed, closing dropdown');
|
||||
module.hide();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1911,7 +1921,7 @@ $.fn.dropdown = function(parameters) {
|
|||
},
|
||||
caretPosition: function(returnEndPos) {
|
||||
var
|
||||
input = $search.get(0),
|
||||
input = $search[0],
|
||||
range,
|
||||
rangeLength
|
||||
;
|
||||
|
@ -2881,6 +2891,7 @@ $.fn.dropdown = function(parameters) {
|
|||
animation : settings.label.transition,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.label.duration
|
||||
})
|
||||
;
|
||||
|
@ -3510,7 +3521,7 @@ $.fn.dropdown = function(parameters) {
|
|||
},
|
||||
verticallyScrollableContext: function() {
|
||||
var
|
||||
overflowY = ($context.get(0) !== window)
|
||||
overflowY = ($context[0] !== window)
|
||||
? $context.css('overflow-y')
|
||||
: false
|
||||
;
|
||||
|
@ -3518,7 +3529,7 @@ $.fn.dropdown = function(parameters) {
|
|||
},
|
||||
horizontallyScrollableContext: function() {
|
||||
var
|
||||
overflowX = ($context.get(0) !== window)
|
||||
overflowX = ($context[0] !== window)
|
||||
? $context.css('overflow-X')
|
||||
: false
|
||||
;
|
||||
|
@ -3551,7 +3562,7 @@ $.fn.dropdown = function(parameters) {
|
|||
;
|
||||
calculations = {
|
||||
context: {
|
||||
offset : ($context.get(0) === window)
|
||||
offset : ($context[0] === window)
|
||||
? { top: 0, left: 0}
|
||||
: $context.offset(),
|
||||
scrollTop : $context.scrollTop(),
|
||||
|
@ -3599,7 +3610,7 @@ $.fn.dropdown = function(parameters) {
|
|||
;
|
||||
calculations = {
|
||||
context: {
|
||||
offset : ($context.get(0) === window)
|
||||
offset : ($context[0] === window)
|
||||
? { top: 0, left: 0}
|
||||
: $context.offset(),
|
||||
scrollLeft : $context.scrollLeft(),
|
||||
|
@ -3669,6 +3680,7 @@ $.fn.dropdown = function(parameters) {
|
|||
animation : transition + ' in',
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.transition.showDuration || settings.duration,
|
||||
queue : true,
|
||||
onStart : start,
|
||||
|
@ -3716,6 +3728,7 @@ $.fn.dropdown = function(parameters) {
|
|||
duration : settings.transition.hideDuration || settings.duration,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
queue : false,
|
||||
onStart : start,
|
||||
displayType: module.get.displayType(),
|
||||
|
@ -4248,7 +4261,8 @@ $.fn.dropdown.settings.templates = {
|
|||
var
|
||||
placeholder = select.placeholder || false,
|
||||
html = '',
|
||||
escape = $.fn.dropdown.settings.templates.escape
|
||||
escape = $.fn.dropdown.settings.templates.escape,
|
||||
deQuote = $.fn.dropdown.settings.templates.deQuote
|
||||
;
|
||||
html += '<i class="dropdown icon"></i>';
|
||||
if(placeholder) {
|
||||
|
@ -4257,7 +4271,7 @@ $.fn.dropdown.settings.templates = {
|
|||
else {
|
||||
html += '<div class="text"></div>';
|
||||
}
|
||||
html += '<div class="'+className.menu+'">';
|
||||
html += '<div class="'+deQuote(className.menu)+'">';
|
||||
html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML,className);
|
||||
html += '</div>';
|
||||
return html;
|
||||
|
@ -4295,27 +4309,27 @@ $.fn.dropdown.settings.templates = {
|
|||
: '',
|
||||
hasDescription = (escape(option[fields.description] || '', preserveHTML) != '')
|
||||
;
|
||||
html += '<div class="'+ maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? deQuote(option[fields.class]) : className.item)+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
|
||||
html += '<div class="'+ deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? option[fields.class] : className.item))+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
|
||||
if (isMenu) {
|
||||
html += '<i class="'+ (itemType.indexOf('left') !== -1 ? 'left' : '') + ' dropdown icon"></i>';
|
||||
}
|
||||
if(option[fields.image]) {
|
||||
html += '<img class="'+(option[fields.imageClass] ? deQuote(option[fields.imageClass]) : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
|
||||
html += '<img class="'+deQuote(option[fields.imageClass] ? option[fields.imageClass] : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
|
||||
}
|
||||
if(option[fields.icon]) {
|
||||
html += '<i class="'+deQuote(option[fields.icon])+' '+(option[fields.iconClass] ? deQuote(option[fields.iconClass]) : className.icon)+'"></i>';
|
||||
html += '<i class="'+deQuote(option[fields.icon]+' '+(option[fields.iconClass] ? option[fields.iconClass] : className.icon))+'"></i>';
|
||||
}
|
||||
if(hasDescription){
|
||||
html += '<span class="'+ className.description +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
|
||||
html += (!isMenu) ? '<span class="'+ className.text + '">' : '';
|
||||
html += '<span class="'+ deQuote(className.description) +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
|
||||
html += (!isMenu) ? '<span class="'+ deQuote(className.text) + '">' : '';
|
||||
}
|
||||
if (isMenu) {
|
||||
html += '<span class="' + className.text + '">';
|
||||
html += '<span class="' + deQuote(className.text) + '">';
|
||||
}
|
||||
html += escape(option[fields.name] || '', preserveHTML);
|
||||
if (isMenu) {
|
||||
html += '</span>';
|
||||
html += '<div class="' + itemType + '">';
|
||||
html += '<div class="' + deQuote(itemType) + '">';
|
||||
html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
|
||||
html += '</div>';
|
||||
} else if(hasDescription){
|
||||
|
@ -4324,18 +4338,18 @@ $.fn.dropdown.settings.templates = {
|
|||
html += '</div>';
|
||||
} else if (itemType === 'header') {
|
||||
var groupName = escape(option[fields.name] || '', preserveHTML),
|
||||
groupIcon = option[fields.icon] ? deQuote(option[fields.icon]) : className.groupIcon
|
||||
groupIcon = deQuote(option[fields.icon] ? option[fields.icon] : className.groupIcon)
|
||||
;
|
||||
if(groupName !== '' || groupIcon !== '') {
|
||||
html += '<div class="' + (option[fields.class] ? deQuote(option[fields.class]) : className.header) + '">';
|
||||
html += '<div class="' + deQuote(option[fields.class] ? option[fields.class] : className.header) + '">';
|
||||
if (groupIcon !== '') {
|
||||
html += '<i class="' + groupIcon + ' ' + (option[fields.iconClass] ? deQuote(option[fields.iconClass]) : className.icon) + '"></i>';
|
||||
html += '<i class="' + deQuote(groupIcon + ' ' + (option[fields.iconClass] ? option[fields.iconClass] : className.icon)) + '"></i>';
|
||||
}
|
||||
html += groupName;
|
||||
html += '</div>';
|
||||
}
|
||||
if(option[fields.divider]){
|
||||
html += '<div class="'+className.divider+'"></div>';
|
||||
html += '<div class="'+deQuote(className.divider)+'"></div>';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -4345,8 +4359,10 @@ $.fn.dropdown.settings.templates = {
|
|||
// generates label for multiselect
|
||||
label: function(value, text, preserveHTML, className) {
|
||||
var
|
||||
escape = $.fn.dropdown.settings.templates.escape;
|
||||
return escape(text,preserveHTML) + '<i class="'+className.delete+' icon"></i>';
|
||||
escape = $.fn.dropdown.settings.templates.escape,
|
||||
deQuote = $.fn.dropdown.settings.templates.deQuote
|
||||
;
|
||||
return escape(text,preserveHTML) + '<i class="'+deQuote(className.delete)+' icon"></i>';
|
||||
},
|
||||
|
||||
|
||||
|
|
4
semantic/dist/components/dropdown.min.css
vendored
4
semantic/dist/components/dropdown.min.css
vendored
File diff suppressed because one or more lines are too long
4
semantic/dist/components/dropdown.min.js
vendored
4
semantic/dist/components/dropdown.min.js
vendored
File diff suppressed because one or more lines are too long
4
semantic/dist/components/form.css
vendored
4
semantic/dist/components/form.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Form
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Form
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -60,7 +60,7 @@
|
|||
font-weight: bold;
|
||||
text-transform: none;
|
||||
}
|
||||
.ui.form .field > label:not(.button) {
|
||||
.ui.form:not(.inverted) .field > label:not(.button) {
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
}
|
||||
|
||||
|
|
2
semantic/dist/components/form.js
vendored
2
semantic/dist/components/form.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Form Validation
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Form Validation
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/form.min.css
vendored
4
semantic/dist/components/form.min.css
vendored
File diff suppressed because one or more lines are too long
4
semantic/dist/components/form.min.js
vendored
4
semantic/dist/components/form.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/grid.css
vendored
2
semantic/dist/components/grid.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Grid
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Grid
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/grid.min.css
vendored
2
semantic/dist/components/grid.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Grid
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Grid
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/header.css
vendored
2
semantic/dist/components/header.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Header
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Header
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/header.min.css
vendored
2
semantic/dist/components/header.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Header
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Header
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/icon.css
vendored
2
semantic/dist/components/icon.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Icon
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Icon
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/icon.min.css
vendored
2
semantic/dist/components/icon.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Icon
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Icon
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/image.css
vendored
2
semantic/dist/components/image.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Image
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Image
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/image.min.css
vendored
2
semantic/dist/components/image.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Image
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Image
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/input.css
vendored
2
semantic/dist/components/input.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Input
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Input
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/input.min.css
vendored
2
semantic/dist/components/input.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Input
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Input
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/label.css
vendored
2
semantic/dist/components/label.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Label
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Label
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/label.min.css
vendored
2
semantic/dist/components/label.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Label
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Label
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/list.css
vendored
2
semantic/dist/components/list.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - List
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - List
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/list.min.css
vendored
2
semantic/dist/components/list.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - List
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - List
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/loader.css
vendored
2
semantic/dist/components/loader.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Loader
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Loader
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/loader.min.css
vendored
2
semantic/dist/components/loader.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Loader
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Loader
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/message.css
vendored
2
semantic/dist/components/message.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Message
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Message
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/message.min.css
vendored
2
semantic/dist/components/message.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Message
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Message
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/modal.css
vendored
2
semantic/dist/components/modal.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Modal
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Modal
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
12
semantic/dist/components/modal.js
vendored
12
semantic/dist/components/modal.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Modal
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Modal
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -552,6 +552,8 @@ $.fn.modal = function(parameters) {
|
|||
$module
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
animation : (settings.transition.showMethod || settings.transition) + ' in',
|
||||
queue : settings.queue,
|
||||
duration : settings.transition.showDuration || settings.duration,
|
||||
|
@ -602,6 +604,8 @@ $.fn.modal = function(parameters) {
|
|||
$module
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
animation : (settings.transition.hideMethod || settings.transition) + ' out',
|
||||
queue : settings.queue,
|
||||
duration : settings.transition.hideDuration || settings.duration,
|
||||
|
@ -723,7 +727,7 @@ $.fn.modal = function(parameters) {
|
|||
keyboardShortcuts: function() {
|
||||
module.verbose('Adding keyboard shortcuts');
|
||||
$document
|
||||
.on('keyup' + eventNamespace, module.event.keyboard)
|
||||
.on('keydown' + eventNamespace, module.event.keyboard)
|
||||
;
|
||||
}
|
||||
},
|
||||
|
@ -803,7 +807,7 @@ $.fn.modal = function(parameters) {
|
|||
keyboardShortcuts: function() {
|
||||
module.verbose('Removing keyboard shortcuts');
|
||||
$document
|
||||
.off('keyup' + eventNamespace)
|
||||
.off('keydown' + eventNamespace)
|
||||
;
|
||||
},
|
||||
scrolling: function() {
|
||||
|
@ -1507,7 +1511,7 @@ $.fn.modal.settings.templates = {
|
|||
denyFn = function(){args.handler(null)}
|
||||
;
|
||||
if (input.length === 0) {
|
||||
args.content += '<p><div class="'+settings.className.prompt+'"><input placeholder="'+this.helpers.deQuote(args.placeholder || '')+'" type="text" value="'+this.helpers.deQuote(args.defaultValue || '')+'"></div></p>';
|
||||
args.content += '<p><div class="'+this.helpers.deQuote(settings.className.prompt)+'"><input placeholder="'+this.helpers.deQuote(args.placeholder || '')+'" type="text" value="'+this.helpers.deQuote(args.defaultValue || '')+'"></div></p>';
|
||||
}
|
||||
return {
|
||||
title : args.title,
|
||||
|
|
2
semantic/dist/components/modal.min.css
vendored
2
semantic/dist/components/modal.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Modal
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Modal
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/modal.min.js
vendored
4
semantic/dist/components/modal.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/placeholder.css
vendored
2
semantic/dist/components/placeholder.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Loader
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Loader
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/placeholder.min.css
vendored
2
semantic/dist/components/placeholder.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Loader
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Loader
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/popup.css
vendored
2
semantic/dist/components/popup.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Popup
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Popup
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
26
semantic/dist/components/popup.js
vendored
26
semantic/dist/components/popup.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Popup
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Popup
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -62,11 +62,11 @@ $.fn.popup = function(parameters) {
|
|||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
||||
$scrollContext = [window,document].indexOf(settings.scrollContext) < 0 ? $(document).find(settings.scrollContext) : $(settings.scrollContext),
|
||||
$boundary = [window,document].indexOf(settings.boundary) < 0 ? $(document).find(settings.boundary) : $(settings.boundary),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context),
|
||||
$scrollContext = [window,document].indexOf(settings.scrollContext) < 0 ? $document.find(settings.scrollContext) : $(settings.scrollContext),
|
||||
$boundary = [window,document].indexOf(settings.boundary) < 0 ? $document.find(settings.boundary) : $(settings.boundary),
|
||||
$target = (settings.target)
|
||||
? ([window,document].indexOf(settings.target) < 0 ? $(document).find(settings.target) : $(settings.target))
|
||||
? ([window,document].indexOf(settings.target) < 0 ? $document.find(settings.target) : $(settings.target))
|
||||
: $module,
|
||||
|
||||
$popup,
|
||||
|
@ -121,8 +121,8 @@ $.fn.popup = function(parameters) {
|
|||
},
|
||||
|
||||
refresh: function() {
|
||||
if(settings.popup && typeof settings.popup === 'string') {
|
||||
$popup = $(document).find(settings.popup).eq(0);
|
||||
if(settings.popup) {
|
||||
$popup = $document.find(settings.popup).eq(0);
|
||||
}
|
||||
else {
|
||||
if(settings.inline) {
|
||||
|
@ -286,8 +286,8 @@ $.fn.popup = function(parameters) {
|
|||
}
|
||||
settings.onCreate.call($popup, element);
|
||||
}
|
||||
else if(settings.popup && typeof settings.popup === 'string') {
|
||||
$(document).find(settings.popup).data(metadata.activator, $module);
|
||||
else if(settings.popup) {
|
||||
$document.find(settings.popup).data(metadata.activator, $module);
|
||||
module.verbose('Used popup specified in settings');
|
||||
module.refresh();
|
||||
if(settings.hoverable) {
|
||||
|
@ -368,7 +368,7 @@ $.fn.popup = function(parameters) {
|
|||
},
|
||||
|
||||
hideAll: function() {
|
||||
$(document).find(selector.popup)
|
||||
$document.find(selector.popup)
|
||||
.filter('.' + className.popupVisible)
|
||||
.each(function() {
|
||||
$(this)
|
||||
|
@ -438,6 +438,7 @@ $.fn.popup = function(parameters) {
|
|||
queue : false,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.transition.showDuration || settings.duration,
|
||||
onComplete : function() {
|
||||
module.bind.close();
|
||||
|
@ -462,6 +463,7 @@ $.fn.popup = function(parameters) {
|
|||
duration : settings.transition.hideDuration || settings.duration,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
onComplete : function() {
|
||||
module.reset();
|
||||
callback.call($popup, element);
|
||||
|
@ -557,7 +559,7 @@ $.fn.popup = function(parameters) {
|
|||
};
|
||||
|
||||
// if popup offset context is not same as target, then adjust calculations
|
||||
if($popupOffsetParent.get(0) !== $offsetParent.get(0)) {
|
||||
if($popupOffsetParent[0] !== $offsetParent[0]) {
|
||||
var
|
||||
popupOffset = $popupOffsetParent.offset()
|
||||
;
|
||||
|
@ -1135,7 +1137,7 @@ $.fn.popup = function(parameters) {
|
|||
return !module.is.visible();
|
||||
},
|
||||
rtl: function () {
|
||||
return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
|
||||
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';
|
||||
}
|
||||
},
|
||||
|
||||
|
|
2
semantic/dist/components/popup.min.css
vendored
2
semantic/dist/components/popup.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Popup
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Popup
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/popup.min.js
vendored
4
semantic/dist/components/popup.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/progress.css
vendored
2
semantic/dist/components/progress.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Progress Bar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Progress Bar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/progress.js
vendored
2
semantic/dist/components/progress.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Progress
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Progress
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/progress.min.css
vendored
2
semantic/dist/components/progress.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Progress Bar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Progress Bar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/progress.min.js
vendored
2
semantic/dist/components/progress.min.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* # Fomantic UI - 2.9.0-beta.301+42e68bc
|
||||
* # Fomantic UI - 2.9.0-beta.311+116f84b
|
||||
* https://github.com/fomantic/Fomantic-UI
|
||||
* http://fomantic-ui.com/
|
||||
*
|
||||
|
|
2
semantic/dist/components/reset.css
vendored
2
semantic/dist/components/reset.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Reset
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Reset
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/reset.min.css
vendored
2
semantic/dist/components/reset.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Reset
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Reset
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/segment.css
vendored
2
semantic/dist/components/segment.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Segment
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Segment
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/segment.min.css
vendored
2
semantic/dist/components/segment.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Segment
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Segment
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
10
semantic/dist/components/sidebar.css
vendored
10
semantic/dist/components/sidebar.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Sidebar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Sidebar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -80,10 +80,14 @@
|
|||
Pushable
|
||||
---------------*/
|
||||
|
||||
.pushable {
|
||||
.pushable.pushable.pushable {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
padding: 0 !important;
|
||||
padding: 0;
|
||||
}
|
||||
.pushable.pushable.pushable.locked {
|
||||
overflow-y: hidden;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
/* Whole Page */
|
||||
|
|
131
semantic/dist/components/sidebar.js
vendored
131
semantic/dist/components/sidebar.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Sidebar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Sidebar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -28,6 +28,7 @@ $.fn.sidebar = function(parameters) {
|
|||
$allModules = $(this),
|
||||
$window = $(window),
|
||||
$document = $(document),
|
||||
$body = $('body'),
|
||||
$html = $('html'),
|
||||
$head = $('head'),
|
||||
|
||||
|
@ -66,7 +67,8 @@ $.fn.sidebar = function(parameters) {
|
|||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $body,
|
||||
isBody = $context[0] === $body[0],
|
||||
|
||||
$sidebars = $module.children(selector.sidebar),
|
||||
$fixed = $context.children(selector.fixed),
|
||||
|
@ -80,6 +82,9 @@ $.fn.sidebar = function(parameters) {
|
|||
id,
|
||||
currentScroll,
|
||||
transitionEvent,
|
||||
initialBodyMargin = '',
|
||||
tempBodyMargin = '',
|
||||
hadScrollbar = false,
|
||||
|
||||
module
|
||||
;
|
||||
|
@ -185,9 +190,12 @@ $.fn.sidebar = function(parameters) {
|
|||
scrollLock: function() {
|
||||
if(settings.scrollLock) {
|
||||
module.debug('Disabling page scroll');
|
||||
$window
|
||||
.on('DOMMouseScroll' + elementNamespace, module.event.scroll)
|
||||
;
|
||||
hadScrollbar = module.has.scrollbar();
|
||||
if(hadScrollbar) {
|
||||
module.save.bodyMargin();
|
||||
module.set.bodyMargin();
|
||||
}
|
||||
$context.addClass(className.locked);
|
||||
}
|
||||
module.verbose('Adding events to contain sidebar scroll');
|
||||
$document
|
||||
|
@ -205,8 +213,11 @@ $.fn.sidebar = function(parameters) {
|
|||
},
|
||||
scrollLock: function() {
|
||||
module.verbose('Removing scroll lock from page');
|
||||
if(hadScrollbar) {
|
||||
module.restore.bodyMargin();
|
||||
}
|
||||
$context.removeClass(className.locked);
|
||||
$document.off(elementNamespace);
|
||||
$window.off(elementNamespace);
|
||||
$module.off('scroll' + eventNamespace);
|
||||
}
|
||||
},
|
||||
|
@ -364,7 +375,22 @@ $.fn.sidebar = function(parameters) {
|
|||
module.error(error.notFound, selector);
|
||||
}
|
||||
},
|
||||
|
||||
can: {
|
||||
leftBodyScrollbar: function () {
|
||||
if (module.cache.leftBodyScrollbar === undefined) {
|
||||
module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
|
||||
}
|
||||
return module.cache.leftBodyScrollbar;
|
||||
}
|
||||
},
|
||||
save: {
|
||||
bodyMargin: function() {
|
||||
initialBodyMargin = $context.css((isBody ? 'margin-':'padding-')+(module.can.leftBodyScrollbar() ? 'left':'right'));
|
||||
var bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, '')),
|
||||
bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
|
||||
tempBodyMargin = bodyMarginRightPixel + bodyScrollbarWidth;
|
||||
}
|
||||
},
|
||||
show: function(callback) {
|
||||
callback = $.isFunction(callback)
|
||||
? callback
|
||||
|
@ -475,9 +501,13 @@ $.fn.sidebar = function(parameters) {
|
|||
? callback
|
||||
: function(){}
|
||||
;
|
||||
if(settings.transition == 'scale down') {
|
||||
if(settings.returnScroll) {
|
||||
currentScroll = (isBody ? $window : $context).scrollTop();
|
||||
}
|
||||
if(settings.transition === 'scale down') {
|
||||
module.scrollToTop();
|
||||
}
|
||||
module.bind.scrollLock();
|
||||
module.set.transition(transition);
|
||||
module.repaint();
|
||||
animate = function() {
|
||||
|
@ -493,7 +523,6 @@ $.fn.sidebar = function(parameters) {
|
|||
if( event.target == $transition[0] ) {
|
||||
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
||||
module.remove.animating();
|
||||
module.bind.scrollLock();
|
||||
callback.call(element);
|
||||
}
|
||||
};
|
||||
|
@ -537,7 +566,7 @@ $.fn.sidebar = function(parameters) {
|
|||
module.remove.animating();
|
||||
module.remove.transition();
|
||||
module.remove.inlineCSS();
|
||||
if(transition == 'scale down' || (settings.returnScroll && module.is.mobile()) ) {
|
||||
if(transition === 'scale down' || settings.returnScroll) {
|
||||
module.scrollBack();
|
||||
}
|
||||
callback.call(element);
|
||||
|
@ -550,14 +579,13 @@ $.fn.sidebar = function(parameters) {
|
|||
|
||||
scrollToTop: function() {
|
||||
module.verbose('Scrolling to top of page to avoid animation issues');
|
||||
currentScroll = $(window).scrollTop();
|
||||
$module.scrollTop(0);
|
||||
window.scrollTo(0, 0);
|
||||
(isBody ? $window : $context)[0].scrollTo(0, 0);
|
||||
},
|
||||
|
||||
scrollBack: function() {
|
||||
module.verbose('Scrolling back to original page position');
|
||||
window.scrollTo(0, currentScroll);
|
||||
(isBody ? $window : $context)[0].scrollTo(0, currentScroll);
|
||||
},
|
||||
|
||||
clear: {
|
||||
|
@ -568,7 +596,16 @@ $.fn.sidebar = function(parameters) {
|
|||
},
|
||||
|
||||
set: {
|
||||
|
||||
bodyMargin: function() {
|
||||
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
||||
$context.css((isBody ? 'margin-':'padding-')+position, tempBodyMargin + 'px');
|
||||
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
||||
var el = $(this),
|
||||
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
||||
;
|
||||
el.css(attribute, 'calc(' + el.css(attribute) + ' + ' + tempBodyMargin + 'px)');
|
||||
});
|
||||
},
|
||||
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
||||
// (This is no longer necessary in latest iOS)
|
||||
ios: function() {
|
||||
|
@ -654,7 +691,18 @@ $.fn.sidebar = function(parameters) {
|
|||
$module.removeClass(className.overlay);
|
||||
}
|
||||
},
|
||||
|
||||
restore: {
|
||||
bodyMargin: function() {
|
||||
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
||||
$context.css((isBody ? 'margin-':'padding-')+position, initialBodyMargin);
|
||||
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
||||
var el = $(this),
|
||||
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
||||
;
|
||||
el.css(attribute, '');
|
||||
});
|
||||
}
|
||||
},
|
||||
get: {
|
||||
direction: function() {
|
||||
if($module.hasClass(className.top)) {
|
||||
|
@ -702,15 +750,42 @@ $.fn.sidebar = function(parameters) {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
has: {
|
||||
scrollbar: function() {
|
||||
return isBody || $context.css('overflow-y') !== 'hidden';
|
||||
}
|
||||
},
|
||||
is: {
|
||||
|
||||
safari: function() {
|
||||
if(module.cache.isSafari === undefined) {
|
||||
module.cache.isSafari = /constructor/i.test(window.HTMLElement) || !!window.ApplePaySession;
|
||||
}
|
||||
return module.cache.isSafari;
|
||||
},
|
||||
edge: function(){
|
||||
if(module.cache.isEdge === undefined) {
|
||||
module.cache.isEdge = !!window.setImmediate && !module.is.ie();
|
||||
}
|
||||
return module.cache.isEdge;
|
||||
},
|
||||
firefox: function(){
|
||||
if(module.cache.isFirefox === undefined) {
|
||||
module.cache.isFirefox = !!window.InstallTrigger;
|
||||
}
|
||||
return module.cache.isFirefox;
|
||||
},
|
||||
iframe: function() {
|
||||
return !(self === top);
|
||||
},
|
||||
ie: function() {
|
||||
var
|
||||
isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
|
||||
isIE = ('ActiveXObject' in window)
|
||||
;
|
||||
return (isIE11 || isIE);
|
||||
if(module.cache.isIE === undefined) {
|
||||
var
|
||||
isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
|
||||
isIE = ('ActiveXObject' in window)
|
||||
;
|
||||
module.cache.isIE = (isIE11 || isIE);
|
||||
}
|
||||
return module.cache.isIE;
|
||||
},
|
||||
|
||||
ios: function() {
|
||||
|
@ -760,12 +835,12 @@ $.fn.sidebar = function(parameters) {
|
|||
animating: function() {
|
||||
return $context.hasClass(className.animating);
|
||||
},
|
||||
rtl: function () {
|
||||
if(module.cache.rtl === undefined) {
|
||||
module.cache.rtl = $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
|
||||
rtl: function() {
|
||||
if(module.cache.isRTL === undefined) {
|
||||
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';
|
||||
}
|
||||
return module.cache.rtl;
|
||||
}
|
||||
return module.cache.isRTL;
|
||||
},
|
||||
},
|
||||
|
||||
setting: function(name, value) {
|
||||
|
@ -1002,6 +1077,7 @@ $.fn.sidebar.settings = {
|
|||
animating : 'animating',
|
||||
dimmed : 'dimmed',
|
||||
ios : 'ios',
|
||||
locked : 'locked',
|
||||
pushable : 'pushable',
|
||||
pushed : 'pushed',
|
||||
right : 'right',
|
||||
|
@ -1012,6 +1088,7 @@ $.fn.sidebar.settings = {
|
|||
},
|
||||
|
||||
selector: {
|
||||
bodyFixed: '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close',
|
||||
fixed : '.fixed',
|
||||
omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',
|
||||
pusher : '.pusher',
|
||||
|
|
4
semantic/dist/components/sidebar.min.css
vendored
4
semantic/dist/components/sidebar.min.css
vendored
File diff suppressed because one or more lines are too long
4
semantic/dist/components/sidebar.min.js
vendored
4
semantic/dist/components/sidebar.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/site.css
vendored
2
semantic/dist/components/site.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Site
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Site
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/site.js
vendored
2
semantic/dist/components/site.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Site
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Site
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/site.min.css
vendored
2
semantic/dist/components/site.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Site
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Site
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/site.min.js
vendored
2
semantic/dist/components/site.min.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* # Fomantic UI - 2.9.0-beta.301+42e68bc
|
||||
* # Fomantic UI - 2.9.0-beta.311+116f84b
|
||||
* https://github.com/fomantic/Fomantic-UI
|
||||
* http://fomantic-ui.com/
|
||||
*
|
||||
|
|
2
semantic/dist/components/statistic.css
vendored
2
semantic/dist/components/statistic.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Statistic
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Statistic
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/statistic.min.css
vendored
2
semantic/dist/components/statistic.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Statistic
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Statistic
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/step.css
vendored
2
semantic/dist/components/step.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Step
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Step
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/step.min.css
vendored
2
semantic/dist/components/step.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Step
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Step
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/tab.css
vendored
2
semantic/dist/components/tab.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Tab
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Tab
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/tab.js
vendored
2
semantic/dist/components/tab.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Tab
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Tab
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/tab.min.css
vendored
2
semantic/dist/components/tab.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Tab
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Tab
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/tab.min.js
vendored
2
semantic/dist/components/tab.min.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* # Fomantic UI - 2.9.0-beta.301+42e68bc
|
||||
* # Fomantic UI - 2.9.0-beta.311+116f84b
|
||||
* https://github.com/fomantic/Fomantic-UI
|
||||
* http://fomantic-ui.com/
|
||||
*
|
||||
|
|
2
semantic/dist/components/table.css
vendored
2
semantic/dist/components/table.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Table
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Table
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/table.min.css
vendored
2
semantic/dist/components/table.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Table
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Table
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/text.css
vendored
2
semantic/dist/components/text.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Text
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Text
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/text.min.css
vendored
2
semantic/dist/components/text.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Text
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Text
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
2
semantic/dist/components/toast.css
vendored
2
semantic/dist/components/toast.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Toast
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Toast
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/toast.js
vendored
4
semantic/dist/components/toast.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Toast
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Toast
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -391,6 +391,7 @@ $.fn.toast = function(parameters) {
|
|||
queue : false,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.transition.showDuration,
|
||||
onComplete : function() {
|
||||
callback.call($toastBox, element);
|
||||
|
@ -410,6 +411,7 @@ $.fn.toast = function(parameters) {
|
|||
duration : settings.transition.hideDuration,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
interval : 50,
|
||||
|
||||
onBeforeHide: function(callback){
|
||||
|
|
2
semantic/dist/components/toast.min.css
vendored
2
semantic/dist/components/toast.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Toast
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Toast
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/toast.min.js
vendored
4
semantic/dist/components/toast.min.js
vendored
File diff suppressed because one or more lines are too long
2
semantic/dist/components/transition.css
vendored
2
semantic/dist/components/transition.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Transition
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Transition
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/transition.js
vendored
4
semantic/dist/components/transition.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Transition
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Transition
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -698,11 +698,13 @@ $.fn.transition = function() {
|
|||
.addClass(className.transition)
|
||||
.css('animationName')
|
||||
;
|
||||
$clone.detach().insertAfter($module);
|
||||
inAnimation = $clone
|
||||
.addClass(className.inward)
|
||||
.css('animationName')
|
||||
;
|
||||
if(!displayType) {
|
||||
$clone.detach().insertAfter($module);
|
||||
displayType = $clone
|
||||
.attr('class', elementClass)
|
||||
.removeAttr('style')
|
||||
|
|
2
semantic/dist/components/transition.min.css
vendored
2
semantic/dist/components/transition.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Transition
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Transition
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
4
semantic/dist/components/transition.min.js
vendored
4
semantic/dist/components/transition.min.js
vendored
File diff suppressed because one or more lines are too long
90
semantic/dist/semantic.css
vendored
90
semantic/dist/semantic.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* # Fomantic UI - 2.9.0-beta.301+42e68bc
|
||||
* # Fomantic UI - 2.9.0-beta.311+116f84b
|
||||
* https://github.com/fomantic/Fomantic-UI
|
||||
* http://fomantic-ui.com/
|
||||
*
|
||||
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
*/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Reset
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Reset
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -435,7 +435,7 @@ template {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Site
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Site
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -760,7 +760,7 @@ input::selection {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Container
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Container
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -1034,7 +1034,7 @@ input::selection {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Grid
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Grid
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -3410,7 +3410,7 @@ input::selection {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Button
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Button
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -8482,7 +8482,7 @@ input::selection {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Calendar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Calendar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -8695,7 +8695,7 @@ input::selection {
|
|||
Theme Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Card
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Card
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -10957,7 +10957,7 @@ a.inverted.ui.card:hover,
|
|||
User Variable Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Checkbox
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Checkbox
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -11857,7 +11857,7 @@ a.inverted.ui.card:hover,
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dimmer
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dimmer
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -12379,7 +12379,7 @@ body.dimmable > .dimmer {
|
|||
User Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Divider
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Divider
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -12693,7 +12693,7 @@ body.dimmable > .dimmer {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dropdown
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dropdown
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -13295,6 +13295,17 @@ select.ui.dropdown {
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* User addition item */
|
||||
|
||||
.ui.dropdown > .menu > .stuck.addition.item:first-child {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
-webkit-box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
|
||||
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
|
||||
background: #FFFFFF;
|
||||
z-index: 14;
|
||||
}
|
||||
|
||||
/* Hover */
|
||||
|
||||
.ui.selection.dropdown:hover {
|
||||
|
@ -15047,7 +15058,7 @@ select.ui.dropdown {
|
|||
User Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Form
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Form
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -15109,7 +15120,7 @@ select.ui.dropdown {
|
|||
text-transform: none;
|
||||
}
|
||||
|
||||
.ui.form .field > label:not(.button) {
|
||||
.ui.form:not(.inverted) .field > label:not(.button) {
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
}
|
||||
|
||||
|
@ -17136,7 +17147,7 @@ select.ui.dropdown {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Header
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Header
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -18092,7 +18103,7 @@ a.ui.inverted.black.header.header.header:hover {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Icon
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Icon
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -27309,7 +27320,7 @@ i.icon.youtube.play::before {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Image
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Image
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -27664,7 +27675,7 @@ img.ui.bordered.image {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Input
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Input
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -29363,7 +29374,7 @@ input[type="file"].ui.black.file.input::file-selector-button:hover,
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Label
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Label
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -31768,7 +31779,7 @@ a.ui.ui.ui.inverted.basic.black.label:hover {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - List
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - List
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -32874,7 +32885,7 @@ ol.ui.suffixed.list li::before,
|
|||
User Variable Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Loader
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Loader
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -36395,7 +36406,7 @@ Floated Menu / Item
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Message
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Message
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -37201,7 +37212,7 @@ Floated Menu / Item
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Modal
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Modal
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -38107,7 +38118,7 @@ Floated Menu / Item
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Loader
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Loader
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -38394,7 +38405,7 @@ Floated Menu / Item
|
|||
Theme Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Popup
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Popup
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -39304,7 +39315,7 @@ Floated Menu / Item
|
|||
User Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Progress Bar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Progress Bar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -40279,7 +40290,7 @@ Floated Menu / Item
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Segment
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Segment
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -41378,7 +41389,7 @@ Floated Menu / Item
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Sidebar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Sidebar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -41463,10 +41474,15 @@ Floated Menu / Item
|
|||
Pushable
|
||||
---------------*/
|
||||
|
||||
.pushable {
|
||||
.pushable.pushable.pushable {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
padding: 0 !important;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pushable.pushable.pushable.locked {
|
||||
overflow-y: hidden;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
/* Whole Page */
|
||||
|
@ -42065,7 +42081,7 @@ body.pushable > .pusher {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Statistic
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Statistic
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -42771,7 +42787,7 @@ body.pushable > .pusher {
|
|||
User Variable Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Step
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Step
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -43543,7 +43559,7 @@ body.pushable > .pusher {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Tab
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Tab
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -43627,7 +43643,7 @@ body.pushable > .pusher {
|
|||
User Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Table
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Table
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -47837,7 +47853,7 @@ body.pushable > .pusher {
|
|||
Site Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Text
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Text
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -48032,7 +48048,7 @@ span.ui.massive.text {
|
|||
Theme Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Toast
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Toast
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -49032,7 +49048,7 @@ span.ui.massive.text {
|
|||
Theme Overrides
|
||||
*******************************/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Transition
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Transition
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
|
279
semantic/dist/semantic.js
vendored
279
semantic/dist/semantic.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* # Fomantic UI - 2.9.0-beta.301+42e68bc
|
||||
* # Fomantic UI - 2.9.0-beta.311+116f84b
|
||||
* https://github.com/fomantic/Fomantic-UI
|
||||
* http://fomantic-ui.com/
|
||||
*
|
||||
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
*/
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Site
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Site
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -503,7 +503,7 @@ $.extend($.expr[ ":" ], {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Calendar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Calendar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -1097,8 +1097,8 @@ $.fn.calendar = function(parameters) {
|
|||
},
|
||||
keydown: function (event) {
|
||||
var keyCode = event.which;
|
||||
if (keyCode === 27 || keyCode === 9) {
|
||||
//esc || tab
|
||||
if (keyCode === 9) {
|
||||
//tab
|
||||
module.popup('hide');
|
||||
}
|
||||
|
||||
|
@ -1134,6 +1134,9 @@ $.fn.calendar = function(parameters) {
|
|||
//disable form submission:
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
} else if (keyCode === 27) {
|
||||
module.popup('hide');
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1990,7 +1993,7 @@ $.fn.calendar.settings = {
|
|||
silent: false,
|
||||
debug: false,
|
||||
verbose: false,
|
||||
performance: false,
|
||||
performance: true,
|
||||
|
||||
type : 'datetime', // picker type, can be 'datetime', 'date', 'time', 'month', or 'year'
|
||||
firstDayOfWeek : 0, // day for first day column (0 = Sunday)
|
||||
|
@ -2392,7 +2395,7 @@ $.fn.calendar.settings = {
|
|||
})(jQuery, window, document);
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Checkbox
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Checkbox
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -2637,6 +2640,7 @@ $.fn.checkbox = function(parameters) {
|
|||
module.verbose('Escape key pressed blurring field');
|
||||
$input.blur();
|
||||
shortcutPressed = true;
|
||||
event.stopPropagation();
|
||||
}
|
||||
else if(!event.ctrlKey && module.can.change()) {
|
||||
if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
|
||||
|
@ -3222,7 +3226,7 @@ $.fn.checkbox.settings = {
|
|||
|
||||
silent : false,
|
||||
debug : false,
|
||||
verbose : true,
|
||||
verbose : false,
|
||||
performance : true,
|
||||
|
||||
// delegated event context
|
||||
|
@ -3275,7 +3279,7 @@ $.fn.checkbox.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dimmer
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dimmer
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -3534,6 +3538,9 @@ $.fn.dimmer = function(parameters) {
|
|||
}
|
||||
$dimmer
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
displayType : settings.useFlex
|
||||
? 'flex'
|
||||
: 'block',
|
||||
|
@ -3583,6 +3590,9 @@ $.fn.dimmer = function(parameters) {
|
|||
module.verbose('Hiding dimmer with css');
|
||||
$dimmer
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
displayType : settings.useFlex
|
||||
? 'flex'
|
||||
: 'block',
|
||||
|
@ -4038,7 +4048,7 @@ $.fn.dimmer.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Dropdown
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Dropdown
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -4100,7 +4110,7 @@ $.fn.dropdown = function(parameters) {
|
|||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context),
|
||||
$text = $module.find(selector.text),
|
||||
$search = $module.find(selector.search),
|
||||
$sizer = $module.find(selector.sizer),
|
||||
|
@ -4150,6 +4160,7 @@ $.fn.dropdown = function(parameters) {
|
|||
module.error(error.noNormalize, element);
|
||||
}
|
||||
|
||||
module.create.id();
|
||||
module.setup.layout();
|
||||
|
||||
if(settings.values) {
|
||||
|
@ -4163,7 +4174,6 @@ $.fn.dropdown = function(parameters) {
|
|||
module.save.defaults();
|
||||
module.restore.selected();
|
||||
|
||||
module.create.id();
|
||||
module.bind.events();
|
||||
|
||||
module.observeChanges();
|
||||
|
@ -4405,11 +4415,20 @@ $.fn.dropdown = function(parameters) {
|
|||
}
|
||||
if( module.is.search() && !module.has.search() ) {
|
||||
module.verbose('Adding search input');
|
||||
var
|
||||
labelNode = $module.prev('label')
|
||||
;
|
||||
$search = $('<input />')
|
||||
.addClass(className.search)
|
||||
.prop('autocomplete', module.is.chrome() ? 'fomantic-search' : 'off')
|
||||
.insertBefore($text)
|
||||
;
|
||||
if (labelNode.length) {
|
||||
if (!labelNode.attr('id')) {
|
||||
labelNode.attr('id', module.get.id() + '_formLabel');
|
||||
}
|
||||
$search.attr('aria-labelledby', labelNode.attr('id'));
|
||||
}
|
||||
$search.insertBefore($text);
|
||||
}
|
||||
if( module.is.multiple() && module.is.searchSelection() && !module.has.sizer()) {
|
||||
module.create.sizer();
|
||||
|
@ -4478,7 +4497,7 @@ $.fn.dropdown = function(parameters) {
|
|||
// replace module reference
|
||||
$module = $module.parent(selector.dropdown);
|
||||
instance = $module.data(moduleNamespace);
|
||||
element = $module.get(0);
|
||||
element = $module[0];
|
||||
module.refresh();
|
||||
module.setup.returnedObject();
|
||||
},
|
||||
|
@ -5729,6 +5748,7 @@ $.fn.dropdown = function(parameters) {
|
|||
if(pressedKey == keys.escape) {
|
||||
module.verbose('Escape key pressed, closing dropdown');
|
||||
module.hide();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5950,7 +5970,7 @@ $.fn.dropdown = function(parameters) {
|
|||
},
|
||||
caretPosition: function(returnEndPos) {
|
||||
var
|
||||
input = $search.get(0),
|
||||
input = $search[0],
|
||||
range,
|
||||
rangeLength
|
||||
;
|
||||
|
@ -6920,6 +6940,7 @@ $.fn.dropdown = function(parameters) {
|
|||
animation : settings.label.transition,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.label.duration
|
||||
})
|
||||
;
|
||||
|
@ -7549,7 +7570,7 @@ $.fn.dropdown = function(parameters) {
|
|||
},
|
||||
verticallyScrollableContext: function() {
|
||||
var
|
||||
overflowY = ($context.get(0) !== window)
|
||||
overflowY = ($context[0] !== window)
|
||||
? $context.css('overflow-y')
|
||||
: false
|
||||
;
|
||||
|
@ -7557,7 +7578,7 @@ $.fn.dropdown = function(parameters) {
|
|||
},
|
||||
horizontallyScrollableContext: function() {
|
||||
var
|
||||
overflowX = ($context.get(0) !== window)
|
||||
overflowX = ($context[0] !== window)
|
||||
? $context.css('overflow-X')
|
||||
: false
|
||||
;
|
||||
|
@ -7590,7 +7611,7 @@ $.fn.dropdown = function(parameters) {
|
|||
;
|
||||
calculations = {
|
||||
context: {
|
||||
offset : ($context.get(0) === window)
|
||||
offset : ($context[0] === window)
|
||||
? { top: 0, left: 0}
|
||||
: $context.offset(),
|
||||
scrollTop : $context.scrollTop(),
|
||||
|
@ -7638,7 +7659,7 @@ $.fn.dropdown = function(parameters) {
|
|||
;
|
||||
calculations = {
|
||||
context: {
|
||||
offset : ($context.get(0) === window)
|
||||
offset : ($context[0] === window)
|
||||
? { top: 0, left: 0}
|
||||
: $context.offset(),
|
||||
scrollLeft : $context.scrollLeft(),
|
||||
|
@ -7708,6 +7729,7 @@ $.fn.dropdown = function(parameters) {
|
|||
animation : transition + ' in',
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.transition.showDuration || settings.duration,
|
||||
queue : true,
|
||||
onStart : start,
|
||||
|
@ -7755,6 +7777,7 @@ $.fn.dropdown = function(parameters) {
|
|||
duration : settings.transition.hideDuration || settings.duration,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
queue : false,
|
||||
onStart : start,
|
||||
displayType: module.get.displayType(),
|
||||
|
@ -8287,7 +8310,8 @@ $.fn.dropdown.settings.templates = {
|
|||
var
|
||||
placeholder = select.placeholder || false,
|
||||
html = '',
|
||||
escape = $.fn.dropdown.settings.templates.escape
|
||||
escape = $.fn.dropdown.settings.templates.escape,
|
||||
deQuote = $.fn.dropdown.settings.templates.deQuote
|
||||
;
|
||||
html += '<i class="dropdown icon"></i>';
|
||||
if(placeholder) {
|
||||
|
@ -8296,7 +8320,7 @@ $.fn.dropdown.settings.templates = {
|
|||
else {
|
||||
html += '<div class="text"></div>';
|
||||
}
|
||||
html += '<div class="'+className.menu+'">';
|
||||
html += '<div class="'+deQuote(className.menu)+'">';
|
||||
html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML,className);
|
||||
html += '</div>';
|
||||
return html;
|
||||
|
@ -8334,27 +8358,27 @@ $.fn.dropdown.settings.templates = {
|
|||
: '',
|
||||
hasDescription = (escape(option[fields.description] || '', preserveHTML) != '')
|
||||
;
|
||||
html += '<div class="'+ maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? deQuote(option[fields.class]) : className.item)+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
|
||||
html += '<div class="'+ deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? option[fields.class] : className.item))+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
|
||||
if (isMenu) {
|
||||
html += '<i class="'+ (itemType.indexOf('left') !== -1 ? 'left' : '') + ' dropdown icon"></i>';
|
||||
}
|
||||
if(option[fields.image]) {
|
||||
html += '<img class="'+(option[fields.imageClass] ? deQuote(option[fields.imageClass]) : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
|
||||
html += '<img class="'+deQuote(option[fields.imageClass] ? option[fields.imageClass] : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
|
||||
}
|
||||
if(option[fields.icon]) {
|
||||
html += '<i class="'+deQuote(option[fields.icon])+' '+(option[fields.iconClass] ? deQuote(option[fields.iconClass]) : className.icon)+'"></i>';
|
||||
html += '<i class="'+deQuote(option[fields.icon]+' '+(option[fields.iconClass] ? option[fields.iconClass] : className.icon))+'"></i>';
|
||||
}
|
||||
if(hasDescription){
|
||||
html += '<span class="'+ className.description +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
|
||||
html += (!isMenu) ? '<span class="'+ className.text + '">' : '';
|
||||
html += '<span class="'+ deQuote(className.description) +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
|
||||
html += (!isMenu) ? '<span class="'+ deQuote(className.text) + '">' : '';
|
||||
}
|
||||
if (isMenu) {
|
||||
html += '<span class="' + className.text + '">';
|
||||
html += '<span class="' + deQuote(className.text) + '">';
|
||||
}
|
||||
html += escape(option[fields.name] || '', preserveHTML);
|
||||
if (isMenu) {
|
||||
html += '</span>';
|
||||
html += '<div class="' + itemType + '">';
|
||||
html += '<div class="' + deQuote(itemType) + '">';
|
||||
html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
|
||||
html += '</div>';
|
||||
} else if(hasDescription){
|
||||
|
@ -8363,18 +8387,18 @@ $.fn.dropdown.settings.templates = {
|
|||
html += '</div>';
|
||||
} else if (itemType === 'header') {
|
||||
var groupName = escape(option[fields.name] || '', preserveHTML),
|
||||
groupIcon = option[fields.icon] ? deQuote(option[fields.icon]) : className.groupIcon
|
||||
groupIcon = deQuote(option[fields.icon] ? option[fields.icon] : className.groupIcon)
|
||||
;
|
||||
if(groupName !== '' || groupIcon !== '') {
|
||||
html += '<div class="' + (option[fields.class] ? deQuote(option[fields.class]) : className.header) + '">';
|
||||
html += '<div class="' + deQuote(option[fields.class] ? option[fields.class] : className.header) + '">';
|
||||
if (groupIcon !== '') {
|
||||
html += '<i class="' + groupIcon + ' ' + (option[fields.iconClass] ? deQuote(option[fields.iconClass]) : className.icon) + '"></i>';
|
||||
html += '<i class="' + deQuote(groupIcon + ' ' + (option[fields.iconClass] ? option[fields.iconClass] : className.icon)) + '"></i>';
|
||||
}
|
||||
html += groupName;
|
||||
html += '</div>';
|
||||
}
|
||||
if(option[fields.divider]){
|
||||
html += '<div class="'+className.divider+'"></div>';
|
||||
html += '<div class="'+deQuote(className.divider)+'"></div>';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -8384,8 +8408,10 @@ $.fn.dropdown.settings.templates = {
|
|||
// generates label for multiselect
|
||||
label: function(value, text, preserveHTML, className) {
|
||||
var
|
||||
escape = $.fn.dropdown.settings.templates.escape;
|
||||
return escape(text,preserveHTML) + '<i class="'+className.delete+' icon"></i>';
|
||||
escape = $.fn.dropdown.settings.templates.escape,
|
||||
deQuote = $.fn.dropdown.settings.templates.deQuote
|
||||
;
|
||||
return escape(text,preserveHTML) + '<i class="'+deQuote(className.delete)+' icon"></i>';
|
||||
},
|
||||
|
||||
|
||||
|
@ -8404,7 +8430,7 @@ $.fn.dropdown.settings.templates = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Form Validation
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Form Validation
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -10485,7 +10511,7 @@ $.fn.form.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Modal
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Modal
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -11038,6 +11064,8 @@ $.fn.modal = function(parameters) {
|
|||
$module
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
animation : (settings.transition.showMethod || settings.transition) + ' in',
|
||||
queue : settings.queue,
|
||||
duration : settings.transition.showDuration || settings.duration,
|
||||
|
@ -11088,6 +11116,8 @@ $.fn.modal = function(parameters) {
|
|||
$module
|
||||
.transition({
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
animation : (settings.transition.hideMethod || settings.transition) + ' out',
|
||||
queue : settings.queue,
|
||||
duration : settings.transition.hideDuration || settings.duration,
|
||||
|
@ -11209,7 +11239,7 @@ $.fn.modal = function(parameters) {
|
|||
keyboardShortcuts: function() {
|
||||
module.verbose('Adding keyboard shortcuts');
|
||||
$document
|
||||
.on('keyup' + eventNamespace, module.event.keyboard)
|
||||
.on('keydown' + eventNamespace, module.event.keyboard)
|
||||
;
|
||||
}
|
||||
},
|
||||
|
@ -11289,7 +11319,7 @@ $.fn.modal = function(parameters) {
|
|||
keyboardShortcuts: function() {
|
||||
module.verbose('Removing keyboard shortcuts');
|
||||
$document
|
||||
.off('keyup' + eventNamespace)
|
||||
.off('keydown' + eventNamespace)
|
||||
;
|
||||
},
|
||||
scrolling: function() {
|
||||
|
@ -11993,7 +12023,7 @@ $.fn.modal.settings.templates = {
|
|||
denyFn = function(){args.handler(null)}
|
||||
;
|
||||
if (input.length === 0) {
|
||||
args.content += '<p><div class="'+settings.className.prompt+'"><input placeholder="'+this.helpers.deQuote(args.placeholder || '')+'" type="text" value="'+this.helpers.deQuote(args.defaultValue || '')+'"></div></p>';
|
||||
args.content += '<p><div class="'+this.helpers.deQuote(settings.className.prompt)+'"><input placeholder="'+this.helpers.deQuote(args.placeholder || '')+'" type="text" value="'+this.helpers.deQuote(args.defaultValue || '')+'"></div></p>';
|
||||
}
|
||||
return {
|
||||
title : args.title,
|
||||
|
@ -12016,7 +12046,7 @@ $.fn.modal.settings.templates = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Popup
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Popup
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -12079,11 +12109,11 @@ $.fn.popup = function(parameters) {
|
|||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
||||
$scrollContext = [window,document].indexOf(settings.scrollContext) < 0 ? $(document).find(settings.scrollContext) : $(settings.scrollContext),
|
||||
$boundary = [window,document].indexOf(settings.boundary) < 0 ? $(document).find(settings.boundary) : $(settings.boundary),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context),
|
||||
$scrollContext = [window,document].indexOf(settings.scrollContext) < 0 ? $document.find(settings.scrollContext) : $(settings.scrollContext),
|
||||
$boundary = [window,document].indexOf(settings.boundary) < 0 ? $document.find(settings.boundary) : $(settings.boundary),
|
||||
$target = (settings.target)
|
||||
? ([window,document].indexOf(settings.target) < 0 ? $(document).find(settings.target) : $(settings.target))
|
||||
? ([window,document].indexOf(settings.target) < 0 ? $document.find(settings.target) : $(settings.target))
|
||||
: $module,
|
||||
|
||||
$popup,
|
||||
|
@ -12138,8 +12168,8 @@ $.fn.popup = function(parameters) {
|
|||
},
|
||||
|
||||
refresh: function() {
|
||||
if(settings.popup && typeof settings.popup === 'string') {
|
||||
$popup = $(document).find(settings.popup).eq(0);
|
||||
if(settings.popup) {
|
||||
$popup = $document.find(settings.popup).eq(0);
|
||||
}
|
||||
else {
|
||||
if(settings.inline) {
|
||||
|
@ -12303,8 +12333,8 @@ $.fn.popup = function(parameters) {
|
|||
}
|
||||
settings.onCreate.call($popup, element);
|
||||
}
|
||||
else if(settings.popup && typeof settings.popup === 'string') {
|
||||
$(document).find(settings.popup).data(metadata.activator, $module);
|
||||
else if(settings.popup) {
|
||||
$document.find(settings.popup).data(metadata.activator, $module);
|
||||
module.verbose('Used popup specified in settings');
|
||||
module.refresh();
|
||||
if(settings.hoverable) {
|
||||
|
@ -12385,7 +12415,7 @@ $.fn.popup = function(parameters) {
|
|||
},
|
||||
|
||||
hideAll: function() {
|
||||
$(document).find(selector.popup)
|
||||
$document.find(selector.popup)
|
||||
.filter('.' + className.popupVisible)
|
||||
.each(function() {
|
||||
$(this)
|
||||
|
@ -12455,6 +12485,7 @@ $.fn.popup = function(parameters) {
|
|||
queue : false,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.transition.showDuration || settings.duration,
|
||||
onComplete : function() {
|
||||
module.bind.close();
|
||||
|
@ -12479,6 +12510,7 @@ $.fn.popup = function(parameters) {
|
|||
duration : settings.transition.hideDuration || settings.duration,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
onComplete : function() {
|
||||
module.reset();
|
||||
callback.call($popup, element);
|
||||
|
@ -12574,7 +12606,7 @@ $.fn.popup = function(parameters) {
|
|||
};
|
||||
|
||||
// if popup offset context is not same as target, then adjust calculations
|
||||
if($popupOffsetParent.get(0) !== $offsetParent.get(0)) {
|
||||
if($popupOffsetParent[0] !== $offsetParent[0]) {
|
||||
var
|
||||
popupOffset = $popupOffsetParent.offset()
|
||||
;
|
||||
|
@ -13152,7 +13184,7 @@ $.fn.popup = function(parameters) {
|
|||
return !module.is.visible();
|
||||
},
|
||||
rtl: function () {
|
||||
return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
|
||||
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';
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -13558,7 +13590,7 @@ $.fn.popup.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Progress
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Progress
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -14595,7 +14627,7 @@ $.fn.progress.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Sidebar
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Sidebar
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -14624,6 +14656,7 @@ $.fn.sidebar = function(parameters) {
|
|||
$allModules = $(this),
|
||||
$window = $(window),
|
||||
$document = $(document),
|
||||
$body = $('body'),
|
||||
$html = $('html'),
|
||||
$head = $('head'),
|
||||
|
||||
|
@ -14662,7 +14695,8 @@ $.fn.sidebar = function(parameters) {
|
|||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
||||
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $body,
|
||||
isBody = $context[0] === $body[0],
|
||||
|
||||
$sidebars = $module.children(selector.sidebar),
|
||||
$fixed = $context.children(selector.fixed),
|
||||
|
@ -14676,6 +14710,9 @@ $.fn.sidebar = function(parameters) {
|
|||
id,
|
||||
currentScroll,
|
||||
transitionEvent,
|
||||
initialBodyMargin = '',
|
||||
tempBodyMargin = '',
|
||||
hadScrollbar = false,
|
||||
|
||||
module
|
||||
;
|
||||
|
@ -14781,9 +14818,12 @@ $.fn.sidebar = function(parameters) {
|
|||
scrollLock: function() {
|
||||
if(settings.scrollLock) {
|
||||
module.debug('Disabling page scroll');
|
||||
$window
|
||||
.on('DOMMouseScroll' + elementNamespace, module.event.scroll)
|
||||
;
|
||||
hadScrollbar = module.has.scrollbar();
|
||||
if(hadScrollbar) {
|
||||
module.save.bodyMargin();
|
||||
module.set.bodyMargin();
|
||||
}
|
||||
$context.addClass(className.locked);
|
||||
}
|
||||
module.verbose('Adding events to contain sidebar scroll');
|
||||
$document
|
||||
|
@ -14801,8 +14841,11 @@ $.fn.sidebar = function(parameters) {
|
|||
},
|
||||
scrollLock: function() {
|
||||
module.verbose('Removing scroll lock from page');
|
||||
if(hadScrollbar) {
|
||||
module.restore.bodyMargin();
|
||||
}
|
||||
$context.removeClass(className.locked);
|
||||
$document.off(elementNamespace);
|
||||
$window.off(elementNamespace);
|
||||
$module.off('scroll' + eventNamespace);
|
||||
}
|
||||
},
|
||||
|
@ -14960,7 +15003,22 @@ $.fn.sidebar = function(parameters) {
|
|||
module.error(error.notFound, selector);
|
||||
}
|
||||
},
|
||||
|
||||
can: {
|
||||
leftBodyScrollbar: function () {
|
||||
if (module.cache.leftBodyScrollbar === undefined) {
|
||||
module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari() || module.is.edge() || module.is.ie());
|
||||
}
|
||||
return module.cache.leftBodyScrollbar;
|
||||
}
|
||||
},
|
||||
save: {
|
||||
bodyMargin: function() {
|
||||
initialBodyMargin = $context.css((isBody ? 'margin-':'padding-')+(module.can.leftBodyScrollbar() ? 'left':'right'));
|
||||
var bodyMarginRightPixel = parseInt(initialBodyMargin.replace(/[^\d.]/g, '')),
|
||||
bodyScrollbarWidth = isBody ? window.innerWidth - document.documentElement.clientWidth : $context[0].offsetWidth - $context[0].clientWidth;
|
||||
tempBodyMargin = bodyMarginRightPixel + bodyScrollbarWidth;
|
||||
}
|
||||
},
|
||||
show: function(callback) {
|
||||
callback = $.isFunction(callback)
|
||||
? callback
|
||||
|
@ -15071,9 +15129,13 @@ $.fn.sidebar = function(parameters) {
|
|||
? callback
|
||||
: function(){}
|
||||
;
|
||||
if(settings.transition == 'scale down') {
|
||||
if(settings.returnScroll) {
|
||||
currentScroll = (isBody ? $window : $context).scrollTop();
|
||||
}
|
||||
if(settings.transition === 'scale down') {
|
||||
module.scrollToTop();
|
||||
}
|
||||
module.bind.scrollLock();
|
||||
module.set.transition(transition);
|
||||
module.repaint();
|
||||
animate = function() {
|
||||
|
@ -15089,7 +15151,6 @@ $.fn.sidebar = function(parameters) {
|
|||
if( event.target == $transition[0] ) {
|
||||
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
||||
module.remove.animating();
|
||||
module.bind.scrollLock();
|
||||
callback.call(element);
|
||||
}
|
||||
};
|
||||
|
@ -15133,7 +15194,7 @@ $.fn.sidebar = function(parameters) {
|
|||
module.remove.animating();
|
||||
module.remove.transition();
|
||||
module.remove.inlineCSS();
|
||||
if(transition == 'scale down' || (settings.returnScroll && module.is.mobile()) ) {
|
||||
if(transition === 'scale down' || settings.returnScroll) {
|
||||
module.scrollBack();
|
||||
}
|
||||
callback.call(element);
|
||||
|
@ -15146,14 +15207,13 @@ $.fn.sidebar = function(parameters) {
|
|||
|
||||
scrollToTop: function() {
|
||||
module.verbose('Scrolling to top of page to avoid animation issues');
|
||||
currentScroll = $(window).scrollTop();
|
||||
$module.scrollTop(0);
|
||||
window.scrollTo(0, 0);
|
||||
(isBody ? $window : $context)[0].scrollTo(0, 0);
|
||||
},
|
||||
|
||||
scrollBack: function() {
|
||||
module.verbose('Scrolling back to original page position');
|
||||
window.scrollTo(0, currentScroll);
|
||||
(isBody ? $window : $context)[0].scrollTo(0, currentScroll);
|
||||
},
|
||||
|
||||
clear: {
|
||||
|
@ -15164,7 +15224,16 @@ $.fn.sidebar = function(parameters) {
|
|||
},
|
||||
|
||||
set: {
|
||||
|
||||
bodyMargin: function() {
|
||||
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
||||
$context.css((isBody ? 'margin-':'padding-')+position, tempBodyMargin + 'px');
|
||||
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
||||
var el = $(this),
|
||||
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
||||
;
|
||||
el.css(attribute, 'calc(' + el.css(attribute) + ' + ' + tempBodyMargin + 'px)');
|
||||
});
|
||||
},
|
||||
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
||||
// (This is no longer necessary in latest iOS)
|
||||
ios: function() {
|
||||
|
@ -15250,7 +15319,18 @@ $.fn.sidebar = function(parameters) {
|
|||
$module.removeClass(className.overlay);
|
||||
}
|
||||
},
|
||||
|
||||
restore: {
|
||||
bodyMargin: function() {
|
||||
var position = module.can.leftBodyScrollbar() ? 'left':'right';
|
||||
$context.css((isBody ? 'margin-':'padding-')+position, initialBodyMargin);
|
||||
$context.find(selector.bodyFixed.replace('right',position)).each(function(){
|
||||
var el = $(this),
|
||||
attribute = el.css('position') === 'fixed' ? 'padding-'+position : position
|
||||
;
|
||||
el.css(attribute, '');
|
||||
});
|
||||
}
|
||||
},
|
||||
get: {
|
||||
direction: function() {
|
||||
if($module.hasClass(className.top)) {
|
||||
|
@ -15298,15 +15378,42 @@ $.fn.sidebar = function(parameters) {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
has: {
|
||||
scrollbar: function() {
|
||||
return isBody || $context.css('overflow-y') !== 'hidden';
|
||||
}
|
||||
},
|
||||
is: {
|
||||
|
||||
safari: function() {
|
||||
if(module.cache.isSafari === undefined) {
|
||||
module.cache.isSafari = /constructor/i.test(window.HTMLElement) || !!window.ApplePaySession;
|
||||
}
|
||||
return module.cache.isSafari;
|
||||
},
|
||||
edge: function(){
|
||||
if(module.cache.isEdge === undefined) {
|
||||
module.cache.isEdge = !!window.setImmediate && !module.is.ie();
|
||||
}
|
||||
return module.cache.isEdge;
|
||||
},
|
||||
firefox: function(){
|
||||
if(module.cache.isFirefox === undefined) {
|
||||
module.cache.isFirefox = !!window.InstallTrigger;
|
||||
}
|
||||
return module.cache.isFirefox;
|
||||
},
|
||||
iframe: function() {
|
||||
return !(self === top);
|
||||
},
|
||||
ie: function() {
|
||||
var
|
||||
isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
|
||||
isIE = ('ActiveXObject' in window)
|
||||
;
|
||||
return (isIE11 || isIE);
|
||||
if(module.cache.isIE === undefined) {
|
||||
var
|
||||
isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),
|
||||
isIE = ('ActiveXObject' in window)
|
||||
;
|
||||
module.cache.isIE = (isIE11 || isIE);
|
||||
}
|
||||
return module.cache.isIE;
|
||||
},
|
||||
|
||||
ios: function() {
|
||||
|
@ -15356,12 +15463,12 @@ $.fn.sidebar = function(parameters) {
|
|||
animating: function() {
|
||||
return $context.hasClass(className.animating);
|
||||
},
|
||||
rtl: function () {
|
||||
if(module.cache.rtl === undefined) {
|
||||
module.cache.rtl = $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
|
||||
rtl: function() {
|
||||
if(module.cache.isRTL === undefined) {
|
||||
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';
|
||||
}
|
||||
return module.cache.rtl;
|
||||
}
|
||||
return module.cache.isRTL;
|
||||
},
|
||||
},
|
||||
|
||||
setting: function(name, value) {
|
||||
|
@ -15598,6 +15705,7 @@ $.fn.sidebar.settings = {
|
|||
animating : 'animating',
|
||||
dimmed : 'dimmed',
|
||||
ios : 'ios',
|
||||
locked : 'locked',
|
||||
pushable : 'pushable',
|
||||
pushed : 'pushed',
|
||||
right : 'right',
|
||||
|
@ -15608,6 +15716,7 @@ $.fn.sidebar.settings = {
|
|||
},
|
||||
|
||||
selector: {
|
||||
bodyFixed: '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close',
|
||||
fixed : '.fixed',
|
||||
omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',
|
||||
pusher : '.pusher',
|
||||
|
@ -15634,7 +15743,7 @@ $.fn.sidebar.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Tab
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Tab
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -16654,7 +16763,7 @@ $.fn.tab.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Toast
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Toast
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -17046,6 +17155,7 @@ $.fn.toast = function(parameters) {
|
|||
queue : false,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
duration : settings.transition.showDuration,
|
||||
onComplete : function() {
|
||||
callback.call($toastBox, element);
|
||||
|
@ -17065,6 +17175,7 @@ $.fn.toast = function(parameters) {
|
|||
duration : settings.transition.hideDuration,
|
||||
debug : settings.debug,
|
||||
verbose : settings.verbose,
|
||||
silent : settings.silent,
|
||||
interval : 50,
|
||||
|
||||
onBeforeHide: function(callback){
|
||||
|
@ -17579,7 +17690,7 @@ $.extend( $.easing, {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - API
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - API
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -18816,7 +18927,7 @@ $.api.settings = {
|
|||
})( jQuery, window, document );
|
||||
|
||||
/*!
|
||||
* # Fomantic-UI 2.9.0-beta.301+42e68bc - Transition
|
||||
* # Fomantic-UI 2.9.0-beta.311+116f84b - Transition
|
||||
* http://github.com/fomantic/Fomantic-UI/
|
||||
*
|
||||
*
|
||||
|
@ -19515,11 +19626,13 @@ $.fn.transition = function() {
|
|||
.addClass(className.transition)
|
||||
.css('animationName')
|
||||
;
|
||||
$clone.detach().insertAfter($module);
|
||||
inAnimation = $clone
|
||||
.addClass(className.inward)
|
||||
.css('animationName')
|
||||
;
|
||||
if(!displayType) {
|
||||
$clone.detach().insertAfter($module);
|
||||
displayType = $clone
|
||||
.attr('class', elementClass)
|
||||
.removeAttr('style')
|
||||
|
|
4
semantic/dist/semantic.min.css
vendored
4
semantic/dist/semantic.min.css
vendored
File diff suppressed because one or more lines are too long
4
semantic/dist/semantic.min.js
vendored
4
semantic/dist/semantic.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -428,7 +428,7 @@ $.fn.visibility = function(parameters) {
|
|||
},
|
||||
verticallyScrollableContext: function() {
|
||||
var
|
||||
overflowY = ($context.get(0) !== window)
|
||||
overflowY = ($context[0] !== window)
|
||||
? $context.css('overflow-y')
|
||||
: false
|
||||
;
|
||||
|
@ -436,7 +436,7 @@ $.fn.visibility = function(parameters) {
|
|||
},
|
||||
horizontallyScrollableContext: function() {
|
||||
var
|
||||
overflowX = ($context.get(0) !== window)
|
||||
overflowX = ($context[0] !== window)
|
||||
? $context.css('overflow-x')
|
||||
: false
|
||||
;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue