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

select2-component

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

select2-component - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

angular-variables.metadata.json

154

angular.component.js
"use strict";
import * as tslib_1 from "tslib";
import { Component, Directive, Input, Output, EventEmitter, ElementRef, ViewChild, Optional, Self, ChangeDetectorRef, ViewEncapsulation, Attribute, } from "@angular/core";
import { Component, Directive, Input, Output, EventEmitter, ViewChild, Optional, Self, ChangeDetectorRef, ViewEncapsulation, Attribute, } from "@angular/core";
import { FormGroupDirective, NgControl, NgForm, } from "@angular/forms";

@@ -13,5 +12,7 @@ import { Subject } from "rxjs";

}
Select2Hint = tslib_1.__decorate([
Directive({ selector: "select2-hint" })
], Select2Hint);
Select2Hint.decorators = [
{ type: Directive, args: [{ selector: "select2-hint" },] },
];
/** @nocollapse */
Select2Hint.ctorParameters = function () { return []; };
return Select2Hint;

@@ -486,106 +487,45 @@ }());

};
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Array)
], Select2.prototype, "data", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number)
], Select2.prototype, "minCountForSearch", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", String)
], Select2.prototype, "placeholder", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], Select2.prototype, "customSearchEnabled", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Boolean)
], Select2.prototype, "multiple", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object)
], Select2.prototype, "material", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Function)
], Select2.prototype, "editPattern", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", Object)
], Select2.prototype, "update", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", Object)
], Select2.prototype, "open", void 0);
tslib_1.__decorate([
Output(),
tslib_1.__metadata("design:type", Object)
], Select2.prototype, "search", void 0);
tslib_1.__decorate([
ViewChild("selection"),
tslib_1.__metadata("design:type", ElementRef)
], Select2.prototype, "selection", void 0);
tslib_1.__decorate([
ViewChild("searchInput"),
tslib_1.__metadata("design:type", ElementRef)
], Select2.prototype, "searchInput", void 0);
tslib_1.__decorate([
ViewChild("results"),
tslib_1.__metadata("design:type", ElementRef)
], Select2.prototype, "results", void 0);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [String])
], Select2.prototype, "id", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], Select2.prototype, "required", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], Select2.prototype, "disabled", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], Select2.prototype, "readonly", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Object),
tslib_1.__metadata("design:paramtypes", [Object])
], Select2.prototype, "value", null);
tslib_1.__decorate([
Input(),
tslib_1.__metadata("design:type", Number),
tslib_1.__metadata("design:paramtypes", [Number])
], Select2.prototype, "tabIndex", null);
Select2 = tslib_1.__decorate([
Component({
selector: "select2",
template: angularTemplateHtml,
encapsulation: ViewEncapsulation.None,
host: {
"[id]": "id",
"[attr.aria-invalid]": "_isErrorState()",
"[class.material]": "material === '' || this.material == true",
},
}),
tslib_1.__param(1, Optional()),
tslib_1.__param(2, Optional()),
tslib_1.__param(3, Self()), tslib_1.__param(3, Optional()),
tslib_1.__param(4, Attribute("tabindex")),
tslib_1.__metadata("design:paramtypes", [ChangeDetectorRef,
NgForm,
FormGroupDirective,
NgControl, String])
], Select2);
Select2.decorators = [
{ type: Component, args: [{
selector: "select2",
template: angularTemplateHtml,
encapsulation: ViewEncapsulation.None,
host: {
"[id]": "id",
"[attr.aria-invalid]": "_isErrorState()",
"[class.material]": "material === '' || this.material == true",
},
},] },
];
/** @nocollapse */
Select2.ctorParameters = function () { return [
{ type: ChangeDetectorRef, },
{ type: NgForm, decorators: [{ type: Optional },] },
{ type: FormGroupDirective, decorators: [{ type: Optional },] },
{ type: NgControl, decorators: [{ type: Self }, { type: Optional },] },
{ type: undefined, decorators: [{ type: Attribute, args: ["tabindex",] },] },
]; };
Select2.propDecorators = {
'data': [{ type: Input },],
'minCountForSearch': [{ type: Input },],
'placeholder': [{ type: Input },],
'customSearchEnabled': [{ type: Input },],
'multiple': [{ type: Input },],
'material': [{ type: Input },],
'editPattern': [{ type: Input },],
'update': [{ type: Output },],
'open': [{ type: Output },],
'search': [{ type: Output },],
'selection': [{ type: ViewChild, args: ["selection",] },],
'searchInput': [{ type: ViewChild, args: ["searchInput",] },],
'results': [{ type: ViewChild, args: ["results",] },],
'id': [{ type: Input },],
'required': [{ type: Input },],
'disabled': [{ type: Input },],
'readonly': [{ type: Input },],
'value': [{ type: Input },],
'tabIndex': [{ type: Input },],
};
return Select2;
}());
export { Select2 };
"use strict";
import * as tslib_1 from "tslib";
import { NgModule } from "@angular/core";

@@ -9,17 +8,19 @@ import { CommonModule } from "@angular/common";

}
Select2Module = tslib_1.__decorate([
NgModule({
declarations: [
Select2Hint,
Select2,
],
imports: [
CommonModule,
],
exports: [
Select2Hint,
Select2,
],
})
], Select2Module);
Select2Module.decorators = [
{ type: NgModule, args: [{
declarations: [
Select2Hint,
Select2,
],
imports: [
CommonModule,
],
exports: [
Select2Hint,
Select2,
],
},] },
];
/** @nocollapse */
Select2Module.ctorParameters = function () { return []; };
return Select2Module;

@@ -26,0 +27,0 @@ }());

{
"name": "select2-component",
"version": "3.1.0",
"version": "3.1.1",
"description": "A vuejs, reactjs and angular select component.",

@@ -26,2 +26,3 @@ "main": "index.js",

"@angular/compiler": "4.3.3",
"@angular/compiler-cli": "4.3.3",
"@angular/core": "4.3.3",

@@ -28,0 +29,0 @@ "@angular/forms": "4.3.3",

@@ -75,7 +75,7 @@ [![Dependency Status](https://david-dm.org/plantain-00/select2-component.svg)](https://david-dm.org/plantain-00/select2-component)

```ts
import { Select2Component } from "select2-component/angular";
import { Select2Module } from "select2-component/angular";
@NgModule({
imports: [BrowserModule, FormsModule],
declarations: [MainComponent, Select2Component],
imports: [BrowserModule, FormsModule, Select2Module],
declarations: [MainComponent],
bootstrap: [MainComponent],

@@ -140,2 +140,11 @@ })

```ts
// v3.1
import { Select2Module } from "select2-component/angular";
import { Select2 } from "select2-component/angular.component";
// v3.0
import { Select2Component } from "select2-component/angular";
```
```ts
// v3

@@ -142,0 +151,0 @@ <link rel="stylesheet" href="./node_modules/select2-component/select2.min.css" />

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