@mapvx/web-components 0.0.15 → 0.0.18
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/cjs/back_arrow-DNrh84z6.cjs +2 -0
- package/dist/cjs/class-map-Bdex8DcD.cjs +12 -0
- package/dist/cjs/{consume-DbrW2PEd.cjs → consume-BFImOAwk.cjs} +2 -2
- package/dist/cjs/{custom-map-Cqh6gKH1.cjs → custom-map-DARXhpnO.cjs} +2 -2
- package/dist/cjs/floor-selector-CzILr6OJ.cjs +15 -0
- package/dist/cjs/lazy-load-B_m5cmiy.cjs +61 -0
- package/dist/cjs/map-view-with-modal.cjs +1 -1
- package/dist/cjs/qr-modal-D-Dxv4eF.cjs +16 -0
- package/dist/cjs/{route-options-3hVw_1mz.cjs → route-options-CO_OCowG.cjs} +3 -3
- package/dist/cjs/route-view-totems.cjs +4 -3
- package/dist/es/assets/back_arrow-B4vxoqtW.js +4 -0
- package/dist/es/assets/{components-BoQILcVx.js → components-KK5HFu0_.js} +36 -15
- package/dist/es/assets/{map-view-with-modal-Cl2bOsMU.js → map-view-with-modal-CaAivY-n.js} +3 -3
- package/dist/es/assets/{route-view-totems-C-csNJF0.js → route-view-totems-BYQG4LAF.js} +14 -15
- package/dist/es/assets/utils-BxHEw8O3.js +12682 -0
- package/dist/es/index.js +2 -2
- package/dist/es/route-view-totems.js +2 -2
- package/dist/iife/map-view-with-modal.js +13 -13
- package/dist/iife/route-view-totems.js +26 -25
- package/package.json +1 -1
- package/dist/cjs/back_arrow-Cb1GjmUe.cjs +0 -2
- package/dist/cjs/floor-selector-DT0P-noW.cjs +0 -20
- package/dist/cjs/lazy-load-DbAhOT9s.cjs +0 -61
- package/dist/cjs/qr-modal-PC-vQHfC.cjs +0 -16
- package/dist/es/assets/back_arrow-CUOAm8Zc.js +0 -4
- package/dist/es/assets/utils-ezL8jrR4.js +0 -12505
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapvx/web-components",
|
|
3
3
|
"description": "MapVX Web Components is a web components library that provides interactive and accessible mapping solutions. Built with Lit, it offers a modern, lightweight, and framework-agnostic way to integrate maps into any web application.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Mapvx",
|
|
7
7
|
"homepage": "https://mapvx.com",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default='<svg width="24" height="24" viewBox="0 0 42 36" xmlns="http://www.w3.org/2000/svg">\n<path d="M32.4635 16.4726H8.95498L23.0255 4.25832C23.2505 4.06144 23.1139 3.69582 22.8166 3.69582H19.2608C19.1041 3.69582 18.9554 3.75207 18.8389 3.85251L3.65542 17.0271C3.51636 17.1476 3.40483 17.2966 3.3284 17.464C3.25196 17.6315 3.2124 17.8133 3.2124 17.9974C3.2124 18.1814 3.25196 18.3633 3.3284 18.5307C3.40483 18.6981 3.51636 18.8471 3.65542 18.9677L18.9273 32.2226C18.9876 32.2748 19.0599 32.303 19.1362 32.303H22.8126C23.1099 32.303 23.2465 31.9333 23.0215 31.7405L8.95498 19.5262H32.4635C32.6402 19.5262 32.7849 19.3815 32.7849 19.2047V16.794C32.7849 16.6172 32.6402 16.4726 32.4635 16.4726Z" fill="currentColor"/>\n</svg>\n';
|
|
2
|
-
//# sourceMappingURL=back_arrow-Cb1GjmUe.cjs.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./consume-DbrW2PEd.cjs"),e=require("./lazy-load-DbAhOT9s.cjs"),o=1;class r{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2018 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const n=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends r{constructor(t){if(super(t),t.type!==o||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[o]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(o)}const r=t.element.classList;for(const e of this.st)e in o||(r.remove(e),this.st.delete(e));for(const e in o){const t=!!o[e];t===this.st.has(e)||this.nt?.has(e)||(t?(r.add(e),this.st.add(e)):(r.remove(e),this.st.delete(e)))}return e.T}});var i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=(t,e,o,r)=>{for(var n,a=r>1?void 0:r?s(e,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(r?n(e,o,a):n(a))||a);return r&&a&&i(e,o,a),a};exports.FloorSelector=class extends e.i{_selectFloor(t){this.dispatchEvent(new CustomEvent("floorChange",{detail:t,bubbles:!0,composed:!0}))}render(){if(!this.sdkData)return e.x`<div>No data</div>`;const{currentFloor:t,parentPlace:o,enabledFloors:r}=this.sdkData;let i=o?.innerFloors||[];const s=this.sdkData?.generalConfig?.enabledFloors||[];return s.length>0&&(i=i.filter((t=>s.includes(t.key)))),e.x`
|
|
7
|
-
<div class="floor-selector-container">
|
|
8
|
-
${i.map((o=>{const i=o.key===t?.key,s=r?.some((t=>t.key===o.key))||!1;return e.x`
|
|
9
|
-
<div class="floor-btn-container">
|
|
10
|
-
<button
|
|
11
|
-
class=${n({"floor-btn":!0,active:i,disabled:!i&&!s})}
|
|
12
|
-
@click=${()=>s?this._selectFloor(o.key):null}
|
|
13
|
-
>
|
|
14
|
-
<span>${o.name}</span>
|
|
15
|
-
</button>
|
|
16
|
-
</div>
|
|
17
|
-
`}))}
|
|
18
|
-
</div>
|
|
19
|
-
`}},exports.FloorSelector.styles=[e.r(':host{position:absolute;top:0;right:10px}.floor-selector-container{display:flex;flex-direction:row;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 24px;gap:8px;min-height:60px}.btn-floor{height:auto;width:100px;vertical-align:middle;font-size:small!important;word-wrap:break-word!important;font-family:Poppins;font-weight:600;font-size:16pt;border-radius:10px;border:0;box-shadow:0 0 15px #00000026}@media only screen and (max-width: 576px){.btn-floor{padding:6px;width:70px;height:auto;font-size:small!important}}.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){width:100%;height:100%;border-radius:0 0 999px 999px;background:#000;color:#fff}.floor-btn{transition:background .2s ease,color .2s ease,transform .2s ease,opacity .2s ease;position:relative;background:transparent;border:none;outline:none;font-family:Poppins,sans-serif;font-weight:600;font-size:16px;padding:0 18px;border-radius:0 0 30px 30px;cursor:pointer;transition:all .2s ease;min-width:70px;height:100%;display:flex;align-items:center;justify-content:center;color:#000;z-index:1}.floor-btn.disabled{color:#c5c3c3;background:transparent;pointer-events:none;-webkit-tap-highlight-color:transparent;user-select:none}.floor-btn.active{color:#fff;background:transparent;z-index:2}.floor-btn.active:after{content:"";position:absolute;inset:0 2px;border-radius:0 0 999px 999px;background:#000;color:#fff;z-index:1}.floor-btn.active:before{content:"";position:absolute;inset:0 -3px -3px;border-radius:0 0 999px 999px;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0}.floor-btn.active span{z-index:10}@media (max-width: 1100px){.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px}.floor-selector-container{right:0;position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:column-reverse;border-radius:30px 0 0 30px;min-width:87px;max-height:100%;height:auto;padding:0;gap:0}.floor-btn-container{padding:0;width:100%}.floor-btn{width:100%;padding:20px;border-radius:999px 0 0 999px}.floor-btn.active:after{position:absolute;inset:2px 0 2px 2px;border-radius:999px 0 0 999px}.floor-btn.active:before{inset:-3px 0 -3px -3px;border-radius:999px 0 0 999px}}')],a([t.c({context:e.sdkContext,subscribe:!0})],exports.FloorSelector.prototype,"sdkData",2),exports.FloorSelector=a([e.t("floor-selector")],exports.FloorSelector);
|
|
20
|
-
//# sourceMappingURL=floor-selector-DT0P-noW.cjs.map
|