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

ng2-tagsinput

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-tagsinput - npm Package Compare versions

Comparing version 0.0.6 to 0.1.0

.travis.yml

54

lib/ng2-tagsinput-item.js
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require('@angular/core');

@@ -19,31 +10,22 @@ var Ng2TagsInputItem = (function () {

};
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], Ng2TagsInputItem.prototype, "selected", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], Ng2TagsInputItem.prototype, "text", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Number)
], Ng2TagsInputItem.prototype, "index", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], Ng2TagsInputItem.prototype, "tagRemoved", void 0);
Ng2TagsInputItem = __decorate([
core_1.Component({
selector: 'tag-input-item',
template: "{{text}}\n <span\n class=\"ng2-tag-input-remove\"\n (click)=\"removeTag()\">&times;</span>",
styles: ["\n :host {\n display: inline-block;\n background: #ccc;\n padding: 7px;\n border-radius: 90px;\n margin-right: 10px;\n }\n\n :host.ng2-tag-input-item-selected {\n color: white;\n background: #0d8bff;\n }\n\n .ng2-tag-input-remove {\n cursor: pointer;\n display: inline-block;\n padding: 0 3px;\n }\n "],
host: {
'[class.ng2-tag-input-item-selected]': 'selected'
}
}),
__metadata('design:paramtypes', [])
], Ng2TagsInputItem);
Ng2TagsInputItem.decorators = [
{ type: core_1.Component, args: [{
selector: 'tag-input-item',
template: "{{text}}\n <span\n class=\"ng2-tag-input-remove\"\n (click)=\"removeTag()\">&times;</span>",
styles: ["\n :host {\n display: inline-block;\n background: #ccc;\n padding: 7px;\n border-radius: 90px;\n margin-right: 10px;\n }\n :host.ng2-tag-input-item-selected {\n color: white;\n background: #0d8bff;\n }\n .ng2-tag-input-remove {\n cursor: pointer;\n display: inline-block;\n padding: 0 3px;\n }\n "],
host: {
'[class.ng2-tag-input-item-selected]': 'selected'
}
},] },
];
/** @nocollapse */
Ng2TagsInputItem.ctorParameters = [];
Ng2TagsInputItem.propDecorators = {
'selected': [{ type: core_1.Input },],
'text': [{ type: core_1.Input },],
'index': [{ type: core_1.Input },],
'tagRemoved': [{ type: core_1.Output },],
};
return Ng2TagsInputItem;
}());
exports.Ng2TagsInputItem = Ng2TagsInputItem;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require('@angular/core');

@@ -107,56 +98,26 @@ var Ng2TagsInput = (function () {

};
__decorate([
core_1.Input(),
__metadata('design:type', String)
], Ng2TagsInput.prototype, "placeholder", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Array)
], Ng2TagsInput.prototype, "model", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], Ng2TagsInput.prototype, "delimiterCode", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], Ng2TagsInput.prototype, "addOnBlur", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], Ng2TagsInput.prototype, "addOnEnter", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], Ng2TagsInput.prototype, "addOnPaste", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', RegExp)
], Ng2TagsInput.prototype, "allowedTagsPattern", void 0);
__decorate([
core_1.HostBinding('class.ng2-tag-input-focus'),
__metadata('design:type', Object)
], Ng2TagsInput.prototype, "isFocussed", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], Ng2TagsInput.prototype, "tagsChanged", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], Ng2TagsInput.prototype, "tagsAdded", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], Ng2TagsInput.prototype, "tagRemoved", void 0);
Ng2TagsInput = __decorate([
core_1.Component({
selector: 'tag-input',
template: "<tag-input-item\n [text]=\"tag\"\n [index]=\"index\"\n [selected]=\"selectedTag === index\"\n (tagRemoved)=\"_removeTag($event)\"\n *ngFor=\"let tag of tagsList; let index = index\">\n </tag-input-item>\n <input\n class=\"ng2-tag-input-field\"\n type=\"text\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (paste)=\"inputPaste($event)\"\n (keydown)=\"inputChanged($event)\"\n (blur)=\"inputBlurred($event)\"\n (focus)=\"inputFocused()\"\n #tagInputRef>",
styles: ["\n :host {\n display: block;\n box-shadow: 0 1px #ccc;\n padding: 5px 0;\n }\n :host.ng2-tag-input-focus {\n box-shadow: 0 2px #0d8bff;\n }\n .ng2-tag-input-field {\n display: inline-block;\n width: auto;\n box-shadow: none;\n border: 0;\n }\n "]
}),
__metadata('design:paramtypes', [])
], Ng2TagsInput);
Ng2TagsInput.decorators = [
{ type: core_1.Component, args: [{
selector: 'tag-input',
template: "<tag-input-item\n [text]=\"tag\"\n [index]=\"index\"\n [selected]=\"selectedTag === index\"\n (tagRemoved)=\"_removeTag($event)\"\n *ngFor=\"let tag of tagsList; let index = index\">\n </tag-input-item>\n <input\n class=\"ng2-tag-input-field\"\n type=\"text\"\n [placeholder]=\"placeholder\"\n [(ngModel)]=\"inputValue\"\n (paste)=\"inputPaste($event)\"\n (keydown)=\"inputChanged($event)\"\n (blur)=\"inputBlurred($event)\"\n (focus)=\"inputFocused()\"\n #tagInputRef>",
styles: ["\n :host {\n display: block;\n box-shadow: 0 1px #ccc;\n padding: 5px 0;\n }\n :host.ng2-tag-input-focus {\n box-shadow: 0 2px #0d8bff;\n }\n .ng2-tag-input-field {\n display: inline-block;\n width: auto;\n box-shadow: none;\n border: 0;\n }\n "]
},] },
];
/** @nocollapse */
Ng2TagsInput.ctorParameters = [];
Ng2TagsInput.propDecorators = {
'placeholder': [{ type: core_1.Input },],
'model': [{ type: core_1.Input },],
'delimiterCode': [{ type: core_1.Input },],
'addOnBlur': [{ type: core_1.Input },],
'addOnEnter': [{ type: core_1.Input },],
'addOnPaste': [{ type: core_1.Input },],
'allowedTagsPattern': [{ type: core_1.Input },],
'isFocussed': [{ type: core_1.HostBinding, args: ['class.ng2-tag-input-focus',] },],
'tagsChanged': [{ type: core_1.Output },],
'tagsAdded': [{ type: core_1.Output },],
'tagRemoved': [{ type: core_1.Output },],
};
return Ng2TagsInput;
}());
exports.Ng2TagsInput = Ng2TagsInput;

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

import { Ng2TagsInputItem } from './lib/ng2-tagsinput-item';
import { Ng2TagsInput } from "./lib/ng2-tagsinput";
export declare const NG2_TAG_INPUT_COMPONENTS: (typeof Ng2TagsInputItem | typeof Ng2TagsInput)[];
export declare class Ng2TagsInputModule {
}
"use strict";
var ng2_tagsinput_item_1 = require('./lib/ng2-tagsinput-item');
var core_1 = require('@angular/core');
var common_1 = require('@angular/common');
var forms_1 = require('@angular/forms');
var ng2_tagsinput_item_1 = require("./lib/ng2-tagsinput-item");
var ng2_tagsinput_1 = require("./lib/ng2-tagsinput");
exports.NG2_TAG_INPUT_COMPONENTS = [
ng2_tagsinput_item_1.Ng2TagsInputItem,
ng2_tagsinput_1.Ng2TagsInput
];
var Ng2TagsInputModule = (function () {
function Ng2TagsInputModule() {
}
Ng2TagsInputModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [
ng2_tagsinput_item_1.Ng2TagsInputItem,
ng2_tagsinput_1.Ng2TagsInput],
imports: [
common_1.CommonModule,
forms_1.FormsModule,
forms_1.ReactiveFormsModule
]
},] },
];
/** @nocollapse */
Ng2TagsInputModule.ctorParameters = [];
return Ng2TagsInputModule;
}());
exports.Ng2TagsInputModule = Ng2TagsInputModule;
{
"name": "ng2-tagsinput",
"version": "0.0.6",
"version": "0.1.0",
"description": "Typescript component for Tag Input",

@@ -8,3 +8,4 @@ "main": "ng2-tagsinput.js",

"dev": "tsc --watch",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "./node_modules/.bin/ngc"
},

@@ -28,8 +29,16 @@ "repository": {

"dependencies": {
"@angular/core": "^2.0.0",
"@angular/core": "^2.0.1"
},
"devDependencies": {
"@angular/common": "^2.0.1",
"@angular/compiler": "^2.0.1",
"@angular/compiler-cli": "^0.6.3",
"@angular/forms": "^2.0.1",
"@angular/platform-browser": "^2.0.1",
"@angular/platform-server": "^2.0.1",
"rxjs": "^5.0.0-beta.12",
"typescript": "^2.0.2",
"typings": "^1.3.3",
"zone.js": "^0.6.23",
"typings": "^1.3.3"
"zone.js": "^0.6.23"
}
}
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