Browse Source

rebuild dist for jsfiddle

pull/1550/head
jlukic 10 years ago
parent
commit
927251fe01
5 changed files with 69 additions and 48 deletions
  1. 1
      RELEASE-NOTES.md
  2. 49
      dist/components/dropdown.js
  3. 12
      dist/components/dropdown.min.js
  4. 49
      dist/semantic.js
  5. 6
      dist/semantic.min.js

1
RELEASE-NOTES.md

@ -7,6 +7,7 @@
- Concatenated ``dist/`` release included duplicate components when no component array specified. Added default components to ``tasks/default.js`` to allay issues
**Enhancements*
- **Dropdown** - New setting ``allowCategorySelection`` lets menu items with sub menus be selected. Added example in docs.
- **Label** - ``ui ribbon label`` can now appear on the right side of content when specifying ``ui right ribbon label``
- **Progress** - Progress bars now display all intermediary percentage values when animating. Improved performance when progress bar is rapidly updated.
- **Popup** - Popup now uses the new property ``min-width: max-content`` to allow for better display with ``inline`` in some circumstances where it escapes parent element.

49
dist/components/dropdown.js

@ -605,16 +605,22 @@ $.fn.dropdown = function(parameters) {
click: function (event) {
var
$choice = $(this),
text = module.get.choiceText($choice),
value = module.get.choiceValue($choice, text),
$choice = $(this),
$target = $(event.target),
$subMenu = $choice.find(selector.menu),
text = module.get.choiceText($choice),
value = module.get.choiceValue($choice, text),
callback = function() {
module.remove.searchTerm();
module.determine.selectAction(text, value);
},
openingSubMenu = ($choice.find(selector.menu).size() > 0)
openingSubMenu = ($subMenu.size() > 0),
isSubItem = ($subMenu.find($target).size() > 0)
;
if( !openingSubMenu ) {
if(isSubItem) {
return false;
}
if(!openingSubMenu || settings.allowCategorySelection) {
callback();
}
}
@ -738,6 +744,12 @@ $.fn.dropdown = function(parameters) {
: settings.preserveHTML
;
if($choice !== undefined) {
if($choice.find(selector.menu).size() > 0) {
module.verbose('Retreiving text of element with sub-menu');
$choice = $choice.clone();
$choice.find(selector.menu).remove();
$choice.find(selector.menuIcon).remove();
}
return ($choice.data(metadata.text) !== undefined)
? $choice.data(metadata.text)
: (preserveHTML)
@ -1484,17 +1496,19 @@ $.fn.dropdown = function(parameters) {
$.fn.dropdown.settings = {
debug : false,
verbose : true,
performance : true,
debug : false,
verbose : true,
performance : true,
on : 'click',
action : 'activate',
on : 'click',
action : 'activate',
allowTab : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,
allowTab : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,
allowCategorySelection : false,
delay : {
hide : 300,
@ -1532,11 +1546,12 @@ $.fn.dropdown.settings = {
selector : {
dropdown : '.ui.dropdown',
text : '> .text:not(.icon)',
input : '> input[type="hidden"], > select',
search : '> input.search, .menu > .search > input, .menu > input.search',
item : '.item',
menu : '.menu',
item : '.item'
menuIcon : '.dropdown.icon',
search : '> input.search, .menu > .search > input, .menu > input.search',
text : '> .text:not(.icon)'
},
className : {

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

49
dist/semantic.js

@ -3566,16 +3566,22 @@ $.fn.dropdown = function(parameters) {
click: function (event) {
var
$choice = $(this),
text = module.get.choiceText($choice),
value = module.get.choiceValue($choice, text),
$choice = $(this),
$target = $(event.target),
$subMenu = $choice.find(selector.menu),
text = module.get.choiceText($choice),
value = module.get.choiceValue($choice, text),
callback = function() {
module.remove.searchTerm();
module.determine.selectAction(text, value);
},
openingSubMenu = ($choice.find(selector.menu).size() > 0)
openingSubMenu = ($subMenu.size() > 0),
isSubItem = ($subMenu.find($target).size() > 0)
;
if( !openingSubMenu ) {
if(isSubItem) {
return false;
}
if(!openingSubMenu || settings.allowCategorySelection) {
callback();
}
}
@ -3699,6 +3705,12 @@ $.fn.dropdown = function(parameters) {
: settings.preserveHTML
;
if($choice !== undefined) {
if($choice.find(selector.menu).size() > 0) {
module.verbose('Retreiving text of element with sub-menu');
$choice = $choice.clone();
$choice.find(selector.menu).remove();
$choice.find(selector.menuIcon).remove();
}
return ($choice.data(metadata.text) !== undefined)
? $choice.data(metadata.text)
: (preserveHTML)
@ -4445,17 +4457,19 @@ $.fn.dropdown = function(parameters) {
$.fn.dropdown.settings = {
debug : false,
verbose : true,
performance : true,
debug : false,
verbose : true,
performance : true,
on : 'click',
action : 'activate',
on : 'click',
action : 'activate',
allowTab : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,
allowTab : true,
fullTextSearch : false,
preserveHTML : true,
sortSelect : false,
allowCategorySelection : false,
delay : {
hide : 300,
@ -4493,11 +4507,12 @@ $.fn.dropdown.settings = {
selector : {
dropdown : '.ui.dropdown',
text : '> .text:not(.icon)',
input : '> input[type="hidden"], > select',
search : '> input.search, .menu > .search > input, .menu > input.search',
item : '.item',
menu : '.menu',
item : '.item'
menuIcon : '.dropdown.icon',
search : '> input.search, .menu > .search > input, .menu > input.search',
text : '> .text:not(.icon)'
},
className : {

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

Loading…
Cancel
Save