ng2-tagsinput
Advanced tools
Comparing version 0.0.6 to 0.1.0
"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()\">×</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()\">×</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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
16
18325
10
233
- Removedrxjs@^5.0.0-beta.12
- Removedtypings@^1.3.3
- Removedzone.js@^0.6.23
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@2.1.1(transitive)
- Removedansi-align@1.1.0(transitive)
- Removedansi-escapes@1.4.0(transitive)
- Removedansi-regex@2.1.15.0.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedarchy@1.0.0(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedarrify@1.0.1(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedboxen@0.6.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcapture-stack-trace@1.0.2(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcli-boxes@1.0.0(transitive)
- Removedcli-cursor@1.0.2(transitive)
- Removedcli-truncate@0.2.1(transitive)
- Removedclone@1.0.4(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcolumnify@1.6.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedconfigstore@2.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcreate-error-class@3.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddefaults@1.0.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddetect-indent@4.0.0(transitive)
- Removeddot-prop@3.0.0(transitive)
- Removedduplexer2@0.1.4(transitive)
- Removedelegant-spinner@1.0.1(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedexit-hook@1.1.1(transitive)
- Removedextend@3.0.2(transitive)
- Removedfilled-array@1.1.0(transitive)
- Removedform-data@2.5.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedgot@5.7.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas@1.0.4(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttp-proxy-agent@1.0.0(transitive)
- Removedhttps-proxy-agent@1.0.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-absolute@0.2.6(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-npm@1.0.0(transitive)
- Removedis-obj@1.0.1(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-redirect@1.0.0(transitive)
- Removedis-relative@0.2.1(transitive)
- Removedis-retry-allowed@1.2.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedis-unc-path@0.1.2(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedis-windows@0.2.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@3.0.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedlatest-version@2.0.0(transitive)
- Removedlazy-req@1.1.0(transitive)
- Removedlistify@1.0.3(transitive)
- Removedlockfile@1.0.4(transitive)
- Removedlog-update@1.0.2(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedlowercase-keys@1.0.1(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedmake-error-cause@1.2.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removednode-status-codes@1.0.0(transitive)
- Removednopt@1.0.10(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@1.1.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpackage-json@2.4.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedpopsicle@8.2.0(transitive)
- Removedpopsicle-proxy-agent@3.0.0(transitive)
- Removedpopsicle-retry@3.2.1(transitive)
- Removedpopsicle-rewrite@1.0.0(transitive)
- Removedpopsicle-status@2.0.1(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpromise-finally@2.2.1(transitive)
- Removedpsl@1.13.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedrc@1.2.8(transitive)
- Removedread-all-stream@3.1.0(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedregistry-auth-token@3.4.0(transitive)
- Removedregistry-url@3.1.0(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedrestore-cursor@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedsemver@5.0.35.7.2(transitive)
- Removedsemver-diff@2.1.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedslice-ansi@0.0.4(transitive)
- Removedslide@1.1.6(transitive)
- Removedsort-keys@1.1.2(transitive)
- Removedstring-template@1.0.0(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.16.0.1(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthroat@3.2.0(transitive)
- Removedthrowback@1.1.1(transitive)
- Removedtimed-out@3.1.3(transitive)
- Removedtouch@1.0.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedtypescript@2.9.2(transitive)
- Removedtypings@1.5.0(transitive)
- Removedtypings-core@1.6.1(transitive)
- Removedunc-path-regex@0.1.2(transitive)
- Removedunzip-response@1.0.2(transitive)
- Removedupdate-notifier@1.0.3(transitive)
- Removedurl-parse-lax@1.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@2.0.3(transitive)
- Removedwcwidth@1.0.1(transitive)
- Removedwidest-line@1.0.0(transitive)
- Removedwordwrap@1.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@1.3.4(transitive)
- Removedxdg-basedir@2.0.0(transitive)
- Removedxtend@4.0.2(transitive)
- Removedzip-object@0.1.0(transitive)
- Removedzone.js@0.6.26(transitive)
Updated@angular/core@^2.0.1