Socket
Socket
Sign inDemoInstall

aurelia-bootstrap-tagsinput

Package Overview
Dependencies
3
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

yarn.lock

94

dist/amd/aba-tags-input.js

@@ -66,3 +66,3 @@ define(['exports', 'aurelia-framework', 'jquery', 'bootstrap-tagsinput/dist/bootstrap-tagsinput'], function (exports, _aureliaFramework, _jquery) {

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;

@@ -75,40 +75,42 @@ var AbaTagsInputCustomElement = exports.AbaTagsInputCustomElement = (_dec = (0, _aureliaFramework.inject)(Element), _dec2 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec3 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec(_class = (_class2 = function () {

_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'allowDuplicates', _descriptor3, this);
_initDefineProp(this, 'placeholder', _descriptor3, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor4, this);
_initDefineProp(this, 'allowDuplicates', _descriptor4, this);
_initDefineProp(this, 'confirmKeys', _descriptor5, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor5, this);
_initDefineProp(this, 'focusClass', _descriptor6, this);
_initDefineProp(this, 'confirmKeys', _descriptor6, this);
_initDefineProp(this, 'freeInput', _descriptor7, this);
_initDefineProp(this, 'focusClass', _descriptor7, this);
_initDefineProp(this, 'itemValue', _descriptor8, this);
_initDefineProp(this, 'freeInput', _descriptor8, this);
_initDefineProp(this, 'itemText', _descriptor9, this);
_initDefineProp(this, 'itemValue', _descriptor9, this);
_initDefineProp(this, 'maxTags', _descriptor10, this);
_initDefineProp(this, 'itemText', _descriptor10, this);
_initDefineProp(this, 'maxChars', _descriptor11, this);
_initDefineProp(this, 'maxTags', _descriptor11, this);
_initDefineProp(this, 'onTagExists', _descriptor12, this);
_initDefineProp(this, 'maxChars', _descriptor12, this);
_initDefineProp(this, 'tagClass', _descriptor13, this);
_initDefineProp(this, 'onTagExists', _descriptor13, this);
_initDefineProp(this, 'trimValue', _descriptor14, this);
_initDefineProp(this, 'tagClass', _descriptor14, this);
_initDefineProp(this, 'typeahead', _descriptor15, this);
_initDefineProp(this, 'trimValue', _descriptor15, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor16, this);
_initDefineProp(this, 'typeahead', _descriptor16, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor17, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor17, this);
_initDefineProp(this, 'onItemAdded', _descriptor18, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor18, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor19, this);
_initDefineProp(this, 'onItemAdded', _descriptor19, this);
_initDefineProp(this, 'onItemRemoved', _descriptor20, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor20, this);
_initDefineProp(this, 'onItemRemoved', _descriptor21, this);
this.events = {};

@@ -122,3 +124,3 @@ this.methods = {};

AbaTagsInputCustomElement.prototype.attached = function attached() {
this.domElm = (0, _jquery2.default)(this.elm);
this.domElm = (0, _jquery2.default)(this.elm).find('input');

@@ -187,3 +189,3 @@ this.attachOptions();

this.domElm.on('itemAdded', function (e) {
_this.model = _this.domElm.tagsinput('items');
_this.value = _this.domElm.tagsinput('items');
if (typeof _this.onItemAdded === 'function') {

@@ -207,3 +209,3 @@ _this.onItemAdded(e);

this.domElm.on('itemRemoved', function (e) {
_this.model = _this.domElm.tagsinput('items');
_this.value = _this.domElm.tagsinput('items');
if (typeof _this.onItemRemoved === 'function') {

@@ -241,3 +243,4 @@ _this.onItemRemoved(e);

removeAll: function removeAll() {
return _this2.domElm.tagsinput('removeAll');
_this2.domElm.tagsinput('removeAll');
_this2.value = _this2.domElm.tagsinput('items');
}

@@ -257,11 +260,16 @@ };

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [_aureliaFramework.bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'placeholder', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return '';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [_aureliaFramework.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [_aureliaFramework.bindable], {
enumerable: true,

@@ -271,3 +279,3 @@ initializer: function initializer() {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [_aureliaFramework.bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [_aureliaFramework.bindable], {
enumerable: true,

@@ -277,3 +285,3 @@ initializer: function initializer() {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [_aureliaFramework.bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [_aureliaFramework.bindable], {
enumerable: true,

@@ -283,3 +291,3 @@ initializer: function initializer() {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [_aureliaFramework.bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [_aureliaFramework.bindable], {
enumerable: true,

@@ -289,18 +297,18 @@ initializer: function initializer() {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [_aureliaFramework.bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [_aureliaFramework.bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [_aureliaFramework.bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [_aureliaFramework.bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [_aureliaFramework.bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [_aureliaFramework.bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [_aureliaFramework.bindable], {
enumerable: true,

@@ -310,3 +318,3 @@ initializer: function initializer() {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [_aureliaFramework.bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [_aureliaFramework.bindable], {
enumerable: true,

@@ -316,3 +324,3 @@ initializer: function initializer() {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [_aureliaFramework.bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [_aureliaFramework.bindable], {
enumerable: true,

@@ -322,15 +330,15 @@ initializer: function initializer() {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [_aureliaFramework.bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [_aureliaFramework.bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [_aureliaFramework.bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [_aureliaFramework.bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [_aureliaFramework.bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [_aureliaFramework.bindable], {
enumerable: true,

@@ -337,0 +345,0 @@ initializer: null

@@ -8,3 +8,3 @@ 'use strict';

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;

@@ -72,40 +72,42 @@ var _aureliaFramework = require('aurelia-framework');

_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'allowDuplicates', _descriptor3, this);
_initDefineProp(this, 'placeholder', _descriptor3, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor4, this);
_initDefineProp(this, 'allowDuplicates', _descriptor4, this);
_initDefineProp(this, 'confirmKeys', _descriptor5, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor5, this);
_initDefineProp(this, 'focusClass', _descriptor6, this);
_initDefineProp(this, 'confirmKeys', _descriptor6, this);
_initDefineProp(this, 'freeInput', _descriptor7, this);
_initDefineProp(this, 'focusClass', _descriptor7, this);
_initDefineProp(this, 'itemValue', _descriptor8, this);
_initDefineProp(this, 'freeInput', _descriptor8, this);
_initDefineProp(this, 'itemText', _descriptor9, this);
_initDefineProp(this, 'itemValue', _descriptor9, this);
_initDefineProp(this, 'maxTags', _descriptor10, this);
_initDefineProp(this, 'itemText', _descriptor10, this);
_initDefineProp(this, 'maxChars', _descriptor11, this);
_initDefineProp(this, 'maxTags', _descriptor11, this);
_initDefineProp(this, 'onTagExists', _descriptor12, this);
_initDefineProp(this, 'maxChars', _descriptor12, this);
_initDefineProp(this, 'tagClass', _descriptor13, this);
_initDefineProp(this, 'onTagExists', _descriptor13, this);
_initDefineProp(this, 'trimValue', _descriptor14, this);
_initDefineProp(this, 'tagClass', _descriptor14, this);
_initDefineProp(this, 'typeahead', _descriptor15, this);
_initDefineProp(this, 'trimValue', _descriptor15, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor16, this);
_initDefineProp(this, 'typeahead', _descriptor16, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor17, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor17, this);
_initDefineProp(this, 'onItemAdded', _descriptor18, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor18, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor19, this);
_initDefineProp(this, 'onItemAdded', _descriptor19, this);
_initDefineProp(this, 'onItemRemoved', _descriptor20, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor20, this);
_initDefineProp(this, 'onItemRemoved', _descriptor21, this);
this.events = {};

@@ -119,3 +121,3 @@ this.methods = {};

AbaTagsInputCustomElement.prototype.attached = function attached() {
this.domElm = (0, _jquery2.default)(this.elm);
this.domElm = (0, _jquery2.default)(this.elm).find('input');

@@ -184,3 +186,3 @@ this.attachOptions();

this.domElm.on('itemAdded', function (e) {
_this.model = _this.domElm.tagsinput('items');
_this.value = _this.domElm.tagsinput('items');
if (typeof _this.onItemAdded === 'function') {

@@ -204,3 +206,3 @@ _this.onItemAdded(e);

this.domElm.on('itemRemoved', function (e) {
_this.model = _this.domElm.tagsinput('items');
_this.value = _this.domElm.tagsinput('items');
if (typeof _this.onItemRemoved === 'function') {

@@ -238,3 +240,4 @@ _this.onItemRemoved(e);

removeAll: function removeAll() {
return _this2.domElm.tagsinput('removeAll');
_this2.domElm.tagsinput('removeAll');
_this2.value = _this2.domElm.tagsinput('items');
}

@@ -254,11 +257,16 @@ };

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [_aureliaFramework.bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'placeholder', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return '';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [_aureliaFramework.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [_aureliaFramework.bindable], {
enumerable: true,

@@ -268,3 +276,3 @@ initializer: function initializer() {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [_aureliaFramework.bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [_aureliaFramework.bindable], {
enumerable: true,

@@ -274,3 +282,3 @@ initializer: function initializer() {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [_aureliaFramework.bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [_aureliaFramework.bindable], {
enumerable: true,

@@ -280,3 +288,3 @@ initializer: function initializer() {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [_aureliaFramework.bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [_aureliaFramework.bindable], {
enumerable: true,

@@ -286,18 +294,18 @@ initializer: function initializer() {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [_aureliaFramework.bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [_aureliaFramework.bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [_aureliaFramework.bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [_aureliaFramework.bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [_aureliaFramework.bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [_aureliaFramework.bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [_aureliaFramework.bindable], {
enumerable: true,

@@ -307,3 +315,3 @@ initializer: function initializer() {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [_aureliaFramework.bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [_aureliaFramework.bindable], {
enumerable: true,

@@ -313,3 +321,3 @@ initializer: function initializer() {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [_aureliaFramework.bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [_aureliaFramework.bindable], {
enumerable: true,

@@ -319,17 +327,17 @@ initializer: function initializer() {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [_aureliaFramework.bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [_aureliaFramework.bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [_aureliaFramework.bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [_aureliaFramework.bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [_aureliaFramework.bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class);

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

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;

@@ -55,40 +55,42 @@ function _initDefineProp(target, property, descriptor, context) {

_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'allowDuplicates', _descriptor3, this);
_initDefineProp(this, 'placeholder', _descriptor3, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor4, this);
_initDefineProp(this, 'allowDuplicates', _descriptor4, this);
_initDefineProp(this, 'confirmKeys', _descriptor5, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor5, this);
_initDefineProp(this, 'focusClass', _descriptor6, this);
_initDefineProp(this, 'confirmKeys', _descriptor6, this);
_initDefineProp(this, 'freeInput', _descriptor7, this);
_initDefineProp(this, 'focusClass', _descriptor7, this);
_initDefineProp(this, 'itemValue', _descriptor8, this);
_initDefineProp(this, 'freeInput', _descriptor8, this);
_initDefineProp(this, 'itemText', _descriptor9, this);
_initDefineProp(this, 'itemValue', _descriptor9, this);
_initDefineProp(this, 'maxTags', _descriptor10, this);
_initDefineProp(this, 'itemText', _descriptor10, this);
_initDefineProp(this, 'maxChars', _descriptor11, this);
_initDefineProp(this, 'maxTags', _descriptor11, this);
_initDefineProp(this, 'onTagExists', _descriptor12, this);
_initDefineProp(this, 'maxChars', _descriptor12, this);
_initDefineProp(this, 'tagClass', _descriptor13, this);
_initDefineProp(this, 'onTagExists', _descriptor13, this);
_initDefineProp(this, 'trimValue', _descriptor14, this);
_initDefineProp(this, 'tagClass', _descriptor14, this);
_initDefineProp(this, 'typeahead', _descriptor15, this);
_initDefineProp(this, 'trimValue', _descriptor15, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor16, this);
_initDefineProp(this, 'typeahead', _descriptor16, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor17, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor17, this);
_initDefineProp(this, 'onItemAdded', _descriptor18, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor18, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor19, this);
_initDefineProp(this, 'onItemAdded', _descriptor19, this);
_initDefineProp(this, 'onItemRemoved', _descriptor20, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor20, this);
_initDefineProp(this, 'onItemRemoved', _descriptor21, this);
this.events = {};

@@ -102,3 +104,3 @@ this.methods = {};

attached() {
this.domElm = $(this.elm);
this.domElm = $(this.elm).find('input');

@@ -165,3 +167,3 @@ this.attachOptions();

this.domElm.on('itemAdded', e => {
this.model = this.domElm.tagsinput('items');
this.value = this.domElm.tagsinput('items');
if (typeof this.onItemAdded === 'function') {

@@ -185,3 +187,3 @@ this.onItemAdded(e);

this.domElm.on('itemRemoved', e => {
this.model = this.domElm.tagsinput('items');
this.value = this.domElm.tagsinput('items');
if (typeof this.onItemRemoved === 'function') {

@@ -206,3 +208,6 @@ this.onItemRemoved(e);

remove: value => this.domElm.tagsinput('remove', value),
removeAll: () => this.domElm.tagsinput('removeAll')
removeAll: () => {
this.domElm.tagsinput('removeAll');
this.value = this.domElm.tagsinput('items');
}
};

@@ -219,11 +224,16 @@

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'placeholder', [bindable], {
enumerable: true,
initializer: function () {
return '';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [bindable], {
enumerable: true,
initializer: function () {
return false;
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [bindable], {
enumerable: true,

@@ -233,3 +243,3 @@ initializer: function () {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [bindable], {
enumerable: true,

@@ -239,3 +249,3 @@ initializer: function () {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [bindable], {
enumerable: true,

@@ -245,3 +255,3 @@ initializer: function () {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [bindable], {
enumerable: true,

@@ -251,18 +261,18 @@ initializer: function () {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [bindable], {
enumerable: true,
initializer: null
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [bindable], {
enumerable: true,
initializer: null
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [bindable], {
enumerable: true,
initializer: null
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [bindable], {
enumerable: true,
initializer: null
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [bindable], {
enumerable: true,
initializer: null
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [bindable], {
enumerable: true,

@@ -272,3 +282,3 @@ initializer: function () {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [bindable], {
enumerable: true,

@@ -278,3 +288,3 @@ initializer: function () {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [bindable], {
enumerable: true,

@@ -284,17 +294,17 @@ initializer: function () {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [bindable], {
enumerable: true,
initializer: null
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [bindable], {
enumerable: true,
initializer: null
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [bindable], {
enumerable: true,
initializer: null
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class);

@@ -6,3 +6,3 @@ 'use strict';

var inject, bindable, bindingMode, $, _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, AbaTagsInputCustomElement;
var inject, bindable, bindingMode, $, _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, AbaTagsInputCustomElement;

@@ -73,40 +73,42 @@ function _initDefineProp(target, property, descriptor, context) {

_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'allowDuplicates', _descriptor3, this);
_initDefineProp(this, 'placeholder', _descriptor3, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor4, this);
_initDefineProp(this, 'allowDuplicates', _descriptor4, this);
_initDefineProp(this, 'confirmKeys', _descriptor5, this);
_initDefineProp(this, 'cancelConfirmKeysOnEmpty', _descriptor5, this);
_initDefineProp(this, 'focusClass', _descriptor6, this);
_initDefineProp(this, 'confirmKeys', _descriptor6, this);
_initDefineProp(this, 'freeInput', _descriptor7, this);
_initDefineProp(this, 'focusClass', _descriptor7, this);
_initDefineProp(this, 'itemValue', _descriptor8, this);
_initDefineProp(this, 'freeInput', _descriptor8, this);
_initDefineProp(this, 'itemText', _descriptor9, this);
_initDefineProp(this, 'itemValue', _descriptor9, this);
_initDefineProp(this, 'maxTags', _descriptor10, this);
_initDefineProp(this, 'itemText', _descriptor10, this);
_initDefineProp(this, 'maxChars', _descriptor11, this);
_initDefineProp(this, 'maxTags', _descriptor11, this);
_initDefineProp(this, 'onTagExists', _descriptor12, this);
_initDefineProp(this, 'maxChars', _descriptor12, this);
_initDefineProp(this, 'tagClass', _descriptor13, this);
_initDefineProp(this, 'onTagExists', _descriptor13, this);
_initDefineProp(this, 'trimValue', _descriptor14, this);
_initDefineProp(this, 'tagClass', _descriptor14, this);
_initDefineProp(this, 'typeahead', _descriptor15, this);
_initDefineProp(this, 'trimValue', _descriptor15, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor16, this);
_initDefineProp(this, 'typeahead', _descriptor16, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor17, this);
_initDefineProp(this, 'onBeforeItemAdd', _descriptor17, this);
_initDefineProp(this, 'onItemAdded', _descriptor18, this);
_initDefineProp(this, 'onBeforeItemRemove', _descriptor18, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor19, this);
_initDefineProp(this, 'onItemAdded', _descriptor19, this);
_initDefineProp(this, 'onItemRemoved', _descriptor20, this);
_initDefineProp(this, 'onItemAddedOnInit', _descriptor20, this);
_initDefineProp(this, 'onItemRemoved', _descriptor21, this);
this.events = {};

@@ -120,3 +122,3 @@ this.methods = {};

AbaTagsInputCustomElement.prototype.attached = function attached() {
this.domElm = $(this.elm);
this.domElm = $(this.elm).find('input');

@@ -185,3 +187,3 @@ this.attachOptions();

this.domElm.on('itemAdded', function (e) {
_this.model = _this.domElm.tagsinput('items');
_this.value = _this.domElm.tagsinput('items');
if (typeof _this.onItemAdded === 'function') {

@@ -205,3 +207,3 @@ _this.onItemAdded(e);

this.domElm.on('itemRemoved', function (e) {
_this.model = _this.domElm.tagsinput('items');
_this.value = _this.domElm.tagsinput('items');
if (typeof _this.onItemRemoved === 'function') {

@@ -239,3 +241,4 @@ _this.onItemRemoved(e);

removeAll: function removeAll() {
return _this2.domElm.tagsinput('removeAll');
_this2.domElm.tagsinput('removeAll');
_this2.value = _this2.domElm.tagsinput('items');
}

@@ -255,11 +258,16 @@ };

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'placeholder', [bindable], {
enumerable: true,
initializer: function initializer() {
return '';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowDuplicates', [bindable], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'cancelConfirmKeysOnEmpty', [bindable], {
enumerable: true,

@@ -269,3 +277,3 @@ initializer: function initializer() {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'confirmKeys', [bindable], {
enumerable: true,

@@ -275,3 +283,3 @@ initializer: function initializer() {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'focusClass', [bindable], {
enumerable: true,

@@ -281,3 +289,3 @@ initializer: function initializer() {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'freeInput', [bindable], {
enumerable: true,

@@ -287,18 +295,18 @@ initializer: function initializer() {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemValue', [bindable], {
enumerable: true,
initializer: null
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'itemText', [bindable], {
enumerable: true,
initializer: null
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxTags', [bindable], {
enumerable: true,
initializer: null
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'maxChars', [bindable], {
enumerable: true,
initializer: null
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'onTagExists', [bindable], {
enumerable: true,
initializer: null
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'tagClass', [bindable], {
enumerable: true,

@@ -308,3 +316,3 @@ initializer: function initializer() {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'trimValue', [bindable], {
enumerable: true,

@@ -314,3 +322,3 @@ initializer: function initializer() {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'typeahead', [bindable], {
enumerable: true,

@@ -320,15 +328,15 @@ initializer: function initializer() {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemAdd', [bindable], {
enumerable: true,
initializer: null
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onBeforeItemRemove', [bindable], {
enumerable: true,
initializer: null
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAdded', [bindable], {
enumerable: true,
initializer: null
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemAddedOnInit', [bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'onItemRemoved', [bindable], {
enumerable: true,

@@ -335,0 +343,0 @@ initializer: null

{
"name": "aurelia-bootstrap-tagsinput",
"version": "0.1.2",
"version": "0.2.0",
"description": "An Aurelia Custom Element for the 3rd party addon [Bootstrap Tags Input]",

@@ -5,0 +5,0 @@ "keywords": [

@@ -7,5 +7,5 @@ # Aurelia-Bootstrap-Tagsinput

### Usage
A quick example of the code in action. Note that the value is available under the `model.bind`.
A quick example of the code in action. Note that the value is available under the `value.bind`.
```html
<aba-tags-input element.bind="tag" model.bind="post.categories"></aba-tags-input>
<aba-tags-input element.bind="tag" value.bind="post.categories"></aba-tags-input>
```

@@ -43,3 +43,3 @@

```html
<aba-tags-input element.bind="tag" model.bind="post.categories"></aba-tags-input>
<aba-tags-input element.bind="tag" value.bind="post.categories"></aba-tags-input>
```

@@ -68,3 +68,3 @@

```html
<aba-tags-input element.bind="tag" model.bind="post.categories"></aba-tags-input>
<aba-tags-input element.bind="tag" value.bind="post.categories"></aba-tags-input>
```

@@ -133,1 +133,4 @@

```
### License
[MIT License](https://github.com/ghiscoding/Aurelia-Bootstrap-Addons/blob/master/LICENSE)

@@ -10,4 +10,7 @@ import {inject, bindable, bindingMode} from 'aurelia-framework';

@bindable({defaultBindingMode: bindingMode.twoWay}) element;
@bindable({defaultBindingMode: bindingMode.twoWay}) model;
@bindable({defaultBindingMode: bindingMode.twoWay}) value;
// plugin own variables
@bindable placeholder = '';
// options (from the View), with some defaults

@@ -46,3 +49,3 @@ @bindable allowDuplicates = false;

// reference to the DOM element
this.domElm = $(this.elm);
this.domElm = $(this.elm).find('input');

@@ -122,3 +125,3 @@ // create TagsInput

this.domElm.on('itemAdded', (e) => {
this.model = this.domElm.tagsinput('items');
this.value = this.domElm.tagsinput('items');
if (typeof this.onItemAdded === 'function') {

@@ -142,3 +145,3 @@ this.onItemAdded(e);

this.domElm.on('itemRemoved', (e) => {
this.model = this.domElm.tagsinput('items');
this.value = this.domElm.tagsinput('items');
if (typeof this.onItemRemoved === 'function') {

@@ -164,3 +167,6 @@ this.onItemRemoved(e);

remove: (value) => this.domElm.tagsinput('remove', value),
removeAll: () => this.domElm.tagsinput('removeAll')
removeAll: () => {
this.domElm.tagsinput('removeAll');
this.value = this.domElm.tagsinput('items');
}
};

@@ -167,0 +173,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 not supported yet

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc