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

angular-chosen-localytics

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-chosen-localytics - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

.idea/.name

11

bower.json
{
"name": "angular-chosen-localytics",
"version": "1.3.0",
"version": "1.4.0",
"repository": {

@@ -9,8 +9,13 @@ "type": "git",

"main": "dist/angular-chosen.js",
"ignore": [
"gulpfile.js",
"src",
"test"
],
"dependencies": {
"jquery": "^2.0.3",
"chosen": "^1.1.0",
"angular": "^1.2.0"
"chosen": "^1.5.1",
"angular": "^1.4.9"
},
"license": "MIT"
}
/**
* angular-chosen-localytics - Angular Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a Angular way
* @version v1.3.0
* @version v1.4.0
* @link http://github.com/leocaseiro/angular-chosen

@@ -72,3 +72,5 @@ * @license MIT

} else {
chosen = element.chosen(options).data('chosen');
$timeout(function() {
chosen = element.chosen(options).data('chosen');
});
if (angular.isObject(chosen)) {

@@ -93,2 +95,7 @@ return defaultText = chosen.default_text;

};
element.on('chosen:hiding_dropdown', function() {
return scope.$apply(function() {
return ngModel.$setTouched();
});
});
if (attr.multiple) {

@@ -95,0 +102,0 @@ viewWatch = function() {

/**
* angular-chosen-localytics - Angular Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a Angular way
* @version v1.3.0
* @version v1.4.0
* @link http://github.com/leocaseiro/angular-chosen
* @license MIT
*/
(function(){var e=[].indexOf||function(e){for(var t=0,r=this.length;r>t;t++)if(t in this&&this[t]===e)return t;return-1};angular.module("localytics.directives",[]),angular.module("localytics.directives").directive("chosen",["$timeout",function(t){var r,n,i,s;return n=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,r=["persistentCreateOption","createOptionText","createOption","skipNoResults","noResultsText","allowSingleDeselect","disableSearchThreshold","disableSearch","enableSplitWordSearch","inheritSelectClasses","maxSelectedOptions","placeholderTextMultiple","placeholderTextSingle","searchContains","singleBackstrokeDelete","displayDisabledOptions","displaySelectedOptions","width","includeGroupLabelInSelected","maxShownResults"],s=function(e){return e.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})},i=function(e){var t;if(angular.isArray(e))return 0===e.length;if(angular.isObject(e))for(t in e)if(e.hasOwnProperty(t))return!1;return!0},{restrict:"A",require:"?ngModel",priority:1,link:function(a,l,o,d){var u,c,f,h,g,p,b,v,S,y,w;return a.disabledValuesHistory=a.disabledValuesHistory?a.disabledValuesHistory:[],l=$(l),l.addClass("localytics-chosen"),g=a.$eval(o.chosen)||{},angular.forEach(o,function(t,n){return e.call(r,n)>=0?o.$observe(n,function(e){return g[s(n)]="{{"===String(l.attr(o.$attr[n])).slice(0,2)?e:a.$eval(e),S()}):void 0}),b=function(){return l.addClass("loading").attr("disabled",!0).trigger("chosen:updated")},v=function(){return l.removeClass("loading"),angular.isDefined(o.disabled)?l.attr("disabled",o.disabled):l.attr("disabled",!1),l.trigger("chosen:updated")},u=null,c=!1,f=function(){var e;return u?l.trigger("chosen:updated"):(u=l.chosen(g).data("chosen"),angular.isObject(u)?e=u.default_text:void 0)},S=function(){return c?l.attr("data-placeholder",u.results_none_found).attr("disabled",!0):l.removeAttr("data-placeholder"),l.trigger("chosen:updated")},d?(p=d.$render,d.$render=function(){return p(),f()},o.multiple&&(w=function(){return d.$viewValue},a.$watch(w,d.$render,!0))):f(),o.$observe("disabled",function(){return l.trigger("chosen:updated")}),o.ngOptions&&d?(h=o.ngOptions.match(n),y=h[7],a.$watchCollection(y,function(e,r){var n;return n=t(function(){return angular.isUndefined(e)?b():(c=i(e),v(),S())})}),a.$on("$destroy",function(e){return"undefined"!=typeof timer&&null!==timer?t.cancel(timer):void 0})):void 0}}}])}).call(this);
(function(){var e=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};angular.module("localytics.directives",[]),angular.module("localytics.directives").directive("chosen",["$timeout",function(t){var n,r,i,s;return r=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,n=["persistentCreateOption","createOptionText","createOption","skipNoResults","noResultsText","allowSingleDeselect","disableSearchThreshold","disableSearch","enableSplitWordSearch","inheritSelectClasses","maxSelectedOptions","placeholderTextMultiple","placeholderTextSingle","searchContains","singleBackstrokeDelete","displayDisabledOptions","displaySelectedOptions","width","includeGroupLabelInSelected","maxShownResults"],s=function(e){return e.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})},i=function(e){var t;if(angular.isArray(e))return 0===e.length;if(angular.isObject(e))for(t in e)if(e.hasOwnProperty(t))return!1;return!0},{restrict:"A",require:"?ngModel",priority:1,link:function(a,l,o,d){var u,c,f,h,p,g,b,v,S,y,w;return a.disabledValuesHistory=a.disabledValuesHistory?a.disabledValuesHistory:[],l=$(l),l.addClass("localytics-chosen"),p=a.$eval(o.chosen)||{},angular.forEach(o,function(t,r){return e.call(n,r)>=0?o.$observe(r,function(e){return p[s(r)]="{{"===String(l.attr(o.$attr[r])).slice(0,2)?e:a.$eval(e),S()}):void 0}),b=function(){return l.addClass("loading").attr("disabled",!0).trigger("chosen:updated")},v=function(){return l.removeClass("loading"),angular.isDefined(o.disabled)?l.attr("disabled",o.disabled):l.attr("disabled",!1),l.trigger("chosen:updated")},u=null,c=!1,f=function(){var e;return u?l.trigger("chosen:updated"):(t(function(){u=l.chosen(p).data("chosen")}),angular.isObject(u)?e=u.default_text:void 0)},S=function(){return c?l.attr("data-placeholder",u.results_none_found).attr("disabled",!0):l.removeAttr("data-placeholder"),l.trigger("chosen:updated")},d?(g=d.$render,d.$render=function(){return g(),f()},l.on("chosen:hiding_dropdown",function(){return a.$apply(function(){return d.$setTouched()})}),o.multiple&&(w=function(){return d.$viewValue},a.$watch(w,d.$render,!0))):f(),o.$observe("disabled",function(){return l.trigger("chosen:updated")}),o.ngOptions&&d?(h=o.ngOptions.match(r),y=h[7],a.$watchCollection(y,function(e,n){var r;return r=t(function(){return angular.isUndefined(e)?b():(c=i(e),v(),S())})}),a.$on("$destroy",function(e){return"undefined"!=typeof timer&&null!==timer?t.cancel(timer):void 0})):void 0}}}])}).call(this);
// Generated by CoffeeScript 1.6.2
(function() {
angular.module('chosenExampleApp', ['localytics.directives']).config([
'$parseProvider', function($parseProvider) {
return $parseProvider.unwrapPromises(true);
}
]).controller('IndexCtrl', [
angular.module('chosenExampleApp', ['localytics.directives']).controller('IndexCtrl', [
'$scope', '$q', '$timeout', function($scope, $q, $timeout) {

@@ -39,2 +35,3 @@ var simulateAjax;

};
$scope.ngIfInherit = true;
$scope.myPets = ['cat'];

@@ -41,0 +38,0 @@ $scope.pets = {

{
"name": "angular-chosen-localytics",
"filename": "chosen.js",
"version": "1.3.0",
"version": "1.4.0",
"description": "Angular Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a Angular way",

@@ -40,2 +40,3 @@ "homepage": "http://github.com/leocaseiro/angular-chosen",

"slobo",
"lpsBetty",
"nike-17",

@@ -47,3 +48,3 @@ "vstene"

"chosen-npm": "^1.4.2",
"angular": "^1.2.0"
"angular": "^1.4.9"
},

@@ -54,2 +55,3 @@ "bugs": {

"devDependencies": {
"angular-mocks": "^1.4.9",
"del": "^2.2.0",

@@ -70,6 +72,17 @@ "gulp": "^3.9.1",

"gulp-util": "^3.0.7",
"jasmine-core": "^2.4.1",
"jshint": "^2.9.1",
"jshint-stylish": "^2.1.0",
"karma": "^0.13.22",
"karma-coffee-preprocessor": "^0.3.0",
"karma-jasmine": "^0.3.7",
"karma-jasmine-matchers": "^2.0.2",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.0",
"phantomjs-prebuilt": "^2.1.5",
"yargs": "^4.2.0"
},
"scripts": {
"test": "gulp test"
}
}

@@ -1,2 +0,2 @@

Angular Chosen Localytics [![bower](https://img.shields.io/badge/bower-v1.2.0-brightgreen.svg)](https://github.com/leocaseiro/angular-chosen) [![npm](https://img.shields.io/badge/npm-v1.2.0-brightgreen.svg)](https://www.npmjs.com/package/angular-chosen-localytics)
Angular Chosen Localytics [![Bower](https://img.shields.io/bower/v/angular-chosen-localytics.svg)](https://github.com/leocaseiro/angular-chosen) [![npm](https://img.shields.io/npm/v/angular-chosen-localytics.svg)](https://www.npmjs.com/package/angular-chosen-localytics)
==============

@@ -10,8 +10,8 @@

To use, include "localytics.directives" as a dependency in your Angular module. You can now
use the "chosen" directive as an attribute on any select element. Angular version 1.2+ is required.
use the "chosen" directive as an attribute on any select element. Angular version 1.3+ is required, but recomended 1.4.9+.
# [Full Documentation with Examples](http://leocaseiro.github.io/angular-chosen/)
## Installation (npm or bower)

@@ -30,3 +30,3 @@

Or download zip file
[Download v1.2.0](https://github.com/leocaseiro/angular-chosen/archive/1.2.0.zip)
[Download v1.3.0](https://github.com/leocaseiro/angular-chosen/archive/1.3.0.zip)

@@ -33,0 +33,0 @@

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