Browse Source

Rebuild dist

pull/2492/head
jlukic 10 years ago
parent
commit
3f11d8fb73
15 changed files with 141 additions and 114 deletions
  1. 25
      RELEASE-NOTES.md
  2. 31
      dist/components/api.js
  3. 8
      dist/components/dropdown.css
  4. 2
      dist/components/dropdown.min.css
  5. 6
      dist/components/embed.css
  6. 35
      dist/components/progress.js
  7. 2
      dist/components/progress.min.js
  8. 22
      dist/components/rating.css
  9. 2
      dist/components/rating.min.css
  10. 1
      dist/components/transition.js
  11. 2
      dist/components/transition.min.js
  12. 36
      dist/semantic.css
  13. 67
      dist/semantic.js
  14. 2
      dist/semantic.min.css
  15. 14
      dist/semantic.min.js

25
RELEASE-NOTES.md

@ -12,17 +12,16 @@
- **Checkbox** - Checkbox `fireOnInit` now defaults to false. Checkboxes now also *do not require javascript* to function.
- **Dropdown** - Dropdown item `description` now are floated in default theme and should be included before other `item` content
- **Form** - `grouped inline field` no longer display horizontally. Use `inline field` instead for horizontal inline field groups.
- **List** - List now uses flex which means for **images to [preserve their intrinsic aspect ratio](https://github.com/philipwalton/flexbugs#5-column-flex-items-dont-always-preserve-intrinsic-aspect-ratios)** they will need to use `<div class="image">` wrappers when used with a `content` block.
- **List** - Similar to menu, floated flexbox content blocks should now appear in normal content order, for example, right floated content should appear after other content instead of before.
- **Input** - `pointer-events` have been removed from `icon` in `icon input` unless a `link icon` is used. This is to make sure the hitbox for focusing an input includes the icon.
- **Popup** - Popups are no longer exclusive by default. Opening a popup will not necessarily close other visible popups. You can change this behavior by using the setting `exclusive: true`. Additionally the default theme now uses `1rem` size for standard popups.
- **Colors** - Default colors have been adjusted, which may cause slight changes in your design. New colors have also been added to fill in missing gaps in [color naming](http://en.wikipedia.org/wiki/Linguistic_relativity_and_the_color_naming_debate#Berlin_and_Kay).
- **Segment** - Segment no longer includes a [clearfix](http://learnlayout.com/clearfix.html) by default. You will need to specify a `clearing segment` to clear floated content.
- **Rail** - Rail now uses `border-box` instead of `content-box`. This means manually specified rail widths will now need to account for padding. This was added to fix issues where rail `height: 100%` would incorrectly match content when a rail had padding.
- **Menu** - `tiered menu` has been removed in `2.0`. This may be rewritten in the future, but was not up to the standards of the rest of the library and has been removed.
- **Tab** - `onTabInit` and `onTabLoad` have been renamed to `onFirstLoad` and `onLoad` respectively. This is to conform to the naming conventions of other modules (no self reference). Previous callbacks will continue to work but will produce deprecation notices in console. Two new callbacks `onVisible` and `onRequest` have been added as well.
- **Button** - `wide` variations using numbers `2 wide`, `3 wide` have been removed due to incompatibilities with some build tools. Please use `two wide`, or `three wide` instead.
- **Video** - The undocumented `video` module has been renamed to `embed`. Behaviors remain the same, but users need to adjust their javascript init to `$('.ui.embed').embed();`
- **API** - API `onFailure` will now be called when a request is errored (504, 404 etc), aborted (page change or CORS), or JSON does not pass `successTest` function. `onError` and `onAbort` will also fire for each specific failure condition.
- **API** - API `onFailure` will now be called **in all failure conditions**, when a request is errored (504, 404 etc), aborted (page change or CORS), or JSON does not pass `successTest` function. `onError` and `onAbort` will also fire for each specific failure condition.
**New UI**
- **Container** - Containers are fixed width containers meant for holding page contents, and are a simpler alternative to `ui page grid`, view more [examples in docs](http://www.semantic-ui.com/elements/container.html#examples)
@ -40,9 +39,11 @@
- **Checkbox** - Added support for `indeterminate` checkboxes, along with new stylings.
- **Checkbox** - Now includes separate behaviors for triggering state changes without invoking callbacks `set checked` vs `checked`
- **Dropdown** - Added remote API integration with dropdown, to allow `search selection` to query against a remote dataset.
- **Dimmer** - Dimmers now have a `blurring` variation which apply a glass-like effect when dimmed
- **Dropdown** - Dropdowns now automatically observe changes in `menu` and will update selector cache with new additions
- **Dropdowns** - Added ability to add custom choices to all search selection dropdowns (multi/single) using `allowAdditions: true` setting. Search now displays error messages on no results in all cases.
- **Dropdown** - Keyboard shortcuts have been added for selecting dropdown choices, for example "N" will scroll to "New York" in a state selection list, similar to native `<select>` behavior.
- **Dropdown** - Added new dropdown variation `scrolling dropdown` and `scrolling menu`, this can be used to include a scrollable section inside a dropdown menu.
- **Dropdown** - Dropdown will automatically animate upward if there is not enough space to appear below.
- **Dropdown** - Using `page up` and `page down` keys will now scroll menus by a page at a time
- **Form** - Forms now use `flexbox` for creating field groups. Inline fields now support `(x) wide` sizing using `flex`
@ -57,6 +58,7 @@
- **Form Validation** - Form validation now supports many new validation rules, including some specifically for use with multiple select values.
- **Item** - Items now uses `flexbox` for layout.
- **Message** - `icon message` now uses `flexbox` for layout
- **Menu** - `vertical tabular menu`, a vertical tab menu, has been added
- **Input** - All `input` types use `flexbox` for layout
- **Segment** - Segments now support complex nesting, many new rules for how segment groups should appear inside groups
- **Segment** - New `horizontal segment` groups make laying out auto resizing text columns much easier.
@ -78,6 +80,7 @@
- **Build Tools** - Build tools will now display pre-specified errors when a theme file is missing or an element specifies an unavailable theme.
- **Build Tools** - Adjusting `site.variables` will now rebuild all UI, instead of just `site.less`
- **Button** - Added `:focus` styles for all button types, all button examples in docs now are keyboard focusable using either `<button>` or `tabindex` where appropriate.
- **Card** - Card now includes a `centered` variation
- **Checkbox** - Checkbox will now gracefully correct behaviors invoked on the child input element instead of the `ui checkbox`.
- **Checkbox** - Reduced kb size of icon font
- **Divider** - `vertical divider` inside `ui grid` now accounts for column padding
@ -105,6 +108,8 @@
- **Grid** - rows can now be `stretched` as well as `middle aligned`, `bottom aligned` and `top aligned`!
- **Grid** - Fixed margins on `internally celled` grid
- **Grid** - `celled` and `internally celled` grid now use flexbox instead of `display: table;`
- **Headers** - Added new header type `sub header`, useful for displaying small headers alongside text content. See examples [in the header docs](http://www.semantic-ui.com/elements/header.html#sub-headers)
- **Image** - Images now include a `spaced` variation for adding whitespace around images when used inline with text.
- **Input** - Added placeholder color rules for IE, `ms-input-placeholder`
- **Input** - Action input now supports multiple buttons, and dropdown
- **Label** - Labels now have `active` and `active hover` states
@ -133,6 +138,7 @@
- **Search** - Search will now generate `results` container if one is not present on init
- **Search** - Search now uses `em` for resizes, making sure it will resize with the surrounding content
- **Search** - Search `prompt` now has focus styles defined if not using `ui input`
- **Segment** - Added `clearing` segment for cases that need a [clearfix](http://learnlayout.com/clearfix.html).
- **Sidebar** - Improved animation performance through performance debugging. Sidebar now caches, width, height, rtl direction on load.
- **Site** - Fixed mixed globals `@defaultDuration` and `@transitionDuration` usage to use a single variable across all UI `@defaultDuration`, the same for `@defaultEasing` and `@transitionEasing`
- **Site** - Added in `pageOverflowX` variable, default theme hides horizontal scrollbars on `body`
@ -141,9 +147,11 @@
- **Sticky** - Sticky now internally caches current scroll position when `cantFit = true` to avoid getting DOM property on scroll.
- **Statistic** - Added new evenly divided group variation, for example `three statistics` shows 3 per row
- **Statistic** - Statitic group now use `flex`. Styles have been updated.
- **Steps** - Added `attached` steps, which can now be attached to other UI like `segment`
- **Tabs** - Tab will now manually correct page scroll position when linking to an in-page anchor in a hidden tab
- **Tabs** - Added new callbacks `onTabVisible` and `onRequest`
- **Tabs** - Added `parseScripts` option, defaults to `once` parsing inline scripts only first load
- **Table** - Adds `selectable table` variation, which shows hover effect on row when hovering
- **Table** - Added `vertical alignment` variations to `ui table`
- **Table** - Added `single line` table variation which prevents text from wrapping
- **Transition** - Adjusting `style` or `class` during a transition, will no longer reset the change after transition completes.
@ -153,17 +161,6 @@
- **Visibility** - Visiblity includes a new setting `checkOnRefresh` which detemrines whether visibility callbacks should occur on resize or refresh
- **Visibility** - Visibility `image` will now wait to lazy load images that are *above* the current screen position, not just below.
**New Variations**
- **Card** - Card now includes a `centered` variation
- **Headers** - Added new header type `sub header`, useful for displaying small headers alongside text content. See examples [in the header docs](http://www.semantic-ui.com/elements/header.html#sub-headers)
- **Menu** - `vertical tabular menu`, a vertical tab menu, has been added
- **Dropdown** - Added new dropdown variation `scrolling dropdown` and `scrolling menu`, this can be used to include a scrollable section inside a dropdown menu.
- **Image** - Images now include a `spaced` variation for adding whitespace around images when used inline with text.
- **Dimmer** - Dimmers now have a `blurring` variation which apply a glass-like effect when dimmed
- **Segment** - Added `clearing` segment for cases that need a [clearfix](http://learnlayout.com/clearfix.html).
- **Steps** - Added `attached` steps, which can now be attached to other UI like `segment`
- **Table** - Adds `selectable table` variation, which shows hover effect on row when hovering
**Bugs**
- **All Modules** - Performance logging now delays 500ms instead of 100ms for console logging to ensure all logs are captured in one group
- **All Modules/Transition** - Transitions no longer use `rotateZ(0deg)` to trigger GPU display of visible state. This causes issues with `transform` creating new stacking context that can disrupt `z-index`.

31
dist/components/api.js

@ -514,6 +514,7 @@ $.api = $.fn.api = function(parameters) {
},
fail: function(xhr, status, httpMessage) {
var
// pull response from xhr if available
response = $.isPlainObject(xhr)
? (xhr.responseText)
: false,
@ -951,36 +952,52 @@ $.api.settings = {
verbose : false,
performance : true,
// api endpoints
// object containing all templates endpoints
api : {},
// cache
// whether to cache responses
cache : true,
// whether new requests should abort previous requests
interruptRequests : true,
// event binding
on : 'auto',
// context for applying state classes
stateContext : false,
// state
// duration for loading state
loadingDuration : 0,
// duration for error state
errorDuration : 2000,
// templating
// API action to use
action : false,
// templated URL to use
url : false,
// base URL to apply to all endpoints
base : '',
// data
// data that will
urlData : {},
// ui
// whether to add default data to url data
defaultData : true,
// whether to serialize closest form
serializeForm : false,
// how long to wait before request should occur
throttle : 0,
// whether to throttle first request or only repeated
throttleFirstRequest : true,
// jQ ajax
// standard ajax settings
method : 'get',
data : {},
dataType : 'json',

8
dist/components/dropdown.css

@ -404,6 +404,7 @@ select.ui.dropdown {
outline: none;
margin: 0px -1px;
min-width: calc(100% + 2px );
width: calc(100% + 2px );
border-radius: 0em 0em 0.28571429rem 0.28571429rem;
box-shadow: 0px 2px 3px 0px rgba(34, 36, 38, 0.15);
-webkit-transition: opacity 0.1s ease;
@ -421,13 +422,6 @@ select.ui.dropdown {
.ui.selection.dropdown .menu > .message {
padding: 0.71428571rem 1.14285714rem;
}
/* Scrollbar in IE */
@media all and (-ms-high-contrast: none) {
.ui.selection.dropdown .menu {
min-width: calc(100% - 17px );
}
}
@media only screen and (max-width: 767px) {
.ui.selection.dropdown .menu {
max-height: 7.58571429rem;

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

6
dist/components/embed.css

@ -144,6 +144,12 @@
/*******************************
Site Overrides
*******************************/
/*******************************
Variations
*******************************/

35
dist/components/progress.js

@ -224,11 +224,22 @@ $.fn.progress = function(parameters) {
module.debug('Adding variables to progress bar text', templateText);
return templateText;
},
randomValue: function() {
module.debug('Generating random increment percentage');
return Math.floor((Math.random() * settings.random.max) + settings.random.min);
},
numericValue: function(value) {
return (typeof value === 'string')
? (value.replace(/[^\d.]/g, '') !== '')
? +(value.replace(/[^\d.]/g, ''))
: false
: value
;
},
transitionEnd: function() {
var
element = document.createElement('element'),
@ -363,14 +374,14 @@ $.fn.progress = function(parameters) {
? Math.round( (percent / 100) * module.total * (10 * settings.precision)) / (10 * settings.precision)
: Math.round( (percent / 100) * module.total * 10) / 10
;
}
if(settings.limitValues) {
module.value = (module.value > 100)
? 100
: (module.value < 0)
? 0
: module.value
;
if(settings.limitValues) {
module.value = (module.value > 100)
? 100
: (module.value < 0)
? 0
: module.value
;
}
}
module.set.barWidth(percent);
module.set.labelInterval();
@ -506,11 +517,7 @@ $.fn.progress = function(parameters) {
},
progress: function(value) {
var
numericValue = (typeof value === 'string')
? (value.replace(/[^\d.]/g, '') !== '')
? +(value.replace(/[^\d.]/g, ''))
: false
: value,
numericValue = module.get.numericValue(value),
percentComplete
;
if(numericValue === false) {
@ -712,7 +719,7 @@ $.fn.progress.settings = {
name : 'Progress',
namespace : 'progress',
debug : false,
debug : true,
verbose : false,
performance : true,

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

22
dist/components/rating.css

@ -25,14 +25,6 @@
.ui.rating:last-child {
margin-right: 0em;
}
.ui.rating:before {
display: block;
content: '';
visibility: hidden;
clear: both;
height: 0;
vertical-align: middle;
}
/* Icon */
.ui.rating .icon {
@ -173,25 +165,25 @@
Variations
*******************************/
.ui.mini.rating .icon {
.ui.mini.rating {
font-size: 0.71428571rem;
}
.ui.tiny.rating .icon {
.ui.tiny.rating {
font-size: 0.85714286rem;
}
.ui.small.rating .icon {
.ui.small.rating {
font-size: 0.92857143rem;
}
.ui.rating .icon {
.ui.rating {
font-size: 1rem;
}
.ui.large.rating .icon {
.ui.large.rating {
font-size: 1.14285714rem;
}
.ui.huge.rating .icon {
.ui.huge.rating {
font-size: 1.42857143rem;
}
.ui.massive.rating .icon {
.ui.massive.rating {
font-size: 2rem;
}

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

1
dist/components/transition.js

@ -760,6 +760,7 @@ $.fn.transition = function() {
if( module.is.animating() ) {
module.reset();
}
element.blur(); // IE will trigger focus change if element is not blurred before hiding
module.remove.display();
module.remove.visible();
module.set.hidden();

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

36
dist/semantic.css

@ -27314,6 +27314,7 @@ select.ui.dropdown {
outline: none;
margin: 0px -1px;
min-width: calc(100% + 2px );
width: calc(100% + 2px );
border-radius: 0em 0em 0.28571429rem 0.28571429rem;
box-shadow: 0px 2px 3px 0px rgba(34, 36, 38, 0.15);
-webkit-transition: opacity 0.1s ease;
@ -27333,14 +27334,6 @@ select.ui.dropdown {
padding: 0.71428571rem 1.14285714rem;
}
/* Scrollbar in IE */
@media all and (-ms-high-contrast: none) {
.ui.selection.dropdown .menu {
min-width: calc(100% - 17px );
}
}
@media only screen and (max-width: 767px) {
.ui.selection.dropdown .menu {
max-height: 7.58571429rem;
@ -28557,6 +28550,10 @@ select.ui.dropdown {
Video Overrides
*******************************/
/*******************************
Site Overrides
*******************************/
/*******************************
Variations
*******************************/
@ -30258,15 +30255,6 @@ a.ui.nag {
margin-right: 0em;
}
.ui.rating:before {
display: block;
content: '';
visibility: hidden;
clear: both;
height: 0;
vertical-align: middle;
}
/* Icon */
.ui.rating .icon {
@ -30409,31 +30397,31 @@ a.ui.nag {
Variations
*******************************/
.ui.mini.rating .icon {
.ui.mini.rating {
font-size: 0.71428571rem;
}
.ui.tiny.rating .icon {
.ui.tiny.rating {
font-size: 0.85714286rem;
}
.ui.small.rating .icon {
.ui.small.rating {
font-size: 0.92857143rem;
}
.ui.rating .icon {
.ui.rating {
font-size: 1rem;
}
.ui.large.rating .icon {
.ui.large.rating {
font-size: 1.14285714rem;
}
.ui.huge.rating .icon {
.ui.huge.rating {
font-size: 1.42857143rem;
}
.ui.massive.rating .icon {
.ui.massive.rating {
font-size: 2rem;
}

67
dist/semantic.js

@ -10548,11 +10548,22 @@ $.fn.progress = function(parameters) {
module.debug('Adding variables to progress bar text', templateText);
return templateText;
},
randomValue: function() {
module.debug('Generating random increment percentage');
return Math.floor((Math.random() * settings.random.max) + settings.random.min);
},
numericValue: function(value) {
return (typeof value === 'string')
? (value.replace(/[^\d.]/g, '') !== '')
? +(value.replace(/[^\d.]/g, ''))
: false
: value
;
},
transitionEnd: function() {
var
element = document.createElement('element'),
@ -10687,14 +10698,14 @@ $.fn.progress = function(parameters) {
? Math.round( (percent / 100) * module.total * (10 * settings.precision)) / (10 * settings.precision)
: Math.round( (percent / 100) * module.total * 10) / 10
;
}
if(settings.limitValues) {
module.value = (module.value > 100)
? 100
: (module.value < 0)
? 0
: module.value
;
if(settings.limitValues) {
module.value = (module.value > 100)
? 100
: (module.value < 0)
? 0
: module.value
;
}
}
module.set.barWidth(percent);
module.set.labelInterval();
@ -10830,11 +10841,7 @@ $.fn.progress = function(parameters) {
},
progress: function(value) {
var
numericValue = (typeof value === 'string')
? (value.replace(/[^\d.]/g, '') !== '')
? +(value.replace(/[^\d.]/g, ''))
: false
: value,
numericValue = module.get.numericValue(value),
percentComplete
;
if(numericValue === false) {
@ -11036,7 +11043,7 @@ $.fn.progress.settings = {
name : 'Progress',
namespace : 'progress',
debug : false,
debug : true,
verbose : false,
performance : true,
@ -17304,6 +17311,7 @@ $.fn.transition = function() {
if( module.is.animating() ) {
module.reset();
}
element.blur(); // IE will trigger focus change if element is not blurred before hiding
module.remove.display();
module.remove.visible();
module.set.hidden();
@ -18127,6 +18135,7 @@ $.api = $.fn.api = function(parameters) {
},
fail: function(xhr, status, httpMessage) {
var
// pull response from xhr if available
response = $.isPlainObject(xhr)
? (xhr.responseText)
: false,
@ -18564,36 +18573,52 @@ $.api.settings = {
verbose : false,
performance : true,
// api endpoints
// object containing all templates endpoints
api : {},
// cache
// whether to cache responses
cache : true,
// whether new requests should abort previous requests
interruptRequests : true,
// event binding
on : 'auto',
// context for applying state classes
stateContext : false,
// state
// duration for loading state
loadingDuration : 0,
// duration for error state
errorDuration : 2000,
// templating
// API action to use
action : false,
// templated URL to use
url : false,
// base URL to apply to all endpoints
base : '',
// data
// data that will
urlData : {},
// ui
// whether to add default data to url data
defaultData : true,
// whether to serialize closest form
serializeForm : false,
// how long to wait before request should occur
throttle : 0,
// whether to throttle first request or only repeated
throttleFirstRequest : true,
// jQ ajax
// standard ajax settings
method : 'get',
data : {},
dataType : 'json',

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

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

Loading…
Cancel
Save