Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

semantic-ui-less

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-ui-less - npm Package Compare versions

Comparing version 1.11.1 to 1.11.2

98

definitions/modules/accordion.js

@@ -64,6 +64,4 @@ /*!

initialize: function() {
module.debug('Initializing accordion with bound events', $module);
$module
.on('click' + eventNamespace, selector.title, module.event.click)
;
module.debug('Initializing', $module);
module.bind.events();
module.observeChanges();

@@ -81,9 +79,7 @@ module.instantiate();

destroy: function() {
module.debug('Destroying previous accordion for', $module);
module.debug('Destroying previous instance', $module);
$module
.off(eventNamespace)
.removeData(moduleNamespace)
;
$title
.off(eventNamespace)
;
},

@@ -110,2 +106,10 @@

bind: {
events: function() {
module.debug('Binding delegated events');
$module
.on('click' + eventNamespace, selector.trigger, module.event.click)
;
}
},

@@ -123,9 +127,12 @@ event: {

? $title.eq(query)
: $(query)
: $(this),
: $(query).closest(selector.title)
: $(this).closest(selector.title),
$activeContent = $activeTitle.next($content),
contentIsOpen = $activeContent.is(':visible')
isAnimating = $activeContent.hasClass(className.animating),
isActive = $activeContent.hasClass(className.active),
isOpen = (isActive && !isAnimating),
isOpening = (!isActive && isAnimating)
;
module.debug('Toggling visibility of content', $activeTitle);
if(contentIsOpen) {
if(isOpen || isOpening) {
if(settings.collapsible) {

@@ -139,3 +146,3 @@ module.close.call($activeTitle);

else {
module.open.call($activeTitle);
module.open.call($activeTitle);
}

@@ -149,9 +156,10 @@ },

? $title.eq(query)
: $(query)
: $(this),
$activeContent = $activeTitle.next($content),
currentlyAnimating = $activeContent.is(':animated'),
currentlyActive = $activeContent.hasClass(className.active)
: $(query).closest(selector.title)
: $(this).closest(selector.title),
$activeContent = $activeTitle.next($content),
isAnimating = $activeContent.hasClass(className.animating),
isActive = $activeContent.hasClass(className.active),
isUnopen = (!isActive && !isAnimating)
;
if(!currentlyAnimating && !currentlyActive) {
if(isUnopen) {
module.debug('Opening accordion content', $activeTitle);

@@ -164,2 +172,3 @@ if(settings.exclusive) {

;
$activeContent.addClass(className.animating);
if(settings.animateChildren) {

@@ -170,7 +179,8 @@ if($.fn.transition !== undefined && $module.transition('is supported')) {

.transition({
animation : 'fade in',
animation : 'fade in',
queue : false,
useFailSafe : true,
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration
})

@@ -182,3 +192,3 @@ ;

.children()
.stop()
.stop(true)
.animate({

@@ -191,5 +201,6 @@ opacity: 1

$activeContent
.stop()
.stop(true)
.slideDown(settings.duration, settings.easing, function() {
$activeContent
.removeClass(className.animating)
.addClass(className.active)

@@ -210,8 +221,11 @@ ;

? $title.eq(query)
: $(query)
: $(this),
: $(query).closest(selector.title)
: $(this).closest(selector.title),
$activeContent = $activeTitle.next($content),
isActive = $activeContent.hasClass(className.active)
isAnimating = $activeContent.hasClass(className.animating),
isActive = $activeContent.hasClass(className.active),
isOpening = (!isActive && isAnimating),
isClosing = (isActive && isAnimating)
;
if(isActive) {
if((isActive || isOpening) && !isClosing) {
module.debug('Closing accordion content', $activeContent);

@@ -222,4 +236,3 @@ $activeTitle

$activeContent
.removeClass(className.active)
.show()
.addClass(className.animating)
;

@@ -232,2 +245,3 @@ if(settings.animateChildren) {

animation : 'fade out',
queue : false,
useFailSafe : true,

@@ -243,3 +257,3 @@ debug : settings.debug,

.children()
.stop()
.stop(true)
.animate({

@@ -252,4 +266,8 @@ opacity: 0

$activeContent
.stop()
.stop(true)
.slideUp(settings.duration, settings.easing, function() {
$activeContent
.removeClass(className.animating)
.removeClass(className.active)
;
module.reset.display.call(this);

@@ -267,3 +285,3 @@ settings.onClose.call(this);

? $title.eq(index)
: $(this),
: $(this).closest(selector.title),
$parentTitles = $activeTitle.parents(selector.content).prev(selector.title),

@@ -543,4 +561,4 @@ $activeAccordion = $activeTitle.closest(selector.accordion),

duration : 500,
easing : 'easeOutQuint',
duration : 350,
easing : 'easeOutQuad',

@@ -556,3 +574,4 @@ onOpen : function(){},

className : {
active : 'active'
active : 'active',
animating : 'animating'
},

@@ -563,2 +582,3 @@

title : '.title',
trigger : '.title',
content : '.content'

@@ -571,4 +591,4 @@ }

$.extend( $.easing, {
easeOutQuint: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t*t*t + 1) + b;
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
}

@@ -575,0 +595,0 @@ });

@@ -34,3 +34,3 @@ /*!

$allModules
.each(function() {
.each(function(index) {
var

@@ -214,7 +214,6 @@ settings = ( $.isPlainObject(parameters) )

}
module.refresh();
module.setup.reference();
},
reference: function() {
var
index = $allModules.index($module),
$firstModules,

@@ -225,3 +224,3 @@ $lastModules

// replace module reference
$module = $module.parent(selector.dropdown);
$module = $module.closest(selector.dropdown);
module.refresh();

@@ -228,0 +227,0 @@ // adjust all modules

@@ -442,4 +442,3 @@ /*!

searchExp = searchTerm.replace(regExp.escape, '\\$&'),
searchRegExp = new RegExp(regExp.exact + searchExp, 'i'),
fullTextRegExp = new RegExp(searchExp, 'i')
searchRegExp = new RegExp(regExp.exact + searchExp, 'i')
;

@@ -466,3 +465,3 @@

}
else if( settings.searchFullText && content[field].match(fullTextRegExp) ) {
else if(settings.searchFullText && module.fuzzySearch(searchTerm, content[field]) ) {
fullTextResults.push(content);

@@ -477,2 +476,29 @@ }

fuzzySearch: function(query, term) {
var
termLength = term.length,
queryLength = query.length
;
query = query.toLowerCase();
term = term.toLowerCase();
if(queryLength > termLength) {
return false;
}
if(queryLength === termLength) {
return (query === term);
}
search: for (var characterIndex = 0, nextCharacterIndex = 0; characterIndex < queryLength; characterIndex++) {
var
queryCharacter = query.charCodeAt(characterIndex)
;
while(nextCharacterIndex < termLength) {
if(term.charCodeAt(nextCharacterIndex++) === queryCharacter) {
continue search;
}
}
return false;
}
return true;
},
parse: {

@@ -801,3 +827,3 @@ response: function(response, searchTerm) {

}
if ( $.isFunction( found ) ) {
if( $.isFunction( found ) ) {
response = found.apply(context, passedArguments);

@@ -804,0 +830,0 @@ }

@@ -179,2 +179,6 @@ /*!

}
else {
module.debug('New animation started, completing previous early', settings.animation);
module.complete();
}
}

@@ -181,0 +185,0 @@ if( module.can.animate() ) {

@@ -8,3 +8,3 @@ var

summary : 'Semantic UI - LESS Release of Semantic UI',
version : '1.11.1',
version : '1.11.2',
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',

@@ -11,0 +11,0 @@ });

{
"name": "semantic-ui-less",
"version": "1.11.1",
"version": "1.11.2",
"title": "Semantic UI",

@@ -5,0 +5,0 @@ "description": "LESS Only distribution of Semantic UI",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc