yio-map 0.11.2 → 0.12.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressSearch.d.ts","sourceRoot":"","sources":["../../src/controls/AddressSearch.js"],"names":[],"mappings":"AAOA;IACE,yCAOE;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYE;IAOA,oBAAsC;IACtC,
|
|
1
|
+
{"version":3,"file":"AddressSearch.d.ts","sourceRoot":"","sources":["../../src/controls/AddressSearch.js"],"names":[],"mappings":"AAOA;IACE,yCAOE;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYE;IAOA,oBAAsC;IACtC,oBAAoB;IACpB,wBAA2B;IAC3B,wBAAwB;IACxB,eAAqB;IACrB,eAAgB;IAChB,gBAAkB;IAClB,kBAAqB;IACrB,sBAAyB;IACzB,eAAkB;IAClB,sBAAsB;IA+PxB,+CAqBC;;CACF;2BAnUgD,KAAK"}
|
package/dist/yio-map.iife.js
CHANGED
|
@@ -116,7 +116,7 @@ var YioMap=(function(){"use strict";var ZC=Object.defineProperty;var nm=be=>{thr
|
|
|
116
116
|
<a href="https://yio.at" target="_blank" rel="noopener">
|
|
117
117
|
<b>yio gmbh</b>
|
|
118
118
|
</a>
|
|
119
|
-
`);for(const o of t)i.push(o);const r=i.map((o,a)=>a===0?`<li>${o}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${o}</li>`).join("");let s=e.querySelector("ul");s||(s=document.createElement("ul"),e.appendChild(s)),s.innerHTML=r}}),XC=".address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{position:relative;width:100%;flex-direction:column;display:flex}.search-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #ccc;border-radius:4px;padding:0 10px}.search-icon{width:16px;height:16px;margin-right:8px;fill:#666;flex-shrink:0}.search-input{flex:1;border:none;outline:none;padding:10px 0;font-size:14px;background:transparent}.search-input::placeholder{color:#999}.loading-indicator{width:16px;height:16px;border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{display:none;margin-top:4px;background:#fff;border:1px solid #ccc;border-radius:4px}.search-container:focus-within .results-dropdown{display:block}.results-list{list-style:none;margin:0;padding:0;overflow-y:auto;max-height:300px}@container (width >= 10px){.results-list{max-height:70cqh}}.result-item{display:flex;align-items:stretch;padding:10px 12px;cursor:pointer;border-bottom:1px solid #eee;transition:background-color .15s}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{width:20px;height:20px;margin-right:10px;flex-shrink:0;fill:#666}.result-icon.special{fill:#df486e}.result-content{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.result-title{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-subtitle{font-size:12px;color:#666;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-distance{font-size:12px;color:#999;margin-left:8px;flex-shrink:0;white-space:nowrap}.results-footer{padding:8px 12px;border-top:1px solid #eee;background:#fafafa;font-size:12px;color:#666}.prefer-close-label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.prefer-close-label input{margin-right:
|
|
119
|
+
`);for(const o of t)i.push(o);const r=i.map((o,a)=>a===0?`<li>${o}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${o}</li>`).join("");let s=e.querySelector("ul");s||(s=document.createElement("ul"),e.appendChild(s)),s.innerHTML=r}}),XC=".address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{position:relative;width:100%;flex-direction:column;display:flex}.search-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #ccc;border-radius:4px;padding:0 10px}.search-icon{width:16px;height:16px;margin-right:8px;fill:#666;flex-shrink:0}.search-input{flex:1;border:none;outline:none;padding:10px 0;font-size:14px;background:transparent}.search-input::placeholder{color:#999}.loading-indicator{width:16px;height:16px;border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{display:none;margin-top:4px;background:#fff;border:1px solid #ccc;border-radius:4px}.search-container:focus-within .results-dropdown{display:block}.results-list{list-style:none;margin:0;padding:0;overflow-y:auto;max-height:300px}@container (width >= 10px){.results-list{max-height:70cqh}}.result-item{display:flex;align-items:stretch;padding:10px 12px;cursor:pointer;border-bottom:1px solid #eee;transition:background-color .15s}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{width:20px;height:20px;margin-right:10px;flex-shrink:0;fill:#666}.result-icon.special{fill:#df486e}.result-content{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.result-title{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-subtitle{font-size:12px;color:#666;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-distance{font-size:12px;color:#999;margin-left:8px;flex-shrink:0;white-space:nowrap}.results-footer{padding:8px 12px;border-top:1px solid #eee;background:#fafafa;font-size:12px;color:#666}.prefer-close-label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.prefer-close-label input{margin-right:3px;margin-left:0}.no-results{padding:16px 12px;text-align:center;color:#666}.no-results.error{color:#c62828}.result-count-input{width:28px;padding:1px 2px;border:1px solid #ccc;border-radius:3px;font-size:12px;text-align:center;-moz-appearance:textfield}.result-count-input::-webkit-inner-spin-button,.result-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}",em="https://srv.doris.at/solr/searchservice/search/all2",tm=250;class cd extends Ur{constructor(){super();ae(this,de);ae(this,Yo,null);ae(this,Fs,null);this.placeholder="Search Address...",this.resultCount=5,this.sortByDistance=!1,this.minSearchLength=3,this.mapCenter=null,this._query="",this._results=[],this._loading=!1,this._showResults=!1,this._error=null,this._totalResults=0}render(){return Bt`
|
|
120
120
|
<div class="address-search">
|
|
121
121
|
<div class="search-container" tabindex="1">
|
|
122
122
|
<div class="search-input-wrapper">
|
package/dist/yio-map.js
CHANGED
|
@@ -1282,7 +1282,7 @@ const YioAttribution = new Attribution({
|
|
|
1282
1282
|
list.innerHTML = html;
|
|
1283
1283
|
}
|
|
1284
1284
|
});
|
|
1285
|
-
const style = ".address-search {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 14px;\n}\n\n.search-container {\n position: relative;\n width: 100%;\n flex-direction: column;\n display: flex;\n}\n\n.search-input-wrapper {\n display: flex;\n align-items: center;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n padding: 0 10px;\n}\n\n\n.search-icon {\n width: 16px;\n height: 16px;\n margin-right: 8px;\n fill: #666;\n flex-shrink: 0;\n}\n\n.search-input {\n flex: 1;\n border: none;\n outline: none;\n padding: 10px 0;\n font-size: 14px;\n background: transparent;\n}\n\n.search-input::placeholder {\n color: #999;\n}\n\n.loading-indicator {\n width: 16px;\n height: 16px;\n border: 2px solid #e0e0e0;\n border-top-color: #666;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n flex-shrink: 0;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n\n.results-dropdown {\n display: none;\n margin-top: 4px;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n\n.search-container:focus-within .results-dropdown {\n display: block;\n}\n\n.results-list {\n list-style: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n max-height: 300px;\n}\n\n@container (width >= 10px) {\n .results-list {\n max-height: 70cqh;\n }\n}\n\n.result-item {\n display: flex;\n align-items: stretch;\n padding: 10px 12px;\n cursor: pointer;\n border-bottom: 1px solid #eee;\n transition: background-color 0.15s;\n}\n\n.result-item:last-child {\n border-bottom: none;\n}\n\n.result-item:hover {\n background-color: #f5f5f5;\n}\n\n.result-icon {\n width: 20px;\n height: 20px;\n margin-right: 10px;\n flex-shrink: 0;\n fill: #666;\n}\n\n.result-icon.special {\n fill: #DF486EFF;\n}\n\n.result-content {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.result-title {\n font-weight: 500;\n color: #333;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.result-subtitle {\n font-size: 12px;\n color: #666;\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.result-distance {\n font-size: 12px;\n color: #999;\n margin-left: 8px;\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.results-footer {\n padding: 8px 12px;\n border-top: 1px solid #eee;\n background: #fafafa;\n font-size: 12px;\n color: #666;\n}\n\n.prefer-close-label {\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n}\n\n.prefer-close-label input {\n margin-right:
|
|
1285
|
+
const style = ".address-search {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 14px;\n}\n\n.search-container {\n position: relative;\n width: 100%;\n flex-direction: column;\n display: flex;\n}\n\n.search-input-wrapper {\n display: flex;\n align-items: center;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n padding: 0 10px;\n}\n\n\n.search-icon {\n width: 16px;\n height: 16px;\n margin-right: 8px;\n fill: #666;\n flex-shrink: 0;\n}\n\n.search-input {\n flex: 1;\n border: none;\n outline: none;\n padding: 10px 0;\n font-size: 14px;\n background: transparent;\n}\n\n.search-input::placeholder {\n color: #999;\n}\n\n.loading-indicator {\n width: 16px;\n height: 16px;\n border: 2px solid #e0e0e0;\n border-top-color: #666;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n flex-shrink: 0;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n\n.results-dropdown {\n display: none;\n margin-top: 4px;\n background: white;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n\n.search-container:focus-within .results-dropdown {\n display: block;\n}\n\n.results-list {\n list-style: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n max-height: 300px;\n}\n\n@container (width >= 10px) {\n .results-list {\n max-height: 70cqh;\n }\n}\n\n.result-item {\n display: flex;\n align-items: stretch;\n padding: 10px 12px;\n cursor: pointer;\n border-bottom: 1px solid #eee;\n transition: background-color 0.15s;\n}\n\n.result-item:last-child {\n border-bottom: none;\n}\n\n.result-item:hover {\n background-color: #f5f5f5;\n}\n\n.result-icon {\n width: 20px;\n height: 20px;\n margin-right: 10px;\n flex-shrink: 0;\n fill: #666;\n}\n\n.result-icon.special {\n fill: #DF486EFF;\n}\n\n.result-content {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.result-title {\n font-weight: 500;\n color: #333;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.result-subtitle {\n font-size: 12px;\n color: #666;\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.result-distance {\n font-size: 12px;\n color: #999;\n margin-left: 8px;\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.results-footer {\n padding: 8px 12px;\n border-top: 1px solid #eee;\n background: #fafafa;\n font-size: 12px;\n color: #666;\n}\n\n.prefer-close-label {\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n}\n\n.prefer-close-label input {\n margin-right: 3px;\n margin-left: 0;\n}\n\n.no-results {\n padding: 16px 12px;\n text-align: center;\n color: #666;\n}\n\n.no-results.error {\n color: #c62828;\n}\n\n.result-count-input {\n width: 28px;\n padding: 1px 2px;\n border: 1px solid #ccc;\n border-radius: 3px;\n font-size: 12px;\n text-align: center;\n -moz-appearance: textfield;\n}\n\n.result-count-input::-webkit-inner-spin-button,\n.result-count-input::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n";
|
|
1286
1286
|
const DORIS_API_BASE = "https://srv.doris.at/solr/searchservice/search/all2";
|
|
1287
1287
|
const DEBOUNCE_MS = 250;
|
|
1288
1288
|
class AddressSearch extends i {
|
|
@@ -1292,7 +1292,7 @@ class AddressSearch extends i {
|
|
|
1292
1292
|
__privateAdd(this, _debounceTimer, null);
|
|
1293
1293
|
__privateAdd(this, _abortController, null);
|
|
1294
1294
|
this.placeholder = "Search Address...";
|
|
1295
|
-
this.resultCount =
|
|
1295
|
+
this.resultCount = 5;
|
|
1296
1296
|
this.sortByDistance = false;
|
|
1297
1297
|
this.minSearchLength = 3;
|
|
1298
1298
|
this.mapCenter = null;
|
package/dist/yio-map.umd.cjs
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<a href="https://yio.at" target="_blank" rel="noopener">
|
|
117
117
|
<b>yio gmbh</b>
|
|
118
118
|
</a>
|
|
119
|
-
`);for(const o of t)i.push(o);const r=i.map((o,a)=>a===0?`<li>${o}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${o}</li>`).join("");let s=e.querySelector("ul");s||(s=document.createElement("ul"),e.appendChild(s)),s.innerHTML=r}}),XC=".address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{position:relative;width:100%;flex-direction:column;display:flex}.search-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #ccc;border-radius:4px;padding:0 10px}.search-icon{width:16px;height:16px;margin-right:8px;fill:#666;flex-shrink:0}.search-input{flex:1;border:none;outline:none;padding:10px 0;font-size:14px;background:transparent}.search-input::placeholder{color:#999}.loading-indicator{width:16px;height:16px;border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{display:none;margin-top:4px;background:#fff;border:1px solid #ccc;border-radius:4px}.search-container:focus-within .results-dropdown{display:block}.results-list{list-style:none;margin:0;padding:0;overflow-y:auto;max-height:300px}@container (width >= 10px){.results-list{max-height:70cqh}}.result-item{display:flex;align-items:stretch;padding:10px 12px;cursor:pointer;border-bottom:1px solid #eee;transition:background-color .15s}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{width:20px;height:20px;margin-right:10px;flex-shrink:0;fill:#666}.result-icon.special{fill:#df486e}.result-content{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.result-title{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-subtitle{font-size:12px;color:#666;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-distance{font-size:12px;color:#999;margin-left:8px;flex-shrink:0;white-space:nowrap}.results-footer{padding:8px 12px;border-top:1px solid #eee;background:#fafafa;font-size:12px;color:#666}.prefer-close-label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.prefer-close-label input{margin-right:
|
|
119
|
+
`);for(const o of t)i.push(o);const r=i.map((o,a)=>a===0?`<li>${o}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${o}</li>`).join("");let s=e.querySelector("ul");s||(s=document.createElement("ul"),e.appendChild(s)),s.innerHTML=r}}),XC=".address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{position:relative;width:100%;flex-direction:column;display:flex}.search-input-wrapper{display:flex;align-items:center;background:#fff;border:1px solid #ccc;border-radius:4px;padding:0 10px}.search-icon{width:16px;height:16px;margin-right:8px;fill:#666;flex-shrink:0}.search-input{flex:1;border:none;outline:none;padding:10px 0;font-size:14px;background:transparent}.search-input::placeholder{color:#999}.loading-indicator{width:16px;height:16px;border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{display:none;margin-top:4px;background:#fff;border:1px solid #ccc;border-radius:4px}.search-container:focus-within .results-dropdown{display:block}.results-list{list-style:none;margin:0;padding:0;overflow-y:auto;max-height:300px}@container (width >= 10px){.results-list{max-height:70cqh}}.result-item{display:flex;align-items:stretch;padding:10px 12px;cursor:pointer;border-bottom:1px solid #eee;transition:background-color .15s}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{width:20px;height:20px;margin-right:10px;flex-shrink:0;fill:#666}.result-icon.special{fill:#df486e}.result-content{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.result-title{font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-subtitle{font-size:12px;color:#666;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-distance{font-size:12px;color:#999;margin-left:8px;flex-shrink:0;white-space:nowrap}.results-footer{padding:8px 12px;border-top:1px solid #eee;background:#fafafa;font-size:12px;color:#666}.prefer-close-label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.prefer-close-label input{margin-right:3px;margin-left:0}.no-results{padding:16px 12px;text-align:center;color:#666}.no-results.error{color:#c62828}.result-count-input{width:28px;padding:1px 2px;border:1px solid #ccc;border-radius:3px;font-size:12px;text-align:center;-moz-appearance:textfield}.result-count-input::-webkit-inner-spin-button,.result-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}",em="https://srv.doris.at/solr/searchservice/search/all2",tm=250;class cd extends Ur{constructor(){super();ae(this,de);ae(this,Yo,null);ae(this,Fs,null);this.placeholder="Search Address...",this.resultCount=5,this.sortByDistance=!1,this.minSearchLength=3,this.mapCenter=null,this._query="",this._results=[],this._loading=!1,this._showResults=!1,this._error=null,this._totalResults=0}render(){return Bt`
|
|
120
120
|
<div class="address-search">
|
|
121
121
|
<div class="search-container" tabindex="1">
|
|
122
122
|
<div class="search-input-wrapper">
|
package/package.json
CHANGED