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.6.0 to 1.7.0

12

dist/angular-chosen.js
/**
* angular-chosen-localytics - Angular Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a Angular way
* @version v1.5.1
* @version v1.7.0
* @link http://github.com/leocaseiro/angular-chosen

@@ -8,3 +8,3 @@ * @license MIT

(function() {
var chosen,
var chosenModule,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -14,5 +14,5 @@

chosen = angular.module('localytics.directives');
chosenModule = angular.module('localytics.directives');
chosen.provider('chosen', function() {
chosenModule.provider('chosen', function() {
var options;

@@ -30,3 +30,3 @@ options = {};

chosen.directive('chosen', [
chosenModule.directive('chosen', [
'chosen', '$timeout', function(config, $timeout) {

@@ -59,3 +59,3 @@ var CHOSEN_OPTION_WHITELIST, NG_OPTIONS_REGEXP, isEmpty, snakeCase;

link: function(scope, element, attr, ngModel) {
var directiveOptions, empty, initOrUpdate, match, options, origRender, startLoading, stopLoading, updateMessage, valuesExpr, viewWatch;
var chosen, directiveOptions, empty, initOrUpdate, match, options, origRender, startLoading, stopLoading, updateMessage, valuesExpr, viewWatch;
scope.disabledValuesHistory = scope.disabledValuesHistory ? scope.disabledValuesHistory : [];

@@ -62,0 +62,0 @@ element = $(element);

/**
* angular-chosen-localytics - Angular Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a Angular way
* @version v1.5.1
* @version v1.7.0
* @link http://github.com/leocaseiro/angular-chosen
* @license MIT
*/
(function(){var e,n=[].indexOf||function(e){for(var n=0,t=this.length;n<t;n++)if(n in this&&this[n]===e)return n;return-1};angular.module("localytics.directives",[]),e=angular.module("localytics.directives"),e.provider("chosen",function(){var e;return e={},{setOption:function(n){angular.extend(e,n)},$get:function(){return e}}}),e.directive("chosen",["chosen","$timeout",function(t,r){var i,a,s,l;return a=/^\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]+?))?$/,i=["persistentCreateOption","createOptionText","createOption","skipNoResults","noResultsText","allowSingleDeselect","disableSearchThreshold","disableSearch","enableSplitWordSearch","inheritSelectClasses","maxSelectedOptions","placeholderTextMultiple","placeholderTextSingle","searchContains","singleBackstrokeDelete","displayDisabledOptions","displaySelectedOptions","width","includeGroupLabelInSelected","maxShownResults"],l=function(e){return e.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})},s=function(e){var n;if(angular.isArray(e))return 0===e.length;if(angular.isObject(e))for(n in e)if(e.hasOwnProperty(n))return!1;return!0},{restrict:"A",require:"?ngModel",priority:1,link:function(o,u,c,d){var f,h,p,g,v,b,y,S,w,O,m;if(o.disabledValuesHistory=o.disabledValuesHistory?o.disabledValuesHistory:[],u=$(u),u.addClass("localytics-chosen"),f=o.$eval(c.chosen)||{},v=angular.copy(t),angular.extend(v,f),angular.forEach(c,function(e,t){if(n.call(i,t)>=0)return c.$observe(t,function(e){var n;return n=String(u.attr(c.$attr[t])).slice(0,2),v[l(t)]="{{"===n?e:o.$eval(e),w()})}),y=function(){return u.addClass("loading").attr("disabled",!0).trigger("chosen:updated")},S=function(){return u.removeClass("loading"),angular.isDefined(c.disabled)?u.attr("disabled",c.disabled):u.attr("disabled",!1),u.trigger("chosen:updated")},e=null,h=!1,p=function(){var n,t;if(e){if(t=$(u.parent()).find("div.chosen-drop"),t&&t.length>0&&parseInt(t.css("left"))>=0)return;return u.trigger("chosen:updated")}if(o.$evalAsync(function(){e=u.chosen(v).data("chosen")}),angular.isObject(e))return n=e.default_text},w=function(){return e&&h?u.attr("data-placeholder",e.results_none_found).attr("disabled",!0):u.removeAttr("data-placeholder"),u.trigger("chosen:updated")},d?(b=d.$render,d.$render=function(){return b(),p()},u.on("chosen:hiding_dropdown",function(){return o.$apply(function(){return d.$setTouched()})}),c.multiple&&(m=function(){return d.$viewValue},o.$watch(m,d.$render,!0))):p(),c.$observe("disabled",function(){return u.trigger("chosen:updated")}),c.ngOptions&&d)return g=c.ngOptions.match(a),O=g[7],o.$watchCollection(O,function(e,n){var t;return t=r(function(){return angular.isUndefined(e)?y():(h=s(e),S(),w())})}),o.$on("$destroy",function(e){if("undefined"!=typeof timer&&null!==timer)return r.cancel(timer)})}}}])}).call(this);
(function(){var e,n=[].indexOf||function(e){for(var n=0,t=this.length;n<t;n++)if(n in this&&this[n]===e)return n;return-1};angular.module("localytics.directives",[]),e=angular.module("localytics.directives"),e.provider("chosen",function(){var e;return e={},{setOption:function(n){angular.extend(e,n)},$get:function(){return e}}}),e.directive("chosen",["chosen","$timeout",function(e,t){var r,i,a,s;return i=/^\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()})},a=function(e){var n;if(angular.isArray(e))return 0===e.length;if(angular.isObject(e))for(n in e)if(e.hasOwnProperty(n))return!1;return!0},{restrict:"A",require:"?ngModel",priority:1,link:function(l,o,u,c){var d,f,h,p,g,v,b,y,S,w,O,m;if(l.disabledValuesHistory=l.disabledValuesHistory?l.disabledValuesHistory:[],o=$(o),o.addClass("localytics-chosen"),f=l.$eval(u.chosen)||{},v=angular.copy(e),angular.extend(v,f),angular.forEach(u,function(e,t){if(n.call(r,t)>=0)return u.$observe(t,function(e){var n;return n=String(o.attr(u.$attr[t])).slice(0,2),v[s(t)]="{{"===n?e:l.$eval(e),w()})}),y=function(){return o.addClass("loading").attr("disabled",!0).trigger("chosen:updated")},S=function(){return o.removeClass("loading"),angular.isDefined(u.disabled)?o.attr("disabled",u.disabled):o.attr("disabled",!1),o.trigger("chosen:updated")},d=null,h=!1,p=function(){var e,n;if(d){if(n=$(o.parent()).find("div.chosen-drop"),n&&n.length>0&&parseInt(n.css("left"))>=0)return;return o.trigger("chosen:updated")}if(l.$evalAsync(function(){d=o.chosen(v).data("chosen")}),angular.isObject(d))return e=d.default_text},w=function(){return d&&h?o.attr("data-placeholder",d.results_none_found).attr("disabled",!0):o.removeAttr("data-placeholder"),o.trigger("chosen:updated")},c?(b=c.$render,c.$render=function(){return b(),p()},o.on("chosen:hiding_dropdown",function(){return l.$apply(function(){return c.$setTouched()})}),u.multiple&&(m=function(){return c.$viewValue},l.$watch(m,c.$render,!0))):p(),u.$observe("disabled",function(){return o.trigger("chosen:updated")}),u.ngOptions&&c)return g=u.ngOptions.match(i),O=g[7],l.$watchCollection(O,function(e,n){var r;return r=t(function(){return angular.isUndefined(e)?y():(h=a(e),S(),w())})}),l.$on("$destroy",function(e){if("undefined"!=typeof timer&&null!==timer)return t.cancel(timer)})}}}])}).call(this);

@@ -1,3 +0,6 @@

### Please mark the options you have done, before open this Issue. We'll prioritize the issues that are consistent and completed.
> If you are going to be lazy asking me properly, I'll be lazy answering to you (@leocaseiro)
### Please make sure you can mark all the options, before open this Issue. I'll prioritise the issues that are consistent and completed.
- [ ] I've read the documentation on http://leocaseiro.github.io/angular-chosen.

@@ -4,0 +7,0 @@ - [ ] I've searched on [github issues](https://github.com/leocaseiro/angular-chosen/issues?utf8=%E2%9C%93&q=is%3Aissue) and [stackoverflow](http://stackoverflow.com/questions/tagged/angular-chosen) before open this issue.

@@ -5,3 +5,3 @@ {

"main": "dist/angular-chosen.js",
"version": "1.6.0",
"version": "1.7.0",
"description": "Angular Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a Angular way",

@@ -25,23 +25,24 @@ "homepage": "http://github.com/leocaseiro/angular-chosen",

"contributors": [
"LukeMason",
"leocaseiro",
"stefanvermaas",
"abuggia",
"charandas",
"dariusriggins",
"darlanalves",
"dougludlow",
"failpunk",
"frnan",
"gaui",
"paulpflug",
"iamnewspecies",
"ilychkov",
"kfarst",
"dariusriggins",
"charandas",
"failpunk",
"leocaseiro",
"lpsBetty",
"lukeMason",
"nike-17",
"odi55555",
"paulpflug",
"simison",
"ilychkov",
"darlanalves",
"dougludlow",
"Odi55555",
"slobo",
"lpsBetty",
"nike-17",
"stefanvermaas",
"vantanev",
"vstene",
"frnan",
"zlodes"

@@ -48,0 +49,0 @@ ],

@@ -31,9 +31,9 @@ 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)

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-chosen-localytics/1.4.0/angular-chosen.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-chosen-localytics/1.7.0/angular-chosen.min.js"></script>
```
Or download zip file
> [Download v1.6.0](https://github.com/leocaseiro/angular-chosen/archive/1.6.0.zip)
> [Download v1.7.0](https://github.com/leocaseiro/angular-chosen/archive/1.7.0.zip)

@@ -40,0 +40,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