New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gumga-chips-ng

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gumga-chips-ng - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

docs/1.2.2/app.js

2

bower.json
{
"name": "gumga-chips-ng",
"version": "1.2.1",
"version": "1.2.2",
"description": "gumga-chips-ng",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

{
"name": "gumga-chips-ng",
"version": "1.2.1",
"version": "1.2.2",
"description": "gumga-chips-ng",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -69,2 +69,12 @@ const _ = require('lodash');

const getOthersChips = () => {
let dates = angular.element('gumga-chips');
let others = dates.filter(i => !angular.equals(dates[i], $element[0]));
return others;
}
const closeOthersChips = () => {
angular.forEach(getOthersChips(), elm => angular.element(elm).find('div.input-chips-content').scope().$ctrl.close());
}
ctrl.isStart = () => {

@@ -76,8 +86,8 @@ return $attrs.inputPosition == 'start';

return ctrl.tagging && ctrl.inputValue != undefined && ctrl.inputValue != ''
&& ctrl.inputValue != null && ctrl.inputValue.trim() != '' && $element.find('ul[ng-transclude="options"]').hasClass('open');
&& ctrl.inputValue != null && ctrl.inputValue.trim() != '' && $element.find('ul[ng-transclude="options"]').hasClass('open');
}
ctrl.showNoOptions = () => {
return $element.find('gumga-chips-option').find('li.option-container').length == 0
&& $element.find('ul[ng-transclude="options"]').hasClass('open');
return $element.find('gumga-chips-option').find('li.option-container').length == 0
&& $element.find('ul[ng-transclude="options"]').hasClass('open');
}

@@ -120,2 +130,3 @@

ctrl.removeFocusedItems = () => {
closeOthersChips();
if ($element.find('gumga-chips-option').find('li.option-container').length == 0) {

@@ -225,3 +236,3 @@ ctrl.changeModel();

elm.find('li.option-container').removeClass('option-focused');
if(next.find('li').hasClass('ng-hide')){
if (next.find('li').hasClass('ng-hide')) {
ctrl.nextOption(evt, next);

@@ -255,3 +266,3 @@ return;

elm.find('li.option-container').removeClass('option-focused');
if(previous.find('li').hasClass('ng-hide')){
if (previous.find('li').hasClass('ng-hide')) {
ctrl.prevOption(evt, previous);

@@ -349,9 +360,9 @@ return;

ctrl.inputOldValue = $element.find('input').val();
}
ctrl.hasOptionAvaliable = () => {
$scope.asda= true
return $element.find('gumga-chips-option').find('li.option-container').length > 0
&& $element.find('gumga-chips-option').find('li.option-container:not(.ng-hide)').length > 0;
$scope.asda = true
return $element.find('gumga-chips-option').find('li.option-container').length > 0
&& $element.find('gumga-chips-option').find('li.option-container:not(.ng-hide)').length > 0;
}

@@ -361,3 +372,3 @@

$element.find('li.option-container').removeClass('option-focused');
if(ctrl.hasOptionAvaliable()){
if (ctrl.hasOptionAvaliable()) {
let ell = getFirstOption(Array.from($element.find('gumga-chips-option')));

@@ -370,6 +381,6 @@ ell.find('li.option-container').addClass('option-focused');

let el = angular.element(elms[0]);
if(el.find('li.option-container').length == 0 || el.find('li.option-container').hasClass('ng-hide')){
if (el.find('li.option-container').length == 0 || el.find('li.option-container').hasClass('ng-hide')) {
elms.shift();
return getFirstOption(elms);
}else{
} else {
return el;

@@ -401,7 +412,7 @@ }

if (toReturn) {
if($attrs.filterOptionBy == 'start'){
if ($attrs.filterOptionBy == 'start') {
toReturn = !option[key].toString().toLowerCase().startsWith(ctrl.inputValue.toLowerCase());
}else if($attrs.filterOptionBy == 'end'){
} else if ($attrs.filterOptionBy == 'end') {
toReturn = !option[key].toString().toLowerCase().endsWith(ctrl.inputValue.toLowerCase());
}else{
} else {
toReturn = option[key].toString().toLowerCase().indexOf(ctrl.inputValue.toLowerCase()) == -1;

@@ -408,0 +419,0 @@ }

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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