Socket
Socket
Sign inDemoInstall

angular-2-dropdown-multiselect

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-2-dropdown-multiselect - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "angular-2-dropdown-multiselect",
"version": "1.0.7",
"version": "1.0.8",
"description": "Customizable dropdown multiselect in Angular 2 with bootstrap css.",

@@ -5,0 +5,0 @@ "main": "src/multiselect-dropdown.ts",

@@ -51,2 +51,3 @@ /*

this.dropdownClosed = new core_1.EventEmitter();
this.dropdownOpened = new core_1.EventEmitter();
this.onAdded = new core_1.EventEmitter();

@@ -131,3 +132,3 @@ this.onRemoved = new core_1.EventEmitter();

};
MultiselectDropdown.prototype.validate = function (c) {
MultiselectDropdown.prototype.validate = function (_c) {
return (this.model && this.model.length) ? null : {

@@ -139,3 +140,3 @@ required: {

};
MultiselectDropdown.prototype.registerOnValidatorChange = function (fn) {
MultiselectDropdown.prototype.registerOnValidatorChange = function (_fn) {
throw new Error('Method not implemented.');

@@ -149,5 +150,3 @@ };

this.isVisible = !this.isVisible;
if (!this.isVisible) {
this.dropdownClosed.emit();
}
this.isVisible ? this.dropdownOpened.emit() : this.dropdownClosed.emit();
};

@@ -157,3 +156,3 @@ MultiselectDropdown.prototype.isSelected = function (option) {

};
MultiselectDropdown.prototype.setSelected = function (event, option) {
MultiselectDropdown.prototype.setSelected = function (_event, option) {
if (!this.model) {

@@ -271,2 +270,6 @@ this.model = [];

__metadata("design:type", Object)
], MultiselectDropdown.prototype, "dropdownOpened", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", Object)
], MultiselectDropdown.prototype, "onAdded", void 0);

@@ -273,0 +276,0 @@ __decorate([

@@ -154,2 +154,3 @@ /*

@Output() dropdownClosed = new EventEmitter();
@Output() dropdownOpened = new EventEmitter();
@Output() onAdded = new EventEmitter();

@@ -252,3 +253,3 @@ @Output() onRemoved = new EventEmitter();

validate(c: AbstractControl): { [key: string]: any; } {
validate(_c: AbstractControl): { [key: string]: any; } {
return (this.model && this.model.length) ? null : {

@@ -261,3 +262,3 @@ required: {

registerOnValidatorChange(fn: () => void): void {
registerOnValidatorChange(_fn: () => void): void {
throw new Error('Method not implemented.');

@@ -273,5 +274,3 @@ }

this.isVisible = !this.isVisible;
if (!this.isVisible) {
this.dropdownClosed.emit();
}
this.isVisible ? this.dropdownOpened.emit() : this.dropdownClosed.emit();
}

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

setSelected(event: Event, option: IMultiSelectOption) {
setSelected(_event: Event, option: IMultiSelectOption) {
if (!this.model) {

@@ -286,0 +285,0 @@ this.model = [];

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