yio-map 0.14.1 → 0.14.2

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.
@@ -95,11 +95,11 @@ var YioMap=(function(){var e=globalThis,t=e.ShadowRoot&&(e.ShadyCSS===void 0||e.
95
95
  <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23dc4b6f" viewBox="0 0 24 24">
96
96
  <path fill-rule="evenodd" d="M11.906 1.994a8.002 8.002 0 0 1 8.09 8.421 7.996 7.996 0 0 1-1.297 3.957.996.996 0 0 1-.133.204l-.108.129c-.178.243-.37.477-.573.699l-5.112 6.224a1 1 0 0 1-1.545 0L5.982 15.26l-.002-.002a18.146 18.146 0 0 1-.309-.38l-.133-.163a.999.999 0 0 1-.13-.202 7.995 7.995 0 0 1 6.498-12.518ZM15 9.997a3 3 0 1 1-5.999 0 3 3 0 0 1 5.999 0Z" clip-rule="evenodd" />
97
97
  </svg>
98
- `,anchor:[.5,1]})}),Aw=class extends No{#e=null;#t=null;#n=null;getEditLayer(){return this.#t}clearModifiedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)!==void 0);e.removeFeatures(t),this.#a.clear()}clearCreatedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)===void 0);e.removeFeatures(t)}#r;#i=null;#a=new Set;constructor(e){super(),this.#e=e.yioMap}drawInteraction;modifyInteraction;#o(e){this.#e._handleClick(e.originalEvent)}#s=null;#c=!1;#l(){this.drawInteraction=new dw({source:this.#t.getSource(),condition:e=>Ko(e)?this.createEnabled&&!this.#c:!1,type:`Point`,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.drawInteraction),this.drawInteraction.on(`drawend`,e=>{e.feature.set(`mvt:layer`,this.#r)}),this.modifyInteraction=new xw({source:this.#t.getSource(),condition:e=>Zo(e)?this.modifyEnabled:!1,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.modifyInteraction)}#u(){this.drawInteraction&&=(this.drawInteraction.setMap(null),null),this.modifyInteraction&&=(this.modifyInteraction.setMap(null),null)}async setActive(e){if(e===this.getActive())return;let t=this.getMap();if(t){if(e){let e=await this.#e._getContentLayerPromise();if(!_C(e,`edits`).length){console.warn(`No edits source found in content layer. Please add a source with key "edits" and at least one layer that uses it.`);let t=e.get(`mapbox-style`);t.sources.edits={type:`geojson`,data:{type:`FeatureCollection`,features:[]}};for(let n of t.layers)t.sources[n.source]?.type!==`vector`&&(n.type!==`circle`||n.type!==`symbol`)||await pC(e,{id:`edits-`+n.id,source:`edits`,"source-layer":n[`source-layer`],type:`circle`,paint:{"circle-radius":5,"circle-color":`#ff0000`,"circle-stroke-width":1}})}this.#t=_C(e,`edits`)[0],this.#n=this.#e._getContentLayer().getLayers().getArray().filter(e=>e instanceof Gx).pop(),this.#s||(this.#s=this.#n.getStyle(),this.#n.setStyle((e,t)=>{if(!this.#a.has(e.get(`id`)))return this.#s(e,t)})),this.#d||(this.#d=e=>{if(!this.modifyEnabled)return t.getTargetElement().style.cursor=``,this.#c=!1,null;this.#c=!!this.#f(e.pixel),this.#c?t.getTargetElement().classList.add(`cursor-move`):t.getTargetElement().classList.remove(`cursor-move`)},t.on(`pointermove`,this.#d)),this.#l()}else this.#s&&=(this.#n.setStyle(this.#s),null),this.#r=null,this.#d&&=(t.un(`pointermove`,this.#d),null),this.#u();super.setActive(e)}}get createEnabled(){return!!this.#r}async setCreateEnabled(e){this.#r=e||void 0,e||(this.clearCreatedFeatures(),this.#n.getSource().refresh()),await this.setActive(!!e||!!this.#i),this.drawInteraction&&this.drawInteraction.setMap(e?this.getMap():null),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#i?this.getMap():null)}get modifyEnabled(){return!!this.#i||!!this.#r}async setModifyEnabled(e){e&&e.length===0&&(e=null),e||(this.clearModifiedFeatures(),this.#n.getSource().refresh()),this.#i=e,await this.setActive(!!e||!!this.#r),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#r?this.getMap():null)}#d=null;#f(e){let t=this.getMap().getFeaturesAtPixel(e,{layerFilter:e=>e===this.#t||e==this.#n}).filter(e=>e.getGeometry().getType()===`Point`&&(this.#t.getSource().hasFeature(e)||this.#i?.includes(e.get(`id`))));return t.length?t[0]:null}handleEvent(e){let t=!0;if(e.type===`pointerdown`){let t=this.#f(e.pixel);if(t&&t instanceof md&&this.modifyEnabled){let e=t.get(`id`);this.#a.has(e)||this.#a.add(e),this.#n.changed();let n=gd(t);this.#t.getSource().addFeature(n)}}return t&&this.modifyEnabled&&(t=this.modifyInteraction.handleEvent(e)),t&&this.createEnabled&&(t=this.drawInteraction.handleEvent(e)),t&&e.type===`click`&&this.#o(e),t}},jw=class extends No{#e=null;#t=new _y({source:new Ov});constructor(e){super(),this.#e=e.yioMap,this.setActive(!1)}setMap(e){let t=this.getMap();t&&t.removeLayer(this.#t),e&&(e.addLayer(this.#t),super.setMap(e))}#n(e){let t=this.#t.getSource();t.clear();let n=new $u(new xa(e));n.setStyle(kw),t.addFeature(n),this.#e.dispatchEvent(new CustomEvent(`pin`,{composed:!0,bubbles:!0,detail:{coordinate:li(e)}}))}#r(e){let t=this.getMap(),n=this.#e._getContentLayer();t.getFeaturesAtPixel(e.pixel,{layerFilter:e=>n.getLayers().getArray().includes(e)}).length===0&&this.#n(e.coordinate)}setActive(e){e||this.#t.getSource().clear(),super.setActive(e)}setPin(e){this.#n(e)}handleEvent(e){return e.type===`click`&&this.#r(e),!0}},Mw=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%20256%20256'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%3e%3cg%20id='favicon'%3e%3crect%20x='0'%20y='0'%20width='256'%20height='256'%20style='fill:none;'/%3e%3cg%3e%3cpath%20d='M54.77,244.669C59.16,246.864%2071.078,250.001%2083.623,250.001C125.022,250.001%20142.585,223.029%20152.621,191.98L212.21,6L163.284,6L146.662,66.216C140.076,90.051%20135.999,112.005%20133.49,128L132.235,128C130.04,112.946%20123.14,86.288%20116.554,66.216L96.796,6L43.793,6L110.282,182.571C108.713,200.448%2098.677,210.17%2081.742,210.17C73.901,210.17%2067.315,208.288%2062.61,205.779L54.77,244.669Z'%20style='fill:rgb(223,72,110);fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Nw={name:`yio-map`,description:`Web component for interactive maps using LitElement and OpenLayers`,license:`MIT`,author:`yio-map`,repository:{type:`git`,url:`https://github.com/yiogmbh/yio-map`},version:`0.14.1`,type:`module`,files:[`dist`],exports:{".":{import:`./dist/yio-map.js`,types:`./dist/index.d.ts`}},scripts:{start:`vite`,build:`vite build && vite -c vite.config-umd.js build && tsc src/index.js --outDir dist --skipLibCheck --allowJS --declaration --declarationMap --emitDeclarationOnly`,prepublish:`npm run build`,prepublishOnly:`npm run build`,lint:`eslint --ext .js,.html . && prettier "**/*.(js|html)" --check --ignore-path .gitignore`,format:`eslint --ext .js,.html . --fix && prettier "**/*.(js|html)" --write --ignore-path .gitignore`,prepare:`husky`,pretest:`tsc --noEmit && npx playwright install chromium-headless-shell`,test:`vitest run --silent`,"test:watch":`npm run pretest && vitest watch`,storybook:`storybook dev -p 6006`,"storybook:build":`storybook build`},dependencies:{lit:`^3.3.2`},peerDependencies:{ol:`^10.7.0`,"ol-mapbox-style":`^13.2.0`},devDependencies:{"@chromatic-com/storybook":`^5.1.1`,"@storybook/addon-docs":`10.3.5`,"@storybook/web-components":`^10.3.5`,"@storybook/web-components-vite":`^10.3.5`,"@types/node":`^25.0.10`,"@vitest/browser":`^4.1.4`,"@vitest/browser-playwright":`^4.1.4`,eslint:`^9.39.2`,"eslint-config-flat-gitignore":`^2.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-html":`^8.1.4`,"eslint-plugin-storybook":`^10.3.5`,husky:`^9.1.7`,"lint-staged":`^15.5.2`,playwright:`^1.58.0`,prettier:`^3.8.1`,"rollup-plugin-peer-deps-external":`^2.2.4`,storybook:`10.3.5`,typescript:`^5.9.3`,vite:`8.0.5`,vitest:`^4.1.4`},"lint-staged":{"*.js":[`eslint --fix`,`prettier --write`]}},Pw=document.createElement(`img`);Pw.src=Mw,Pw.alt=`yio.at`,Pw.style.height=`1em`;var Fw=new Do({label:Pw,render:function(e){let t=this.element;if(!t||!e.frameState)return;let n=this.collectSourceAttributions_(e.frameState)??[],r=[];r.push(`
98
+ `,anchor:[.5,1]})}),Aw=class extends No{#e=null;#t=null;#n=null;getEditLayer(){return this.#t}clearModifiedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)!==void 0);e.removeFeatures(t),this.#a.clear()}clearCreatedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)===void 0);e.removeFeatures(t)}#r;#i=null;#a=new Set;constructor(e){super(),this.#e=e.yioMap}drawInteraction;modifyInteraction;#o(e){this.#e._handleClick(e.originalEvent)}#s=null;#c=!1;#l(){this.drawInteraction=new dw({source:this.#t.getSource(),condition:e=>Ko(e)?this.createEnabled&&!this.#c:!1,type:`Point`,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.drawInteraction),this.drawInteraction.on(`drawend`,e=>{e.feature.set(`mvt:layer`,this.#r)}),this.modifyInteraction=new xw({source:this.#t.getSource(),condition:e=>Zo(e)?this.modifyEnabled:!1,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.modifyInteraction)}#u(){this.drawInteraction&&=(this.drawInteraction.setMap(null),null),this.modifyInteraction&&=(this.modifyInteraction.setMap(null),null)}async setActive(e){if(e===this.getActive())return;let t=this.getMap();if(t){if(e){let e=await this.#e._getContentLayerPromise();if(!_C(e,`edits`).length){console.warn(`No edits source found in content layer. Please add a source with key "edits" and at least one layer that uses it.`);let t=e.get(`mapbox-style`);t.sources.edits={type:`geojson`,data:{type:`FeatureCollection`,features:[]}};for(let n of t.layers)t.sources[n.source]?.type!==`vector`&&(n.type!==`circle`||n.type!==`symbol`)||await pC(e,{id:`edits-`+n.id,source:`edits`,"source-layer":n[`source-layer`],type:`circle`,paint:{"circle-radius":5,"circle-color":`#ff0000`,"circle-stroke-width":1}})}this.#t=_C(e,`edits`)[0],this.#n=this.#e._getContentLayer().getLayers().getArray().filter(e=>e instanceof Gx).pop(),this.#s||(this.#s=this.#n.getStyle(),this.#n.setStyle((e,t)=>{if(!this.#a.has(e.get(`id`)))return this.#s(e,t)})),this.#d||(this.#d=e=>{if(!this.modifyEnabled)return t.getTargetElement().style.cursor=``,this.#c=!1,null;this.#c=!!this.#f(e.pixel),this.#c?t.getTargetElement().classList.add(`cursor-move`):t.getTargetElement().classList.remove(`cursor-move`)},t.on(`pointermove`,this.#d)),this.#l()}else this.#s&&=(this.#n.setStyle(this.#s),null),this.#r=null,this.#d&&=(t.un(`pointermove`,this.#d),null),this.#u();super.setActive(e)}}get createEnabled(){return!!this.#r}async setCreateEnabled(e){this.#r=e||void 0,e||(this.clearCreatedFeatures(),this.#n.getSource().refresh()),await this.setActive(!!e||!!this.#i),this.drawInteraction&&this.drawInteraction.setMap(e?this.getMap():null),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#i?this.getMap():null)}get modifyEnabled(){return!!this.#i||!!this.#r}async setModifyEnabled(e){e&&e.length===0&&(e=null),e||(this.clearModifiedFeatures(),this.#n.getSource().refresh()),this.#i=e,await this.setActive(!!e||!!this.#r),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#r?this.getMap():null)}#d=null;#f(e){let t=this.getMap().getFeaturesAtPixel(e,{layerFilter:e=>e===this.#t||e==this.#n}).filter(e=>e.getGeometry().getType()===`Point`&&(this.#t.getSource().hasFeature(e)||this.#i?.includes(e.get(`id`))));return t.length?t[0]:null}handleEvent(e){let t=!0;if(e.type===`pointerdown`){let t=this.#f(e.pixel);if(t&&t instanceof md&&this.modifyEnabled){let e=t.get(`id`);this.#a.has(e)||this.#a.add(e),this.#n.changed();let n=gd(t);this.#t.getSource().addFeature(n)}}return t&&this.modifyEnabled&&(t=this.modifyInteraction.handleEvent(e)),t&&this.createEnabled&&(t=this.drawInteraction.handleEvent(e)),t&&e.type===`click`&&this.#o(e),t}},jw=class extends No{#e=null;#t=new _y({source:new Ov});constructor(e){super(),this.#e=e.yioMap,this.setActive(!1)}setMap(e){let t=this.getMap();t&&t.removeLayer(this.#t),e&&(e.addLayer(this.#t),super.setMap(e))}#n(e){let t=this.#t.getSource();t.clear();let n=new $u(new xa(e));n.setStyle(kw),t.addFeature(n),this.#e.dispatchEvent(new CustomEvent(`pin`,{composed:!0,bubbles:!0,detail:{coordinate:li(e)}}))}#r(e){let t=this.getMap(),n=this.#e._getContentLayer();t.getFeaturesAtPixel(e.pixel,{layerFilter:e=>n.getLayers().getArray().includes(e)}).length===0&&this.#n(e.coordinate)}setActive(e){e||this.#t.getSource().clear(),super.setActive(e)}setPin(e){this.#n(e)}handleEvent(e){return e.type===`click`&&this.#r(e),!0}},Mw=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%20256%20256'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%3e%3cg%20id='favicon'%3e%3crect%20x='0'%20y='0'%20width='256'%20height='256'%20style='fill:none;'/%3e%3cg%3e%3cpath%20d='M54.77,244.669C59.16,246.864%2071.078,250.001%2083.623,250.001C125.022,250.001%20142.585,223.029%20152.621,191.98L212.21,6L163.284,6L146.662,66.216C140.076,90.051%20135.999,112.005%20133.49,128L132.235,128C130.04,112.946%20123.14,86.288%20116.554,66.216L96.796,6L43.793,6L110.282,182.571C108.713,200.448%2098.677,210.17%2081.742,210.17C73.901,210.17%2067.315,208.288%2062.61,205.779L54.77,244.669Z'%20style='fill:rgb(223,72,110);fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Nw={name:`yio-map`,description:`Web component for interactive maps using LitElement and OpenLayers`,license:`MIT`,author:`yio-map`,repository:{type:`git`,url:`https://github.com/yiogmbh/yio-map`},version:`0.14.2`,type:`module`,files:[`dist`],exports:{".":{import:`./dist/yio-map.js`,types:`./dist/index.d.ts`}},scripts:{start:`vite`,build:`vite build && vite -c vite.config-umd.js build && tsc src/index.js --outDir dist --skipLibCheck --allowJS --declaration --declarationMap --emitDeclarationOnly`,prepublish:`npm run build`,prepublishOnly:`npm run build`,lint:`eslint --ext .js,.html . && prettier "**/*.(js|html)" --check --ignore-path .gitignore`,format:`eslint --ext .js,.html . --fix && prettier "**/*.(js|html)" --write --ignore-path .gitignore`,prepare:`husky`,pretest:`tsc --noEmit && npx playwright install chromium-headless-shell`,test:`vitest run --silent`,"test:watch":`npm run pretest && vitest watch`,storybook:`storybook dev -p 6006`,"storybook:build":`storybook build`},dependencies:{lit:`^3.3.2`},peerDependencies:{ol:`^10.7.0`,"ol-mapbox-style":`^13.2.0`},devDependencies:{"@chromatic-com/storybook":`^5.1.1`,"@storybook/addon-docs":`10.3.5`,"@storybook/web-components":`^10.3.5`,"@storybook/web-components-vite":`^10.3.5`,"@types/node":`^25.0.10`,"@vitest/browser":`^4.1.4`,"@vitest/browser-playwright":`^4.1.4`,eslint:`^9.39.2`,"eslint-config-flat-gitignore":`^2.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-html":`^8.1.4`,"eslint-plugin-storybook":`^10.3.5`,husky:`^9.1.7`,"lint-staged":`^15.5.2`,playwright:`^1.58.0`,prettier:`^3.8.1`,"rollup-plugin-peer-deps-external":`^2.2.4`,storybook:`10.3.5`,typescript:`^5.9.3`,vite:`8.0.5`,vitest:`^4.1.4`},"lint-staged":{"*.js":[`eslint --fix`,`prettier --write`]}},Pw=document.createElement(`img`);Pw.src=Mw,Pw.alt=`yio.at`,Pw.style.height=`1em`;var Fw=new Do({label:Pw,render:function(e){let t=this.element;if(!t||!e.frameState)return;let n=this.collectSourceAttributions_(e.frameState)??[],r=[];r.push(`
99
99
  <a href="https://yio.at" target="_blank" rel="noopener">
100
100
  <b>yio gmbh</b>
101
101
  </a> v${Nw.version}
102
- `);for(let e of n)r.push(e);let i=r.map((e,t)=>t===0?`<li>${e}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${e}</li>`).join(``),a=t.querySelector(`ul`);a||(a=document.createElement(`ul`),t.appendChild(a)),a.innerHTML=i}}),Iw=`.address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{flex-direction:column;width:100%;display:flex;position:relative}.search-input-wrapper{background:#fff;border:1px solid #ccc;border-radius:4px;align-items:center;padding:0 10px;display:flex}.search-icon{fill:#666;flex-shrink:0;width:16px;height:16px;margin-right:8px}.search-input{background:0 0;border:none;outline:none;flex:1;padding:10px 0;font-size:14px}.search-input::placeholder{color:#999}.loading-indicator{border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{background:#fff;border:1px solid #ccc;border-radius:4px;margin-top:4px;display:none}.search-container:focus-within .results-dropdown{display:block}.results-list{max-height:300px;margin:0;padding:0;list-style:none;overflow-y:auto}@container (width>=10px){.results-list{max-height:70cqh}}.result-item{cursor:pointer;border-bottom:1px solid #eee;align-items:stretch;padding:10px 12px;transition:background-color .15s;display:flex}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{fill:#666;flex-shrink:0;width:20px;height:20px;margin-right:10px}.result-icon.special{fill:#df486e}.result-content{flex-direction:column;flex:1;justify-content:center;min-width:0;display:flex}.result-title{color:#333;white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.result-subtitle{color:#666;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:12px;overflow:hidden}.result-distance{color:#999;white-space:nowrap;flex-shrink:0;margin-left:8px;font-size:12px}.results-footer{color:#666;background:#fafafa;border-top:1px solid #eee;padding:8px 12px;font-size:12px}.prefer-close-label{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}.prefer-close-label input{margin-left:0;margin-right:3px}.no-results{text-align:center;color:#666;padding:16px 12px}.no-results.error{color:#c62828}.result-count-input{text-align:center;-moz-appearance:textfield;border:1px solid #ccc;border-radius:3px;width:28px;padding:1px 2px;font-size:12px}.result-count-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.result-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}`,Lw={en:{addressSearch:{placeholder:`Search Address`,searchFailed:`Search failed. Please try again.`,showing:`Showing`,of:`of`,results:`results`,preferNearby:`Prefer nearby`,noResults:`No results`}},de:{addressSearch:{placeholder:`Adresse suchen`,searchFailed:`Suche fehlgeschlagen. Bitte erneut versuchen.`,showing:`Zeige`,of:`von`,results:`Ergebnisse`,preferNearby:`Nächstgelegene bevorzugen`,noResults:`Keine Ergebnisse`}}};function Rw(e){return(e||document.documentElement.lang||navigator.language||`en`).split(`-`)[0].toLowerCase()}function zw(e,t){return(Lw[Rw(t)]??Lw.en)[e]??Lw.en[e]}var Bw=`https://srv.doris.at/solr/searchservice/search/all2`,Vw=250,Hw=class extends Me{static styles=[a(Iw),o`
102
+ `);for(let e of n)r.push(e);let i=r.map((e,t)=>t===0?`<li>${e}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${e}</li>`).join(``),a=t.querySelector(`ul`);a||(a=document.createElement(`ul`),t.appendChild(a)),a.innerHTML=i}}),Iw=`.address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{flex-direction:column;width:100%;display:flex;position:relative}.search-input-wrapper{background:#fff;border:1px solid #ccc;border-radius:4px;align-items:center;padding:0 10px;display:flex}.search-icon{fill:#666;flex-shrink:0;width:16px;height:16px;margin-right:8px}.search-input{background:0 0;border:none;outline:none;flex:1;padding:10px 0;font-size:14px}.search-input::placeholder{color:#999}.loading-indicator{border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{background:#fff;border:1px solid #ccc;border-radius:4px;margin-top:4px;display:none}.search-container:focus-within .results-dropdown{display:block}.results-list{max-height:300px;margin:0;padding:0;list-style:none;overflow-y:auto}@container (width>=10px){.results-list{max-height:70cqh}}.result-item{cursor:pointer;border-bottom:1px solid #eee;align-items:stretch;padding:10px 12px;transition:background-color .15s;display:flex}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{fill:#666;flex-shrink:0;width:20px;height:20px;margin-right:10px}.result-icon.special{fill:#df486e}.result-content{flex-direction:column;flex:1;justify-content:center;min-width:0;display:flex}.result-title{color:#333;white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.result-subtitle{color:#666;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:12px;overflow:hidden}.result-distance{color:#999;white-space:nowrap;flex-shrink:0;margin-left:8px;font-size:12px}.results-footer{color:#666;background:#fafafa;border-top:1px solid #eee;padding:8px 12px;font-size:12px}.prefer-close-label{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}.prefer-close-label input{margin-left:0;margin-right:3px}.no-results{text-align:center;color:#666;padding:16px 12px}.no-results.error{color:#c62828}.result-count-input{text-align:center;-moz-appearance:textfield;border:1px solid #ccc;border-radius:3px;width:28px;padding:1px 2px;font-size:12px}.result-count-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.result-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}`,Lw={en:{addressSearch:{placeholder:`Search Address`,searchFailed:`Search failed. Please try again.`,showing:`Showing`,of:`of`,results:`results`,preferNearby:`Prefer nearby`,noResults:`No results`}},de:{addressSearch:{placeholder:`Adresse suchen`,searchFailed:`Suche fehlgeschlagen. Bitte erneut versuchen.`,showing:`Zeige`,of:`von`,results:`Ergebnissen`,preferNearby:`Nächstgelegene bevorzugen`,noResults:`Keine Ergebnisse`}}};function Rw(e){return(e||document.documentElement.lang||navigator.language||`en`).split(`-`)[0].toLowerCase()}function zw(e,t){return(Lw[Rw(t)]??Lw.en)[e]??Lw.en[e]}var Bw=`https://srv.doris.at/solr/searchservice/search/all2`,Vw=250,Hw=class extends Me{static styles=[a(Iw),o`
103
103
  :host {
104
104
  display: block;
105
105
  }
package/dist/yio-map.js CHANGED
@@ -1152,7 +1152,7 @@ var package_default = {
1152
1152
  "type": "git",
1153
1153
  "url": "https://github.com/yiogmbh/yio-map"
1154
1154
  },
1155
- version: "0.14.1",
1155
+ version: "0.14.2",
1156
1156
  type: "module",
1157
1157
  files: ["dist"],
1158
1158
  exports: { ".": {
@@ -1254,7 +1254,7 @@ var TRANSLATIONS = {
1254
1254
  searchFailed: "Suche fehlgeschlagen. Bitte erneut versuchen.",
1255
1255
  showing: "Zeige",
1256
1256
  of: "von",
1257
- results: "Ergebnisse",
1257
+ results: "Ergebnissen",
1258
1258
  preferNearby: "Nächstgelegene bevorzugen",
1259
1259
  noResults: "Keine Ergebnisse"
1260
1260
  } }
@@ -95,11 +95,11 @@
95
95
  <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23dc4b6f" viewBox="0 0 24 24">
96
96
  <path fill-rule="evenodd" d="M11.906 1.994a8.002 8.002 0 0 1 8.09 8.421 7.996 7.996 0 0 1-1.297 3.957.996.996 0 0 1-.133.204l-.108.129c-.178.243-.37.477-.573.699l-5.112 6.224a1 1 0 0 1-1.545 0L5.982 15.26l-.002-.002a18.146 18.146 0 0 1-.309-.38l-.133-.163a.999.999 0 0 1-.13-.202 7.995 7.995 0 0 1 6.498-12.518ZM15 9.997a3 3 0 1 1-5.999 0 3 3 0 0 1 5.999 0Z" clip-rule="evenodd" />
97
97
  </svg>
98
- `,anchor:[.5,1]})}),Aw=class extends No{#e=null;#t=null;#n=null;getEditLayer(){return this.#t}clearModifiedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)!==void 0);e.removeFeatures(t),this.#a.clear()}clearCreatedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)===void 0);e.removeFeatures(t)}#r;#i=null;#a=new Set;constructor(e){super(),this.#e=e.yioMap}drawInteraction;modifyInteraction;#o(e){this.#e._handleClick(e.originalEvent)}#s=null;#c=!1;#l(){this.drawInteraction=new dw({source:this.#t.getSource(),condition:e=>Ko(e)?this.createEnabled&&!this.#c:!1,type:`Point`,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.drawInteraction),this.drawInteraction.on(`drawend`,e=>{e.feature.set(`mvt:layer`,this.#r)}),this.modifyInteraction=new xw({source:this.#t.getSource(),condition:e=>Zo(e)?this.modifyEnabled:!1,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.modifyInteraction)}#u(){this.drawInteraction&&=(this.drawInteraction.setMap(null),null),this.modifyInteraction&&=(this.modifyInteraction.setMap(null),null)}async setActive(e){if(e===this.getActive())return;let t=this.getMap();if(t){if(e){let e=await this.#e._getContentLayerPromise();if(!_C(e,`edits`).length){console.warn(`No edits source found in content layer. Please add a source with key "edits" and at least one layer that uses it.`);let t=e.get(`mapbox-style`);t.sources.edits={type:`geojson`,data:{type:`FeatureCollection`,features:[]}};for(let n of t.layers)t.sources[n.source]?.type!==`vector`&&(n.type!==`circle`||n.type!==`symbol`)||await pC(e,{id:`edits-`+n.id,source:`edits`,"source-layer":n[`source-layer`],type:`circle`,paint:{"circle-radius":5,"circle-color":`#ff0000`,"circle-stroke-width":1}})}this.#t=_C(e,`edits`)[0],this.#n=this.#e._getContentLayer().getLayers().getArray().filter(e=>e instanceof Gx).pop(),this.#s||(this.#s=this.#n.getStyle(),this.#n.setStyle((e,t)=>{if(!this.#a.has(e.get(`id`)))return this.#s(e,t)})),this.#d||(this.#d=e=>{if(!this.modifyEnabled)return t.getTargetElement().style.cursor=``,this.#c=!1,null;this.#c=!!this.#f(e.pixel),this.#c?t.getTargetElement().classList.add(`cursor-move`):t.getTargetElement().classList.remove(`cursor-move`)},t.on(`pointermove`,this.#d)),this.#l()}else this.#s&&=(this.#n.setStyle(this.#s),null),this.#r=null,this.#d&&=(t.un(`pointermove`,this.#d),null),this.#u();super.setActive(e)}}get createEnabled(){return!!this.#r}async setCreateEnabled(e){this.#r=e||void 0,e||(this.clearCreatedFeatures(),this.#n.getSource().refresh()),await this.setActive(!!e||!!this.#i),this.drawInteraction&&this.drawInteraction.setMap(e?this.getMap():null),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#i?this.getMap():null)}get modifyEnabled(){return!!this.#i||!!this.#r}async setModifyEnabled(e){e&&e.length===0&&(e=null),e||(this.clearModifiedFeatures(),this.#n.getSource().refresh()),this.#i=e,await this.setActive(!!e||!!this.#r),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#r?this.getMap():null)}#d=null;#f(e){let t=this.getMap().getFeaturesAtPixel(e,{layerFilter:e=>e===this.#t||e==this.#n}).filter(e=>e.getGeometry().getType()===`Point`&&(this.#t.getSource().hasFeature(e)||this.#i?.includes(e.get(`id`))));return t.length?t[0]:null}handleEvent(e){let t=!0;if(e.type===`pointerdown`){let t=this.#f(e.pixel);if(t&&t instanceof md&&this.modifyEnabled){let e=t.get(`id`);this.#a.has(e)||this.#a.add(e),this.#n.changed();let n=gd(t);this.#t.getSource().addFeature(n)}}return t&&this.modifyEnabled&&(t=this.modifyInteraction.handleEvent(e)),t&&this.createEnabled&&(t=this.drawInteraction.handleEvent(e)),t&&e.type===`click`&&this.#o(e),t}},jw=class extends No{#e=null;#t=new _y({source:new Ov});constructor(e){super(),this.#e=e.yioMap,this.setActive(!1)}setMap(e){let t=this.getMap();t&&t.removeLayer(this.#t),e&&(e.addLayer(this.#t),super.setMap(e))}#n(e){let t=this.#t.getSource();t.clear();let n=new $u(new xa(e));n.setStyle(kw),t.addFeature(n),this.#e.dispatchEvent(new CustomEvent(`pin`,{composed:!0,bubbles:!0,detail:{coordinate:li(e)}}))}#r(e){let t=this.getMap(),n=this.#e._getContentLayer();t.getFeaturesAtPixel(e.pixel,{layerFilter:e=>n.getLayers().getArray().includes(e)}).length===0&&this.#n(e.coordinate)}setActive(e){e||this.#t.getSource().clear(),super.setActive(e)}setPin(e){this.#n(e)}handleEvent(e){return e.type===`click`&&this.#r(e),!0}},Mw=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%20256%20256'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%3e%3cg%20id='favicon'%3e%3crect%20x='0'%20y='0'%20width='256'%20height='256'%20style='fill:none;'/%3e%3cg%3e%3cpath%20d='M54.77,244.669C59.16,246.864%2071.078,250.001%2083.623,250.001C125.022,250.001%20142.585,223.029%20152.621,191.98L212.21,6L163.284,6L146.662,66.216C140.076,90.051%20135.999,112.005%20133.49,128L132.235,128C130.04,112.946%20123.14,86.288%20116.554,66.216L96.796,6L43.793,6L110.282,182.571C108.713,200.448%2098.677,210.17%2081.742,210.17C73.901,210.17%2067.315,208.288%2062.61,205.779L54.77,244.669Z'%20style='fill:rgb(223,72,110);fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Nw={name:`yio-map`,description:`Web component for interactive maps using LitElement and OpenLayers`,license:`MIT`,author:`yio-map`,repository:{type:`git`,url:`https://github.com/yiogmbh/yio-map`},version:`0.14.1`,type:`module`,files:[`dist`],exports:{".":{import:`./dist/yio-map.js`,types:`./dist/index.d.ts`}},scripts:{start:`vite`,build:`vite build && vite -c vite.config-umd.js build && tsc src/index.js --outDir dist --skipLibCheck --allowJS --declaration --declarationMap --emitDeclarationOnly`,prepublish:`npm run build`,prepublishOnly:`npm run build`,lint:`eslint --ext .js,.html . && prettier "**/*.(js|html)" --check --ignore-path .gitignore`,format:`eslint --ext .js,.html . --fix && prettier "**/*.(js|html)" --write --ignore-path .gitignore`,prepare:`husky`,pretest:`tsc --noEmit && npx playwright install chromium-headless-shell`,test:`vitest run --silent`,"test:watch":`npm run pretest && vitest watch`,storybook:`storybook dev -p 6006`,"storybook:build":`storybook build`},dependencies:{lit:`^3.3.2`},peerDependencies:{ol:`^10.7.0`,"ol-mapbox-style":`^13.2.0`},devDependencies:{"@chromatic-com/storybook":`^5.1.1`,"@storybook/addon-docs":`10.3.5`,"@storybook/web-components":`^10.3.5`,"@storybook/web-components-vite":`^10.3.5`,"@types/node":`^25.0.10`,"@vitest/browser":`^4.1.4`,"@vitest/browser-playwright":`^4.1.4`,eslint:`^9.39.2`,"eslint-config-flat-gitignore":`^2.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-html":`^8.1.4`,"eslint-plugin-storybook":`^10.3.5`,husky:`^9.1.7`,"lint-staged":`^15.5.2`,playwright:`^1.58.0`,prettier:`^3.8.1`,"rollup-plugin-peer-deps-external":`^2.2.4`,storybook:`10.3.5`,typescript:`^5.9.3`,vite:`8.0.5`,vitest:`^4.1.4`},"lint-staged":{"*.js":[`eslint --fix`,`prettier --write`]}},Pw=document.createElement(`img`);Pw.src=Mw,Pw.alt=`yio.at`,Pw.style.height=`1em`;var Fw=new Do({label:Pw,render:function(e){let t=this.element;if(!t||!e.frameState)return;let n=this.collectSourceAttributions_(e.frameState)??[],r=[];r.push(`
98
+ `,anchor:[.5,1]})}),Aw=class extends No{#e=null;#t=null;#n=null;getEditLayer(){return this.#t}clearModifiedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)!==void 0);e.removeFeatures(t),this.#a.clear()}clearCreatedFeatures(){let e=this.#t.getSource(),t=e.getFeatures().filter(e=>e.get(`id`)===void 0);e.removeFeatures(t)}#r;#i=null;#a=new Set;constructor(e){super(),this.#e=e.yioMap}drawInteraction;modifyInteraction;#o(e){this.#e._handleClick(e.originalEvent)}#s=null;#c=!1;#l(){this.drawInteraction=new dw({source:this.#t.getSource(),condition:e=>Ko(e)?this.createEnabled&&!this.#c:!1,type:`Point`,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.drawInteraction),this.drawInteraction.on(`drawend`,e=>{e.feature.set(`mvt:layer`,this.#r)}),this.modifyInteraction=new xw({source:this.#t.getSource(),condition:e=>Zo(e)?this.modifyEnabled:!1,style:()=>this.#c?null:Ow}),this.getMap().addInteraction(this.modifyInteraction)}#u(){this.drawInteraction&&=(this.drawInteraction.setMap(null),null),this.modifyInteraction&&=(this.modifyInteraction.setMap(null),null)}async setActive(e){if(e===this.getActive())return;let t=this.getMap();if(t){if(e){let e=await this.#e._getContentLayerPromise();if(!_C(e,`edits`).length){console.warn(`No edits source found in content layer. Please add a source with key "edits" and at least one layer that uses it.`);let t=e.get(`mapbox-style`);t.sources.edits={type:`geojson`,data:{type:`FeatureCollection`,features:[]}};for(let n of t.layers)t.sources[n.source]?.type!==`vector`&&(n.type!==`circle`||n.type!==`symbol`)||await pC(e,{id:`edits-`+n.id,source:`edits`,"source-layer":n[`source-layer`],type:`circle`,paint:{"circle-radius":5,"circle-color":`#ff0000`,"circle-stroke-width":1}})}this.#t=_C(e,`edits`)[0],this.#n=this.#e._getContentLayer().getLayers().getArray().filter(e=>e instanceof Gx).pop(),this.#s||(this.#s=this.#n.getStyle(),this.#n.setStyle((e,t)=>{if(!this.#a.has(e.get(`id`)))return this.#s(e,t)})),this.#d||(this.#d=e=>{if(!this.modifyEnabled)return t.getTargetElement().style.cursor=``,this.#c=!1,null;this.#c=!!this.#f(e.pixel),this.#c?t.getTargetElement().classList.add(`cursor-move`):t.getTargetElement().classList.remove(`cursor-move`)},t.on(`pointermove`,this.#d)),this.#l()}else this.#s&&=(this.#n.setStyle(this.#s),null),this.#r=null,this.#d&&=(t.un(`pointermove`,this.#d),null),this.#u();super.setActive(e)}}get createEnabled(){return!!this.#r}async setCreateEnabled(e){this.#r=e||void 0,e||(this.clearCreatedFeatures(),this.#n.getSource().refresh()),await this.setActive(!!e||!!this.#i),this.drawInteraction&&this.drawInteraction.setMap(e?this.getMap():null),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#i?this.getMap():null)}get modifyEnabled(){return!!this.#i||!!this.#r}async setModifyEnabled(e){e&&e.length===0&&(e=null),e||(this.clearModifiedFeatures(),this.#n.getSource().refresh()),this.#i=e,await this.setActive(!!e||!!this.#r),this.modifyInteraction&&this.modifyInteraction.setMap(e||this.#r?this.getMap():null)}#d=null;#f(e){let t=this.getMap().getFeaturesAtPixel(e,{layerFilter:e=>e===this.#t||e==this.#n}).filter(e=>e.getGeometry().getType()===`Point`&&(this.#t.getSource().hasFeature(e)||this.#i?.includes(e.get(`id`))));return t.length?t[0]:null}handleEvent(e){let t=!0;if(e.type===`pointerdown`){let t=this.#f(e.pixel);if(t&&t instanceof md&&this.modifyEnabled){let e=t.get(`id`);this.#a.has(e)||this.#a.add(e),this.#n.changed();let n=gd(t);this.#t.getSource().addFeature(n)}}return t&&this.modifyEnabled&&(t=this.modifyInteraction.handleEvent(e)),t&&this.createEnabled&&(t=this.drawInteraction.handleEvent(e)),t&&e.type===`click`&&this.#o(e),t}},jw=class extends No{#e=null;#t=new _y({source:new Ov});constructor(e){super(),this.#e=e.yioMap,this.setActive(!1)}setMap(e){let t=this.getMap();t&&t.removeLayer(this.#t),e&&(e.addLayer(this.#t),super.setMap(e))}#n(e){let t=this.#t.getSource();t.clear();let n=new $u(new xa(e));n.setStyle(kw),t.addFeature(n),this.#e.dispatchEvent(new CustomEvent(`pin`,{composed:!0,bubbles:!0,detail:{coordinate:li(e)}}))}#r(e){let t=this.getMap(),n=this.#e._getContentLayer();t.getFeaturesAtPixel(e.pixel,{layerFilter:e=>n.getLayers().getArray().includes(e)}).length===0&&this.#n(e.coordinate)}setActive(e){e||this.#t.getSource().clear(),super.setActive(e)}setPin(e){this.#n(e)}handleEvent(e){return e.type===`click`&&this.#r(e),!0}},Mw=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%20256%20256'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20xmlns:serif='http://www.serif.com/'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3e%3cg%3e%3cg%20id='favicon'%3e%3crect%20x='0'%20y='0'%20width='256'%20height='256'%20style='fill:none;'/%3e%3cg%3e%3cpath%20d='M54.77,244.669C59.16,246.864%2071.078,250.001%2083.623,250.001C125.022,250.001%20142.585,223.029%20152.621,191.98L212.21,6L163.284,6L146.662,66.216C140.076,90.051%20135.999,112.005%20133.49,128L132.235,128C130.04,112.946%20123.14,86.288%20116.554,66.216L96.796,6L43.793,6L110.282,182.571C108.713,200.448%2098.677,210.17%2081.742,210.17C73.901,210.17%2067.315,208.288%2062.61,205.779L54.77,244.669Z'%20style='fill:rgb(223,72,110);fill-rule:nonzero;'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Nw={name:`yio-map`,description:`Web component for interactive maps using LitElement and OpenLayers`,license:`MIT`,author:`yio-map`,repository:{type:`git`,url:`https://github.com/yiogmbh/yio-map`},version:`0.14.2`,type:`module`,files:[`dist`],exports:{".":{import:`./dist/yio-map.js`,types:`./dist/index.d.ts`}},scripts:{start:`vite`,build:`vite build && vite -c vite.config-umd.js build && tsc src/index.js --outDir dist --skipLibCheck --allowJS --declaration --declarationMap --emitDeclarationOnly`,prepublish:`npm run build`,prepublishOnly:`npm run build`,lint:`eslint --ext .js,.html . && prettier "**/*.(js|html)" --check --ignore-path .gitignore`,format:`eslint --ext .js,.html . --fix && prettier "**/*.(js|html)" --write --ignore-path .gitignore`,prepare:`husky`,pretest:`tsc --noEmit && npx playwright install chromium-headless-shell`,test:`vitest run --silent`,"test:watch":`npm run pretest && vitest watch`,storybook:`storybook dev -p 6006`,"storybook:build":`storybook build`},dependencies:{lit:`^3.3.2`},peerDependencies:{ol:`^10.7.0`,"ol-mapbox-style":`^13.2.0`},devDependencies:{"@chromatic-com/storybook":`^5.1.1`,"@storybook/addon-docs":`10.3.5`,"@storybook/web-components":`^10.3.5`,"@storybook/web-components-vite":`^10.3.5`,"@types/node":`^25.0.10`,"@vitest/browser":`^4.1.4`,"@vitest/browser-playwright":`^4.1.4`,eslint:`^9.39.2`,"eslint-config-flat-gitignore":`^2.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-html":`^8.1.4`,"eslint-plugin-storybook":`^10.3.5`,husky:`^9.1.7`,"lint-staged":`^15.5.2`,playwright:`^1.58.0`,prettier:`^3.8.1`,"rollup-plugin-peer-deps-external":`^2.2.4`,storybook:`10.3.5`,typescript:`^5.9.3`,vite:`8.0.5`,vitest:`^4.1.4`},"lint-staged":{"*.js":[`eslint --fix`,`prettier --write`]}},Pw=document.createElement(`img`);Pw.src=Mw,Pw.alt=`yio.at`,Pw.style.height=`1em`;var Fw=new Do({label:Pw,render:function(e){let t=this.element;if(!t||!e.frameState)return;let n=this.collectSourceAttributions_(e.frameState)??[],r=[];r.push(`
99
99
  <a href="https://yio.at" target="_blank" rel="noopener">
100
100
  <b>yio gmbh</b>
101
101
  </a> v${Nw.version}
102
- `);for(let e of n)r.push(e);let i=r.map((e,t)=>t===0?`<li>${e}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${e}</li>`).join(``),a=t.querySelector(`ul`);a||(a=document.createElement(`ul`),t.appendChild(a)),a.innerHTML=i}}),Iw=`.address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{flex-direction:column;width:100%;display:flex;position:relative}.search-input-wrapper{background:#fff;border:1px solid #ccc;border-radius:4px;align-items:center;padding:0 10px;display:flex}.search-icon{fill:#666;flex-shrink:0;width:16px;height:16px;margin-right:8px}.search-input{background:0 0;border:none;outline:none;flex:1;padding:10px 0;font-size:14px}.search-input::placeholder{color:#999}.loading-indicator{border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{background:#fff;border:1px solid #ccc;border-radius:4px;margin-top:4px;display:none}.search-container:focus-within .results-dropdown{display:block}.results-list{max-height:300px;margin:0;padding:0;list-style:none;overflow-y:auto}@container (width>=10px){.results-list{max-height:70cqh}}.result-item{cursor:pointer;border-bottom:1px solid #eee;align-items:stretch;padding:10px 12px;transition:background-color .15s;display:flex}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{fill:#666;flex-shrink:0;width:20px;height:20px;margin-right:10px}.result-icon.special{fill:#df486e}.result-content{flex-direction:column;flex:1;justify-content:center;min-width:0;display:flex}.result-title{color:#333;white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.result-subtitle{color:#666;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:12px;overflow:hidden}.result-distance{color:#999;white-space:nowrap;flex-shrink:0;margin-left:8px;font-size:12px}.results-footer{color:#666;background:#fafafa;border-top:1px solid #eee;padding:8px 12px;font-size:12px}.prefer-close-label{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}.prefer-close-label input{margin-left:0;margin-right:3px}.no-results{text-align:center;color:#666;padding:16px 12px}.no-results.error{color:#c62828}.result-count-input{text-align:center;-moz-appearance:textfield;border:1px solid #ccc;border-radius:3px;width:28px;padding:1px 2px;font-size:12px}.result-count-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.result-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}`,Lw={en:{addressSearch:{placeholder:`Search Address`,searchFailed:`Search failed. Please try again.`,showing:`Showing`,of:`of`,results:`results`,preferNearby:`Prefer nearby`,noResults:`No results`}},de:{addressSearch:{placeholder:`Adresse suchen`,searchFailed:`Suche fehlgeschlagen. Bitte erneut versuchen.`,showing:`Zeige`,of:`von`,results:`Ergebnisse`,preferNearby:`Nächstgelegene bevorzugen`,noResults:`Keine Ergebnisse`}}};function Rw(e){return(e||document.documentElement.lang||navigator.language||`en`).split(`-`)[0].toLowerCase()}function zw(e,t){return(Lw[Rw(t)]??Lw.en)[e]??Lw.en[e]}var Bw=`https://srv.doris.at/solr/searchservice/search/all2`,Vw=250,Hw=class extends Me{static styles=[a(Iw),o`
102
+ `);for(let e of n)r.push(e);let i=r.map((e,t)=>t===0?`<li>${e}</li>`:`<li><span style="margin: 0 4px 0 2px;">|</span>${e}</li>`).join(``),a=t.querySelector(`ul`);a||(a=document.createElement(`ul`),t.appendChild(a)),a.innerHTML=i}}),Iw=`.address-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.search-container{flex-direction:column;width:100%;display:flex;position:relative}.search-input-wrapper{background:#fff;border:1px solid #ccc;border-radius:4px;align-items:center;padding:0 10px;display:flex}.search-icon{fill:#666;flex-shrink:0;width:16px;height:16px;margin-right:8px}.search-input{background:0 0;border:none;outline:none;flex:1;padding:10px 0;font-size:14px}.search-input::placeholder{color:#999}.loading-indicator{border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.results-dropdown{background:#fff;border:1px solid #ccc;border-radius:4px;margin-top:4px;display:none}.search-container:focus-within .results-dropdown{display:block}.results-list{max-height:300px;margin:0;padding:0;list-style:none;overflow-y:auto}@container (width>=10px){.results-list{max-height:70cqh}}.result-item{cursor:pointer;border-bottom:1px solid #eee;align-items:stretch;padding:10px 12px;transition:background-color .15s;display:flex}.result-item:last-child{border-bottom:none}.result-item:hover{background-color:#f5f5f5}.result-icon{fill:#666;flex-shrink:0;width:20px;height:20px;margin-right:10px}.result-icon.special{fill:#df486e}.result-content{flex-direction:column;flex:1;justify-content:center;min-width:0;display:flex}.result-title{color:#333;white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.result-subtitle{color:#666;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:12px;overflow:hidden}.result-distance{color:#999;white-space:nowrap;flex-shrink:0;margin-left:8px;font-size:12px}.results-footer{color:#666;background:#fafafa;border-top:1px solid #eee;padding:8px 12px;font-size:12px}.prefer-close-label{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;display:flex}.prefer-close-label input{margin-left:0;margin-right:3px}.no-results{text-align:center;color:#666;padding:16px 12px}.no-results.error{color:#c62828}.result-count-input{text-align:center;-moz-appearance:textfield;border:1px solid #ccc;border-radius:3px;width:28px;padding:1px 2px;font-size:12px}.result-count-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.result-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}`,Lw={en:{addressSearch:{placeholder:`Search Address`,searchFailed:`Search failed. Please try again.`,showing:`Showing`,of:`of`,results:`results`,preferNearby:`Prefer nearby`,noResults:`No results`}},de:{addressSearch:{placeholder:`Adresse suchen`,searchFailed:`Suche fehlgeschlagen. Bitte erneut versuchen.`,showing:`Zeige`,of:`von`,results:`Ergebnissen`,preferNearby:`Nächstgelegene bevorzugen`,noResults:`Keine Ergebnisse`}}};function Rw(e){return(e||document.documentElement.lang||navigator.language||`en`).split(`-`)[0].toLowerCase()}function zw(e,t){return(Lw[Rw(t)]??Lw.en)[e]??Lw.en[e]}var Bw=`https://srv.doris.at/solr/searchservice/search/all2`,Vw=250,Hw=class extends Me{static styles=[a(Iw),o`
103
103
  :host {
104
104
  display: block;
105
105
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "https://github.com/yiogmbh/yio-map"
9
9
  },
10
- "version": "0.14.1",
10
+ "version": "0.14.2",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist"