added license banner
This commit is contained in:
parent
14f5a33dfe
commit
6c00b633fc
22
BANNER.txt
Normal file
22
BANNER.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Copyright <%= moment().format('YYYY') %> Igor Vaynberg and Select2 contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
||||||
|
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
||||||
|
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||||
|
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
||||||
|
Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||||
|
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Bundle of <%= pkg.name %>
|
||||||
|
Generated: <%= moment().format('YYYY-MM-DD') %>
|
||||||
|
Version: <%= pkg.version %>
|
||||||
|
Dependencies:
|
||||||
|
<% _.forEach(dependencies, function (dependency) { %>
|
||||||
|
<%= dependency.name %> -- <%= dependency.version %>
|
||||||
|
<% }) %>
|
4
dist/select25.css
vendored
4
dist/select25.css
vendored
@ -19,8 +19,11 @@
|
|||||||
.s25-search {
|
.s25-search {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
box-shadow: none;
|
||||||
|
outline: 0;
|
||||||
}
|
}
|
||||||
.s25-search:focus {
|
.s25-search:focus {
|
||||||
|
box-shadow: none;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -182,6 +185,7 @@
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
max-height: 175px;
|
||||||
}
|
}
|
||||||
.s25-dropdown .s25-options {
|
.s25-dropdown .s25-options {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
164
dist/select25.js
vendored
164
dist/select25.js
vendored
@ -1,3 +1,29 @@
|
|||||||
|
/**
|
||||||
|
* Copyright 2019 Igor Vaynberg and Select2 contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
||||||
|
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
||||||
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||||
|
* persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
||||||
|
* Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||||
|
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||||
|
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
* Bundle of select2
|
||||||
|
* Generated: 2019-06-27
|
||||||
|
* Version: 5.0.0-snapshot
|
||||||
|
* Dependencies:
|
||||||
|
*
|
||||||
|
* tslib -- 1.9.3
|
||||||
|
*
|
||||||
|
* preact -- 10.0.0-beta.3
|
||||||
|
*/
|
||||||
|
|
||||||
!(function(e, t) {
|
!(function(e, t) {
|
||||||
'object' == typeof exports && 'undefined' != typeof module
|
'object' == typeof exports && 'undefined' != typeof module
|
||||||
? t(exports)
|
? t(exports)
|
||||||
@ -199,7 +225,7 @@
|
|||||||
var t = l(e.type, e.props, e.key, null);
|
var t = l(e.type, e.props, e.key, null);
|
||||||
return (t.__e = e.__e), t;
|
return (t.__e = e.__e), t;
|
||||||
}
|
}
|
||||||
function x(e, t) {
|
function I(e, t) {
|
||||||
(this.props = e), (this.context = t);
|
(this.props = e), (this.context = t);
|
||||||
}
|
}
|
||||||
function s(e) {
|
function s(e) {
|
||||||
@ -216,7 +242,7 @@
|
|||||||
)
|
)
|
||||||
e.__d && e.forceUpdate(!1);
|
e.__d && e.forceUpdate(!1);
|
||||||
}
|
}
|
||||||
function I(e, t, n, o, r, s, a, i) {
|
function x(e, t, n, o, r, s, a, i) {
|
||||||
var l,
|
var l,
|
||||||
u,
|
u,
|
||||||
c,
|
c,
|
||||||
@ -326,7 +352,7 @@
|
|||||||
? (v = (c = t.__c = n.__c).__p = c.__E)
|
? (v = (c = t.__c = n.__c).__p = c.__E)
|
||||||
: (_.prototype && _.prototype.render
|
: (_.prototype && _.prototype.render
|
||||||
? (t.__c = c = new _(m, y))
|
? (t.__c = c = new _(m, y))
|
||||||
: ((t.__c = c = new x(m, y)), (c.constructor = _), (c.render = O)),
|
: ((t.__c = c = new I(m, y)), (c.constructor = _), (c.render = O)),
|
||||||
g && g.sub(c),
|
g && g.sub(c),
|
||||||
(c.props = m),
|
(c.props = m),
|
||||||
c.state || (c.state = {}),
|
c.state || (c.state = {}),
|
||||||
@ -379,7 +405,7 @@
|
|||||||
for (
|
for (
|
||||||
null != c.getChildContext && (o = S(S({}, o), c.getChildContext())),
|
null != c.getChildContext && (o = S(S({}, o), c.getChildContext())),
|
||||||
p || null == c.getSnapshotBeforeUpdate || (h = c.getSnapshotBeforeUpdate(d, f)),
|
p || null == c.getSnapshotBeforeUpdate || (h = c.getSnapshotBeforeUpdate(d, f)),
|
||||||
I(e, t, n, o, r, s, a, l),
|
x(e, t, n, o, r, s, a, l),
|
||||||
c.base = t.__e;
|
c.base = t.__e;
|
||||||
(u = c.__h.pop());
|
(u = c.__h.pop());
|
||||||
|
|
||||||
@ -418,7 +444,7 @@
|
|||||||
null == s &&
|
null == s &&
|
||||||
((c && u && c.__html == u.__html) || (e.innerHTML = (c && c.__html) || '')),
|
((c && u && c.__html == u.__html) || (e.innerHTML = (c && c.__html) || '')),
|
||||||
d.multiple && (e.multiple = d.multiple),
|
d.multiple && (e.multiple = d.multiple),
|
||||||
I(e, t, n, o, 'foreignObject' !== t.type && r, s, a, w),
|
x(e, t, n, o, 'foreignObject' !== t.type && r, s, a, w),
|
||||||
(function(e, t, n, o) {
|
(function(e, t, n, o) {
|
||||||
var r,
|
var r,
|
||||||
s,
|
s,
|
||||||
@ -545,12 +571,12 @@
|
|||||||
})(e, document.getElementById('s25-live-polite'));
|
})(e, document.getElementById('s25-live-polite'));
|
||||||
}
|
}
|
||||||
(b = {}),
|
(b = {}),
|
||||||
(x.prototype.setState = function(e, t) {
|
(I.prototype.setState = function(e, t) {
|
||||||
var n = (this.__s !== this.state && this.__s) || (this.__s = S({}, this.state));
|
var n = (this.__s !== this.state && this.__s) || (this.__s = S({}, this.state));
|
||||||
('function' == typeof e && !(e = e(n, this.props))) || S(n, e),
|
('function' == typeof e && !(e = e(n, this.props))) || S(n, e),
|
||||||
null != e && this.__v && (t && this.__h.push(t), s(this));
|
null != e && this.__v && (t && this.__h.push(t), s(this));
|
||||||
}),
|
}),
|
||||||
(x.prototype.forceUpdate = function(e) {
|
(I.prototype.forceUpdate = function(e) {
|
||||||
var t,
|
var t,
|
||||||
n,
|
n,
|
||||||
o,
|
o,
|
||||||
@ -593,7 +619,7 @@
|
|||||||
})(r)),
|
})(r)),
|
||||||
e && e();
|
e && e();
|
||||||
}),
|
}),
|
||||||
(x.prototype.render = k),
|
(I.prototype.render = k),
|
||||||
(n = []),
|
(n = []),
|
||||||
(r = 'function' == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout),
|
(r = 'function' == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout),
|
||||||
(u = /[A-Z]/g),
|
(u = /[A-Z]/g),
|
||||||
@ -642,20 +668,20 @@
|
|||||||
});
|
});
|
||||||
var U,
|
var U,
|
||||||
B,
|
B,
|
||||||
H = function(t, e) {
|
j = function(t, e) {
|
||||||
if (!e.length) return t;
|
if (!e.length) return t;
|
||||||
var n = e.shift();
|
var n = e.shift();
|
||||||
return (
|
return (
|
||||||
void 0 === n ||
|
void 0 === n ||
|
||||||
(j(t) &&
|
(H(t) &&
|
||||||
j(n) &&
|
H(n) &&
|
||||||
Object.keys(n).forEach(function(e) {
|
Object.keys(n).forEach(function(e) {
|
||||||
j(n[e]) ? (t[e] || (t[e] = {}), H(t[e], [n[e]])) : (t[e] = n[e]);
|
H(n[e]) ? (t[e] || (t[e] = {}), j(t[e], [n[e]])) : (t[e] = n[e]);
|
||||||
})),
|
})),
|
||||||
H(t, e)
|
j(t, e)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
j = function(e) {
|
H = function(e) {
|
||||||
return (
|
return (
|
||||||
(function(e) {
|
(function(e) {
|
||||||
return null !== e && 'object' == typeof e;
|
return null !== e && 'object' == typeof e;
|
||||||
@ -704,7 +730,7 @@
|
|||||||
}
|
}
|
||||||
var Y,
|
var Y,
|
||||||
G = { allowDuplicates: !1, itemId: 'id', itemLabel: 'text', minimumCharacters: 0, quiet: 50, tabIndex: 0 },
|
G = { allowDuplicates: !1, itemId: 'id', itemLabel: 'text', minimumCharacters: 0, quiet: 50, tabIndex: 0 },
|
||||||
$ = (t(J, (Y = x)),
|
$ = (t(J, (Y = I)),
|
||||||
Object.defineProperty(J.prototype, 'dictionary', {
|
Object.defineProperty(J.prototype, 'dictionary', {
|
||||||
get: function() {
|
get: function() {
|
||||||
var e = this.props.dictionary;
|
var e = this.props.dictionary;
|
||||||
@ -714,7 +740,7 @@
|
|||||||
configurable: !0
|
configurable: !0
|
||||||
}),
|
}),
|
||||||
(J.prototype.updateState = function(e, t) {
|
(J.prototype.updateState = function(e, t) {
|
||||||
var n = H(this.state, Array.isArray(e) ? e : [e]);
|
var n = j(this.state, Array.isArray(e) ? e : [e]);
|
||||||
this.setState(n, t);
|
this.setState(n, t);
|
||||||
}),
|
}),
|
||||||
(J.prototype.loadMore = function() {
|
(J.prototype.loadMore = function() {
|
||||||
@ -926,7 +952,7 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
var Z,
|
var Z,
|
||||||
Q = (t(ee, (Z = x)),
|
Q = (t(ee, (Z = I)),
|
||||||
(ee.prototype.getChildContext = function() {
|
(ee.prototype.getChildContext = function() {
|
||||||
return this.props.context;
|
return this.props.context;
|
||||||
}),
|
}),
|
||||||
@ -943,7 +969,7 @@
|
|||||||
return f(D(Q, { context: this.context }, t), n), null;
|
return f(D(Q, { context: this.context }, t), n), null;
|
||||||
}
|
}
|
||||||
var ne,
|
var ne,
|
||||||
oe = (t(re, (ne = x)),
|
oe = (t(re, (ne = I)),
|
||||||
(re.prototype.componentWillMount = function() {
|
(re.prototype.componentWillMount = function() {
|
||||||
(this.container = document.createElement('div')),
|
(this.container = document.createElement('div')),
|
||||||
this.props.class && (this.container.className = this.props.class),
|
this.props.class && (this.container.className = this.props.class),
|
||||||
@ -1089,9 +1115,10 @@
|
|||||||
(le.searchResultsMinimumError = 's25-search-results-minimum-error'),
|
(le.searchResultsMinimumError = 's25-search-results-minimum-error'),
|
||||||
(le.hiddenAccessible = 's25-hidden-accessible'),
|
(le.hiddenAccessible = 's25-hidden-accessible'),
|
||||||
(le.hidden = 's25-hidden'),
|
(le.hidden = 's25-hidden'),
|
||||||
(le.placeholder = 's25-placeholder');
|
(le.placeholder = 's25-placeholder'),
|
||||||
|
(le.scroll = 's25-scroll');
|
||||||
var ue,
|
var ue,
|
||||||
ce = (t(pe, (ue = x)),
|
ce = (t(pe, (ue = I)),
|
||||||
(pe.prototype.getResultDomId = function(e) {
|
(pe.prototype.getResultDomId = function(e) {
|
||||||
return this.props.namespace + e;
|
return this.props.namespace + e;
|
||||||
}),
|
}),
|
||||||
@ -1107,13 +1134,7 @@
|
|||||||
{ class: ie.body },
|
{ class: ie.body },
|
||||||
D(
|
D(
|
||||||
'div',
|
'div',
|
||||||
{
|
{ ref: this.container, onScroll: this.onScroll, class: ie.searchResults, 'aria-busy': i.loading },
|
||||||
ref: this.container,
|
|
||||||
onScroll: this.onScroll,
|
|
||||||
class: ie.searchResults,
|
|
||||||
'aria-busy': i.loading,
|
|
||||||
style: { maxHeight: '175px' }
|
|
||||||
},
|
|
||||||
i.loading &&
|
i.loading &&
|
||||||
D(
|
D(
|
||||||
'div',
|
'div',
|
||||||
@ -1248,27 +1269,28 @@
|
|||||||
s = e.tabIndex,
|
s = e.tabIndex,
|
||||||
a = e.minimumCharacters,
|
a = e.minimumCharacters,
|
||||||
i = e.valuesLabel,
|
i = e.valuesLabel,
|
||||||
l = (e.comboboxLabel, t.open),
|
l = e.comboboxLabel,
|
||||||
c = t.loading,
|
c = t.open,
|
||||||
p = t.focused,
|
p = t.loading,
|
||||||
d = t.search,
|
d = t.focused,
|
||||||
f = t.values,
|
f = t.search,
|
||||||
h = f.active,
|
h = t.values,
|
||||||
v = f.selected,
|
v = h.active,
|
||||||
m = t.results,
|
m = h.selected,
|
||||||
g = this.dictionary,
|
g = t.results,
|
||||||
y = q(ie.control, ie.multi, (((n = {})[ie.open] = l), n), (((o = {})[ie.focused] = p), o));
|
y = this.dictionary,
|
||||||
e.containerClass && 0 < e.containerClass.length && (y += ' ' + e.containerClass);
|
_ = q(ie.control, ie.multi, (((n = {})[ie.open] = c), n), (((o = {})[ie.focused] = d), o));
|
||||||
var _ = this.namespace + '-instructions',
|
e.containerClass && 0 < e.containerClass.length && (_ += ' ' + e.containerClass);
|
||||||
b = this.namespace + '-results',
|
var b = this.namespace + '-instructions',
|
||||||
w = this.namespace + '-res-';
|
w = this.namespace + '-results',
|
||||||
|
R = this.namespace + '-res-';
|
||||||
return D(
|
return D(
|
||||||
k,
|
k,
|
||||||
null,
|
null,
|
||||||
D(
|
D(
|
||||||
'div',
|
'div',
|
||||||
{
|
{
|
||||||
class: y,
|
class: _,
|
||||||
ref: this.containerRef,
|
ref: this.containerRef,
|
||||||
onFocusCapture: this.onFocusIn,
|
onFocusCapture: this.onFocusIn,
|
||||||
onBlurCapture: this.onFocusOut,
|
onBlurCapture: this.onFocusOut,
|
||||||
@ -1280,11 +1302,11 @@
|
|||||||
{ class: q(ie.body), ref: this.bodyRef, onClick: this.onBodyClick },
|
{ class: q(ie.body), ref: this.bodyRef, onClick: this.onBodyClick },
|
||||||
D(
|
D(
|
||||||
'div',
|
'div',
|
||||||
{ id: _, class: q(ie.offscreen), style: { display: 'none' } },
|
{ id: b, class: q(ie.offscreen), style: { display: 'none' } },
|
||||||
g.multiSelectInstructions()
|
y.multiSelectInstructions()
|
||||||
),
|
),
|
||||||
z(function() {
|
z(function() {
|
||||||
var e = 0 <= h ? u.namespace + '-vl-' + h : void 0;
|
var e = 0 <= v ? u.namespace + '-vl-' + v : void 0;
|
||||||
return r && 0 < r.length
|
return r && 0 < r.length
|
||||||
? D(
|
? D(
|
||||||
'div',
|
'div',
|
||||||
@ -1297,15 +1319,15 @@
|
|||||||
'aria-multiselectable': 'true',
|
'aria-multiselectable': 'true',
|
||||||
'aria-activedescendant': e,
|
'aria-activedescendant': e,
|
||||||
'aria-label': i,
|
'aria-label': i,
|
||||||
'aria-describedby': _,
|
'aria-describedby': b,
|
||||||
onFocus: u.onValuesFocus,
|
onFocus: u.onValuesFocus,
|
||||||
onBlur: u.onValuesBlur,
|
onBlur: u.onValuesBlur,
|
||||||
onKeyDown: u.onValuesKeyDown
|
onKeyDown: u.onValuesKeyDown
|
||||||
},
|
},
|
||||||
r.map(function(e, t) {
|
r.map(function(e, t) {
|
||||||
var n,
|
var n,
|
||||||
o = v[t],
|
o = m[t],
|
||||||
r = h === t,
|
r = v === t,
|
||||||
s = q(ie.item, (((n = {})[ie.selected] = o), (n[ie.active] = r), n)),
|
s = q(ie.item, (((n = {})[ie.selected] = o), (n[ie.active] = r), n)),
|
||||||
a = u.namespace + '-vl-' + t,
|
a = u.namespace + '-vl-' + t,
|
||||||
i = u.getItemLabel(e),
|
i = u.getItemLabel(e),
|
||||||
@ -1331,7 +1353,7 @@
|
|||||||
}),
|
}),
|
||||||
z(function() {
|
z(function() {
|
||||||
var e,
|
var e,
|
||||||
t = !v.find(function(e) {
|
t = !m.find(function(e) {
|
||||||
return !0 === e;
|
return !0 === e;
|
||||||
});
|
});
|
||||||
return D(
|
return D(
|
||||||
@ -1342,26 +1364,26 @@
|
|||||||
onFocus: u.onRemoveSelectedFocus,
|
onFocus: u.onRemoveSelectedFocus,
|
||||||
disabled: t,
|
disabled: t,
|
||||||
'aria-disabled': t,
|
'aria-disabled': t,
|
||||||
title: g.removeButtonTitle()
|
title: y.removeButtonTitle()
|
||||||
},
|
},
|
||||||
D('span', null, D(ae, { width: 20, height: 20 }))
|
D('span', null, D(ae, { width: 20, height: 20 }))
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
D('label', { htmlFor: void 0, className: ie.offscreen }, e.comboboxLabel),
|
D('label', { htmlFor: void 0, className: ie.offscreen }, l),
|
||||||
D('input', {
|
D('input', {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
ref: this.searchRef,
|
ref: this.searchRef,
|
||||||
value: d,
|
value: f,
|
||||||
class: q(ie.search),
|
class: q(ie.search),
|
||||||
role: 'combobox',
|
role: 'combobox',
|
||||||
'aria-label': e.comboboxLabel,
|
'aria-label': e.comboboxLabel,
|
||||||
'aria-autocomplete': 'list',
|
'aria-autocomplete': 'list',
|
||||||
'aria-haspopup': 'true',
|
'aria-haspopup': 'true',
|
||||||
'aria-owns': b,
|
'aria-owns': w,
|
||||||
'aria-controls': b,
|
'aria-controls': w,
|
||||||
'aria-expanded': l ? 'true' : 'false',
|
'aria-expanded': c ? 'true' : 'false',
|
||||||
'aria-activedescendant': 0 <= m.active ? w + m.active : void 0,
|
'aria-activedescendant': 0 <= g.active ? R + g.active : void 0,
|
||||||
'aria-busy': c,
|
'aria-busy': p,
|
||||||
onInput: this.onSearchInput,
|
onInput: this.onSearchInput,
|
||||||
onKeyDown: this.onSearchKeyDown,
|
onKeyDown: this.onSearchKeyDown,
|
||||||
onFocus: this.onSearchFocus
|
onFocus: this.onSearchFocus
|
||||||
@ -1373,7 +1395,7 @@
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
l &&
|
c &&
|
||||||
D(
|
D(
|
||||||
oe,
|
oe,
|
||||||
{
|
{
|
||||||
@ -1386,17 +1408,17 @@
|
|||||||
ce,
|
ce,
|
||||||
C(
|
C(
|
||||||
{
|
{
|
||||||
namespace: w,
|
namespace: R,
|
||||||
minimumCharacters: a,
|
minimumCharacters: a,
|
||||||
dictionary: this.dictionary,
|
dictionary: this.dictionary,
|
||||||
itemLabel: this.getItemLabel,
|
itemLabel: this.getItemLabel,
|
||||||
renderItem: this.renderResult,
|
renderItem: this.renderResult,
|
||||||
listboxDomId: b,
|
listboxDomId: w,
|
||||||
search: d
|
search: f
|
||||||
},
|
},
|
||||||
this.state.results,
|
this.state.results,
|
||||||
{
|
{
|
||||||
loading: c,
|
loading: p,
|
||||||
onResultClicked: this.onResultClicked,
|
onResultClicked: this.onResultClicked,
|
||||||
onMouseMove: this.onResultMouseMove,
|
onMouseMove: this.onResultMouseMove,
|
||||||
onLoadMore: this.onLoadMoreResults
|
onLoadMore: this.onLoadMoreResults
|
||||||
@ -1882,7 +1904,7 @@
|
|||||||
n.initEvent('change', !1, !0), (n[t] = t), e.dispatchEvent(n);
|
n.initEvent('change', !1, !0), (n[t] = t), e.dispatchEvent(n);
|
||||||
}
|
}
|
||||||
var De,
|
var De,
|
||||||
ke = (t(Me, (De = x)),
|
ke = (t(Me, (De = I)),
|
||||||
(Me.prototype.componentDidUpdate = function() {
|
(Me.prototype.componentDidUpdate = function() {
|
||||||
this.setHiddenValue(this.state.values);
|
this.setHiddenValue(this.state.values);
|
||||||
}),
|
}),
|
||||||
@ -1928,8 +1950,8 @@
|
|||||||
t
|
t
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
var xe,
|
var Ie,
|
||||||
Ie = (t(Le, (xe = x)),
|
xe = (t(Le, (Ie = I)),
|
||||||
(Le.prototype.componentDidMount = function() {
|
(Le.prototype.componentDidMount = function() {
|
||||||
this.setHiddenValue(this.state.value);
|
this.setHiddenValue(this.state.value);
|
||||||
}),
|
}),
|
||||||
@ -1968,7 +1990,7 @@
|
|||||||
}),
|
}),
|
||||||
Le);
|
Le);
|
||||||
function Le(e) {
|
function Le(e) {
|
||||||
var t = xe.call(this, e) || this;
|
var t = Ie.call(this, e) || this;
|
||||||
return (
|
return (
|
||||||
(t.onChange = function(e) {
|
(t.onChange = function(e) {
|
||||||
t.setState({ value: e }), t.setHiddenValue(e), Se(t.props.element, e);
|
t.setState({ value: e }), t.setHiddenValue(e), Se(t.props.element, e);
|
||||||
@ -2032,20 +2054,20 @@
|
|||||||
};
|
};
|
||||||
})(t.data))),
|
})(t.data))),
|
||||||
!t.tabIndex && e.tabIndex && (t.tabIndex = e.tabIndex),
|
!t.tabIndex && e.tabIndex && (t.tabIndex = e.tabIndex),
|
||||||
e.getAttribute('s25-style'))
|
e.getAttribute('data-s25-container-style'))
|
||||||
) {
|
) {
|
||||||
var o = t.containerStyle || '';
|
var o = t.containerStyle || '';
|
||||||
0 < o.length && (o += ';'), (o += e.getAttribute('s25-style')), (t.containerStyle = o);
|
0 < o.length && (o += ';'), (o += e.getAttribute('data-s25-container-style')), (t.containerStyle = o);
|
||||||
}
|
}
|
||||||
if (e.getAttribute('s25-class')) {
|
if (e.getAttribute('data-s25-container-class')) {
|
||||||
var r = t.containerClass || '';
|
var r = t.containerClass || '';
|
||||||
0 < r.length && (r += ' '), (r += e.getAttribute('s25-class')), (t.containerClass = r);
|
0 < r.length && (r += ' '), (r += e.getAttribute('data-s25-container-class')), (t.containerClass = r);
|
||||||
}
|
}
|
||||||
var s = e.parentElement,
|
var s = e.parentElement,
|
||||||
a = document.createElement('div');
|
a = document.createElement('div');
|
||||||
s.insertBefore(a, e),
|
s.insertBefore(a, e),
|
||||||
n.set(be.targetElement, a),
|
n.set(be.targetElement, a),
|
||||||
t.multiple ? f(D(ke, { element: e, options: t }), s, a) : f(D(Ie, { element: e, options: t }), s, a);
|
t.multiple ? f(D(ke, { element: e, options: t }), s, a) : f(D(xe, { element: e, options: t }), s, a);
|
||||||
},
|
},
|
||||||
destroy: function(e) {
|
destroy: function(e) {
|
||||||
if (we.hasStore(e)) {
|
if (we.hasStore(e)) {
|
||||||
|
2
dist/select25.js.map
vendored
2
dist/select25.js.map
vendored
File diff suppressed because one or more lines are too long
50
package-lock.json
generated
50
package-lock.json
generated
@ -3682,6 +3682,12 @@
|
|||||||
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
|
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"commenting": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/commenting/-/commenting-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-YeNK4tavZwtH7jEgK1ZINXzLKm6DZdEMfsaaieOsCAN0S8vsY7UeuO3Q7d/M018EFgE+IeUAuBOKkFccBZsUZA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"component-emitter": {
|
"component-emitter": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
||||||
@ -8817,6 +8823,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"moment": {
|
||||||
|
"version": "2.24.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
|
||||||
|
"integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"ms": {
|
"ms": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||||
@ -11102,6 +11114,31 @@
|
|||||||
"inherits": "^2.0.1"
|
"inherits": "^2.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rollup": {
|
||||||
|
"version": "1.16.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-1.16.2.tgz",
|
||||||
|
"integrity": "sha512-UAZxaQvH0klYZdF+90xv9nGb+m4p8jdoaow1VL5/RzDK/gN/4CjvaMmJNcOIv1/+gtzswKhAg/467mzF0sLpAg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/estree": "0.0.39",
|
||||||
|
"@types/node": "^12.0.8",
|
||||||
|
"acorn": "^6.1.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": {
|
||||||
|
"version": "12.0.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.10.tgz",
|
||||||
|
"integrity": "sha512-LcsGbPomWsad6wmMNv7nBLw7YYYyfdYcz6xryKYQhx89c3XXan+8Q6AJ43G5XDIaklaVkK3mE4fCb0SBvMiPSQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"acorn": {
|
||||||
|
"version": "6.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz",
|
||||||
|
"integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"rollup-plugin-babel": {
|
"rollup-plugin-babel": {
|
||||||
"version": "4.3.2",
|
"version": "4.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/rollup-plugin-babel/-/rollup-plugin-babel-4.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/rollup-plugin-babel/-/rollup-plugin-babel-4.3.2.tgz",
|
||||||
@ -11125,6 +11162,19 @@
|
|||||||
"rollup-pluginutils": "^2.7.0"
|
"rollup-pluginutils": "^2.7.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rollup-plugin-license": {
|
||||||
|
"version": "0.9.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-license/-/rollup-plugin-license-0.9.0.tgz",
|
||||||
|
"integrity": "sha512-/1PW3C1+xIeUsaSQdvRsMFu7Oqmou6ArLBy5vDfem1Yv8wEBGlJ4+izYTZn61Lq39srT+6bndK+zfYTz0CrXQQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"commenting": "1.1.0",
|
||||||
|
"lodash": "4.17.11",
|
||||||
|
"magic-string": "0.25.2",
|
||||||
|
"mkdirp": "0.5.1",
|
||||||
|
"moment": "2.24.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"rollup-plugin-node-resolve": {
|
"rollup-plugin-node-resolve": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.0.1.tgz",
|
||||||
|
@ -39,8 +39,10 @@
|
|||||||
"prettier": "^1.17.1",
|
"prettier": "^1.17.1",
|
||||||
"pretty": "^2.0.0",
|
"pretty": "^2.0.0",
|
||||||
"puppeteer": "^1.17.0",
|
"puppeteer": "^1.17.0",
|
||||||
|
"rollup": "^1.16.2",
|
||||||
"rollup-plugin-babel": "^4.3.2",
|
"rollup-plugin-babel": "^4.3.2",
|
||||||
"rollup-plugin-commonjs": "^10.0.0",
|
"rollup-plugin-commonjs": "^10.0.0",
|
||||||
|
"rollup-plugin-license": "^0.9.0",
|
||||||
"rollup-plugin-node-resolve": "^5.0.1",
|
"rollup-plugin-node-resolve": "^5.0.1",
|
||||||
"rollup-plugin-replace": "^2.2.0",
|
"rollup-plugin-replace": "^2.2.0",
|
||||||
"rollup-plugin-scss": "^1.0.1",
|
"rollup-plugin-scss": "^1.0.1",
|
||||||
|
@ -3,6 +3,8 @@ import resolve from 'rollup-plugin-node-resolve';
|
|||||||
import scss from 'rollup-plugin-scss';
|
import scss from 'rollup-plugin-scss';
|
||||||
import typescript from 'rollup-plugin-typescript';
|
import typescript from 'rollup-plugin-typescript';
|
||||||
import { uglify } from 'rollup-plugin-uglify';
|
import { uglify } from 'rollup-plugin-uglify';
|
||||||
|
const license = require('rollup-plugin-license');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
// browser-friendly UMD build
|
// browser-friendly UMD build
|
||||||
@ -14,6 +16,13 @@ export default [
|
|||||||
format: 'umd',
|
format: 'umd',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
plugins: [resolve(), commonjs(), typescript(), uglify(), scss()]
|
plugins: [
|
||||||
|
resolve(),
|
||||||
|
commonjs(),
|
||||||
|
typescript(),
|
||||||
|
uglify(),
|
||||||
|
scss(),
|
||||||
|
license({ banner: { file: path.join(__dirname, 'BANNER.txt'), encoding: 'utf-8' } })
|
||||||
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user