From fd8a83c4a79789c6d492da3e673129790308c718 Mon Sep 17 00:00:00 2001 From: Sean Hamilton Date: Sun, 1 Sep 2019 14:36:05 +0100 Subject: [PATCH] chore(release): update dist --- dist/components/accordion.min.js | 2 +- dist/components/api.min.js | 2 +- dist/components/calendar.min.js | 2 +- dist/components/checkbox.min.js | 2 +- dist/components/dimmer.min.js | 2 +- dist/components/dropdown.css | 9 +- dist/components/dropdown.js | 65 +++++++--- dist/components/dropdown.min.css | 2 +- dist/components/dropdown.min.js | 4 +- dist/components/embed.min.js | 2 +- dist/components/form.js | 38 ++++-- dist/components/form.min.js | 4 +- dist/components/label.css | 3 +- dist/components/label.min.css | 2 +- dist/components/modal.min.js | 2 +- dist/components/nag.min.js | 2 +- dist/components/popup.min.js | 2 +- dist/components/progress.js | 8 +- dist/components/progress.min.js | 4 +- dist/components/rating.min.js | 2 +- dist/components/search.min.js | 2 +- dist/components/shape.min.js | 2 +- dist/components/sidebar.min.js | 2 +- dist/components/site.css | 2 +- dist/components/site.min.css | 2 +- dist/components/site.min.js | 2 +- dist/components/slider.css | 25 ++++ dist/components/slider.js | 63 +++++++-- dist/components/slider.min.css | 2 +- dist/components/slider.min.js | 4 +- dist/components/state.min.js | 2 +- dist/components/sticky.min.js | 2 +- dist/components/tab.js | 28 ++++ dist/components/tab.min.js | 4 +- dist/components/toast.min.js | 2 +- dist/components/transition.min.js | 2 +- dist/components/visibility.min.js | 2 +- dist/semantic.css | 51 +++++++- dist/semantic.js | 204 +++++++++++++++++++++++------- dist/semantic.min.css | 10 +- dist/semantic.min.js | 4 +- 41 files changed, 440 insertions(+), 136 deletions(-) diff --git a/dist/components/accordion.min.js b/dist/components/accordion.min.js index f94cf28187..9f637233cc 100644 --- a/dist/components/accordion.min.js +++ b/dist/components/accordion.min.js @@ -1,5 +1,5 @@ /* - * # Fomantic UI - 2.7.7 + * # Fomantic UI - 2.7.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * diff --git a/dist/components/api.min.js b/dist/components/api.min.js index 207febd013..2ce3e10328 100644 --- a/dist/components/api.min.js +++ b/dist/components/api.min.js @@ -1,5 +1,5 @@ /* - * # Fomantic UI - 2.7.7 + * # Fomantic UI - 2.7.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * diff --git a/dist/components/calendar.min.js b/dist/components/calendar.min.js index e415d40e88..f63828446b 100644 --- a/dist/components/calendar.min.js +++ b/dist/components/calendar.min.js @@ -1,5 +1,5 @@ /* - * # Fomantic UI - 2.7.7 + * # Fomantic UI - 2.7.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * diff --git a/dist/components/checkbox.min.js b/dist/components/checkbox.min.js index 69326b9a0a..b79e2c0284 100644 --- a/dist/components/checkbox.min.js +++ b/dist/components/checkbox.min.js @@ -1,5 +1,5 @@ /* - * # Fomantic UI - 2.7.7 + * # Fomantic UI - 2.7.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * diff --git a/dist/components/dimmer.min.js b/dist/components/dimmer.min.js index db69c1cd69..2ce8ba165f 100644 --- a/dist/components/dimmer.min.js +++ b/dist/components/dimmer.min.js @@ -1,5 +1,5 @@ /* - * # Fomantic UI - 2.7.7 + * # Fomantic UI - 2.7.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * diff --git a/dist/components/dropdown.css b/dist/components/dropdown.css index 3f25a7a70d..de9ae8e1de 100644 --- a/dist/components/dropdown.css +++ b/dist/components/dropdown.css @@ -162,16 +162,21 @@ .ui.dropdown .menu > .header { margin: 1rem 0 0.75rem; padding: 0 1.14285714rem; - color: rgba(0, 0, 0, 0.85); - font-size: 0.78571429em; font-weight: bold; text-transform: uppercase; } +.ui.dropdown .menu > .header:not(.ui) { + color: rgba(0, 0, 0, 0.85); + font-size: 0.78571429em; +} .ui.dropdown .menu > .divider { border-top: 1px solid rgba(34, 36, 38, 0.1); height: 0; margin: 0.5em 0; } +.ui.dropdown .menu > .horizontal.divider { + border-top: none; +} .ui.dropdown.dropdown .menu > .input { width: auto; display: -webkit-box; diff --git a/dist/components/dropdown.js b/dist/components/dropdown.js index 9462556972..f08c88691b 100644 --- a/dist/components/dropdown.js +++ b/dist/components/dropdown.js @@ -382,7 +382,7 @@ $.fn.dropdown = function(parameters) { .attr('class', $input.attr('class') ) .addClass(className.selection) .addClass(className.dropdown) - .html( templates.dropdown(selectValues,settings.preserveHTML, settings.className) ) + .html( templates.dropdown(selectValues, fields, settings.preserveHTML, settings.className) ) .insertBefore($input) ; if($input.hasClass(className.multiple) && $input.prop('multiple') === false) { @@ -1296,7 +1296,7 @@ $.fn.dropdown = function(parameters) { isBubbledEvent = ($subMenu.find($target).length > 0) ; // prevents IE11 bug where menu receives focus even though `tabindex=-1` - if (!module.has.search() || !document.activeElement.isEqualNode($search[0])) { + if (document.activeElement.tagName.toLowerCase() !== 'input') { $(document.activeElement).blur(); } if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) { @@ -1865,7 +1865,7 @@ $.fn.dropdown = function(parameters) { } return ( !module.has.selectInput() && module.is.multiple() ) ? (typeof value == 'string') // delimited string - ? value.split(settings.delimiter) + ? module.escape.htmlEntities(value).split(settings.delimiter) : '' : value ; @@ -1942,7 +1942,8 @@ $.fn.dropdown = function(parameters) { }, selectValues: function() { var - select = {} + select = {}, + oldGroup = [] ; select.values = []; $module @@ -1954,12 +1955,21 @@ $.fn.dropdown = function(parameters) { disabled = $option.attr('disabled'), value = ( $option.attr('value') !== undefined ) ? $option.attr('value') - : name + : name, + group = $option.parent('optgroup') ; if(settings.placeholder === 'auto' && value === '') { select.placeholder = name; } else { + if(group.length !== oldGroup.length || group[0] !== oldGroup[0]) { + select.values.push({ + type: 'header', + divider: settings.headerDivider, + name: group.attr('label') || '' + }); + oldGroup = group; + } select.values.push({ name : name, value : value, @@ -2428,6 +2438,9 @@ $.fn.dropdown = function(parameters) { ? forceScroll : false ; + if(module.get.activeItem().length === 0){ + forceScroll = false; + } if($item && $menu.length > 0 && hasActive) { itemOffset = $item.position().top; @@ -3886,6 +3899,8 @@ $.fn.dropdown.settings = { glyphWidth : 1.037, // widest glyph width in em (W is 1.037 em) used to calculate multiselect input width + headerDivider : true, // whether option headers should have an additional divider line underneath when converted from ").addClass(g.search).prop("autocomplete","off").insertBefore(T)),h.is.multiple()&&h.is.searchSelection()&&!h.has.sizer()&&h.create.sizer(),f.allowTab&&h.set.tabbable()},select:function(){var e=h.get.selectValues();h.debug("Dropdown initialized on a select",e),S.is("select")&&(I=S),0").attr("class",I.attr("class")).addClass(g.selection).addClass(g.dropdown).html(C.dropdown(e,f.preserveHTML,f.className)).insertBefore(I),I.hasClass(g.multiple)&&!1===I.prop("multiple")&&(h.error(m.missingMultiple),I.prop("multiple",!0)),I.is("[multiple]")&&h.set.multiple(),I.prop("disabled")&&(h.debug("Disabling dropdown"),S.addClass(g.disabled)),I.removeAttr("class").detach().prependTo(S)),h.refresh()},menu:function(e){O.html(C.menu(e,l,f.preserveHTML,f.className)),E=O.find(w.item),V=f.hideDividers?E.parent().children(w.divider):Z()},reference:function(){h.debug("Dropdown behavior was called on select, replacing with closest dropdown"),S=S.parent(w.dropdown),H=S.data(y),N=S.get(0),h.refresh(),h.setup.returnedObject()},returnedObject:function(){var e=B.slice(0,n),t=B.slice(n+1);B=e.add(S).add(t)}},refresh:function(){h.refreshSelectors(),h.refreshData()},refreshItems:function(){E=O.find(w.item),V=f.hideDividers?E.parent().children(w.divider):Z()},refreshSelectors:function(){h.verbose("Refreshing selector cache"),T=S.find(w.text),L=S.find(w.search),I=S.find(w.input),D=S.find(w.icon),R=0 modified, recreating menu"),h.is.selectMutation(e)&&(h.disconnect.selectObserver(),h.refresh(),h.setup.select(),h.set.selected(),h.observe.select())}},menu:{mutation:function(e){var t=e[0],n=t.addedNodes?Z(t.addedNodes[0]):Z(!1),i=t.removedNodes?Z(t.removedNodes[0]):Z(!1),a=n.add(i),o=a.is(w.addition)||0=f.maxSelections?(h.debug("Maximum selection count reached"),f.useLabels&&(E.addClass(g.filtered),h.add.message(u.maxSelections)),!0):(h.verbose("No longer at maximum selection count"),h.remove.message(),h.remove.filteredItem(),h.is.searchSelection()&&h.filterItems(),!1))}},restore:{defaults:function(){h.clear(),h.restore.defaultText(),h.restore.defaultValue()},defaultText:function(){var e=h.get.defaultText();e===h.get.placeholderText?(h.debug("Restoring default placeholder text",e),h.set.placeholderText(e)):(h.debug("Restoring default text",e),h.set.text(e))},placeholderText:function(){h.set.placeholderText()},defaultValue:function(){var e=h.get.defaultValue();e!==te&&(h.debug("Restoring default value",e),""!==e?(h.set.value(e),h.set.selected()):(h.remove.activeItem(),h.remove.selectedItem()))},labels:function(){f.allowAdditions&&(f.useLabels||(h.error(m.labels),f.useLabels=!0),h.debug("Restoring selected values"),h.create.userLabels()),h.check.maxSelections()},selected:function(){h.restore.values(),h.is.multiple()?(h.debug("Restoring previously selected values and labels"),h.restore.labels()):h.debug("Restoring previously selected values")},values:function(){h.set.initialLoad(),f.apiSettings&&f.saveRemoteData&&h.get.remoteValues()?h.restore.remoteValues():h.set.selected();var e=h.get.value();!e||""===e||Array.isArray(e)&&0===e.length?I.addClass(g.noselection):I.removeClass(g.noselection),h.remove.initialLoad()},remoteValues:function(){var e=h.get.remoteValues();h.debug("Recreating selected from session data",e),e&&(h.is.single()?Z.each(e,function(e,t){h.set.text(t)}):Z.each(e,function(e,t){h.add.label(e,t)}))}},read:{remoteData:function(e){var t;if(_.Storage!==te)return(t=sessionStorage.getItem(e))!==te&&t;h.error(m.noStorage)}},save:{defaults:function(){h.save.defaultText(),h.save.placeholderText(),h.save.defaultValue()},defaultValue:function(){var e=h.get.value();h.verbose("Saving default value as",e),S.data(b.defaultValue,e)},defaultText:function(){var e=h.get.text();h.verbose("Saving default text as",e),S.data(b.defaultText,e)},placeholderText:function(){var e;!1!==f.placeholder&&T.hasClass(g.placeholder)&&(e=h.get.text(),h.verbose("Saving placeholder text as",e),S.data(b.placeholderText,e))},remoteData:function(e,t){_.Storage!==te?(h.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):h.error(m.noStorage)}},clear:function(){h.is.multiple()&&f.useLabels?h.remove.labels():(h.remove.activeItem(),h.remove.selectedItem(),h.remove.filteredItem()),h.set.placeholderText(),h.clearValue()},clearValue:function(){h.set.value("")},scrollPage:function(e,t){var n,i,a=t||h.get.selectedItem(),o=a.closest(w.menu),s=o.outerHeight(),r=o.scrollTop(),l=E.eq(0).outerHeight(),c=Math.floor(s/l),u=(o.prop("scrollHeight"),"up"==e?r-l*c:r+l*c),d=E.not(w.unselectable);i="up"==e?d.index(a)-c:d.index(a)+c,0<(n=("up"==e?0<=i:i").addClass(g.label).attr("data-"+b.value,o).html(C.label(o,t,f.preserveHTML,f.className)),i=f.onLabelCreate.call(i,o,t),h.has.label(e)?h.debug("User selection already exists, skipping",o):(f.label.variation&&i.addClass(f.label.variation),!0===n?(h.debug("Animating in label",i),i.addClass(g.hidden).insertBefore(a).transition({animation:f.label.transition,debug:f.debug,verbose:f.verbose,duration:f.label.duration})):(h.debug("Adding selection label",i),i.insertBefore(a)))},message:function(e){var t=O.children(w.message),n=f.templates.message(h.add.variables(e));0").html(n).addClass(g.message).appendTo(O)},optionValue:function(e){var t=h.escape.value(e);0").prop("value",t).addClass(g.addition).html(e).appendTo(I),h.verbose("Adding user addition as an