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 2.1.6 to 2.1.7

38

definitions/behaviors/api.js

@@ -216,3 +216,2 @@ /*!

url = module.add.urlData( url );
// missing url parameters

@@ -223,2 +222,3 @@ if( !url && !module.is.mocked()) {

requestSettings.url = settings.base + url;

@@ -285,3 +285,3 @@ // look for jQuery ajax parameters in settings

mocked: function() {
return (settings.mockResponse || settings.mockResponseAsync);
return (settings.mockResponse || settings.mockResponseAsync || settings.response || settings.responseAsync);
},

@@ -598,5 +598,7 @@ input: function() {

// xhr does not simulate these properties of xhr but must return them
textStatus = false,
status = false,
httpMessage = false,
textStatus = false,
status = false,
httpMessage = false,
responder = settings.mockResponse || settings.response,
asyncResponder = settings.mockResponseAsync || settings.responseAsync,
asyncCallback,

@@ -613,10 +615,10 @@ response,

if(settings.mockResponse) {
if( $.isFunction(settings.mockResponse) ) {
module.debug('Using mocked callback returning response', settings.mockResponse);
response = settings.mockResponse.call(context, settings);
if(responder) {
if( $.isFunction(responder) ) {
module.debug('Using specified synchronous callback', responder);
response = responder.call(context, requestSettings);
}
else {
module.debug('Using specified response', settings.mockResponse);
response = settings.mockResponse;
module.debug('Using settings specified response', responder);
response = responder;
}

@@ -626,3 +628,3 @@ // simulating response

}
else if( $.isFunction(settings.mockResponseAsync) ) {
else if( $.isFunction(asyncResponder) ) {
asyncCallback = function(response) {

@@ -638,4 +640,4 @@ module.debug('Async callback returned response', response);

};
module.debug('Using async mocked response', settings.mockResponseAsync);
settings.mockResponseAsync.call(context, settings, asyncCallback);
module.debug('Using specified async response callback', asyncResponder);
asyncResponder.call(context, requestSettings, asyncCallback);
}

@@ -732,4 +734,4 @@ return mockedXHR;

return (runSettings !== undefined)
? runSettings
: settings
? $.extend(true, {}, runSettings)
: $.extend(true, {}, settings)
;

@@ -1077,2 +1079,6 @@ },

// aliases for mock
response : false,
responseAsync : false,
// callbacks before request

@@ -1079,0 +1085,0 @@ beforeSend : function(settings) { return settings; },

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

module.set.enabled();
settings.onEnable.call(input);
settings.onEnabled.call(input);
},

@@ -282,3 +282,3 @@

module.set.disabled();
settings.onDisable.call(input);
settings.onDisabled.call(input);
},

@@ -786,4 +786,4 @@

onEnabled : function(){},
onDisabled : function(){},
onEnable : function(){},
onDisable : function(){},

@@ -790,0 +790,0 @@ className : {

@@ -844,2 +844,3 @@ /*!

module.reset();
settings.onUnplaceable.call($popup, element);
return false;

@@ -1015,9 +1016,9 @@ }

animating: function() {
return ( $popup && $popup.hasClass(className.animating) );
return ($popup !== undefined && $popup.hasClass(className.animating) );
},
fluid: function() {
return ( $popup && $popup.hasClass(className.fluid));
return ($popup !== undefined && $popup.hasClass(className.fluid));
},
visible: function() {
return $popup && $popup.hasClass(className.visible);
return ($popup !== undefined && $popup.hasClass(className.visible));
},

@@ -1249,2 +1250,5 @@ dropdown: function() {

// callback when popup cannot be positioned in visible screen
onUnplaceable: function(){},
// callback after hide animation

@@ -1251,0 +1255,0 @@ onHidden : function(){},

@@ -137,9 +137,26 @@ /*!

var
pageLostFocus = (document.activeElement === this)
pageLostFocus = (document.activeElement === this),
callback = function() {
module.cancel.query();
module.remove.focus();
module.timer = setTimeout(module.hideResults, settings.hideDelay);
}
;
if(!pageLostFocus && !module.resultsClicked) {
module.cancel.query();
module.remove.focus();
module.timer = setTimeout(module.hideResults, settings.hideDelay);
if(pageLostFocus) {
return;
}
if(module.resultsClicked) {
module.debug('Determining if user action caused search to close');
$module
.one('click', selector.results, function(event) {
if( !module.is.animating() && !module.is.hidden() ) {
callback();
}
})
;
}
else {
module.debug('Input blurred without user action, closing results');
callback();
}
},

@@ -302,2 +319,8 @@ result: {

is: {
animating: function() {
return $results.hasClass(className.animating);
},
hidden: function() {
return $results.hasClass(className.hidden);
},
empty: function() {

@@ -1111,8 +1134,10 @@ return ($results.html() === '');

className: {
active : 'active',
empty : 'empty',
focus : 'focus',
loading : 'loading',
results : 'results',
pressed : 'down'
animating : 'animating',
active : 'active',
empty : 'empty',
focus : 'focus',
hidden : 'hidden',
loading : 'loading',
results : 'results',
pressed : 'down'
},

@@ -1119,0 +1144,0 @@

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

error: {
noAnimation : 'There is no css animation matching the one you specified. Please make sure your css is vendor prefixed, and you have included transition css.',
noAnimation : 'Element is no longer attached to DOM. Unable to animate.',
repeated : 'That animation is already occurring, cancelling repeated animation',

@@ -1068,0 +1068,0 @@ method : 'The method you called is not defined',

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

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

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

{
"name": "semantic-ui-less",
"version": "2.1.6",
"version": "2.1.7",
"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

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