1
0
mirror of synced 2025-03-14 08:36:07 +03:00

cleanup dot files and dev/dist

This commit is contained in:
Igor Vaynberg 2019-06-25 15:29:18 -07:00
parent 1eabe8379c
commit 5df21c9286
18 changed files with 2 additions and 7263 deletions

View File

@ -1,6 +0,0 @@
[*]
indent_style = space
end_of_line = lf
[*.js]
indent_size = 2

4
.gitignore vendored
View File

@ -1,4 +1,4 @@
.idea
.vscode
node_modules
dist/js/i18n/build.txt
.sass-cache
dev/dist

View File

@ -1,4 +0,0 @@
src/js/banner.*.js
src/js/wrapper.*.js
tests/vendor/*.js
tests/helpers.js

View File

@ -1,25 +0,0 @@
{
"bitwise": true,
"camelcase": true,
"curly": true,
"es3": true,
"eqnull": true,
"freeze": true,
"globals": {
"console": false,
"define": false,
"document": false,
"MockContainer": false,
"module": false,
"QUnit": false,
"require": false,
"test": false,
"window": false
},
"indent": 2,
"maxlen": 80,
"noarg": true,
"nonew": true,
"quotmark": "single",
"undef": true
}

View File

@ -1,22 +0,0 @@
language: node_js
sudo: false
node_js:
- 0.10
env:
global:
- secure: XMNK8GVxkwKa6oLl7nJwgg/wmY1YDk5rrMd+UXz26EDCsMDbiy1P7GhN2fEiBSLaQ7YfEuvaDcmzQxTrT0YTHp1PDzb2o9J4tIDdEkqPcv1y8xMaYDfmsN0rBPdBwZEg9H5zUgi7OdUbrGswSYxsKCE3x8EOqK89104HyOo1LN4=
- secure: BU5BPRx6H4O3WJ509YPixjUxg+hDF3z2BVJX6NiGmKWweqvCEYFfiiHLwDEgp/ynRcF9vGVi1V4Ly1jq7f8NIajbDZ5q443XchZFYFg78K/EwD5mK6LYt16zb7+Jn0KbzwHeGRGzc9AvcEYlW6i634cSCm4n3BnqtF5PpogSzdw=
script:
- grunt ci
notifications:
email: false
irc:
channels:
- "chat.freenode.net#select2"
on_success: change
on_failure: always

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

131
dev/dist/index.html vendored
View File

@ -1,131 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<!-- polyfill for IE11 -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6"></script>
<script src="/select25.63904fcd.js"></script>
<script src="/countries-data.fd391f61.js"></script>
<link rel="stylesheet" href="/select25.e5b29622.css">
<link rel="stylesheet" href="/select25.63904fcd.css"><script src="/select25.e5b29622.js"></script></head>
<body>
<p>
<input type="text" value="focus grabber 1" autofocus="">
</p>
<p>
<section style="width:450px">
<input type="hidden" id="countries1">
</section>
</p>
<p>
<input type="button" id="destroy-multi" value="destroy">
</p>
<p>
<input type="text" value="focus grabber 2">
</p>
<p>
<section style="width:450px">
<input type="hidden" id="countries2">
</section>
</p>
<p>
<input type="text" value="focus grabber 3">
</p>
<p>
<label for="select1">Select Single</label>
<select id="select1">
<option>first</option>
<option>second</option>
<option selected="">third</option>
<option>fourth</option>
</select>
</p>
<p>
<label for="select2">Select Multiple</label>
<select id="select2" multiple="">
<option>first</option>
<option selected="">second</option>
<option selected="">third</option>
<option>fourth</option>
</select>
</p>
</body>
<script>var query = function () {
// local implementation of query that simulates network delay
var countries = window.select2countries;
var previousTimeout = undefined;
var previousReject = undefined;
return function (search, page, token) {
if (previousReject != undefined) {
previousReject(new Error('cancelled'));
window.clearTimeout(previousTimeout);
}
var delay = 150;
return new Promise(function (resolve, reject) {
previousReject = reject;
previousTimeout = window.setTimeout(function () {
var results = [];
var count = 0;
var limit = 10;
var offset = page * limit;
for (var i = 0; i < countries.length; i++) {
var country = countries[i];
if (country.name.toLowerCase().indexOf(search.toLowerCase()) >= 0) {
if (count >= offset) {
results.push(country);
}
count++;
if (count >= offset + limit) {
break;
}
}
}
previousTimeout = undefined;
previousReject = undefined;
resolve({
values: results,
more: results.length >= limit,
token: token
});
}, delay);
});
};
}();
document.getElementById('countries1').addEventListener("change", function (event) {
console.log("onchange fired on countries1", event);
});
window.select25.create(document.getElementById('countries1'), {
valuesLabel: "Selected Countries",
comboboxLabel: "Add Country",
itemId: 'code',
itemLabel: 'name',
minimumCharacters: 2,
multiple: true,
query: query,
quiet: 100,
values: [window.select2countries[0], window.select2countries[1], window.select2countries[1]]
});
document.getElementById("destroy-multi").addEventListener("click", function () {
window.select25.destroy(document.getElementById("countries1"));
});
window.select25.create(document.getElementById('countries2'), {
allowClear: true,
placeholder: "Select Country",
itemId: 'code',
itemLabel: 'name',
minimumCharacters: 2,
query: query,
quiet: 100,
value: window.select2countries[0]
});</script>
</html>

431
dev/dist/index.js vendored
View File

@ -1,431 +0,0 @@
// modules are defined as an array
// [ module function, map of requires ]
//
// map of requires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the require for previous bundles
parcelRequire = (function(modules, cache, entry, globalName) {
// Save the require from previous bundle to this closure if any
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
var nodeRequire = typeof require === 'function' && require;
function newRequire(name, jumped) {
if (!cache[name]) {
if (!modules[name]) {
// if we cannot find the module within our internal map or
// cache jump to the current global require ie. the last bundle
// that was added to the page.
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
if (!jumped && currentRequire) {
return currentRequire(name, true);
}
// If there are other bundles on this page the require from the
// previous one is saved to 'previousRequire'. Repeat this as
// many times as there are bundles until the module is found or
// we exhaust the require chain.
if (previousRequire) {
return previousRequire(name, true);
}
// Try the node require function if it exists.
if (nodeRequire && typeof name === 'string') {
return nodeRequire(name);
}
var err = new Error("Cannot find module '" + name + "'");
err.code = 'MODULE_NOT_FOUND';
throw err;
}
localRequire.resolve = resolve;
localRequire.cache = {};
var module = (cache[name] = new newRequire.Module(name));
modules[name][0].call(module.exports, localRequire, module, module.exports, this);
}
return cache[name].exports;
function localRequire(x) {
return newRequire(localRequire.resolve(x));
}
function resolve(x) {
return modules[name][1][x] || x;
}
}
function Module(moduleName) {
this.id = moduleName;
this.bundle = newRequire;
this.exports = {};
}
newRequire.isParcelRequire = true;
newRequire.Module = Module;
newRequire.modules = modules;
newRequire.cache = cache;
newRequire.parent = previousRequire;
newRequire.register = function(id, exports) {
modules[id] = [
function(require, module) {
module.exports = exports;
},
{}
];
};
var error;
for (var i = 0; i < entry.length; i++) {
try {
newRequire(entry[i]);
} catch (e) {
// Save first error but execute all entries
if (!error) {
error = e;
}
}
}
if (entry.length) {
// Expose entry point to Node, AMD or browser globals
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
var mainExports = newRequire(entry[entry.length - 1]);
// CommonJS
if (typeof exports === 'object' && typeof module !== 'undefined') {
module.exports = mainExports;
// RequireJS
} else if (typeof define === 'function' && define.amd) {
define(function() {
return mainExports;
});
// <script>
} else if (globalName) {
this[globalName] = mainExports;
}
}
// Override the current require with this new one
parcelRequire = newRequire;
if (error) {
// throw error from earlier, _after updating parcelRequire_
throw error;
}
return newRequire;
})(
{
'../node_modules/parcel-bundler/src/builtins/bundle-url.js': [
function(require, module, exports) {
var bundleURL = null;
function getBundleURLCached() {
if (!bundleURL) {
bundleURL = getBundleURL();
}
return bundleURL;
}
function getBundleURL() {
// Attempt to find the URL of the current script and use that as the base URL
try {
throw new Error();
} catch (err) {
var matches = ('' + err.stack).match(
/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g
);
if (matches) {
return getBaseURL(matches[0]);
}
}
return '/';
}
function getBaseURL(url) {
return (
('' + url).replace(
/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^/]+$/,
'$1'
) + '/'
);
}
exports.getBundleURL = getBundleURLCached;
exports.getBaseURL = getBaseURL;
},
{}
],
'../node_modules/parcel-bundler/src/builtins/css-loader.js': [
function(require, module, exports) {
var bundle = require('./bundle-url');
function updateLink(link) {
var newLink = link.cloneNode();
newLink.onload = function() {
link.remove();
};
newLink.href = link.href.split('?')[0] + '?' + Date.now();
link.parentNode.insertBefore(newLink, link.nextSibling);
}
var cssTimeout = null;
function reloadCSS() {
if (cssTimeout) {
return;
}
cssTimeout = setTimeout(function() {
var links = document.querySelectorAll('link[rel="stylesheet"]');
for (var i = 0; i < links.length; i++) {
if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
updateLink(links[i]);
}
}
cssTimeout = null;
}, 50);
}
module.exports = reloadCSS;
},
{ './bundle-url': '../node_modules/parcel-bundler/src/builtins/bundle-url.js' }
],
'../node_modules/parcel-bundler/src/builtins/hmr-runtime.js': [
function(require, module, exports) {
var global = arguments[3];
var OVERLAY_ID = '__parcel__error__overlay__';
var OldModule = module.bundle.Module;
function Module(moduleName) {
OldModule.call(this, moduleName);
this.hot = {
data: module.bundle.hotData,
_acceptCallbacks: [],
_disposeCallbacks: [],
accept: function(fn) {
this._acceptCallbacks.push(fn || function() {});
},
dispose: function(fn) {
this._disposeCallbacks.push(fn);
}
};
module.bundle.hotData = null;
}
module.bundle.Module = Module;
var checkedAssets, assetsToAccept;
var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = '' || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + '57136' + '/');
ws.onmessage = function(event) {
checkedAssets = {};
assetsToAccept = [];
var data = JSON.parse(event.data);
if (data.type === 'update') {
var handled = false;
data.assets.forEach(function(asset) {
if (!asset.isNew) {
var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);
if (didAccept) {
handled = true;
}
}
}); // Enable HMR for CSS by default.
handled =
handled ||
data.assets.every(function(asset) {
return asset.type === 'css' && asset.generated.js;
});
if (handled) {
console.clear();
data.assets.forEach(function(asset) {
hmrApply(global.parcelRequire, asset);
});
assetsToAccept.forEach(function(v) {
hmrAcceptRun(v[0], v[1]);
});
} else {
window.location.reload();
}
}
if (data.type === 'reload') {
ws.close();
ws.onclose = function() {
location.reload();
};
}
if (data.type === 'error-resolved') {
console.log('[parcel] ✨ Error resolved');
removeErrorOverlay();
}
if (data.type === 'error') {
console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
removeErrorOverlay();
var overlay = createErrorOverlay(data);
document.body.appendChild(overlay);
}
};
}
function removeErrorOverlay() {
var overlay = document.getElementById(OVERLAY_ID);
if (overlay) {
overlay.remove();
}
}
function createErrorOverlay(data) {
var overlay = document.createElement('div');
overlay.id = OVERLAY_ID; // html encode message and stack trace
var message = document.createElement('div');
var stackTrace = document.createElement('pre');
message.innerText = data.error.message;
stackTrace.innerText = data.error.stack;
overlay.innerHTML =
'<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' +
'<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' +
'<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' +
'<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' +
message.innerHTML +
'</div>' +
'<pre>' +
stackTrace.innerHTML +
'</pre>' +
'</div>';
return overlay;
}
function getParents(bundle, id) {
var modules = bundle.modules;
if (!modules) {
return [];
}
var parents = [];
var k, d, dep;
for (k in modules) {
for (d in modules[k][1]) {
dep = modules[k][1][d];
if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {
parents.push(k);
}
}
}
if (bundle.parent) {
parents = parents.concat(getParents(bundle.parent, id));
}
return parents;
}
function hmrApply(bundle, asset) {
var modules = bundle.modules;
if (!modules) {
return;
}
if (modules[asset.id] || !bundle.parent) {
var fn = new Function('require', 'module', 'exports', asset.generated.js);
asset.isNew = !modules[asset.id];
modules[asset.id] = [fn, asset.deps];
} else if (bundle.parent) {
hmrApply(bundle.parent, asset);
}
}
function hmrAcceptCheck(bundle, id) {
var modules = bundle.modules;
if (!modules) {
return;
}
if (!modules[id] && bundle.parent) {
return hmrAcceptCheck(bundle.parent, id);
}
if (checkedAssets[id]) {
return;
}
checkedAssets[id] = true;
var cached = bundle.cache[id];
assetsToAccept.push([bundle, id]);
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
return true;
}
return getParents(global.parcelRequire, id).some(function(id) {
return hmrAcceptCheck(global.parcelRequire, id);
});
}
function hmrAcceptRun(bundle, id) {
var cached = bundle.cache[id];
bundle.hotData = {};
if (cached) {
cached.hot.data = bundle.hotData;
}
if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
cached.hot._disposeCallbacks.forEach(function(cb) {
cb(bundle.hotData);
});
}
delete bundle.cache[id];
bundle(id);
cached = bundle.cache[id];
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
cached.hot._acceptCallbacks.forEach(function(cb) {
cb();
});
return true;
}
}
},
{}
]
},
{},
['../node_modules/parcel-bundler/src/builtins/hmr-runtime.js'],
null
);
//# sourceMappingURL=/index.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,261 +0,0 @@
@charset "UTF-8";
.s25-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
.s25-hidden {
display: none;
}
.s25-search {
font-size: 100%;
line-height: 24px;
}
.s25-search:focus {
outline: 0;
}
.s25-control {
position: relative;
box-sizing: border-box;
min-height: 36px;
width: 100%;
border: 1px solid #ddd;
background-color: #fff;
border-radius: 5px;
}
.s25-control.s25-focused {
border: 1px solid #4d90fe;
}
.s25-control.s25-focused.s25-open {
border-bottom: none;
border-radius: 5px 5px 0 0;
}
.s25-control .s25-body {
margin: 3px;
margin-bottom: 0;
}
.s25-control .s25-toggle:focus {
outline: 0px;
}
.s25-control .s25-toggle svg {
display: inline-block;
margin: auto;
}
.s25-control .s25-toggle {
display: flex;
box-sizing: border-box;
position: absolute;
top: 0;
bottom: 0;
right: 30px;
width: 30px;
transition: right 0.2s;
}
.s25-control.s25-multi {
display: flex;
flex-wrap: nowrap;
}
.s25-control.s25-multi .s25-body {
flex-grow: 1;
display: flex;
flex-wrap: wrap;
margin-right: 60px;
width: calc(100% - 60px);
}
.s25-control.s25-multi .s25-multi-values {
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
padding: 0;
}
.s25-control.s25-multi .s25-multi-values .s25-item {
position: relative;
padding: 5px 12px 5px 18px;
border-radius: 5px;
background-color: #0073e6;
color: #fff;
margin-right: 3px;
margin-bottom: 3px;
transition: 0.2s;
}
.s25-control.s25-multi .s25-multi-values .s25-item:hover {
background-color: #0066cd;
}
.s25-control.s25-multi .s25-multi-values .s25-item.s25-active {
box-shadow: inset 0 0 0 3px #67b3ff;
}
.s25-control.s25-multi .s25-multi-values .s25-item.s25-item.s25-selected {
text-align: right;
}
.s25-control.s25-multi .s25-multi-values .s25-item.s25-item.s25-selected:before {
content: '✓';
position: absolute;
left: 5px;
}
.s25-control.s25-multi .s25-multi-values .s25-label {
color: #222222;
font-size: 85%;
border-radius: 5px;
padding: 3px 3px 3px 6px;
}
.s25-control.s25-multi .s25-multi-values:focus {
outline: 0;
}
.s25-control.s25-multi .s25-item {
cursor: pointer;
box-sizing: border-box;
align-items: center;
}
.s25-control.s25-multi .s25-search {
max-width: 100%;
min-width: 75px;
border: none;
}
.s25-control.s25-multi .s25-search:focus {
outline: 0;
}
.s25-single.s25-control {
height: 36px;
}
.s25-single.s25-control .s25-body {
cursor: pointer;
flex-grow: 1;
display: flex;
flex-wrap: wrap;
width: calc(100% - 30px);
}
.s25-single.s25-control .s25-value {
border: 0px;
line-height: 27px;
padding-left: 3px;
}
.s25-single.s25-control .s25-value:focus {
outline: 0px;
}
.s25-single.s25-dropdown .s25-search {
width: calc(100% - 16px);
padding: 6px;
margin: 8px 10px;
box-sizing: border-box;
border: 1px solid #ddd;
outline: 0;
}
.s25-offscreen {
clip-path: inset(100%);
clip: rect(1px, 1px, 1px, 1px);
width: 1px;
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
}
.s25-dropdown {
position: absolute;
z-index: 1000000;
box-sizing: border-box;
border: 1px solid #4d90fe;
border-top: 1px solid #ddd;
border-radius: 0 0 5px 5px;
background-color: white;
}
.s25-dropdown .s25-body {
padding-top: 4px;
padding-bottom: 4px;
}
.s25-dropdown .s25-search-results {
width: 100%;
overflow-y: auto;
position: relative;
box-sizing: border-box;
}
.s25-dropdown .s25-options {
width: 100%;
}
.s25-dropdown .s25-options .s25-item {
display: block;
width: 100%;
box-sizing: border-box;
cursor: pointer;
background-color: transparent;
color: inherit;
font-size: inherit;
padding: 8px 10px;
}
.s25-dropdown .s25-options .s25-active {
background-color: #e6f3ff;
}
.s25-dropdown .s25-no-search-results {
padding: 8px 10px;
}
.s25-dropdown .s25-search-results-message {
padding: 8px 10px;
}
.s25-dropdown .s25-search-results-loading {
padding: 8px 10px;
}
.s25-remove {
border: 1px solid #e6f3ff;
border-radius: 0 5px 5px 0;
margin: 0;
padding: 0 5px;
outline: none;
background-color: #f1f1f1;
transition: 0.2s, width 0.2s ease-out;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
.s25-remove span svg {
fill: #ccc;
transition: fill 0.2s;
}
.s25-remove:not(:disabled) {
background-color: #e6f3ff;
}
.s25-remove:not(:disabled):hover {
background-color: #cde6ff;
}
.s25-remove:not(:disabled) span svg {
fill: #0073e6;
}
.s25-remove:not(.s25-offscreen) {
width: 30px;
}
.s25-remove:focus {
border: 1px solid #4d90fe;
}
.s25-remove:disabled {
cursor: default;
}
.s25-remove:active {
border: 0px;
}
.s25-remove.s25-offscreen ~ .s25-toggle {
right: 0;
}
.s25-placeholder {
color: #ccc;
}
/*# sourceMappingURL=/select25.63904fcd.css.map */

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,261 +0,0 @@
@charset "UTF-8";
.s25-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
.s25-hidden {
display: none;
}
.s25-search {
font-size: 100%;
line-height: 24px;
}
.s25-search:focus {
outline: 0;
}
.s25-control {
position: relative;
box-sizing: border-box;
min-height: 36px;
width: 100%;
border: 1px solid #ddd;
background-color: #fff;
border-radius: 5px;
}
.s25-control.s25-focused {
border: 1px solid #4d90fe;
}
.s25-control.s25-focused.s25-open {
border-bottom: none;
border-radius: 5px 5px 0 0;
}
.s25-control .s25-body {
margin: 3px;
margin-bottom: 0;
}
.s25-control .s25-toggle:focus {
outline: 0px;
}
.s25-control .s25-toggle svg {
display: inline-block;
margin: auto;
}
.s25-control .s25-toggle {
display: flex;
box-sizing: border-box;
position: absolute;
top: 0;
bottom: 0;
right: 30px;
width: 30px;
transition: right 0.2s;
}
.s25-control.s25-multi {
display: flex;
flex-wrap: nowrap;
}
.s25-control.s25-multi .s25-body {
flex-grow: 1;
display: flex;
flex-wrap: wrap;
margin-right: 60px;
width: calc(100% - 60px);
}
.s25-control.s25-multi .s25-multi-values {
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
padding: 0;
}
.s25-control.s25-multi .s25-multi-values .s25-item {
position: relative;
padding: 5px 12px 5px 18px;
border-radius: 5px;
background-color: #0073e6;
color: #fff;
margin-right: 3px;
margin-bottom: 3px;
transition: 0.2s;
}
.s25-control.s25-multi .s25-multi-values .s25-item:hover {
background-color: #0066cd;
}
.s25-control.s25-multi .s25-multi-values .s25-item.s25-active {
box-shadow: inset 0 0 0 3px #67b3ff;
}
.s25-control.s25-multi .s25-multi-values .s25-item.s25-item.s25-selected {
text-align: right;
}
.s25-control.s25-multi .s25-multi-values .s25-item.s25-item.s25-selected:before {
content: '✓';
position: absolute;
left: 5px;
}
.s25-control.s25-multi .s25-multi-values .s25-label {
color: #222222;
font-size: 85%;
border-radius: 5px;
padding: 3px 3px 3px 6px;
}
.s25-control.s25-multi .s25-multi-values:focus {
outline: 0;
}
.s25-control.s25-multi .s25-item {
cursor: pointer;
box-sizing: border-box;
align-items: center;
}
.s25-control.s25-multi .s25-search {
max-width: 100%;
min-width: 75px;
border: none;
}
.s25-control.s25-multi .s25-search:focus {
outline: 0;
}
.s25-single.s25-control {
height: 36px;
}
.s25-single.s25-control .s25-body {
cursor: pointer;
flex-grow: 1;
display: flex;
flex-wrap: wrap;
width: calc(100% - 30px);
}
.s25-single.s25-control .s25-value {
border: 0px;
line-height: 27px;
padding-left: 3px;
}
.s25-single.s25-control .s25-value:focus {
outline: 0px;
}
.s25-single.s25-dropdown .s25-search {
width: calc(100% - 16px);
padding: 6px;
margin: 8px 10px;
box-sizing: border-box;
border: 1px solid #ddd;
outline: 0;
}
.s25-offscreen {
clip-path: inset(100%);
clip: rect(1px, 1px, 1px, 1px);
width: 1px;
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
}
.s25-dropdown {
position: absolute;
z-index: 1000000;
box-sizing: border-box;
border: 1px solid #4d90fe;
border-top: 1px solid #ddd;
border-radius: 0 0 5px 5px;
background-color: white;
}
.s25-dropdown .s25-body {
padding-top: 4px;
padding-bottom: 4px;
}
.s25-dropdown .s25-search-results {
width: 100%;
overflow-y: auto;
position: relative;
box-sizing: border-box;
}
.s25-dropdown .s25-options {
width: 100%;
}
.s25-dropdown .s25-options .s25-item {
display: block;
width: 100%;
box-sizing: border-box;
cursor: pointer;
background-color: transparent;
color: inherit;
font-size: inherit;
padding: 8px 10px;
}
.s25-dropdown .s25-options .s25-active {
background-color: #e6f3ff;
}
.s25-dropdown .s25-no-search-results {
padding: 8px 10px;
}
.s25-dropdown .s25-search-results-message {
padding: 8px 10px;
}
.s25-dropdown .s25-search-results-loading {
padding: 8px 10px;
}
.s25-remove {
border: 1px solid #e6f3ff;
border-radius: 0 5px 5px 0;
margin: 0;
padding: 0 5px;
outline: none;
background-color: #f1f1f1;
transition: 0.2s, width 0.2s ease-out;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
.s25-remove span svg {
fill: #ccc;
transition: fill 0.2s;
}
.s25-remove:not(:disabled) {
background-color: #e6f3ff;
}
.s25-remove:not(:disabled):hover {
background-color: #cde6ff;
}
.s25-remove:not(:disabled) span svg {
fill: #0073e6;
}
.s25-remove:not(.s25-offscreen) {
width: 30px;
}
.s25-remove:focus {
border: 1px solid #4d90fe;
}
.s25-remove:disabled {
cursor: default;
}
.s25-remove:active {
border: 0px;
}
.s25-remove.s25-offscreen ~ .s25-toggle {
right: 0;
}
.s25-placeholder {
color: #ccc;
}
/*# sourceMappingURL=/select25.e5b29622.css.map */

File diff suppressed because one or more lines are too long

View File

@ -1,440 +0,0 @@
// modules are defined as an array
// [ module function, map of requires ]
//
// map of requires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the require for previous bundles
parcelRequire = (function(modules, cache, entry, globalName) {
// Save the require from previous bundle to this closure if any
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
var nodeRequire = typeof require === 'function' && require;
function newRequire(name, jumped) {
if (!cache[name]) {
if (!modules[name]) {
// if we cannot find the module within our internal map or
// cache jump to the current global require ie. the last bundle
// that was added to the page.
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
if (!jumped && currentRequire) {
return currentRequire(name, true);
}
// If there are other bundles on this page the require from the
// previous one is saved to 'previousRequire'. Repeat this as
// many times as there are bundles until the module is found or
// we exhaust the require chain.
if (previousRequire) {
return previousRequire(name, true);
}
// Try the node require function if it exists.
if (nodeRequire && typeof name === 'string') {
return nodeRequire(name);
}
var err = new Error("Cannot find module '" + name + "'");
err.code = 'MODULE_NOT_FOUND';
throw err;
}
localRequire.resolve = resolve;
localRequire.cache = {};
var module = (cache[name] = new newRequire.Module(name));
modules[name][0].call(module.exports, localRequire, module, module.exports, this);
}
return cache[name].exports;
function localRequire(x) {
return newRequire(localRequire.resolve(x));
}
function resolve(x) {
return modules[name][1][x] || x;
}
}
function Module(moduleName) {
this.id = moduleName;
this.bundle = newRequire;
this.exports = {};
}
newRequire.isParcelRequire = true;
newRequire.Module = Module;
newRequire.modules = modules;
newRequire.cache = cache;
newRequire.parent = previousRequire;
newRequire.register = function(id, exports) {
modules[id] = [
function(require, module) {
module.exports = exports;
},
{}
];
};
var error;
for (var i = 0; i < entry.length; i++) {
try {
newRequire(entry[i]);
} catch (e) {
// Save first error but execute all entries
if (!error) {
error = e;
}
}
}
if (entry.length) {
// Expose entry point to Node, AMD or browser globals
// Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
var mainExports = newRequire(entry[entry.length - 1]);
// CommonJS
if (typeof exports === 'object' && typeof module !== 'undefined') {
module.exports = mainExports;
// RequireJS
} else if (typeof define === 'function' && define.amd) {
define(function() {
return mainExports;
});
// <script>
} else if (globalName) {
this[globalName] = mainExports;
}
}
// Override the current require with this new one
parcelRequire = newRequire;
if (error) {
// throw error from earlier, _after updating parcelRequire_
throw error;
}
return newRequire;
})(
{
'../node_modules/parcel-bundler/src/builtins/bundle-url.js': [
function(require, module, exports) {
var bundleURL = null;
function getBundleURLCached() {
if (!bundleURL) {
bundleURL = getBundleURL();
}
return bundleURL;
}
function getBundleURL() {
// Attempt to find the URL of the current script and use that as the base URL
try {
throw new Error();
} catch (err) {
var matches = ('' + err.stack).match(
/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g
);
if (matches) {
return getBaseURL(matches[0]);
}
}
return '/';
}
function getBaseURL(url) {
return (
('' + url).replace(
/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^/]+$/,
'$1'
) + '/'
);
}
exports.getBundleURL = getBundleURLCached;
exports.getBaseURL = getBaseURL;
},
{}
],
'../node_modules/parcel-bundler/src/builtins/css-loader.js': [
function(require, module, exports) {
var bundle = require('./bundle-url');
function updateLink(link) {
var newLink = link.cloneNode();
newLink.onload = function() {
link.remove();
};
newLink.href = link.href.split('?')[0] + '?' + Date.now();
link.parentNode.insertBefore(newLink, link.nextSibling);
}
var cssTimeout = null;
function reloadCSS() {
if (cssTimeout) {
return;
}
cssTimeout = setTimeout(function() {
var links = document.querySelectorAll('link[rel="stylesheet"]');
for (var i = 0; i < links.length; i++) {
if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
updateLink(links[i]);
}
}
cssTimeout = null;
}, 50);
}
module.exports = reloadCSS;
},
{ './bundle-url': '../node_modules/parcel-bundler/src/builtins/bundle-url.js' }
],
'../control/src/select25.scss': [
function(require, module, exports) {
var reloadCSS = require('_css_loader');
module.hot.dispose(reloadCSS);
module.hot.accept(reloadCSS);
},
{ _css_loader: '../node_modules/parcel-bundler/src/builtins/css-loader.js' }
],
'../node_modules/parcel-bundler/src/builtins/hmr-runtime.js': [
function(require, module, exports) {
var global = arguments[3];
var OVERLAY_ID = '__parcel__error__overlay__';
var OldModule = module.bundle.Module;
function Module(moduleName) {
OldModule.call(this, moduleName);
this.hot = {
data: module.bundle.hotData,
_acceptCallbacks: [],
_disposeCallbacks: [],
accept: function(fn) {
this._acceptCallbacks.push(fn || function() {});
},
dispose: function(fn) {
this._disposeCallbacks.push(fn);
}
};
module.bundle.hotData = null;
}
module.bundle.Module = Module;
var checkedAssets, assetsToAccept;
var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = '' || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + '57136' + '/');
ws.onmessage = function(event) {
checkedAssets = {};
assetsToAccept = [];
var data = JSON.parse(event.data);
if (data.type === 'update') {
var handled = false;
data.assets.forEach(function(asset) {
if (!asset.isNew) {
var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);
if (didAccept) {
handled = true;
}
}
}); // Enable HMR for CSS by default.
handled =
handled ||
data.assets.every(function(asset) {
return asset.type === 'css' && asset.generated.js;
});
if (handled) {
console.clear();
data.assets.forEach(function(asset) {
hmrApply(global.parcelRequire, asset);
});
assetsToAccept.forEach(function(v) {
hmrAcceptRun(v[0], v[1]);
});
} else {
window.location.reload();
}
}
if (data.type === 'reload') {
ws.close();
ws.onclose = function() {
location.reload();
};
}
if (data.type === 'error-resolved') {
console.log('[parcel] ✨ Error resolved');
removeErrorOverlay();
}
if (data.type === 'error') {
console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
removeErrorOverlay();
var overlay = createErrorOverlay(data);
document.body.appendChild(overlay);
}
};
}
function removeErrorOverlay() {
var overlay = document.getElementById(OVERLAY_ID);
if (overlay) {
overlay.remove();
}
}
function createErrorOverlay(data) {
var overlay = document.createElement('div');
overlay.id = OVERLAY_ID; // html encode message and stack trace
var message = document.createElement('div');
var stackTrace = document.createElement('pre');
message.innerText = data.error.message;
stackTrace.innerText = data.error.stack;
overlay.innerHTML =
'<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' +
'<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' +
'<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' +
'<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' +
message.innerHTML +
'</div>' +
'<pre>' +
stackTrace.innerHTML +
'</pre>' +
'</div>';
return overlay;
}
function getParents(bundle, id) {
var modules = bundle.modules;
if (!modules) {
return [];
}
var parents = [];
var k, d, dep;
for (k in modules) {
for (d in modules[k][1]) {
dep = modules[k][1][d];
if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {
parents.push(k);
}
}
}
if (bundle.parent) {
parents = parents.concat(getParents(bundle.parent, id));
}
return parents;
}
function hmrApply(bundle, asset) {
var modules = bundle.modules;
if (!modules) {
return;
}
if (modules[asset.id] || !bundle.parent) {
var fn = new Function('require', 'module', 'exports', asset.generated.js);
asset.isNew = !modules[asset.id];
modules[asset.id] = [fn, asset.deps];
} else if (bundle.parent) {
hmrApply(bundle.parent, asset);
}
}
function hmrAcceptCheck(bundle, id) {
var modules = bundle.modules;
if (!modules) {
return;
}
if (!modules[id] && bundle.parent) {
return hmrAcceptCheck(bundle.parent, id);
}
if (checkedAssets[id]) {
return;
}
checkedAssets[id] = true;
var cached = bundle.cache[id];
assetsToAccept.push([bundle, id]);
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
return true;
}
return getParents(global.parcelRequire, id).some(function(id) {
return hmrAcceptCheck(global.parcelRequire, id);
});
}
function hmrAcceptRun(bundle, id) {
var cached = bundle.cache[id];
bundle.hotData = {};
if (cached) {
cached.hot.data = bundle.hotData;
}
if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
cached.hot._disposeCallbacks.forEach(function(cb) {
cb(bundle.hotData);
});
}
delete bundle.cache[id];
bundle(id);
cached = bundle.cache[id];
if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
cached.hot._acceptCallbacks.forEach(function(cb) {
cb();
});
return true;
}
}
},
{}
]
},
{},
['../node_modules/parcel-bundler/src/builtins/hmr-runtime.js'],
null
);
//# sourceMappingURL=/select25.e5b29622.js.map

File diff suppressed because one or more lines are too long