mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
Delete probably unused stuff
This commit is contained in:
parent
9349d245a0
commit
25fdaf66b8
18 changed files with 0 additions and 1666 deletions
|
@ -1 +0,0 @@
|
||||||
deny from all
|
|
|
@ -1,66 +0,0 @@
|
||||||
.icon-github {
|
|
||||||
background: no-repeat url('../img/github-16px.png');
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accordion {
|
|
||||||
margin-bottom: -3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accordion-group {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.twitter-typeahead .tt-query,
|
|
||||||
.twitter-typeahead .tt-hint {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.twitter-typeahead .tt-hint {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tt-menu {
|
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
left: 0;
|
|
||||||
z-index: 1000;
|
|
||||||
display: none;
|
|
||||||
float: left;
|
|
||||||
min-width: 160px;
|
|
||||||
padding: 5px 0;
|
|
||||||
margin: 2px 0 0;
|
|
||||||
list-style: none;
|
|
||||||
font-size: 14px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
border: 1px solid #cccccc;
|
|
||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
||||||
border-radius: 4px;
|
|
||||||
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
|
||||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
|
||||||
background-clip: padding-box;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tt-suggestion {
|
|
||||||
display: block;
|
|
||||||
padding: 3px 20px;
|
|
||||||
clear: both;
|
|
||||||
font-weight: normal;
|
|
||||||
line-height: 1.428571429;
|
|
||||||
color: #333333;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tt-suggestion:hover,
|
|
||||||
.tt-suggestion:focus {
|
|
||||||
color: #ffffff;
|
|
||||||
text-decoration: none;
|
|
||||||
outline: 0;
|
|
||||||
background-color: #428bca;
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
$(function () {
|
|
||||||
$('input, select').on('change', function (event) {
|
|
||||||
var $element = $(event.target),
|
|
||||||
$container = $element.closest('.example');
|
|
||||||
|
|
||||||
if (!$element.data('tagsinput'))
|
|
||||||
return;
|
|
||||||
|
|
||||||
var val = $element.val();
|
|
||||||
if (val === null)
|
|
||||||
val = "null";
|
|
||||||
$('code', $('pre.val', $container)).html(($.isArray(val) ? JSON.stringify(val) : "\"" + val.replace('"', '\\"') + "\""));
|
|
||||||
$('code', $('pre.items', $container)).html(JSON.stringify($element.tagsinput('items')));
|
|
||||||
}).trigger('change');
|
|
||||||
});
|
|
|
@ -1,84 +0,0 @@
|
||||||
$('.example_typeahead > > input').tagsinput({
|
|
||||||
typeahead: {
|
|
||||||
source: function (query) {
|
|
||||||
return $.getJSON('assets/citynames.json');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.example_objects_as_tags > > input').tagsinput({
|
|
||||||
itemValue: 'value',
|
|
||||||
itemText: 'text',
|
|
||||||
typeahead: {
|
|
||||||
source: function (query) {
|
|
||||||
return $.getJSON('assets/cities.json');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('.example_objects_as_tags > > input').tagsinput('add', {"value": 1, "text": "Amsterdam", "continent": "Europe"});
|
|
||||||
$('.example_objects_as_tags > > input').tagsinput('add', {"value": 4, "text": "Washington", "continent": "America"});
|
|
||||||
$('.example_objects_as_tags > > input').tagsinput('add', {"value": 7, "text": "Sydney", "continent": "Australia"});
|
|
||||||
$('.example_objects_as_tags > > input').tagsinput('add', {"value": 10, "text": "Beijing", "continent": "Asia"});
|
|
||||||
$('.example_objects_as_tags > > input').tagsinput('add', {"value": 13, "text": "Cairo", "continent": "Africa"});
|
|
||||||
|
|
||||||
$('.example_tagclass > > input').tagsinput({
|
|
||||||
tagClass: function (item) {
|
|
||||||
switch (item.continent) {
|
|
||||||
case 'Europe' :
|
|
||||||
return 'label label-info';
|
|
||||||
case 'America' :
|
|
||||||
return 'label label-danger label-important';
|
|
||||||
case 'Australia':
|
|
||||||
return 'label label-success';
|
|
||||||
case 'Africa' :
|
|
||||||
return 'label';
|
|
||||||
case 'Asia' :
|
|
||||||
return 'label label-warning';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
itemValue: 'value',
|
|
||||||
itemText: 'text',
|
|
||||||
typeahead: {
|
|
||||||
source: function (query) {
|
|
||||||
return $.getJSON('assets/cities.json');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('.example_tagclass > > input').tagsinput('add', {"value": 1, "text": "Amsterdam", "continent": "Europe"});
|
|
||||||
$('.example_tagclass > > input').tagsinput('add', {"value": 4, "text": "Washington", "continent": "America"});
|
|
||||||
$('.example_tagclass > > input').tagsinput('add', {"value": 7, "text": "Sydney", "continent": "Australia"});
|
|
||||||
$('.example_tagclass > > input').tagsinput('add', {"value": 10, "text": "Beijing", "continent": "Asia"});
|
|
||||||
$('.example_tagclass > > input').tagsinput('add', {"value": 13, "text": "Cairo", "continent": "Africa"});
|
|
||||||
|
|
||||||
angular.module('AngularExample', ['bootstrap-tagsinput'])
|
|
||||||
.controller('CityTagsInputController',
|
|
||||||
function CityTagsInputController($scope, $http) {
|
|
||||||
// Init with some cities
|
|
||||||
$scope.cities = [
|
|
||||||
{"value": 1, "text": "Amsterdam", "continent": "Europe"},
|
|
||||||
{"value": 4, "text": "Washington", "continent": "America"},
|
|
||||||
{"value": 7, "text": "Sydney", "continent": "Australia"},
|
|
||||||
{"value": 10, "text": "Beijing", "continent": "Asia"},
|
|
||||||
{"value": 13, "text": "Cairo", "continent": "Africa"}
|
|
||||||
];
|
|
||||||
|
|
||||||
$scope.queryCities = function (query) {
|
|
||||||
return $http.get('assets/cities.json');
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.getTagClass = function (city) {
|
|
||||||
switch (city.continent) {
|
|
||||||
case 'Europe' :
|
|
||||||
return 'label label-info';
|
|
||||||
case 'America' :
|
|
||||||
return 'label label-danger label-important';
|
|
||||||
case 'Australia':
|
|
||||||
return 'label label-success';
|
|
||||||
case 'Africa' :
|
|
||||||
return 'label';
|
|
||||||
case 'Asia' :
|
|
||||||
return 'label label-warning';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
|
|
@ -1,101 +0,0 @@
|
||||||
var citynames = new Bloodhound({
|
|
||||||
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
|
|
||||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
|
||||||
prefetch: {
|
|
||||||
url: 'assets/citynames.json',
|
|
||||||
filter: function (list) {
|
|
||||||
return $.map(list, function (cityname) {
|
|
||||||
return {name: cityname};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
citynames.initialize();
|
|
||||||
|
|
||||||
var cities = new Bloodhound({
|
|
||||||
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('text'),
|
|
||||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
|
||||||
prefetch: 'assets/cities.json'
|
|
||||||
});
|
|
||||||
cities.initialize();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Typeahead
|
|
||||||
*/
|
|
||||||
var elt = $('.example_typeahead > > input');
|
|
||||||
elt.tagsinput({
|
|
||||||
typeaheadjs: {
|
|
||||||
name: 'citynames',
|
|
||||||
displayKey: 'name',
|
|
||||||
valueKey: 'name',
|
|
||||||
source: citynames.ttAdapter()
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Objects as tags
|
|
||||||
*/
|
|
||||||
elt = $('.example_objects_as_tags > > input');
|
|
||||||
elt.tagsinput({
|
|
||||||
itemValue: 'value',
|
|
||||||
itemText: 'text',
|
|
||||||
typeaheadjs: {
|
|
||||||
name: 'cities',
|
|
||||||
displayKey: 'text',
|
|
||||||
source: cities.ttAdapter()
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
elt.tagsinput('add', {"value": 1, "text": "Amsterdam", "continent": "Europe"});
|
|
||||||
elt.tagsinput('add', {"value": 4, "text": "Washington", "continent": "America"});
|
|
||||||
elt.tagsinput('add', {"value": 7, "text": "Sydney", "continent": "Australia"});
|
|
||||||
elt.tagsinput('add', {"value": 10, "text": "Beijing", "continent": "Asia"});
|
|
||||||
elt.tagsinput('add', {"value": 13, "text": "Cairo", "continent": "Africa"});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Categorizing tags
|
|
||||||
*/
|
|
||||||
elt = $('.example_tagclass > > input');
|
|
||||||
elt.tagsinput({
|
|
||||||
tagClass: function (item) {
|
|
||||||
switch (item.continent) {
|
|
||||||
case 'Europe' :
|
|
||||||
return 'label label-primary';
|
|
||||||
case 'America' :
|
|
||||||
return 'label label-danger label-important';
|
|
||||||
case 'Australia':
|
|
||||||
return 'label label-success';
|
|
||||||
case 'Africa' :
|
|
||||||
return 'label label-default';
|
|
||||||
case 'Asia' :
|
|
||||||
return 'label label-warning';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
itemValue: 'value',
|
|
||||||
itemText: 'text',
|
|
||||||
// typeaheadjs: {
|
|
||||||
// name: 'cities',
|
|
||||||
// displayKey: 'text',
|
|
||||||
// source: cities.ttAdapter()
|
|
||||||
// }
|
|
||||||
typeaheadjs: [
|
|
||||||
{
|
|
||||||
hint: true,
|
|
||||||
highlight: true,
|
|
||||||
minLength: 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'cities',
|
|
||||||
displayKey: 'text',
|
|
||||||
source: cities.ttAdapter()
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
elt.tagsinput('add', {"value": 1, "text": "Amsterdam", "continent": "Europe"});
|
|
||||||
elt.tagsinput('add', {"value": 4, "text": "Washington", "continent": "America"});
|
|
||||||
elt.tagsinput('add', {"value": 7, "text": "Sydney", "continent": "Australia"});
|
|
||||||
elt.tagsinput('add', {"value": 10, "text": "Beijing", "continent": "Asia"});
|
|
||||||
elt.tagsinput('add', {"value": 13, "text": "Cairo", "continent": "Africa"});
|
|
||||||
|
|
||||||
// HACK: overrule hardcoded display inline-block of typeahead.js
|
|
||||||
$(".twitter-typeahead").css('display', 'inline');
|
|
|
@ -1,77 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"value": 1,
|
|
||||||
"text": "Amsterdam",
|
|
||||||
"continent": "Europe"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 2,
|
|
||||||
"text": "London",
|
|
||||||
"continent": "Europe"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 3,
|
|
||||||
"text": "Paris",
|
|
||||||
"continent": "Europe"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 4,
|
|
||||||
"text": "Washington",
|
|
||||||
"continent": "America"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 5,
|
|
||||||
"text": "Mexico City",
|
|
||||||
"continent": "America"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 6,
|
|
||||||
"text": "Buenos Aires",
|
|
||||||
"continent": "America"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 7,
|
|
||||||
"text": "Sydney",
|
|
||||||
"continent": "Australia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 8,
|
|
||||||
"text": "Wellington",
|
|
||||||
"continent": "Australia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 9,
|
|
||||||
"text": "Canberra",
|
|
||||||
"continent": "Australia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 10,
|
|
||||||
"text": "Beijing",
|
|
||||||
"continent": "Asia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 11,
|
|
||||||
"text": "New Delhi",
|
|
||||||
"continent": "Asia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 12,
|
|
||||||
"text": "Kathmandu",
|
|
||||||
"continent": "Asia"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 13,
|
|
||||||
"text": "Cairo",
|
|
||||||
"continent": "Africa"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 14,
|
|
||||||
"text": "Cape Town",
|
|
||||||
"continent": "Africa"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 15,
|
|
||||||
"text": "Kinshasa",
|
|
||||||
"continent": "Africa"
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,17 +0,0 @@
|
||||||
[
|
|
||||||
"Amsterdam",
|
|
||||||
"London",
|
|
||||||
"Paris",
|
|
||||||
"Washington",
|
|
||||||
"New York",
|
|
||||||
"Los Angeles",
|
|
||||||
"Sydney",
|
|
||||||
"Melbourne",
|
|
||||||
"Canberra",
|
|
||||||
"Beijing",
|
|
||||||
"New Delhi",
|
|
||||||
"Kathmandu",
|
|
||||||
"Cairo",
|
|
||||||
"Cape Town",
|
|
||||||
"Kinshasa"
|
|
||||||
]
|
|
|
@ -1,155 +0,0 @@
|
||||||
/* ========================================================================
|
|
||||||
* jquery.limitText.js v0.0.1
|
|
||||||
*
|
|
||||||
* ========================================================================
|
|
||||||
* Copyright 2015 Phillip Molaro
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
||||||
* ========================================================================
|
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
*
|
|
||||||
<textarea id="myTextArea" cols="120" rows="30" data-status-message="#status"></textarea>
|
|
||||||
<div id="status" class="text-right"></div>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function () {
|
|
||||||
$('#myTextArea').limitText();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
*
|
|
||||||
* Options:
|
|
||||||
* @param limit (integer) - The cutoff character count for the field
|
|
||||||
* Default: 200
|
|
||||||
* @param warningLimit (integer) - The remaining character count to trigger class change
|
|
||||||
* Default: 10
|
|
||||||
* @param statusMessage (string) - A jQuery selector to id an existing status container DOM element
|
|
||||||
* If left empty, a default will be added after the element
|
|
||||||
* Default: ''
|
|
||||||
* @param counterClass (string) - Class to apply to the status area, and replaced on warning
|
|
||||||
* Default: 'text-primary' (Bootstrap helper class)
|
|
||||||
* @param warningClass (string) - Class applied to status area when warningLimit is reached.
|
|
||||||
* Replaces the counterClass on warning
|
|
||||||
* Default: 'text-danger' (Bootstrap helper class)
|
|
||||||
* @param containerElement (string) - DOM element to be inserted if statusMessage is undefined
|
|
||||||
* Default: '<div>'
|
|
||||||
* @param containerClass (string) - Class applied to the status container.
|
|
||||||
* Default: 'limit-text-status' (no definition)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
+function ($) {
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* LimitText Class Definition
|
|
||||||
*/
|
|
||||||
var LimitText = function (element, options) {
|
|
||||||
this.options = options;
|
|
||||||
this.$element = $(element);
|
|
||||||
// if an existing container is not defined, then a default will be created
|
|
||||||
this.$status = (this.options.statusMessage.length) ?
|
|
||||||
$(this.options.statusMessage) : $(this.options.containerElement);
|
|
||||||
|
|
||||||
// Add classes to the status container, and insert base text
|
|
||||||
this.$status
|
|
||||||
.addClass(this.options.containerClass + ' ' + this.options.counterClass)
|
|
||||||
.append('<small><strong>' +
|
|
||||||
this.options.limit + '</strong> characters remaining</small>');
|
|
||||||
|
|
||||||
// reference not available til we've appended the html snippet
|
|
||||||
this.$count = $('strong', this.$status);
|
|
||||||
|
|
||||||
// insert the default message container if one isn't already defined
|
|
||||||
if (!this.options.statusMessage.length) this.$element.after(this.$status);
|
|
||||||
|
|
||||||
// set our event handler and proxy it to properly set the context
|
|
||||||
this.$element.on('input.limitText.data-api propertychange.limitText.data-api', $.proxy(this.checkCount, this));
|
|
||||||
|
|
||||||
// and run initial check of current value
|
|
||||||
this.checkCount();
|
|
||||||
};
|
|
||||||
|
|
||||||
LimitText.VERSION = '0.0.1';
|
|
||||||
LimitText.NAME = 'limitText';
|
|
||||||
|
|
||||||
LimitText.DEFAULTS = {
|
|
||||||
limit: 200,
|
|
||||||
warningLimit: 10,
|
|
||||||
statusMessage: '',
|
|
||||||
// These two are Bootstrap text emphasis classes
|
|
||||||
// that you can override in the config, or roll
|
|
||||||
// your own of the same name
|
|
||||||
counterClass: 'text-primary',
|
|
||||||
warningClass: 'text-danger',
|
|
||||||
// The default container element is only used if an
|
|
||||||
// existing container (statusMessage) is not defined
|
|
||||||
containerElement: '<div>',
|
|
||||||
containerClass: 'limit-text-status'
|
|
||||||
};
|
|
||||||
|
|
||||||
LimitText.prototype.checkCount = function () {
|
|
||||||
var currVal = this.$element.val();
|
|
||||||
|
|
||||||
if (currVal.length > this.options.limit) {
|
|
||||||
// reset the currVal, so that it stays within the limit
|
|
||||||
currVal = currVal.substr(0, this.options.limit - 1);
|
|
||||||
this.$element.val(currVal);
|
|
||||||
}
|
|
||||||
|
|
||||||
var remaining = this.options.limit - currVal.length;
|
|
||||||
|
|
||||||
this.$count.html(remaining);
|
|
||||||
|
|
||||||
if (remaining <= this.options.warningLimit) {
|
|
||||||
this.$status.removeClass(this.options.counterClass).addClass(this.options.warningClass);
|
|
||||||
} else {
|
|
||||||
this.$status.removeClass(this.options.warningClass).addClass(this.options.counterClass);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
LimitText.prototype.destroy = function () {
|
|
||||||
$.removeData(this.$element[0], 'limitText');
|
|
||||||
|
|
||||||
// remove the inserted status container
|
|
||||||
if (!this.options.statusMessage.length) {
|
|
||||||
this.$status.remove();
|
|
||||||
} else {
|
|
||||||
this.$status
|
|
||||||
.removeClass(
|
|
||||||
this.options.containerClass + ' ' +
|
|
||||||
this.options.counterClass + ' ' +
|
|
||||||
this.options.warningClass)
|
|
||||||
.empty();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$element.off('input.limitText.data-api propertychange.limitText.data-api');
|
|
||||||
this.$element = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
// limitText Plugin Definition
|
|
||||||
|
|
||||||
function Plugin(option) {
|
|
||||||
return this.each(function () {
|
|
||||||
var $this = $(this),
|
|
||||||
data = $this.data('limitText'),
|
|
||||||
options = $.extend({}, LimitText.DEFAULTS, $this.data(), typeof option == 'object' && option);
|
|
||||||
|
|
||||||
if (!data) $this.data('limitText', (data = new LimitText(this, options)));
|
|
||||||
if (typeof option == 'string') data[option]();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
var old = $.fn.limitText;
|
|
||||||
|
|
||||||
$.fn.limitText = Plugin;
|
|
||||||
$.fn.limitText.Constructor = LimitText;
|
|
||||||
|
|
||||||
// limitText No Conflict
|
|
||||||
|
|
||||||
$.fn.limitText.noConflict = function () {
|
|
||||||
$.fn.limitText = old;
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
}(jQuery);
|
|
2
assets/jquery.limitText.min.js
vendored
2
assets/jquery.limitText.min.js
vendored
|
@ -1,2 +0,0 @@
|
||||||
/* jquery.limitText.js v0.0.1 - (c)2015 Phillip Molaro - MIT Licensed https://github.com/twbs/bootstrap/blob/master/LICENSE */
|
|
||||||
+function(t){"use strict";var s=function(s,i){this.options=i,this.$element=t(s),this.$status=t(this.options.statusMessage.length?this.options.statusMessage:this.options.containerElement),this.$status.addClass(this.options.containerClass+" "+this.options.counterClass).append("<small><strong>"+this.options.limit+"</strong> characters remaining</small>"),this.$count=t("strong",this.$status),this.options.statusMessage.length||this.$element.after(this.$status),this.$element.on("input.limitText.data-api propertychange.limitText.data-api",t.proxy(this.checkCount,this)),this.checkCount()};s.VERSION="0.0.1",s.NAME="limitText",s.DEFAULTS={limit:200,warningLimit:10,statusMessage:"",counterClass:"text-primary",warningClass:"text-danger",containerElement:"<div>",containerClass:"limit-text-status"},s.prototype.checkCount=function(){var t=this.$element.val();t.length>this.options.limit&&(t=t.substr(0,this.options.limit-1),this.$element.val(t));var s=this.options.limit-t.length;this.$count.html(s),s<=this.options.warningLimit?this.$status.removeClass(this.options.counterClass).addClass(this.options.warningClass):this.$status.removeClass(this.options.warningClass).addClass(this.options.counterClass)},s.prototype.destroy=function(){t.removeData(this.$element[0],"limitText"),this.options.statusMessage.length?this.$status.removeClass(this.options.containerClass+" "+this.options.counterClass+" "+this.options.warningClass).empty():this.$status.remove(),this.$element.off("input.limitText.data-api propertychange.limitText.data-api"),this.$element=null};var i=t.fn.limitText;t.fn.limitText=function(i){return this.each(function(){var n=t(this),e=n.data("limitText"),a=t.extend({},s.DEFAULTS,n.data(),"object"==typeof i&&i);e||n.data("limitText",e=new s(this,a)),"string"==typeof i&&e[i]()})},t.fn.limitText.Constructor=s,t.fn.limitText.noConflict=function(){return t.fn.limitText=i,this}}(jQuery);
|
|
93
dist/bootstrap-tagsinput-angular.js
vendored
93
dist/bootstrap-tagsinput-angular.js
vendored
|
@ -1,93 +0,0 @@
|
||||||
angular.module('bootstrap-tagsinput', [])
|
|
||||||
.directive('bootstrapTagsinput', [function () {
|
|
||||||
|
|
||||||
function getItemProperty(scope, property) {
|
|
||||||
if (!property)
|
|
||||||
return undefined;
|
|
||||||
|
|
||||||
if (angular.isFunction(scope.$parent[property]))
|
|
||||||
return scope.$parent[property];
|
|
||||||
|
|
||||||
return function (item) {
|
|
||||||
return item[property];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
restrict: 'EA',
|
|
||||||
scope: {
|
|
||||||
model: '=ngModel'
|
|
||||||
},
|
|
||||||
template: '<select multiple></select>',
|
|
||||||
replace: false,
|
|
||||||
link: function (scope, element, attrs) {
|
|
||||||
$(function () {
|
|
||||||
if (!angular.isArray(scope.model))
|
|
||||||
scope.model = [];
|
|
||||||
|
|
||||||
var select = $('select', element);
|
|
||||||
var typeaheadSourceArray = attrs.typeaheadSource ? attrs.typeaheadSource.split('.') : null;
|
|
||||||
var typeaheadSource = typeaheadSourceArray ?
|
|
||||||
(typeaheadSourceArray.length > 1 ?
|
|
||||||
scope.$parent[typeaheadSourceArray[0]][typeaheadSourceArray[1]]
|
|
||||||
: scope.$parent[typeaheadSourceArray[0]])
|
|
||||||
: null;
|
|
||||||
|
|
||||||
select.tagsinput(scope.$parent[attrs.options || ''] || {
|
|
||||||
typeahead: {
|
|
||||||
source: angular.isFunction(typeaheadSource) ? typeaheadSource : null
|
|
||||||
},
|
|
||||||
itemValue: getItemProperty(scope, attrs.itemvalue),
|
|
||||||
itemText: getItemProperty(scope, attrs.itemtext),
|
|
||||||
confirmKeys: getItemProperty(scope, attrs.confirmkeys) ? JSON.parse(attrs.confirmkeys) : [13],
|
|
||||||
tagClass: angular.isFunction(scope.$parent[attrs.tagclass]) ? scope.$parent[attrs.tagclass] : function (item) {
|
|
||||||
return attrs.tagclass;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
for (var i = 0; i < scope.model.length; i++) {
|
|
||||||
select.tagsinput('add', scope.model[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
select.on('itemAdded', function (event) {
|
|
||||||
if (scope.model.indexOf(event.item) === -1)
|
|
||||||
scope.model.push(event.item);
|
|
||||||
});
|
|
||||||
|
|
||||||
select.on('itemRemoved', function (event) {
|
|
||||||
var idx = scope.model.indexOf(event.item);
|
|
||||||
if (idx !== -1)
|
|
||||||
scope.model.splice(idx, 1);
|
|
||||||
});
|
|
||||||
|
|
||||||
// create a shallow copy of model's current state, needed to determine
|
|
||||||
// diff when model changes
|
|
||||||
var prev = scope.model.slice();
|
|
||||||
scope.$watch("model", function () {
|
|
||||||
var added = scope.model.filter(function (i) {
|
|
||||||
return prev.indexOf(i) === -1;
|
|
||||||
}),
|
|
||||||
removed = prev.filter(function (i) {
|
|
||||||
return scope.model.indexOf(i) === -1;
|
|
||||||
}),
|
|
||||||
i;
|
|
||||||
|
|
||||||
prev = scope.model.slice();
|
|
||||||
|
|
||||||
// Remove tags no longer in binded model
|
|
||||||
for (i = 0; i < removed.length; i++) {
|
|
||||||
select.tagsinput('remove', removed[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh remaining tags
|
|
||||||
select.tagsinput('refresh');
|
|
||||||
|
|
||||||
// Add new items in model as tags
|
|
||||||
for (i = 0; i < added.length; i++) {
|
|
||||||
select.tagsinput('add', added[i]);
|
|
||||||
}
|
|
||||||
}, true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}]);
|
|
7
dist/bootstrap-tagsinput-angular.min.js
vendored
7
dist/bootstrap-tagsinput-angular.min.js
vendored
|
@ -1,7 +0,0 @@
|
||||||
/*
|
|
||||||
* bootstrap-tagsinput v0.6.1 by Tim Schlechter
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
angular.module("bootstrap-tagsinput",[]).directive("bootstrapTagsinput",[function(){function a(a,b){return b?angular.isFunction(a.$parent[b])?a.$parent[b]:function(a){return a[b]}:void 0}return{restrict:"EA",scope:{model:"=ngModel"},template:"<select multiple></select>",replace:!1,link:function(b,c,d){$(function(){angular.isArray(b.model)||(b.model=[]);var e=$("select",c),f=d.typeaheadSource?d.typeaheadSource.split("."):null,g=f?f.length>1?b.$parent[f[0]][f[1]]:b.$parent[f[0]]:null;e.tagsinput(b.$parent[d.options||""]||{typeahead:{source:angular.isFunction(g)?g:null},itemValue:a(b,d.itemvalue),itemText:a(b,d.itemtext),confirmKeys:a(b,d.confirmkeys)?JSON.parse(d.confirmkeys):[13],tagClass:angular.isFunction(b.$parent[d.tagclass])?b.$parent[d.tagclass]:function(a){return d.tagclass}});for(var h=0;h<b.model.length;h++)e.tagsinput("add",b.model[h]);e.on("itemAdded",function(a){-1===b.model.indexOf(a.item)&&b.model.push(a.item)}),e.on("itemRemoved",function(a){var c=b.model.indexOf(a.item);-1!==c&&b.model.splice(c,1)});var i=b.model.slice();b.$watch("model",function(){var a,c=b.model.filter(function(a){return-1===i.indexOf(a)}),d=i.filter(function(a){return-1===b.model.indexOf(a)});for(i=b.model.slice(),a=0;a<d.length;a++)e.tagsinput("remove",d[a]);for(e.tagsinput("refresh"),a=0;a<c.length;a++)e.tagsinput("add",c[a])},!0)})}}}]);
|
|
||||||
//# sourceMappingURL=bootstrap-tagsinput-angular.min.js.map
|
|
61
dist/bootstrap-tagsinput-angular.min.js.map
vendored
61
dist/bootstrap-tagsinput-angular.min.js.map
vendored
|
@ -1,61 +0,0 @@
|
||||||
{
|
|
||||||
"version": 3,
|
|
||||||
"sources": [
|
|
||||||
"../src/bootstrap-tagsinput-angular.js"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"angular",
|
|
||||||
"module",
|
|
||||||
"directive",
|
|
||||||
"getItemProperty",
|
|
||||||
"scope",
|
|
||||||
"property",
|
|
||||||
"isFunction",
|
|
||||||
"$parent",
|
|
||||||
"item",
|
|
||||||
"undefined",
|
|
||||||
"restrict",
|
|
||||||
"model",
|
|
||||||
"template",
|
|
||||||
"replace",
|
|
||||||
"link",
|
|
||||||
"element",
|
|
||||||
"attrs",
|
|
||||||
"$",
|
|
||||||
"isArray",
|
|
||||||
"select",
|
|
||||||
"typeaheadSourceArray",
|
|
||||||
"typeaheadSource",
|
|
||||||
"split",
|
|
||||||
"length",
|
|
||||||
"tagsinput",
|
|
||||||
"options",
|
|
||||||
"typeahead",
|
|
||||||
"source",
|
|
||||||
"itemValue",
|
|
||||||
"itemvalue",
|
|
||||||
"itemText",
|
|
||||||
"itemtext",
|
|
||||||
"confirmKeys",
|
|
||||||
"confirmkeys",
|
|
||||||
"JSON",
|
|
||||||
"parse",
|
|
||||||
"tagClass",
|
|
||||||
"tagclass",
|
|
||||||
"i",
|
|
||||||
"on",
|
|
||||||
"event",
|
|
||||||
"indexOf",
|
|
||||||
"push",
|
|
||||||
"idx",
|
|
||||||
"splice",
|
|
||||||
"prev",
|
|
||||||
"slice",
|
|
||||||
"$watch",
|
|
||||||
"added",
|
|
||||||
"filter",
|
|
||||||
"removed"
|
|
||||||
],
|
|
||||||
"mappings": ";;;;;AAAAA,QAAQC,OAAO,0BACdC,UAAU,sBAAuB,WAEhC,QAASC,GAAgBC,EAAOC,GAC9B,MAAKA,GAGDL,QAAQM,WAAWF,EAAMG,QAAQF,IAC5BD,EAAMG,QAAQF,GAEhB,SAASG,GACd,MAAOA,GAAKH,IANLI,OAUX,OACEC,SAAU,KACVN,OACEO,MAAO,YAETC,SAAU,6BACVC,SAAS,EACTC,KAAM,SAASV,EAAOW,EAASC,GAC7BC,EAAE,WACKjB,QAAQkB,QAAQd,EAAMO,SACzBP,EAAMO,SAER,IAAIQ,GAASF,EAAE,SAAUF,GACrBK,EAAuBJ,EAAMK,gBAAkBL,EAAMK,gBAAgBC,MAAM,KAAO,KAClFD,EAAkBD,EACjBA,EAAqBG,OAAS,EAC3BnB,EAAMG,QAAQa,EAAqB,IAAIA,EAAqB,IAC1DhB,EAAMG,QAAQa,EAAqB,IACvC,IAEND,GAAOK,UAAUpB,EAAMG,QAAQS,EAAMS,SAAW,MAC9CC,WACEC,OAAW3B,QAAQM,WAAWe,GAAmBA,EAAkB,MAErEO,UAAWzB,EAAgBC,EAAOY,EAAMa,WACxCC,SAAW3B,EAAgBC,EAAOY,EAAMe,UACxCC,YAAc7B,EAAgBC,EAAOY,EAAMiB,aAAeC,KAAKC,MAAMnB,EAAMiB,cAAgB,IAC3FG,SAAWpC,QAAQM,WAAWF,EAAMG,QAAQS,EAAMqB,WAAajC,EAAMG,QAAQS,EAAMqB,UAAY,SAAS7B,GAAQ,MAAOQ,GAAMqB,WAG/H,KAAK,GAAIC,GAAI,EAAGA,EAAIlC,EAAMO,MAAMY,OAAQe,IACtCnB,EAAOK,UAAU,MAAOpB,EAAMO,MAAM2B,GAGtCnB,GAAOoB,GAAG,YAAa,SAASC,GACU,KAApCpC,EAAMO,MAAM8B,QAAQD,EAAMhC,OAC5BJ,EAAMO,MAAM+B,KAAKF,EAAMhC,QAG3BW,EAAOoB,GAAG,cAAe,SAASC,GAChC,GAAIG,GAAMvC,EAAMO,MAAM8B,QAAQD,EAAMhC,KACxB,MAARmC,GACFvC,EAAMO,MAAMiC,OAAOD,EAAK,IAK5B,IAAIE,GAAOzC,EAAMO,MAAMmC,OACvB1C,GAAM2C,OAAO,QAAS,WACpB,GAEIT,GAFAU,EAAQ5C,EAAMO,MAAMsC,OAAO,SAASX,GAAI,MAA2B,KAApBO,EAAKJ,QAAQH,KAC5DY,EAAUL,EAAKI,OAAO,SAASX,GAAI,MAAkC,KAA3BlC,EAAMO,MAAM8B,QAAQH,IAMlE,KAHAO,EAAOzC,EAAMO,MAAMmC,QAGdR,EAAI,EAAGA,EAAIY,EAAQ3B,OAAQe,IAC9BnB,EAAOK,UAAU,SAAU0B,EAAQZ,GAOrC,KAHAnB,EAAOK,UAAU,WAGZc,EAAI,EAAGA,EAAIU,EAAMzB,OAAQe,IAC5BnB,EAAOK,UAAU,MAAOwB,EAAMV,MAE/B",
|
|
||||||
"file": "bootstrap-tagsinput-angular.min.js"
|
|
||||||
}
|
|
66
dist/bootstrap-tagsinput.css
vendored
66
dist/bootstrap-tagsinput.css
vendored
|
@ -1,66 +0,0 @@
|
||||||
.bootstrap-tagsinput {
|
|
||||||
background-color: #fff;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
||||||
display: inline-block;
|
|
||||||
padding: 4px 6px;
|
|
||||||
color: #555;
|
|
||||||
vertical-align: middle;
|
|
||||||
border-radius: 4px;
|
|
||||||
max-width: 100%;
|
|
||||||
line-height: 22px;
|
|
||||||
cursor: text;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput input {
|
|
||||||
border: none;
|
|
||||||
box-shadow: none;
|
|
||||||
outline: none;
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 0 6px;
|
|
||||||
margin: 0;
|
|
||||||
width: auto;
|
|
||||||
max-width: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput.form-control input::-moz-placeholder {
|
|
||||||
color: #777;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput.form-control input:-ms-input-placeholder {
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput.form-control input::-webkit-input-placeholder {
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput input:focus {
|
|
||||||
border: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput .tag {
|
|
||||||
margin-right: 2px;
|
|
||||||
color: white;
|
|
||||||
background: #3298dc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput .tag [data-role="remove"] {
|
|
||||||
margin-left: 8px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput .tag [data-role="remove"]:after {
|
|
||||||
content: "x";
|
|
||||||
padding: 0px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput .tag [data-role="remove"]:hover {
|
|
||||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-tagsinput .tag [data-role="remove"]:hover:active {
|
|
||||||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
||||||
}
|
|
667
dist/bootstrap-tagsinput.js
vendored
667
dist/bootstrap-tagsinput.js
vendored
|
@ -1,667 +0,0 @@
|
||||||
(function ($) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var defaultOptions = {
|
|
||||||
tagClass: function (item) {
|
|
||||||
return 'label label-info';
|
|
||||||
},
|
|
||||||
itemValue: function (item) {
|
|
||||||
return item ? item.toString() : item;
|
|
||||||
},
|
|
||||||
itemText: function (item) {
|
|
||||||
return this.itemValue(item);
|
|
||||||
},
|
|
||||||
itemTitle: function (item) {
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
freeInput: true,
|
|
||||||
addOnBlur: true,
|
|
||||||
maxTags: undefined,
|
|
||||||
maxChars: undefined,
|
|
||||||
confirmKeys: [13, 44],
|
|
||||||
delimiter: ',',
|
|
||||||
delimiterRegex: null,
|
|
||||||
cancelConfirmKeysOnEmpty: true,
|
|
||||||
onTagExists: function (item, $tag) {
|
|
||||||
$tag.hide().fadeIn();
|
|
||||||
},
|
|
||||||
trimValue: false,
|
|
||||||
allowDuplicates: false
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor function
|
|
||||||
*/
|
|
||||||
function TagsInput(element, options) {
|
|
||||||
this.itemsArray = [];
|
|
||||||
|
|
||||||
this.$element = $(element);
|
|
||||||
this.$element.hide();
|
|
||||||
|
|
||||||
this.isSelect = (element.tagName === 'SELECT');
|
|
||||||
this.multiple = (this.isSelect && element.hasAttribute('multiple'));
|
|
||||||
this.objectItems = options && options.itemValue;
|
|
||||||
this.placeholderText = element.hasAttribute('placeholder') ? this.$element.attr('placeholder') : '';
|
|
||||||
this.inputSize = Math.max(1, this.placeholderText.length);
|
|
||||||
|
|
||||||
this.$container = $('<div class="bootstrap-tagsinput"></div>');
|
|
||||||
this.$input = $('<input type="text" placeholder="' + this.placeholderText + '"/>').appendTo(this.$container);
|
|
||||||
|
|
||||||
this.$element.before(this.$container);
|
|
||||||
|
|
||||||
this.build(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
TagsInput.prototype = {
|
|
||||||
constructor: TagsInput,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds the given item as a new tag. Pass true to dontPushVal to prevent
|
|
||||||
* updating the elements val()
|
|
||||||
*/
|
|
||||||
add: function (item, dontPushVal, options) {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
if (self.options.maxTags && self.itemsArray.length >= self.options.maxTags)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Ignore falsey values, except false
|
|
||||||
if (item !== false && !item)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Trim value
|
|
||||||
if (typeof item === "string" && self.options.trimValue) {
|
|
||||||
item = $.trim(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Throw an error when trying to add an object while the itemValue option was not set
|
|
||||||
if (typeof item === "object" && !self.objectItems)
|
|
||||||
throw("Can't add objects when itemValue option is not set");
|
|
||||||
|
|
||||||
// Ignore strings only containg whitespace
|
|
||||||
if (item.toString().match(/^\s*$/))
|
|
||||||
return;
|
|
||||||
|
|
||||||
// If SELECT but not multiple, remove current tag
|
|
||||||
if (self.isSelect && !self.multiple && self.itemsArray.length > 0)
|
|
||||||
self.remove(self.itemsArray[0]);
|
|
||||||
|
|
||||||
if (typeof item === "string" && this.$element[0].tagName === 'INPUT') {
|
|
||||||
var delimiter = (self.options.delimiterRegex) ? self.options.delimiterRegex : self.options.delimiter;
|
|
||||||
var items = item.split(delimiter);
|
|
||||||
if (items.length > 1) {
|
|
||||||
for (var i = 0; i < items.length; i++) {
|
|
||||||
this.add(items[i], true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dontPushVal)
|
|
||||||
self.pushVal();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var itemValue = self.options.itemValue(item),
|
|
||||||
itemText = self.options.itemText(item),
|
|
||||||
tagClass = self.options.tagClass(item),
|
|
||||||
itemTitle = self.options.itemTitle(item);
|
|
||||||
|
|
||||||
// Ignore items allready added
|
|
||||||
var existing = $.grep(self.itemsArray, function (item) {
|
|
||||||
return self.options.itemValue(item) === itemValue;
|
|
||||||
})[0];
|
|
||||||
if (existing && !self.options.allowDuplicates) {
|
|
||||||
// Invoke onTagExists
|
|
||||||
if (self.options.onTagExists) {
|
|
||||||
var $existingTag = $(".tag", self.$container).filter(function () {
|
|
||||||
return $(this).data("item") === existing;
|
|
||||||
});
|
|
||||||
self.options.onTagExists(item, $existingTag);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if length greater than limit
|
|
||||||
if (self.items().toString().length + item.length + 1 > self.options.maxInputLength)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// raise beforeItemAdd arg
|
|
||||||
var beforeItemAddEvent = $.Event('beforeItemAdd', {item: item, cancel: false, options: options});
|
|
||||||
self.$element.trigger(beforeItemAddEvent);
|
|
||||||
if (beforeItemAddEvent.cancel)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// register item in internal array and map
|
|
||||||
self.itemsArray.push(item);
|
|
||||||
|
|
||||||
// add a tag element
|
|
||||||
|
|
||||||
var $tag = $('<span class="tag ' + htmlEncode(tagClass) + (itemTitle !== null ? ('" title="' + itemTitle) : '') + '">' + htmlEncode(itemText) + '<span data-role="remove"></span></span>');
|
|
||||||
$tag.data('item', item);
|
|
||||||
self.findInputWrapper().before($tag);
|
|
||||||
$tag.after(' ');
|
|
||||||
|
|
||||||
// add <option /> if item represents a value not present in one of the <select />'s options
|
|
||||||
if (self.isSelect && !$('option[value="' + encodeURIComponent(itemValue) + '"]', self.$element)[0]) {
|
|
||||||
var $option = $('<option selected>' + htmlEncode(itemText) + '</option>');
|
|
||||||
$option.data('item', item);
|
|
||||||
$option.attr('value', itemValue);
|
|
||||||
self.$element.append($option);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dontPushVal)
|
|
||||||
self.pushVal();
|
|
||||||
|
|
||||||
// Add class when reached maxTags
|
|
||||||
if (self.options.maxTags === self.itemsArray.length || self.items().toString().length === self.options.maxInputLength)
|
|
||||||
self.$container.addClass('bootstrap-tagsinput-max');
|
|
||||||
|
|
||||||
self.$element.trigger($.Event('itemAdded', {item: item, options: options}));
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes the given item. Pass true to dontPushVal to prevent updating the
|
|
||||||
* elements val()
|
|
||||||
*/
|
|
||||||
remove: function (item, dontPushVal, options) {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
if (self.objectItems) {
|
|
||||||
if (typeof item === "object")
|
|
||||||
item = $.grep(self.itemsArray, function (other) {
|
|
||||||
return self.options.itemValue(other) == self.options.itemValue(item);
|
|
||||||
});
|
|
||||||
else
|
|
||||||
item = $.grep(self.itemsArray, function (other) {
|
|
||||||
return self.options.itemValue(other) == item;
|
|
||||||
});
|
|
||||||
|
|
||||||
item = item[item.length - 1];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (item) {
|
|
||||||
var beforeItemRemoveEvent = $.Event('beforeItemRemove', {item: item, cancel: false, options: options});
|
|
||||||
self.$element.trigger(beforeItemRemoveEvent);
|
|
||||||
if (beforeItemRemoveEvent.cancel)
|
|
||||||
return;
|
|
||||||
|
|
||||||
$('.tag', self.$container).filter(function () {
|
|
||||||
return $(this).data('item') === item;
|
|
||||||
}).remove();
|
|
||||||
$('option', self.$element).filter(function () {
|
|
||||||
return $(this).data('item') === item;
|
|
||||||
}).remove();
|
|
||||||
if ($.inArray(item, self.itemsArray) !== -1)
|
|
||||||
self.itemsArray.splice($.inArray(item, self.itemsArray), 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dontPushVal)
|
|
||||||
self.pushVal();
|
|
||||||
|
|
||||||
// Remove class when reached maxTags
|
|
||||||
if (self.options.maxTags > self.itemsArray.length)
|
|
||||||
self.$container.removeClass('bootstrap-tagsinput-max');
|
|
||||||
|
|
||||||
self.$element.trigger($.Event('itemRemoved', {item: item, options: options}));
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes all items
|
|
||||||
*/
|
|
||||||
removeAll: function () {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
$('.tag', self.$container).remove();
|
|
||||||
$('option', self.$element).remove();
|
|
||||||
|
|
||||||
while (self.itemsArray.length > 0)
|
|
||||||
self.itemsArray.pop();
|
|
||||||
|
|
||||||
self.pushVal();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Refreshes the tags so they match the text/value of their corresponding
|
|
||||||
* item.
|
|
||||||
*/
|
|
||||||
refresh: function () {
|
|
||||||
var self = this;
|
|
||||||
$('.tag', self.$container).each(function () {
|
|
||||||
var $tag = $(this),
|
|
||||||
item = $tag.data('item'),
|
|
||||||
itemValue = self.options.itemValue(item),
|
|
||||||
itemText = self.options.itemText(item),
|
|
||||||
tagClass = self.options.tagClass(item);
|
|
||||||
|
|
||||||
// Update tag's class and inner text
|
|
||||||
$tag.attr('class', null);
|
|
||||||
$tag.addClass('tag ' + htmlEncode(tagClass));
|
|
||||||
$tag.contents().filter(function () {
|
|
||||||
return this.nodeType == 3;
|
|
||||||
})[0].nodeValue = htmlEncode(itemText);
|
|
||||||
|
|
||||||
if (self.isSelect) {
|
|
||||||
var option = $('option', self.$element).filter(function () {
|
|
||||||
return $(this).data('item') === item;
|
|
||||||
});
|
|
||||||
option.attr('value', itemValue);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the items added as tags
|
|
||||||
*/
|
|
||||||
items: function () {
|
|
||||||
return this.itemsArray;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Assembly value by retrieving the value of each item, and set it on the
|
|
||||||
* element.
|
|
||||||
*/
|
|
||||||
pushVal: function () {
|
|
||||||
var self = this,
|
|
||||||
val = $.map(self.items(), function (item) {
|
|
||||||
return self.options.itemValue(item).toString();
|
|
||||||
});
|
|
||||||
|
|
||||||
self.$element.val(val, true).trigger('change');
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes the tags input behaviour on the element
|
|
||||||
*/
|
|
||||||
build: function (options) {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
self.options = $.extend({}, defaultOptions, options);
|
|
||||||
// When itemValue is set, freeInput should always be false
|
|
||||||
if (self.objectItems)
|
|
||||||
self.options.freeInput = false;
|
|
||||||
|
|
||||||
makeOptionItemFunction(self.options, 'itemValue');
|
|
||||||
makeOptionItemFunction(self.options, 'itemText');
|
|
||||||
makeOptionFunction(self.options, 'tagClass');
|
|
||||||
|
|
||||||
// Typeahead Bootstrap version 2.3.2
|
|
||||||
if (self.options.typeahead) {
|
|
||||||
var typeahead = self.options.typeahead || {};
|
|
||||||
|
|
||||||
makeOptionFunction(typeahead, 'source');
|
|
||||||
|
|
||||||
self.$input.typeahead($.extend({}, typeahead, {
|
|
||||||
source: function (query, process) {
|
|
||||||
function processItems(items) {
|
|
||||||
var texts = [];
|
|
||||||
|
|
||||||
for (var i = 0; i < items.length; i++) {
|
|
||||||
var text = self.options.itemText(items[i]);
|
|
||||||
map[text] = items[i];
|
|
||||||
texts.push(text);
|
|
||||||
}
|
|
||||||
process(texts);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.map = {};
|
|
||||||
var map = this.map,
|
|
||||||
data = typeahead.source(query);
|
|
||||||
|
|
||||||
if ($.isFunction(data.success)) {
|
|
||||||
// support for Angular callbacks
|
|
||||||
data.success(processItems);
|
|
||||||
} else if ($.isFunction(data.then)) {
|
|
||||||
// support for Angular promises
|
|
||||||
data.then(processItems);
|
|
||||||
} else {
|
|
||||||
// support for functions and jquery promises
|
|
||||||
$.when(data)
|
|
||||||
.then(processItems);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
updater: function (text) {
|
|
||||||
self.add(this.map[text]);
|
|
||||||
return this.map[text];
|
|
||||||
},
|
|
||||||
matcher: function (text) {
|
|
||||||
return (text.toLowerCase().indexOf(this.query.trim().toLowerCase()) !== -1);
|
|
||||||
},
|
|
||||||
sorter: function (texts) {
|
|
||||||
return texts.sort();
|
|
||||||
},
|
|
||||||
highlighter: function (text) {
|
|
||||||
var regex = new RegExp('(' + this.query + ')', 'gi');
|
|
||||||
return text.replace(regex, "<strong>$1</strong>");
|
|
||||||
}
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
// typeahead.js
|
|
||||||
if (self.options.typeaheadjs) {
|
|
||||||
var typeaheadConfig = null;
|
|
||||||
var typeaheadDatasets = {};
|
|
||||||
|
|
||||||
// Determine if main configurations were passed or simply a dataset
|
|
||||||
var typeaheadjs = self.options.typeaheadjs;
|
|
||||||
if ($.isArray(typeaheadjs)) {
|
|
||||||
typeaheadConfig = typeaheadjs[0];
|
|
||||||
typeaheadDatasets = typeaheadjs[1];
|
|
||||||
} else {
|
|
||||||
typeaheadDatasets = typeaheadjs;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.$input.typeahead(typeaheadConfig, typeaheadDatasets).on('typeahead:selected', $.proxy(function (obj, datum) {
|
|
||||||
if (typeaheadDatasets.valueKey)
|
|
||||||
self.add(datum[typeaheadDatasets.valueKey]);
|
|
||||||
else
|
|
||||||
self.add(datum);
|
|
||||||
self.$input.typeahead('val', '');
|
|
||||||
}, self));
|
|
||||||
}
|
|
||||||
|
|
||||||
self.$container.on('click', $.proxy(function (event) {
|
|
||||||
if (!self.$element.attr('disabled')) {
|
|
||||||
self.$input.removeAttr('disabled');
|
|
||||||
}
|
|
||||||
self.$input.focus();
|
|
||||||
}, self));
|
|
||||||
|
|
||||||
if (self.options.addOnBlur && self.options.freeInput) {
|
|
||||||
self.$input.on('focusout', $.proxy(function (event) {
|
|
||||||
// HACK: only process on focusout when no typeahead opened, to
|
|
||||||
// avoid adding the typeahead text as tag
|
|
||||||
if ($('.typeahead, .twitter-typeahead', self.$container).length === 0) {
|
|
||||||
self.add(self.$input.val());
|
|
||||||
self.$input.val('');
|
|
||||||
}
|
|
||||||
}, self));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
self.$container.on('keydown', 'input', $.proxy(function (event) {
|
|
||||||
var $input = $(event.target),
|
|
||||||
$inputWrapper = self.findInputWrapper();
|
|
||||||
|
|
||||||
if (self.$element.attr('disabled')) {
|
|
||||||
self.$input.attr('disabled', 'disabled');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (event.which) {
|
|
||||||
// BACKSPACE
|
|
||||||
case 8:
|
|
||||||
if (doGetCaretPosition($input[0]) === 0) {
|
|
||||||
var prev = $inputWrapper.prev();
|
|
||||||
if (prev.length) {
|
|
||||||
self.remove(prev.data('item'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
// DELETE
|
|
||||||
case 46:
|
|
||||||
if (doGetCaretPosition($input[0]) === 0) {
|
|
||||||
var next = $inputWrapper.next();
|
|
||||||
if (next.length) {
|
|
||||||
self.remove(next.data('item'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
// LEFT ARROW
|
|
||||||
case 37:
|
|
||||||
// Try to move the input before the previous tag
|
|
||||||
var $prevTag = $inputWrapper.prev();
|
|
||||||
if ($input.val().length === 0 && $prevTag[0]) {
|
|
||||||
$prevTag.before($inputWrapper);
|
|
||||||
$input.focus();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
// RIGHT ARROW
|
|
||||||
case 39:
|
|
||||||
// Try to move the input after the next tag
|
|
||||||
var $nextTag = $inputWrapper.next();
|
|
||||||
if ($input.val().length === 0 && $nextTag[0]) {
|
|
||||||
$nextTag.after($inputWrapper);
|
|
||||||
$input.focus();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset internal input's size
|
|
||||||
var textLength = $input.val().length,
|
|
||||||
wordSpace = Math.ceil(textLength / 5),
|
|
||||||
size = textLength + wordSpace + 1;
|
|
||||||
$input.attr('size', Math.max(this.inputSize, $input.val().length));
|
|
||||||
}, self));
|
|
||||||
|
|
||||||
self.$container.on('keypress', 'input', $.proxy(function (event) {
|
|
||||||
var $input = $(event.target);
|
|
||||||
|
|
||||||
if (self.$element.attr('disabled')) {
|
|
||||||
self.$input.attr('disabled', 'disabled');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var text = $input.val(),
|
|
||||||
maxLengthReached = self.options.maxChars && text.length >= self.options.maxChars;
|
|
||||||
if (self.options.freeInput && (keyCombinationInList(event, self.options.confirmKeys) || maxLengthReached)) {
|
|
||||||
// Only attempt to add a tag if there is data in the field
|
|
||||||
if (text.length !== 0) {
|
|
||||||
self.add(maxLengthReached ? text.substr(0, self.options.maxChars) : text);
|
|
||||||
$input.val('');
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the field is empty, let the event triggered fire as usual
|
|
||||||
if (self.options.cancelConfirmKeysOnEmpty === false) {
|
|
||||||
event.preventDefault();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset internal input's size
|
|
||||||
var textLength = $input.val().length,
|
|
||||||
wordSpace = Math.ceil(textLength / 5),
|
|
||||||
size = textLength + wordSpace + 1;
|
|
||||||
$input.attr('size', Math.max(this.inputSize, $input.val().length));
|
|
||||||
}, self));
|
|
||||||
|
|
||||||
// Remove icon clicked
|
|
||||||
self.$container.on('click', '[data-role=remove]', $.proxy(function (event) {
|
|
||||||
if (self.$element.attr('disabled')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
self.remove($(event.target).closest('.tag').data('item'));
|
|
||||||
}, self));
|
|
||||||
|
|
||||||
// Only add existing value as tags when using strings as tags
|
|
||||||
if (self.options.itemValue === defaultOptions.itemValue) {
|
|
||||||
if (self.$element[0].tagName === 'INPUT') {
|
|
||||||
self.add(self.$element.val());
|
|
||||||
} else {
|
|
||||||
$('option', self.$element).each(function () {
|
|
||||||
self.add($(this).attr('value'), true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes all tagsinput behaviour and unregsiter all event handlers
|
|
||||||
*/
|
|
||||||
destroy: function () {
|
|
||||||
var self = this;
|
|
||||||
|
|
||||||
// Unbind events
|
|
||||||
self.$container.off('keypress', 'input');
|
|
||||||
self.$container.off('click', '[role=remove]');
|
|
||||||
|
|
||||||
self.$container.remove();
|
|
||||||
self.$element.removeData('tagsinput');
|
|
||||||
self.$element.show();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets focus on the tagsinput
|
|
||||||
*/
|
|
||||||
focus: function () {
|
|
||||||
this.$input.focus();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the internal input element
|
|
||||||
*/
|
|
||||||
input: function () {
|
|
||||||
return this.$input;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the element which is wrapped around the internal input. This
|
|
||||||
* is normally the $container, but typeahead.js moves the $input element.
|
|
||||||
*/
|
|
||||||
findInputWrapper: function () {
|
|
||||||
var elt = this.$input[0],
|
|
||||||
container = this.$container[0];
|
|
||||||
while (elt && elt.parentNode !== container)
|
|
||||||
elt = elt.parentNode;
|
|
||||||
|
|
||||||
return $(elt);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register JQuery plugin
|
|
||||||
*/
|
|
||||||
$.fn.tagsinput = function (arg1, arg2, arg3) {
|
|
||||||
var results = [];
|
|
||||||
|
|
||||||
this.each(function () {
|
|
||||||
var tagsinput = $(this).data('tagsinput');
|
|
||||||
// Initialize a new tags input
|
|
||||||
if (!tagsinput) {
|
|
||||||
tagsinput = new TagsInput(this, arg1);
|
|
||||||
$(this).data('tagsinput', tagsinput);
|
|
||||||
results.push(tagsinput);
|
|
||||||
|
|
||||||
if (this.tagName === 'SELECT') {
|
|
||||||
$('option', $(this)).attr('selected', 'selected');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Init tags from $(this).val()
|
|
||||||
$(this).val($(this).val());
|
|
||||||
} else if (!arg1 && !arg2) {
|
|
||||||
// tagsinput already exists
|
|
||||||
// no function, trying to init
|
|
||||||
results.push(tagsinput);
|
|
||||||
} else if (tagsinput[arg1] !== undefined) {
|
|
||||||
// Invoke function on existing tags input
|
|
||||||
if (tagsinput[arg1].length === 3 && arg3 !== undefined) {
|
|
||||||
var retVal = tagsinput[arg1](arg2, null, arg3);
|
|
||||||
} else {
|
|
||||||
var retVal = tagsinput[arg1](arg2);
|
|
||||||
}
|
|
||||||
if (retVal !== undefined)
|
|
||||||
results.push(retVal);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (typeof arg1 == 'string') {
|
|
||||||
// Return the results from the invoked function calls
|
|
||||||
return results.length > 1 ? results : results[0];
|
|
||||||
} else {
|
|
||||||
return results;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$.fn.tagsinput.Constructor = TagsInput;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Most options support both a string or number as well as a function as
|
|
||||||
* option value. This function makes sure that the option with the given
|
|
||||||
* key in the given options is wrapped in a function
|
|
||||||
*/
|
|
||||||
function makeOptionItemFunction(options, key) {
|
|
||||||
if (typeof options[key] !== 'function') {
|
|
||||||
var propertyName = options[key];
|
|
||||||
options[key] = function (item) {
|
|
||||||
return item[propertyName];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function makeOptionFunction(options, key) {
|
|
||||||
if (typeof options[key] !== 'function') {
|
|
||||||
var value = options[key];
|
|
||||||
options[key] = function () {
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HtmlEncodes the given value
|
|
||||||
*/
|
|
||||||
var htmlEncodeContainer = $('<div />');
|
|
||||||
|
|
||||||
function htmlEncode(value) {
|
|
||||||
if (value) {
|
|
||||||
return htmlEncodeContainer.text(value).html();
|
|
||||||
} else {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the position of the caret in the given input field
|
|
||||||
* http://flightschool.acylt.com/devnotes/caret-position-woes/
|
|
||||||
*/
|
|
||||||
function doGetCaretPosition(oField) {
|
|
||||||
var iCaretPos = 0;
|
|
||||||
if (document.selection) {
|
|
||||||
oField.focus();
|
|
||||||
var oSel = document.selection.createRange();
|
|
||||||
oSel.moveStart('character', -oField.value.length);
|
|
||||||
iCaretPos = oSel.text.length;
|
|
||||||
} else if (oField.selectionStart || oField.selectionStart == '0') {
|
|
||||||
iCaretPos = oField.selectionStart;
|
|
||||||
}
|
|
||||||
return (iCaretPos);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns boolean indicates whether user has pressed an expected key combination.
|
|
||||||
* @param object keyPressEvent: JavaScript event object, refer
|
|
||||||
* http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
|
|
||||||
* @param object lookupList: expected key combinations, as in:
|
|
||||||
* [13, {which: 188, shiftKey: true}]
|
|
||||||
*/
|
|
||||||
function keyCombinationInList(keyPressEvent, lookupList) {
|
|
||||||
var found = false;
|
|
||||||
$.each(lookupList, function (index, keyCombination) {
|
|
||||||
if (typeof (keyCombination) === 'number' && keyPressEvent.which === keyCombination) {
|
|
||||||
found = true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keyPressEvent.which === keyCombination.which) {
|
|
||||||
var alt = !keyCombination.hasOwnProperty('altKey') || keyPressEvent.altKey === keyCombination.altKey,
|
|
||||||
shift = !keyCombination.hasOwnProperty('shiftKey') || keyPressEvent.shiftKey === keyCombination.shiftKey,
|
|
||||||
ctrl = !keyCombination.hasOwnProperty('ctrlKey') || keyPressEvent.ctrlKey === keyCombination.ctrlKey;
|
|
||||||
if (alt && shift && ctrl) {
|
|
||||||
found = true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return found;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize tagsinput behaviour on inputs and selects which have
|
|
||||||
* data-role=tagsinput
|
|
||||||
*/
|
|
||||||
$(function () {
|
|
||||||
$("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput();
|
|
||||||
});
|
|
||||||
})(window.jQuery);
|
|
53
dist/bootstrap-tagsinput.less
vendored
53
dist/bootstrap-tagsinput.less
vendored
|
@ -1,53 +0,0 @@
|
||||||
.bootstrap-tagsinput {
|
|
||||||
background-color: #fff;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
||||||
display: inline-block;
|
|
||||||
padding: 4px 6px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
color: #555;
|
|
||||||
vertical-align: middle;
|
|
||||||
border-radius: 4px;
|
|
||||||
max-width: 100%;
|
|
||||||
line-height: 22px;
|
|
||||||
cursor: text;
|
|
||||||
|
|
||||||
input {
|
|
||||||
border: none;
|
|
||||||
box-shadow: none;
|
|
||||||
outline: none;
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
width: auto !important;
|
|
||||||
max-width: inherit;
|
|
||||||
|
|
||||||
&:focus {
|
|
||||||
border: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag {
|
|
||||||
margin-right: 2px;
|
|
||||||
color: white;
|
|
||||||
|
|
||||||
[data-role="remove"] {
|
|
||||||
margin-left: 8px;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
content: "x";
|
|
||||||
padding: 0px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
||||||
|
|
||||||
&:active {
|
|
||||||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
7
dist/bootstrap-tagsinput.min.js
vendored
7
dist/bootstrap-tagsinput.min.js
vendored
File diff suppressed because one or more lines are too long
194
dist/bootstrap-tagsinput.min.js.map
vendored
194
dist/bootstrap-tagsinput.min.js.map
vendored
File diff suppressed because one or more lines are too long
BIN
dist/bootstrap-tagsinput.zip
vendored
BIN
dist/bootstrap-tagsinput.zip
vendored
Binary file not shown.
Loading…
Add table
Reference in a new issue