lucos_search_component 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +43 -25
- package/package.json +1 -1
- package/web-components/lucos-search.js +10 -0
package/dist/index.js
CHANGED
|
@@ -1927,10 +1927,19 @@ class TomSelect extends MicroPlugin(MicroEvent) {
|
|
|
1927
1927
|
self.positionDropdown();
|
|
1928
1928
|
}
|
|
1929
1929
|
};
|
|
1930
|
+
const input_invalid = () => {
|
|
1931
|
+
if (self.isValid) {
|
|
1932
|
+
self.isValid = false;
|
|
1933
|
+
self.isInvalid = true;
|
|
1934
|
+
self.refreshState();
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
addEvent$5(input, 'invalid', input_invalid);
|
|
1930
1938
|
addEvent$5(document, 'mousedown', doc_mousedown);
|
|
1931
1939
|
addEvent$5(window, 'scroll', win_scroll, passive_event);
|
|
1932
1940
|
addEvent$5(window, 'resize', win_scroll, passive_event);
|
|
1933
1941
|
this._destroy = () => {
|
|
1942
|
+
input.removeEventListener('invalid', input_invalid);
|
|
1934
1943
|
document.removeEventListener('mousedown', doc_mousedown);
|
|
1935
1944
|
window.removeEventListener('scroll', win_scroll);
|
|
1936
1945
|
window.removeEventListener('resize', win_scroll);
|
|
@@ -1949,13 +1958,6 @@ class TomSelect extends MicroPlugin(MicroEvent) {
|
|
|
1949
1958
|
settings.items = [];
|
|
1950
1959
|
delete settings.optgroups;
|
|
1951
1960
|
delete settings.options;
|
|
1952
|
-
addEvent$5(input, 'invalid', () => {
|
|
1953
|
-
if (self.isValid) {
|
|
1954
|
-
self.isValid = false;
|
|
1955
|
-
self.isInvalid = true;
|
|
1956
|
-
self.refreshState();
|
|
1957
|
-
}
|
|
1958
|
-
});
|
|
1959
1961
|
self.refreshItems();
|
|
1960
1962
|
self.close(false);
|
|
1961
1963
|
self.inputState();
|
|
@@ -2241,7 +2243,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
|
|
|
2241
2243
|
// if select isFull, then the dropdown won't be open and [tab] will work normally
|
|
2242
2244
|
preventDefault$5(e);
|
|
2243
2245
|
}
|
|
2244
|
-
if (self.settings.create && self.createItem()) {
|
|
2246
|
+
else if (self.settings.create && self.createItem()) {
|
|
2245
2247
|
preventDefault$5(e);
|
|
2246
2248
|
}
|
|
2247
2249
|
}
|
|
@@ -3373,6 +3375,12 @@ class TomSelect extends MicroPlugin(MicroEvent) {
|
|
|
3373
3375
|
var output;
|
|
3374
3376
|
input = input || self.inputValue();
|
|
3375
3377
|
if (!self.canCreate(input)) {
|
|
3378
|
+
const hash = hash_key$1(input);
|
|
3379
|
+
if (hash) {
|
|
3380
|
+
if (this.options[input]) {
|
|
3381
|
+
self.addItem(input);
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3376
3384
|
callback();
|
|
3377
3385
|
return false;
|
|
3378
3386
|
}
|
|
@@ -3942,7 +3950,7 @@ class TomSelect extends MicroPlugin(MicroEvent) {
|
|
|
3942
3950
|
}
|
|
3943
3951
|
|
|
3944
3952
|
/**
|
|
3945
|
-
* Tom Select v2.4.
|
|
3953
|
+
* Tom Select v2.4.5
|
|
3946
3954
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3947
3955
|
*/
|
|
3948
3956
|
|
|
@@ -3991,7 +3999,7 @@ function plugin$d () {
|
|
|
3991
3999
|
}
|
|
3992
4000
|
|
|
3993
4001
|
/**
|
|
3994
|
-
* Tom Select v2.4.
|
|
4002
|
+
* Tom Select v2.4.5
|
|
3995
4003
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3996
4004
|
*/
|
|
3997
4005
|
|
|
@@ -4168,7 +4176,7 @@ function plugin$c (userOptions) {
|
|
|
4168
4176
|
}
|
|
4169
4177
|
|
|
4170
4178
|
/**
|
|
4171
|
-
* Tom Select v2.4.
|
|
4179
|
+
* Tom Select v2.4.5
|
|
4172
4180
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4173
4181
|
*/
|
|
4174
4182
|
|
|
@@ -4222,7 +4230,7 @@ function plugin$b (userOptions) {
|
|
|
4222
4230
|
role: 'button',
|
|
4223
4231
|
tabindex: 0,
|
|
4224
4232
|
html: data => {
|
|
4225
|
-
return `<div class="${data.className}" title="${data.title}" role="${data.role}" tabindex="${data.tabindex}"
|
|
4233
|
+
return `<div class="${data.className}" title="${data.title}" role="${data.role}" tabindex="${data.tabindex}">×</div>`;
|
|
4226
4234
|
}
|
|
4227
4235
|
}, userOptions);
|
|
4228
4236
|
self.on('initialize', () => {
|
|
@@ -4241,7 +4249,7 @@ function plugin$b (userOptions) {
|
|
|
4241
4249
|
}
|
|
4242
4250
|
|
|
4243
4251
|
/**
|
|
4244
|
-
* Tom Select v2.4.
|
|
4252
|
+
* Tom Select v2.4.5
|
|
4245
4253
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4246
4254
|
*/
|
|
4247
4255
|
|
|
@@ -4370,7 +4378,7 @@ const insertBefore = (referenceNode, newNode) => {
|
|
|
4370
4378
|
const isBefore = (referenceNode, newNode) => {
|
|
4371
4379
|
do {
|
|
4372
4380
|
var _newNode;
|
|
4373
|
-
newNode = (_newNode = newNode) == null ?
|
|
4381
|
+
newNode = (_newNode = newNode) == null ? void 0 : _newNode.previousElementSibling;
|
|
4374
4382
|
if (referenceNode == newNode) {
|
|
4375
4383
|
return true;
|
|
4376
4384
|
}
|
|
@@ -4459,7 +4467,7 @@ function plugin$a () {
|
|
|
4459
4467
|
}
|
|
4460
4468
|
|
|
4461
4469
|
/**
|
|
4462
|
-
* Tom Select v2.4.
|
|
4470
|
+
* Tom Select v2.4.5
|
|
4463
4471
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4464
4472
|
*/
|
|
4465
4473
|
|
|
@@ -4559,7 +4567,7 @@ function plugin$9 (userOptions) {
|
|
|
4559
4567
|
}
|
|
4560
4568
|
|
|
4561
4569
|
/**
|
|
4562
|
-
* Tom Select v2.4.
|
|
4570
|
+
* Tom Select v2.4.5
|
|
4563
4571
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4564
4572
|
*/
|
|
4565
4573
|
|
|
@@ -4720,7 +4728,7 @@ function plugin$8 () {
|
|
|
4720
4728
|
}
|
|
4721
4729
|
|
|
4722
4730
|
/**
|
|
4723
|
-
* Tom Select v2.4.
|
|
4731
|
+
* Tom Select v2.4.5
|
|
4724
4732
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4725
4733
|
*/
|
|
4726
4734
|
|
|
@@ -4932,7 +4940,7 @@ function plugin$7 () {
|
|
|
4932
4940
|
}
|
|
4933
4941
|
|
|
4934
4942
|
/**
|
|
4935
|
-
* Tom Select v2.4.
|
|
4943
|
+
* Tom Select v2.4.5
|
|
4936
4944
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4937
4945
|
*/
|
|
4938
4946
|
|
|
@@ -5004,7 +5012,7 @@ function plugin$6 () {
|
|
|
5004
5012
|
}
|
|
5005
5013
|
|
|
5006
5014
|
/**
|
|
5007
|
-
* Tom Select v2.4.
|
|
5015
|
+
* Tom Select v2.4.5
|
|
5008
5016
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5009
5017
|
*/
|
|
5010
5018
|
|
|
@@ -5034,7 +5042,7 @@ function plugin$5 () {
|
|
|
5034
5042
|
}
|
|
5035
5043
|
|
|
5036
5044
|
/**
|
|
5037
|
-
* Tom Select v2.4.
|
|
5045
|
+
* Tom Select v2.4.5
|
|
5038
5046
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5039
5047
|
*/
|
|
5040
5048
|
|
|
@@ -5058,7 +5066,7 @@ function plugin$4 () {
|
|
|
5058
5066
|
}
|
|
5059
5067
|
|
|
5060
5068
|
/**
|
|
5061
|
-
* Tom Select v2.4.
|
|
5069
|
+
* Tom Select v2.4.5
|
|
5062
5070
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5063
5071
|
*/
|
|
5064
5072
|
|
|
@@ -5142,7 +5150,7 @@ function plugin$3 () {
|
|
|
5142
5150
|
}
|
|
5143
5151
|
|
|
5144
5152
|
/**
|
|
5145
|
-
* Tom Select v2.4.
|
|
5153
|
+
* Tom Select v2.4.5
|
|
5146
5154
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5147
5155
|
*/
|
|
5148
5156
|
|
|
@@ -5274,7 +5282,7 @@ function plugin$2 (userOptions) {
|
|
|
5274
5282
|
}
|
|
5275
5283
|
|
|
5276
5284
|
/**
|
|
5277
|
-
* Tom Select v2.4.
|
|
5285
|
+
* Tom Select v2.4.5
|
|
5278
5286
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5279
5287
|
*/
|
|
5280
5288
|
|
|
@@ -5314,7 +5322,7 @@ function plugin$1 (userOptions) {
|
|
|
5314
5322
|
}
|
|
5315
5323
|
|
|
5316
5324
|
/**
|
|
5317
|
-
* Tom Select v2.4.
|
|
5325
|
+
* Tom Select v2.4.5
|
|
5318
5326
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5319
5327
|
*/
|
|
5320
5328
|
|
|
@@ -5598,7 +5606,7 @@ TomSelect.define('remove_button', plugin$2);
|
|
|
5598
5606
|
TomSelect.define('restore_on_backspace', plugin$1);
|
|
5599
5607
|
TomSelect.define('virtual_scroll', plugin);
|
|
5600
5608
|
|
|
5601
|
-
var tomSelectStylesheet = "/**\n * tom-select.css (v2.4.4)\n * Copyright (c) contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this\n * file except in compliance with the License. You may obtain a copy of the License at:\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF\n * ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n *\n */\n.ts-control {\n border: 1px solid #d0d0d0;\n padding: 8px 8px;\n width: 100%;\n overflow: hidden;\n position: relative;\n z-index: 1;\n box-sizing: border-box;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n display: flex;\n flex-wrap: wrap;\n}\n.ts-wrapper.multi.has-items .ts-control {\n padding: calc(8px - 2px - 1px) 8px calc(8px - 2px - 3px - 1px);\n}\n.full .ts-control {\n background-color: #fff;\n}\n.disabled .ts-control, .disabled .ts-control * {\n cursor: default !important;\n}\n.focus .ts-control {\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);\n}\n.ts-control > * {\n vertical-align: baseline;\n display: inline-block;\n}\n.ts-wrapper.multi .ts-control > div {\n cursor: pointer;\n margin: 0 3px 3px 0;\n padding: 2px 6px;\n background: #1da7ee;\n color: #fff;\n border: 1px solid #0073bb;\n}\n.ts-wrapper.multi .ts-control > div.active {\n background: #92c836;\n color: #fff;\n border: 1px solid #00578d;\n}\n.ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {\n color: white;\n background: #d2d2d2;\n border: 1px solid #aaaaaa;\n}\n.ts-control > input {\n flex: 1 1 auto;\n min-width: 7rem;\n display: inline-block !important;\n padding: 0 !important;\n min-height: 0 !important;\n max-height: none !important;\n max-width: 100% !important;\n margin: 0 !important;\n text-indent: 0 !important;\n border: 0 none !important;\n background: none !important;\n line-height: inherit !important;\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n box-shadow: none !important;\n}\n.ts-control > input::-ms-clear {\n display: none;\n}\n.ts-control > input:focus {\n outline: none !important;\n}\n.has-items .ts-control > input {\n margin: 0 4px !important;\n}\n.ts-control.rtl {\n text-align: right;\n}\n.ts-control.rtl.single .ts-control:after {\n left: 15px;\n right: auto;\n}\n.ts-control.rtl .ts-control > input {\n margin: 0 4px 0 -2px !important;\n}\n.disabled .ts-control {\n opacity: 0.5;\n background-color: #fafafa;\n}\n.input-hidden .ts-control > input {\n opacity: 0;\n position: absolute;\n left: -10000px;\n}\n\n.ts-dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n z-index: 10;\n border: 1px solid #d0d0d0;\n background: #fff;\n margin: 0.25rem 0 0;\n border-top: 0 none;\n box-sizing: border-box;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n border-radius: 0 0 3px 3px;\n}\n.ts-dropdown [data-selectable] {\n cursor: pointer;\n overflow: hidden;\n}\n.ts-dropdown [data-selectable] .highlight {\n background: rgba(125, 168, 208, 0.2);\n border-radius: 1px;\n}\n.ts-dropdown .option,\n.ts-dropdown .optgroup-header,\n.ts-dropdown .no-results,\n.ts-dropdown .create {\n padding: 5px 8px;\n}\n.ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {\n cursor: inherit;\n opacity: 0.5;\n}\n.ts-dropdown [data-selectable].option {\n opacity: 1;\n cursor: pointer;\n}\n.ts-dropdown .optgroup:first-child .optgroup-header {\n border-top: 0 none;\n}\n.ts-dropdown .optgroup-header {\n color: #303030;\n background: #fff;\n cursor: default;\n}\n.ts-dropdown .active {\n background-color: #f5fafd;\n color: #495c68;\n}\n.ts-dropdown .active.create {\n color: #495c68;\n}\n.ts-dropdown .create {\n color: rgba(48, 48, 48, 0.5);\n}\n.ts-dropdown .spinner {\n display: inline-block;\n width: 30px;\n height: 30px;\n margin: 5px 8px;\n}\n.ts-dropdown .spinner::after {\n content: \" \";\n display: block;\n width: 24px;\n height: 24px;\n margin: 3px;\n border-radius: 50%;\n border: 5px solid #d0d0d0;\n border-color: #d0d0d0 transparent #d0d0d0 transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n}\n@keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.ts-dropdown-content {\n overflow: hidden auto;\n max-height: 200px;\n scroll-behavior: smooth;\n}\n\n.ts-wrapper.plugin-drag_drop .ts-dragging {\n color: transparent !important;\n}\n.ts-wrapper.plugin-drag_drop .ts-dragging > * {\n visibility: hidden !important;\n}\n\n.plugin-checkbox_options:not(.rtl) .option input {\n margin-right: 0.5rem;\n}\n\n.plugin-checkbox_options.rtl .option input {\n margin-left: 0.5rem;\n}\n\n/* stylelint-disable function-name-case */\n.plugin-clear_button {\n --ts-pr-clear-button: 1em;\n}\n.plugin-clear_button .clear-button {\n opacity: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: calc(8px - 6px);\n margin-right: 0 !important;\n background: transparent !important;\n transition: opacity 0.5s;\n cursor: pointer;\n}\n.plugin-clear_button.form-select .clear-button, .plugin-clear_button.single .clear-button {\n right: max(var(--ts-pr-caret), 8px);\n}\n.plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {\n opacity: 1;\n}\n\n.ts-wrapper .dropdown-header {\n position: relative;\n padding: 10px 8px;\n border-bottom: 1px solid #d0d0d0;\n background: color-mix(#fff, #d0d0d0, 85%);\n border-radius: 3px 3px 0 0;\n}\n.ts-wrapper .dropdown-header-close {\n position: absolute;\n right: 8px;\n top: 50%;\n color: #303030;\n opacity: 0.4;\n margin-top: -12px;\n line-height: 20px;\n font-size: 20px !important;\n}\n.ts-wrapper .dropdown-header-close:hover {\n color: black;\n}\n\n.plugin-dropdown_input.focus.dropdown-active .ts-control {\n box-shadow: none;\n border: 1px solid #d0d0d0;\n}\n.plugin-dropdown_input .dropdown-input {\n border: 1px solid #d0d0d0;\n border-width: 0 0 1px;\n display: block;\n padding: 8px 8px;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);\n width: 100%;\n background: transparent;\n}\n.plugin-dropdown_input .items-placeholder {\n border: 0 none !important;\n box-shadow: none !important;\n width: 100%;\n}\n.plugin-dropdown_input.has-items .items-placeholder, .plugin-dropdown_input.dropdown-active .items-placeholder {\n display: none !important;\n}\n\n.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {\n min-width: 0;\n}\n.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {\n flex: none;\n min-width: 4px;\n}\n.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {\n color: transparent;\n}\n.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {\n color: transparent;\n}\n\n.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {\n display: flex;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup {\n border-right: 1px solid #f2f2f2;\n border-top: 0 none;\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {\n border-right: 0 none;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup::before {\n display: none;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup-header {\n border-top: 0 none;\n}\n\n.ts-wrapper.plugin-remove_button .item {\n display: inline-flex;\n align-items: center;\n}\n.ts-wrapper.plugin-remove_button .item .remove {\n color: inherit;\n text-decoration: none;\n vertical-align: middle;\n display: inline-block;\n padding: 0 6px;\n border-radius: 0 2px 2px 0;\n box-sizing: border-box;\n}\n.ts-wrapper.plugin-remove_button .item .remove:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {\n background: none;\n}\n.ts-wrapper.plugin-remove_button .remove-single {\n position: absolute;\n right: 0;\n top: 0;\n font-size: 23px;\n}\n\n.ts-wrapper.plugin-remove_button:not(.rtl) .item {\n padding-right: 0 !important;\n}\n.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {\n border-left: 1px solid #0073bb;\n margin-left: 6px;\n}\n.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {\n border-left-color: #00578d;\n}\n.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {\n border-left-color: #aaaaaa;\n}\n\n.ts-wrapper.plugin-remove_button.rtl .item {\n padding-left: 0 !important;\n}\n.ts-wrapper.plugin-remove_button.rtl .item .remove {\n border-right: 1px solid #0073bb;\n margin-right: 6px;\n}\n.ts-wrapper.plugin-remove_button.rtl .item.active .remove {\n border-right-color: #00578d;\n}\n.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {\n border-right-color: #aaaaaa;\n}\n\n:root {\n --ts-pr-clear-button: 0px;\n --ts-pr-caret: 0px;\n --ts-pr-min: .75rem;\n}\n\n.ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {\n cursor: pointer;\n}\n\n.ts-control:not(.rtl) {\n padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;\n}\n\n.ts-control.rtl {\n padding-left: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;\n}\n\n.ts-wrapper {\n position: relative;\n}\n\n.ts-dropdown,\n.ts-control,\n.ts-control input {\n color: #303030;\n font-family: inherit;\n font-size: 13px;\n line-height: 18px;\n}\n\n.ts-control,\n.ts-wrapper.single.input-active .ts-control {\n background: #fff;\n cursor: text;\n}\n\n.ts-hidden-accessible {\n border: 0 !important;\n clip: rect(0 0 0 0) !important;\n -webkit-clip-path: inset(50%) !important;\n clip-path: inset(50%) !important;\n overflow: hidden !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n white-space: nowrap !important;\n}\n\n.ts-wrapper.single .ts-control {\n --ts-pr-caret: 2rem;\n}\n.ts-wrapper.single .ts-control::after {\n content: \" \";\n display: block;\n position: absolute;\n top: 50%;\n margin-top: -3px;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 5px 5px 0 5px;\n border-color: #808080 transparent transparent transparent;\n}\n.ts-wrapper.single .ts-control:not(.rtl)::after {\n right: 15px;\n}\n.ts-wrapper.single .ts-control.rtl::after {\n left: 15px;\n}\n.ts-wrapper.single.dropdown-active .ts-control::after {\n margin-top: -4px;\n border-width: 0 5px 5px 5px;\n border-color: transparent transparent #808080 transparent;\n}\n.ts-wrapper.single.input-active .ts-control, .ts-wrapper.single.input-active .ts-control input {\n cursor: text;\n}\n\n.ts-wrapper {\n display: flex;\n min-height: 36px;\n}\n.ts-wrapper.multi.has-items .ts-control {\n padding-left: 5px;\n --ts-pr-min: $padding-x;\n}\n.ts-wrapper.multi .ts-control [data-value] {\n text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);\n border-radius: 3px;\n background-color: color-mix(#1da7ee, #178ee9, 60%);\n background-image: linear-gradient(to bottom, #1da7ee, #178ee9);\n background-repeat: repeat-x;\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);\n}\n.ts-wrapper.multi .ts-control [data-value].active {\n background-color: color-mix(#008fd8, #0075cf, 60%);\n background-image: linear-gradient(to bottom, #008fd8, #0075cf);\n background-repeat: repeat-x;\n}\n.ts-wrapper.multi.disabled .ts-control [data-value] {\n color: #999;\n text-shadow: none;\n background: none;\n box-shadow: none;\n}\n.ts-wrapper.multi.disabled .ts-control [data-value], .ts-wrapper.multi.disabled .ts-control [data-value] .remove {\n border-color: #e6e6e6;\n}\n.ts-wrapper.multi.disabled .ts-control [data-value] .remove {\n background: none;\n}\n.ts-wrapper.single .ts-control {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);\n background-color: color-mix(#fefefe, #f2f2f2, 60%);\n background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);\n background-repeat: repeat-x;\n}\n\n.ts-wrapper.single .ts-control, .ts-dropdown.single {\n border-color: #b8b8b8;\n}\n\n.dropdown-active .ts-control {\n border-radius: 3px 3px 0 0;\n}\n\n.ts-dropdown .optgroup-header {\n padding-top: 7px;\n font-weight: bold;\n font-size: 0.85em;\n}\n.ts-dropdown .optgroup {\n border-top: 1px solid #f0f0f0;\n}\n.ts-dropdown .optgroup:first-child {\n border-top: 0 none;\n}\n/*# sourceMappingURL=tom-select.default.css.map */";
|
|
5609
|
+
var tomSelectStylesheet = "/**\n * tom-select.css (v2.4.5)\n * Copyright (c) contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this\n * file except in compliance with the License. You may obtain a copy of the License at:\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF\n * ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n *\n */\n.ts-control {\n border: 1px solid #d0d0d0;\n padding: 8px 8px;\n width: 100%;\n overflow: hidden;\n position: relative;\n z-index: 1;\n box-sizing: border-box;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n display: flex;\n flex-wrap: wrap;\n}\n.ts-wrapper.multi.has-items .ts-control {\n padding: calc(8px - 2px - 1px) 8px calc(8px - 2px - 3px - 1px);\n}\n.full .ts-control {\n background-color: #fff;\n}\n.disabled .ts-control, .disabled .ts-control * {\n cursor: default !important;\n}\n.focus .ts-control {\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);\n}\n.ts-control > * {\n vertical-align: baseline;\n display: inline-block;\n}\n.ts-wrapper.multi .ts-control > div {\n cursor: pointer;\n margin: 0 3px 3px 0;\n padding: 2px 6px;\n background: #1da7ee;\n color: #fff;\n border: 1px solid #0073bb;\n overflow: auto;\n}\n.ts-wrapper.multi .ts-control > div.active {\n background: #92c836;\n color: #fff;\n border: 1px solid #00578d;\n}\n.ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {\n color: white;\n background: #d2d2d2;\n border: 1px solid #aaaaaa;\n}\n.ts-control > input {\n flex: 1 1 auto;\n min-width: 7rem;\n display: inline-block !important;\n padding: 0 !important;\n min-height: 0 !important;\n max-height: none !important;\n max-width: 100% !important;\n margin: 0 !important;\n text-indent: 0 !important;\n border: 0 none !important;\n background: none !important;\n line-height: inherit !important;\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n box-shadow: none !important;\n}\n.ts-control > input::-ms-clear {\n display: none;\n}\n.ts-control > input:focus {\n outline: none !important;\n}\n.has-items .ts-control > input {\n margin: 0px 4px !important;\n}\n.ts-control.rtl {\n text-align: right;\n}\n.ts-control.rtl.single .ts-control:after {\n left: 15px;\n right: auto;\n}\n.ts-control.rtl .ts-control > input {\n margin: 0px 4px 0px -2px !important;\n}\n.disabled .ts-control {\n opacity: 0.5;\n background-color: #fafafa;\n}\n.input-hidden .ts-control > input {\n opacity: 0;\n position: absolute;\n left: -10000px;\n}\n\n.ts-dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n z-index: 10;\n border: 1px solid #d0d0d0;\n background: #fff;\n margin: 0.25rem 0 0;\n border-top: 0 none;\n box-sizing: border-box;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n border-radius: 0 0 3px 3px;\n}\n.ts-dropdown [data-selectable] {\n cursor: pointer;\n overflow: hidden;\n}\n.ts-dropdown [data-selectable] .highlight {\n background: rgba(125, 168, 208, 0.2);\n border-radius: 1px;\n}\n.ts-dropdown .option,\n.ts-dropdown .optgroup-header,\n.ts-dropdown .no-results,\n.ts-dropdown .create {\n padding: 5px 8px;\n}\n.ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {\n cursor: inherit;\n opacity: 0.5;\n}\n.ts-dropdown [data-selectable].option {\n opacity: 1;\n cursor: pointer;\n}\n.ts-dropdown .optgroup:first-child .optgroup-header {\n border-top: 0 none;\n}\n.ts-dropdown .optgroup-header {\n color: #303030;\n background: #fff;\n cursor: default;\n}\n.ts-dropdown .active {\n background-color: #f5fafd;\n color: #495c68;\n}\n.ts-dropdown .active.create {\n color: #495c68;\n}\n.ts-dropdown .create {\n color: rgba(48, 48, 48, 0.5);\n}\n.ts-dropdown .spinner {\n display: inline-block;\n width: 30px;\n height: 30px;\n margin: 5px 8px;\n}\n.ts-dropdown .spinner::after {\n content: \" \";\n display: block;\n width: 24px;\n height: 24px;\n margin: 3px;\n border-radius: 50%;\n border: 5px solid #d0d0d0;\n border-color: #d0d0d0 transparent #d0d0d0 transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n}\n@keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.ts-dropdown-content {\n overflow: hidden auto;\n max-height: 200px;\n scroll-behavior: smooth;\n}\n\n.ts-wrapper.plugin-drag_drop .ts-dragging {\n color: transparent !important;\n}\n.ts-wrapper.plugin-drag_drop .ts-dragging > * {\n visibility: hidden !important;\n}\n\n.plugin-checkbox_options:not(.rtl) .option input {\n margin-right: 0.5rem;\n}\n\n.plugin-checkbox_options.rtl .option input {\n margin-left: 0.5rem;\n}\n\n/* stylelint-disable function-name-case */\n.plugin-clear_button {\n --ts-pr-clear-button: 1em;\n}\n.plugin-clear_button .clear-button {\n opacity: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: calc(8px - 6px);\n margin-right: 0 !important;\n background: transparent !important;\n transition: opacity 0.5s;\n cursor: pointer;\n}\n.plugin-clear_button.form-select .clear-button, .plugin-clear_button.single .clear-button {\n right: max(var(--ts-pr-caret), 8px);\n}\n.plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {\n opacity: 1;\n}\n\n.ts-wrapper .dropdown-header {\n position: relative;\n padding: 10px 8px;\n border-bottom: 1px solid #d0d0d0;\n background: color-mix(#fff, #d0d0d0, 85%);\n border-radius: 3px 3px 0 0;\n}\n.ts-wrapper .dropdown-header-close {\n position: absolute;\n right: 8px;\n top: 50%;\n color: #303030;\n opacity: 0.4;\n margin-top: -12px;\n line-height: 20px;\n font-size: 20px !important;\n}\n.ts-wrapper .dropdown-header-close:hover {\n color: black;\n}\n\n.plugin-dropdown_input.focus.dropdown-active .ts-control {\n box-shadow: none;\n border: 1px solid #d0d0d0;\n}\n.plugin-dropdown_input .dropdown-input {\n border: 1px solid #d0d0d0;\n border-width: 0 0 1px;\n display: block;\n padding: 8px 8px;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);\n width: 100%;\n background: transparent;\n}\n.plugin-dropdown_input .items-placeholder {\n border: 0 none !important;\n box-shadow: none !important;\n width: 100%;\n}\n.plugin-dropdown_input.has-items .items-placeholder, .plugin-dropdown_input.dropdown-active .items-placeholder {\n display: none !important;\n}\n\n.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {\n min-width: 0;\n}\n.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {\n flex: none;\n min-width: 4px;\n}\n.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {\n color: transparent;\n}\n.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {\n color: transparent;\n}\n\n.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {\n display: flex;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup {\n border-right: 1px solid #f2f2f2;\n border-top: 0 none;\n flex-grow: 1;\n flex-basis: 0;\n min-width: 0;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {\n border-right: 0 none;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup::before {\n display: none;\n}\n.ts-dropdown.plugin-optgroup_columns .optgroup-header {\n border-top: 0 none;\n}\n\n.ts-wrapper.plugin-remove_button .item {\n display: inline-flex;\n align-items: center;\n}\n.ts-wrapper.plugin-remove_button .item .remove {\n color: inherit;\n text-decoration: none;\n vertical-align: middle;\n display: inline-block;\n padding: 0 6px;\n border-radius: 0 2px 2px 0;\n box-sizing: border-box;\n}\n.ts-wrapper.plugin-remove_button .item .remove:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {\n background: none;\n}\n.ts-wrapper.plugin-remove_button .remove-single {\n position: absolute;\n right: 0;\n top: 0;\n font-size: 23px;\n}\n\n.ts-wrapper.plugin-remove_button:not(.rtl) .item {\n padding-right: 0 !important;\n}\n.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {\n border-left: 1px solid #0073bb;\n margin-left: 6px;\n}\n.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {\n border-left-color: #00578d;\n}\n.ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {\n border-left-color: #aaaaaa;\n}\n\n.ts-wrapper.plugin-remove_button.rtl .item {\n padding-left: 0 !important;\n}\n.ts-wrapper.plugin-remove_button.rtl .item .remove {\n border-right: 1px solid #0073bb;\n margin-right: 6px;\n}\n.ts-wrapper.plugin-remove_button.rtl .item.active .remove {\n border-right-color: #00578d;\n}\n.ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {\n border-right-color: #aaaaaa;\n}\n\n:root {\n --ts-pr-clear-button: 0px;\n --ts-pr-caret: 0px;\n --ts-pr-min: .75rem;\n}\n\n.ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {\n cursor: pointer;\n}\n\n.ts-control:not(.rtl) {\n padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;\n}\n\n.ts-control.rtl {\n padding-left: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;\n}\n\n.ts-wrapper {\n position: relative;\n}\n\n.ts-dropdown,\n.ts-control,\n.ts-control input {\n color: #303030;\n font-family: inherit;\n font-size: 13px;\n line-height: 18px;\n}\n\n.ts-control,\n.ts-wrapper.single.input-active .ts-control {\n background: #fff;\n cursor: text;\n}\n\n.ts-hidden-accessible {\n border: 0 !important;\n clip: rect(0 0 0 0) !important;\n -webkit-clip-path: inset(50%) !important;\n clip-path: inset(50%) !important;\n overflow: hidden !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n white-space: nowrap !important;\n}\n\n.ts-wrapper.single .ts-control {\n --ts-pr-caret: 2rem;\n}\n.ts-wrapper.single .ts-control::after {\n content: \" \";\n display: block;\n position: absolute;\n top: 50%;\n margin-top: -3px;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 5px 5px 0 5px;\n border-color: #808080 transparent transparent transparent;\n}\n.ts-wrapper.single .ts-control:not(.rtl)::after {\n right: 15px;\n}\n.ts-wrapper.single .ts-control.rtl::after {\n left: 15px;\n}\n.ts-wrapper.single.dropdown-active .ts-control::after {\n margin-top: -4px;\n border-width: 0 5px 5px 5px;\n border-color: transparent transparent #808080 transparent;\n}\n.ts-wrapper.single.input-active .ts-control, .ts-wrapper.single.input-active .ts-control input {\n cursor: text;\n}\n\n.ts-wrapper {\n display: flex;\n min-height: 36px;\n}\n.ts-wrapper.multi.has-items .ts-control {\n padding-left: 5px;\n --ts-pr-min: 5px;\n}\n.ts-wrapper.multi .ts-control [data-value] {\n text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);\n border-radius: 3px;\n background-color: color-mix(#1da7ee, #178ee9, 60%);\n background-image: linear-gradient(to bottom, #1da7ee, #178ee9);\n background-repeat: repeat-x;\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);\n}\n.ts-wrapper.multi .ts-control [data-value].active {\n background-color: color-mix(#008fd8, #0075cf, 60%);\n background-image: linear-gradient(to bottom, #008fd8, #0075cf);\n background-repeat: repeat-x;\n}\n.ts-wrapper.multi.disabled .ts-control [data-value] {\n color: #999;\n text-shadow: none;\n background: none;\n box-shadow: none;\n}\n.ts-wrapper.multi.disabled .ts-control [data-value], .ts-wrapper.multi.disabled .ts-control [data-value] .remove {\n border-color: #e6e6e6;\n}\n.ts-wrapper.multi.disabled .ts-control [data-value] .remove {\n background: none;\n}\n.ts-wrapper.single .ts-control {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);\n background-color: color-mix(#fefefe, #f2f2f2, 60%);\n background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);\n background-repeat: repeat-x;\n}\n\n.ts-wrapper.single .ts-control, .ts-dropdown.single {\n border-color: #b8b8b8;\n}\n\n.dropdown-active .ts-control {\n border-radius: 3px 3px 0 0;\n}\n\n.ts-dropdown .optgroup-header {\n padding-top: 7px;\n font-weight: bold;\n font-size: 0.85em;\n}\n.ts-dropdown .optgroup {\n border-top: 1px solid #f0f0f0;\n}\n.ts-dropdown .optgroup:first-child {\n border-top: 0 none;\n}\n/*# sourceMappingURL=tom-select.default.css.map */";
|
|
5602
5610
|
|
|
5603
5611
|
class LucosSearchComponent extends HTMLSpanElement {
|
|
5604
5612
|
static get observedAttributes() {
|
|
@@ -5703,6 +5711,16 @@ class LucosSearchComponent extends HTMLSpanElement {
|
|
|
5703
5711
|
--lozenge-border: #333;
|
|
5704
5712
|
--lozenge-text: #000;
|
|
5705
5713
|
}
|
|
5714
|
+
.lozenge[data-category="Literary"] {
|
|
5715
|
+
--lozenge-background: #a22400;
|
|
5716
|
+
--lozenge-border: #5e1500;
|
|
5717
|
+
--lozenge-text: #fff;
|
|
5718
|
+
}
|
|
5719
|
+
.lozenge[data-category="Dramaturgical"] {
|
|
5720
|
+
--lozenge-background: #5f0086;
|
|
5721
|
+
--lozenge-border: #59007d;
|
|
5722
|
+
--lozenge-text: #fff;
|
|
5723
|
+
}
|
|
5706
5724
|
|
|
5707
5725
|
.lozenge.active {
|
|
5708
5726
|
--lozenge-border: #b00;
|
package/package.json
CHANGED
|
@@ -104,6 +104,16 @@ class LucosSearchComponent extends HTMLSpanElement {
|
|
|
104
104
|
--lozenge-border: #333;
|
|
105
105
|
--lozenge-text: #000;
|
|
106
106
|
}
|
|
107
|
+
.lozenge[data-category="Literary"] {
|
|
108
|
+
--lozenge-background: #a22400;
|
|
109
|
+
--lozenge-border: #5e1500;
|
|
110
|
+
--lozenge-text: #fff;
|
|
111
|
+
}
|
|
112
|
+
.lozenge[data-category="Dramaturgical"] {
|
|
113
|
+
--lozenge-background: #5f0086;
|
|
114
|
+
--lozenge-border: #59007d;
|
|
115
|
+
--lozenge-text: #fff;
|
|
116
|
+
}
|
|
107
117
|
|
|
108
118
|
.lozenge.active {
|
|
109
119
|
--lozenge-border: #b00;
|