Browse Source

Rebuild dist #2824

pull/2414/merge
Jack Lukic 9 years ago
parent
commit
54d01adcff
18 changed files with 216 additions and 151 deletions
  1. 18
      dist/components/dropdown.css
  2. 56
      dist/components/dropdown.js
  3. 2
      dist/components/dropdown.min.css
  4. 5
      dist/components/dropdown.min.js
  5. 6
      dist/components/grid.css
  6. 2
      dist/components/grid.min.css
  7. 12
      dist/components/item.css
  8. 2
      dist/components/item.min.css
  9. 5
      dist/components/menu.css
  10. 2
      dist/components/menu.min.css
  11. 66
      dist/components/sticky.js
  12. 2
      dist/components/sticky.min.js
  13. 2
      dist/components/tab.js
  14. 2
      dist/components/tab.min.js
  15. 43
      dist/semantic.css
  16. 123
      dist/semantic.js
  17. 2
      dist/semantic.min.css
  18. 17
      dist/semantic.min.js

18
dist/components/dropdown.css

@ -1194,7 +1194,7 @@ select.ui.dropdown {
transform: rotate(45deg);
width: 0.5em;
height: 0.5em;
box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.1);
box-shadow: -1px -1px 0px 1px rgba(34, 36, 38, 0.15);
background: #ffffff;
z-index: 2;
}
@ -1324,6 +1324,22 @@ select.ui.dropdown {
right: 1em;
}
/* Upward pointing */
.ui.upward.pointing.dropdown > .menu,
.ui.upward.top.pointing.dropdown > .menu {
top: auto;
bottom: 100%;
margin: 0em 0em 0.71428571rem;
border-radius: 0.28571429rem;
}
.ui.upward.pointing.dropdown > .menu:after,
.ui.upward.top.pointing.dropdown > .menu:after {
top: 100%;
bottom: auto;
box-shadow: 1px 1px 0px 1px rgba(34, 36, 38, 0.15);
margin: -0.25em 0em 0em;
}
/*******************************
Theme Overrides

56
dist/components/dropdown.js

@ -412,14 +412,15 @@ $.fn.dropdown = function(parameters) {
if(module.has.message() && !module.has.maxSelections()) {
module.remove.message();
}
module.animate.show(function() {
if( module.can.click() ) {
module.bind.intent();
}
module.set.visible();
callback.call(element);
});
settings.onShow.call(element);
if(settings.onShow.call(element) !== false) {
module.animate.show(function() {
if( module.can.click() ) {
module.bind.intent();
}
module.set.visible();
callback.call(element);
});
}
}
},
@ -430,11 +431,12 @@ $.fn.dropdown = function(parameters) {
;
if( module.is.active() ) {
module.debug('Hiding dropdown');
module.animate.hide(function() {
module.remove.visible();
callback.call(element);
});
settings.onHide.call(element);
if(settings.onHide.call(element) !== false) {
module.animate.hide(function() {
module.remove.visible();
callback.call(element);
});
}
}
},
@ -634,7 +636,6 @@ $.fn.dropdown = function(parameters) {
apiSettings = {
errorDuration : false,
throttle : settings.throttle,
cache : 'local',
urlData : {
query: query
},
@ -834,6 +835,11 @@ $.fn.dropdown = function(parameters) {
module.hide();
}
}
else if(pageLostFocus) {
if(settings.forceSelection) {
module.forceSelection();
}
}
}
},
icon: {
@ -999,7 +1005,7 @@ $.fn.dropdown = function(parameters) {
var
$label = $module.find(selector.label),
$activeLabel = $label.filter('.' + className.active),
activeValue = $activeLabel.data('value'),
activeValue = $activeLabel.data(metadata.value),
labelIndex = $label.index($activeLabel),
labelCount = $label.length,
hasActiveLabel = ($activeLabel.length > 0),
@ -1362,7 +1368,8 @@ $.fn.dropdown = function(parameters) {
module.hideAndClear();
},
hide: function() {
hide: function(text, value) {
module.set.value(value);
module.hideAndClear();
}
@ -2152,7 +2159,7 @@ $.fn.dropdown = function(parameters) {
else {
module.verbose('Storing value in metadata', value, $input);
if(value !== currentValue) {
$module.data(metadata.value, value);
$module.data(metadata.value, stringValue);
}
}
if(settings.fireOnInit === false && module.is.initialLoad()) {
@ -2463,7 +2470,7 @@ $.fn.dropdown = function(parameters) {
if(settings.useLabels && module.has.maxSelections() ) {
return;
}
if(settings.useLabels) {
if(settings.useLabels && module.is.multiple()) {
$item.not('.' + className.active).removeClass(className.filtered);
}
else {
@ -2596,16 +2603,19 @@ $.fn.dropdown = function(parameters) {
$labels
.each(function(){
var
value = $(this).data('value'),
isUserValue = module.is.userValue(value)
value = $(this).data(metadata.value),
stringValue = (typeof value == 'number')
? value.toString()
: value,
isUserValue = module.is.userValue(stringValue)
;
if(isUserValue) {
module.remove.value(value);
module.remove.label(value);
module.remove.value(stringValue);
module.remove.label(stringValue);
}
else {
// selected will also remove label
module.remove.selected(value);
module.remove.selected(stringValue);
}
})
;

2
dist/components/dropdown.min.css
File diff suppressed because it is too large
View File

5
dist/components/dropdown.min.js
File diff suppressed because it is too large
View File

6
dist/components/grid.css

@ -1189,7 +1189,7 @@
/* Top Aligned */
.ui[class*="top aligned"].grid .column:not(.row),
.ui[class*="top aligned"].grid > .column:not(.row),
.ui.grid > [class*="top aligned"].row > .column,
.ui.grid > [class*="top aligned"].column:not(.row),
.ui.grid > .row > [class*="top aligned"].column {
@ -1205,7 +1205,7 @@
}
/* Middle Aligned */
.ui[class*="middle aligned"].grid .column:not(.row),
.ui[class*="middle aligned"].grid > .column:not(.row),
.ui.grid > [class*="middle aligned"].row > .column,
.ui.grid > [class*="middle aligned"].column:not(.row),
.ui.grid > .row > [class*="middle aligned"].column {
@ -1221,7 +1221,7 @@
}
/* Bottom Aligned */
.ui[class*="bottom aligned"].grid .column:not(.row),
.ui[class*="bottom aligned"].grid > .column:not(.row),
.ui.grid > [class*="bottom aligned"].row > .column,
.ui.grid > [class*="bottom aligned"].column:not(.row),
.ui.grid > .row > [class*="bottom aligned"].column {

2
dist/components/grid.min.css
File diff suppressed because it is too large
View File

12
dist/components/item.css

@ -393,9 +393,9 @@
--------------------*/
.ui.items > .item > .image + [class*="top aligned"].content {
-webkit-align-self: top;
-ms-flex-item-align: top;
align-self: top;
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
}
.ui.items > .item > .image + [class*="middle aligned"].content {
-webkit-align-self: center;
@ -403,9 +403,9 @@
align-self: center;
}
.ui.items > .item > .image + [class*="bottom aligned"].content {
-webkit-align-self: bottom;
-ms-flex-item-align: bottom;
align-self: bottom;
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
}
/*--------------

2
dist/components/item.min.css
File diff suppressed because it is too large
View File

5
dist/components/menu.css

@ -242,6 +242,11 @@
background: #ffffff;
margin: 0em 0px 0px;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
/* Menu Items */

2
dist/components/menu.min.css
File diff suppressed because it is too large
View File

66
dist/components/sticky.js

@ -390,12 +390,8 @@ $.fn.sticky = function(parameters) {
},
size: function() {
if(module.cache.element.height !== 0 && module.cache.element.width !== 0) {
$module
.css({
width : module.cache.element.width,
height : module.cache.element.height
})
;
element.style.setProperty('width', module.cache.element.width + 'px', 'important');
element.style.setProperty('height', module.cache.element.height + 'px', 'important');
}
}
},
@ -449,16 +445,17 @@ $.fn.sticky = function(parameters) {
if(elementVisible) {
if( module.is.initialPosition() ) {
if(scroll.top > context.bottom) {
module.debug('Element bottom of container');
if(scroll.top >= context.bottom) {
module.debug('Initial element position is bottom of container');
module.bindBottom();
}
else if(scroll.top > element.top) {
module.debug('Element passed, fixing element to page');
if( (element.height + scroll.top - elementScroll) > context.bottom ) {
if( (element.height + scroll.top - elementScroll) >= context.bottom ) {
module.debug('Initial element position is bottom of container');
module.bindBottom();
}
else {
module.debug('Initial element position is fixed');
module.fixTop();
}
}
@ -468,11 +465,11 @@ $.fn.sticky = function(parameters) {
// currently fixed top
if( module.is.top() ) {
if( scroll.top < element.top ) {
if( scroll.top <= element.top ) {
module.debug('Fixed element reached top of container');
module.setInitialPosition();
}
else if( (element.height + scroll.top - elementScroll) > context.bottom ) {
else if( (element.height + scroll.top - elementScroll) >= context.bottom ) {
module.debug('Fixed element reached bottom of container');
module.bindBottom();
}
@ -488,12 +485,12 @@ $.fn.sticky = function(parameters) {
else if(module.is.bottom() ) {
// top edge
if( (scroll.bottom - element.height) < element.top) {
if( (scroll.bottom - element.height) <= element.top) {
module.debug('Bottom fixed rail has reached top of container');
module.setInitialPosition();
}
// bottom edge
else if(scroll.bottom > context.bottom) {
else if(scroll.bottom >= context.bottom) {
module.debug('Bottom fixed rail has reached bottom of container');
module.bindBottom();
}
@ -508,13 +505,13 @@ $.fn.sticky = function(parameters) {
}
else if( module.is.bottom() ) {
if(settings.pushing) {
if(module.is.bound() && scroll.bottom < context.bottom ) {
if(module.is.bound() && scroll.bottom <= context.bottom ) {
module.debug('Fixing bottom attached element to bottom of browser.');
module.fixBottom();
}
}
else {
if(module.is.bound() && (scroll.top < context.bottom - element.height) ) {
if(module.is.bound() && (scroll.top <= context.bottom - element.height) ) {
module.debug('Fixing bottom attached element to top of browser.');
module.fixTop();
}
@ -558,6 +555,7 @@ $.fn.sticky = function(parameters) {
},
setInitialPosition: function() {
module.debug('Returning to initial position');
module.unfix();
module.unbind();
},
@ -600,24 +598,28 @@ $.fn.sticky = function(parameters) {
},
unbind: function() {
module.debug('Removing absolute position on element');
module.remove.offset();
$module
.removeClass(className.bound)
.removeClass(className.top)
.removeClass(className.bottom)
;
if( module.is.bound() ) {
module.debug('Removing container bound position on element');
module.remove.offset();
$module
.removeClass(className.bound)
.removeClass(className.top)
.removeClass(className.bottom)
;
}
},
unfix: function() {
module.debug('Removing fixed position on element');
module.remove.offset();
$module
.removeClass(className.fixed)
.removeClass(className.top)
.removeClass(className.bottom)
;
settings.onUnstick.call(element);
if( module.is.fixed() ) {
module.debug('Removing fixed position on element');
module.remove.offset();
$module
.removeClass(className.fixed)
.removeClass(className.top)
.removeClass(className.bottom)
;
settings.onUnstick.call(element);
}
},
reset: function() {
@ -882,4 +884,4 @@ $.fn.sticky.settings = {
};
})( jQuery, window , document );
})( jQuery, window , document );

2
dist/components/sticky.min.js
File diff suppressed because it is too large
View File

2
dist/components/tab.js

@ -374,7 +374,7 @@ $.fn.tab = function(parameters) {
else if(tabPath.search('/') == -1 && tabPath !== '') {
// look for in page anchor
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]');
currentPath = $anchor.closest('[data-tab]').data('tab');
currentPath = $anchor.closest('[data-tab]').data(metadata.tab);
$tab = module.get.tabElement(currentPath);
// if anchor exists use parent tab
if($anchor && $anchor.length > 0 && currentPath) {

2
dist/components/tab.min.js
File diff suppressed because it is too large
View File

43
dist/semantic.css

@ -18187,7 +18187,7 @@ ol.ui.horizontal.list li:before,
/* Top Aligned */
.ui[class*="top aligned"].grid .column:not(.row),
.ui[class*="top aligned"].grid > .column:not(.row),
.ui.grid > [class*="top aligned"].row > .column,
.ui.grid > [class*="top aligned"].column:not(.row),
.ui.grid > .row > [class*="top aligned"].column {
@ -18204,7 +18204,7 @@ ol.ui.horizontal.list li:before,
/* Middle Aligned */
.ui[class*="middle aligned"].grid .column:not(.row),
.ui[class*="middle aligned"].grid > .column:not(.row),
.ui.grid > [class*="middle aligned"].row > .column,
.ui.grid > [class*="middle aligned"].column:not(.row),
.ui.grid > .row > [class*="middle aligned"].column {
@ -18221,7 +18221,7 @@ ol.ui.horizontal.list li:before,
/* Bottom Aligned */
.ui[class*="bottom aligned"].grid .column:not(.row),
.ui[class*="bottom aligned"].grid > .column:not(.row),
.ui.grid > [class*="bottom aligned"].row > .column,
.ui.grid > [class*="bottom aligned"].column:not(.row),
.ui.grid > .row > [class*="bottom aligned"].column {
@ -19209,6 +19209,11 @@ ol.ui.horizontal.list li:before,
background: #ffffff;
margin: 0em 0px 0px;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
/* Menu Items */
@ -25240,9 +25245,9 @@ a.ui.card:hover,
--------------------*/
.ui.items > .item > .image + [class*="top aligned"].content {
-webkit-align-self: top;
-ms-flex-item-align: top;
align-self: top;
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
}
.ui.items > .item > .image + [class*="middle aligned"].content {
@ -25252,9 +25257,9 @@ a.ui.card:hover,
}
.ui.items > .item > .image + [class*="bottom aligned"].content {
-webkit-align-self: bottom;
-ms-flex-item-align: bottom;
align-self: bottom;
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
}
/*--------------
@ -28422,7 +28427,7 @@ select.ui.dropdown {
transform: rotate(45deg);
width: 0.5em;
height: 0.5em;
box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.1);
box-shadow: -1px -1px 0px 1px rgba(34, 36, 38, 0.15);
background: #ffffff;
z-index: 2;
}
@ -28569,6 +28574,24 @@ select.ui.dropdown {
right: 1em;
}
/* Upward pointing */
.ui.upward.pointing.dropdown > .menu,
.ui.upward.top.pointing.dropdown > .menu {
top: auto;
bottom: 100%;
margin: 0em 0em 0.71428571rem;
border-radius: 0.28571429rem;
}
.ui.upward.pointing.dropdown > .menu:after,
.ui.upward.top.pointing.dropdown > .menu:after {
top: 100%;
bottom: auto;
box-shadow: 1px 1px 0px 1px rgba(34, 36, 38, 0.15);
margin: -0.25em 0em 0em;
}
/*******************************
Theme Overrides
*******************************/

123
dist/semantic.js

@ -4235,14 +4235,15 @@ $.fn.dropdown = function(parameters) {
if(module.has.message() && !module.has.maxSelections()) {
module.remove.message();
}
module.animate.show(function() {
if( module.can.click() ) {
module.bind.intent();
}
module.set.visible();
callback.call(element);
});
settings.onShow.call(element);
if(settings.onShow.call(element) !== false) {
module.animate.show(function() {
if( module.can.click() ) {
module.bind.intent();
}
module.set.visible();
callback.call(element);
});
}
}
},
@ -4253,11 +4254,12 @@ $.fn.dropdown = function(parameters) {
;
if( module.is.active() ) {
module.debug('Hiding dropdown');
module.animate.hide(function() {
module.remove.visible();
callback.call(element);
});
settings.onHide.call(element);
if(settings.onHide.call(element) !== false) {
module.animate.hide(function() {
module.remove.visible();
callback.call(element);
});
}
}
},
@ -4457,7 +4459,6 @@ $.fn.dropdown = function(parameters) {
apiSettings = {
errorDuration : false,
throttle : settings.throttle,
cache : 'local',
urlData : {
query: query
},
@ -4657,6 +4658,11 @@ $.fn.dropdown = function(parameters) {
module.hide();
}
}
else if(pageLostFocus) {
if(settings.forceSelection) {
module.forceSelection();
}
}
}
},
icon: {
@ -4822,7 +4828,7 @@ $.fn.dropdown = function(parameters) {
var
$label = $module.find(selector.label),
$activeLabel = $label.filter('.' + className.active),
activeValue = $activeLabel.data('value'),
activeValue = $activeLabel.data(metadata.value),
labelIndex = $label.index($activeLabel),
labelCount = $label.length,
hasActiveLabel = ($activeLabel.length > 0),
@ -5185,7 +5191,8 @@ $.fn.dropdown = function(parameters) {
module.hideAndClear();
},
hide: function() {
hide: function(text, value) {
module.set.value(value);
module.hideAndClear();
}
@ -5975,7 +5982,7 @@ $.fn.dropdown = function(parameters) {
else {
module.verbose('Storing value in metadata', value, $input);
if(value !== currentValue) {
$module.data(metadata.value, value);
$module.data(metadata.value, stringValue);
}
}
if(settings.fireOnInit === false && module.is.initialLoad()) {
@ -6286,7 +6293,7 @@ $.fn.dropdown = function(parameters) {
if(settings.useLabels && module.has.maxSelections() ) {
return;
}
if(settings.useLabels) {
if(settings.useLabels && module.is.multiple()) {
$item.not('.' + className.active).removeClass(className.filtered);
}
else {
@ -6419,16 +6426,19 @@ $.fn.dropdown = function(parameters) {
$labels
.each(function(){
var
value = $(this).data('value'),
isUserValue = module.is.userValue(value)
value = $(this).data(metadata.value),
stringValue = (typeof value == 'number')
? value.toString()
: value,
isUserValue = module.is.userValue(stringValue)
;
if(isUserValue) {
module.remove.value(value);
module.remove.label(value);
module.remove.value(stringValue);
module.remove.label(stringValue);
}
else {
// selected will also remove label
module.remove.selected(value);
module.remove.selected(stringValue);
}
})
;
@ -15438,12 +15448,8 @@ $.fn.sticky = function(parameters) {
},
size: function() {
if(module.cache.element.height !== 0 && module.cache.element.width !== 0) {
$module
.css({
width : module.cache.element.width,
height : module.cache.element.height
})
;
element.style.setProperty('width', module.cache.element.width + 'px', 'important');
element.style.setProperty('height', module.cache.element.height + 'px', 'important');
}
}
},
@ -15497,16 +15503,17 @@ $.fn.sticky = function(parameters) {
if(elementVisible) {
if( module.is.initialPosition() ) {
if(scroll.top > context.bottom) {
module.debug('Element bottom of container');
if(scroll.top >= context.bottom) {
module.debug('Initial element position is bottom of container');
module.bindBottom();
}
else if(scroll.top > element.top) {
module.debug('Element passed, fixing element to page');
if( (element.height + scroll.top - elementScroll) > context.bottom ) {
if( (element.height + scroll.top - elementScroll) >= context.bottom ) {
module.debug('Initial element position is bottom of container');
module.bindBottom();
}
else {
module.debug('Initial element position is fixed');
module.fixTop();
}
}
@ -15516,11 +15523,11 @@ $.fn.sticky = function(parameters) {
// currently fixed top
if( module.is.top() ) {
if( scroll.top < element.top ) {
if( scroll.top <= element.top ) {
module.debug('Fixed element reached top of container');
module.setInitialPosition();
}
else if( (element.height + scroll.top - elementScroll) > context.bottom ) {
else if( (element.height + scroll.top - elementScroll) >= context.bottom ) {
module.debug('Fixed element reached bottom of container');
module.bindBottom();
}
@ -15536,12 +15543,12 @@ $.fn.sticky = function(parameters) {
else if(module.is.bottom() ) {
// top edge
if( (scroll.bottom - element.height) < element.top) {
if( (scroll.bottom - element.height) <= element.top) {
module.debug('Bottom fixed rail has reached top of container');
module.setInitialPosition();
}
// bottom edge
else if(scroll.bottom > context.bottom) {
else if(scroll.bottom >= context.bottom) {
module.debug('Bottom fixed rail has reached bottom of container');
module.bindBottom();
}
@ -15556,13 +15563,13 @@ $.fn.sticky = function(parameters) {
}
else if( module.is.bottom() ) {
if(settings.pushing) {
if(module.is.bound() && scroll.bottom < context.bottom ) {
if(module.is.bound() && scroll.bottom <= context.bottom ) {
module.debug('Fixing bottom attached element to bottom of browser.');
module.fixBottom();
}
}
else {
if(module.is.bound() && (scroll.top < context.bottom - element.height) ) {
if(module.is.bound() && (scroll.top <= context.bottom - element.height) ) {
module.debug('Fixing bottom attached element to top of browser.');
module.fixTop();
}
@ -15606,6 +15613,7 @@ $.fn.sticky = function(parameters) {
},
setInitialPosition: function() {
module.debug('Returning to initial position');
module.unfix();
module.unbind();
},
@ -15648,24 +15656,28 @@ $.fn.sticky = function(parameters) {
},
unbind: function() {
module.debug('Removing absolute position on element');
module.remove.offset();
$module
.removeClass(className.bound)
.removeClass(className.top)
.removeClass(className.bottom)
;
if( module.is.bound() ) {
module.debug('Removing container bound position on element');
module.remove.offset();
$module
.removeClass(className.bound)
.removeClass(className.top)
.removeClass(className.bottom)
;
}
},
unfix: function() {
module.debug('Removing fixed position on element');
module.remove.offset();
$module
.removeClass(className.fixed)
.removeClass(className.top)
.removeClass(className.bottom)
;
settings.onUnstick.call(element);
if( module.is.fixed() ) {
module.debug('Removing fixed position on element');
module.remove.offset();
$module
.removeClass(className.fixed)
.removeClass(className.top)
.removeClass(className.bottom)
;
settings.onUnstick.call(element);
}
},
reset: function() {
@ -15931,6 +15943,7 @@ $.fn.sticky.settings = {
};
})( jQuery, window , document );
/*!
* # Semantic UI 2.1.0 - Tab
* http://github.com/semantic-org/semantic-ui/
@ -16307,7 +16320,7 @@ $.fn.tab = function(parameters) {
else if(tabPath.search('/') == -1 && tabPath !== '') {
// look for in page anchor
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]');
currentPath = $anchor.closest('[data-tab]').data('tab');
currentPath = $anchor.closest('[data-tab]').data(metadata.tab);
$tab = module.get.tabElement(currentPath);
// if anchor exists use parent tab
if($anchor && $anchor.length > 0 && currentPath) {

2
dist/semantic.min.css
File diff suppressed because it is too large
View File

17
dist/semantic.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save