@geops/rvf-mobility-web-component 0.1.45 → 0.1.46
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.46](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.45...v0.1.46) (2025-08-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* use good style ([f54b312](https://github.com/geops/rvf-mobility-web-component/commit/f54b312c8bbedcbaa686aff08d69959a52d8fc6b))
|
|
11
|
+
|
|
5
12
|
### [0.1.45](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.44...v0.1.45) (2025-07-30)
|
|
6
13
|
|
|
7
14
|
|
package/index.js
CHANGED
|
@@ -3084,7 +3084,7 @@ html {
|
|
|
3084
3084
|
flex-direction: column;
|
|
3085
3085
|
padding: 25px;
|
|
3086
3086
|
z-index: 100000;
|
|
3087
|
-
}`;var Jz={bus:25,coach:15,train:30,tram:20},eH=u_.join(","),nAe={mapLibreOptions:{maxCanvasSize:[2e4,2e4],preserveDrawingBuffer:!0}},sAe={},oAe={style:{width:"calc(100% - 60px)"}},aAe={bboxParameters:{line_tags:"RVF"},fullTrajectoryStyle:Mz,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:e}},{properties:{delay:t,type:i}})=>e!==i?Jz[e]<Jz[i]?-1:1:r===t?0:r<t?-1:1,style:Zz,styleOptions:{getBgColor:Bg,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:Vz,getTextColor:m_}};function lAe({apikey:r="5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",baselayer:e="de.
|
|
3087
|
+
}`;var Jz={bus:25,coach:15,train:30,tram:20},eH=u_.join(","),nAe={mapLibreOptions:{maxCanvasSize:[2e4,2e4],preserveDrawingBuffer:!0}},sAe={},oAe={style:{width:"calc(100% - 60px)"}},aAe={bboxParameters:{line_tags:"RVF"},fullTrajectoryStyle:Mz,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:e}},{properties:{delay:t,type:i}})=>e!==i?Jz[e]<Jz[i]?-1:1:r===t?0:r<t?-1:1,style:Zz,styleOptions:{getBgColor:Bg,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:Vz,getTextColor:m_}};function lAe({apikey:r="5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",baselayer:e="de.rvf_moco",center:t=null,details:i="true",embed:s="false",extent:n=eH,geolocation:l="true",layers:u=null,layertree:d="true",mapsurl:y="https://maps.geops.io",maxextent:v=eH,maxzoom:w="20",minzoom:T=null,mots:b=null,notification:O="false",notificationat:U=null,notificationbeforelayerid:z=null,notificationurl:Q="https://moco.geops.io/api/v1/",permalink:q="false",print:Y="true",realtime:le="true",realtimeurl:ve="wss://api.geops.io/tracker-ws/v1/ws",search:_e="false",share:ye="true",stopsurl:me="https://api.geops.io/stops/v1/",tenant:Ce=null,toolbar:Ne="true",zoom:ae=null}){let ne=rc(),[Le,Be]=xr(),[qe,Ke]=xr(!1),[He,Pe]=xr(!1),[Xe,st]=xr(),[_t,oe]=xr(),[Se,be]=xr(),[Qe,Ze]=xr(),[lt,ut]=xr(),[ht,Ft]=xr(),[Et,Vt]=xr(),[Kt,We]=xr(!1),[vt,Re]=xr(!1),[zt,Gt]=xr(),[Dt,$t]=xr(),[Ut,Rt]=xr(!1),[ir,cr]=xr(),[Mr,Ye]=xr(),[St,jt]=xr(),[Ht,ur]=xr(),[ot,ar]=xr(),[kt,ui]=xr(),wr=Cr(()=>Ne==="true",[Ne]),nr=Cr(()=>d==="true",[d]),Xi=Cr(()=>le==="true",[le]),Wr=Cr(()=>O==="true"||!!kt,[O,kt]),qi=Cr(()=>l==="true",[l]),ai=Cr(()=>_e==="true",[_e]),Me=Cr(()=>ye==="true",[ye]),ee=Cr(()=>Y==="true",[Y]),re=Cr(()=>i==="true",[i]),fe=Cr(()=>s==="true",[s]);Gz(lt,u),Wz(lt,q==="true",ne);let Ie=Cr(()=>({apikey:r,baselayer:e,baseLayer:Le,center:t,extent:n,geolocation:l,isFollowing:qe,isTracking:He,layers:u,map:lt,mapsurl:y,maxextent:v,maxzoom:w,minzoom:T,mots:b,notification:O,notificationat:U,notificationbeforelayerid:z,notificationurl:Q,permalink:q,previewNotification:kt,realtimeLayer:Qe,realtimeurl:ve,setBaseLayer:Be,setIsFollowing:Ke,setIsTracking:Pe,setMap:ut,setPreviewNotification:ui,setRealtimeLayer:Ze,setStation:be,setStationId:Ft,setStationsLayer:oe,setStopSequence:st,setTrainId:Vt,station:Se,stationId:ht,stationsLayer:_t,stopSequence:Xe,stopsurl:me,tenant:Ce,trainId:Et,zoom:ae}),[r,e,Le,t,n,l,qe,He,u,lt,y,v,w,T,b,O,U,z,Q,q,kt,Qe,ve,Se,ht,_t,Xe,me,Ce,Et,ae]);Yt(()=>{ne.current?.dispatchEvent(new Jh("mwc:attribute",{baselayer:e,center:t,details:i,embed:s,extent:n,geolocation:l,layers:u,layertree:d,mapsurl:y,maxextent:v,maxzoom:w,minzoom:T,mots:b,notification:O,notificationat:U,notificationbeforelayerid:z,notificationurl:Q,print:Y,realtime:le,realtimeurl:ve,search:_e,share:ye,tenant:Ce,toolbar:Ne,zoom:ae}))},[e,s,u,t,l,d,Ne,y,w,T,b,O,U,Q,z,le,ve,_e,Ce,ae,n,v,Y,ye,i]);let je=Cr(()=>({isExportMenuOpen:Kt,isLayerTreeOpen:Ut,isShareMenuOpen:vt,layertree:d,lineNetworkPlanLayer:Ht,poisLayer:St,previewNotification:kt,selectedFeature:zt,selectedFeatures:Dt,sellingPointsLayer:ir,setIsExportMenuOpen:We,setIsLayerTreeOpen:Rt,setIsShareMenuOpen:Re,setLineNetworkPlanLayer:ur,setPoisLayer:jt,setSelectedFeature:Gt,setSelectedFeatures:$t,setSellingPointsLayer:cr,setSharedMobilityLayerGroup:ar,setTarifZonenLayer:Ye,sharedMobilityLayerGroup:ot,tarifZonenLayer:Mr}),[Kt,Ut,vt,d,Ht,St,kt,zt,Dt,ir,ot,Mr]),Ge=ys(()=>{Rt(!Ut)},[Ut]),rt=ys(()=>{We(!1)},[]),Oe=Cr(()=>({format:Je=>{let Lt=[],Nt=!1;return Je.forEach(Pt=>{/geops/i.test(Pt)?Nt||(Nt=!0,Lt.push(Pt)):/(sbb|rvf)/i.test(Pt)||Lt.push(Pt)}),Lt.join(" | ")}}),[]),tt=Cr(()=>({layersFilter:({metadata:Je})=>Je?.["general.filter"]==="stations"}),[]),xt=Cr(()=>({apiKey:r,date:U?new Date(U):void 0,isQueryable:!0,notifications:kt,tenant:"rvf",title:Zn.meldungen,url:Q}),[r,U,Q,kt]);return Yt(()=>{wr&&Ut&&(We(!1),Rt(Ut),Gt(null),Vt(null),Ft(null),Re(!1))},[Ut,wr]),Yt(()=>{wr&&Kt&&(Rt(!1),We(Kt),Gt(null),Vt(null),Re(!1),Ft(null))},[Kt,wr]),Yt(()=>{wr&&zt&&(Rt(!1),We(!1),Vt(null),Re(!1),Ft(null))},[zt,wr]),Yt(()=>{wr&&ht&&(Rt(!1),We(!1),Vt(null),Re(!1),Gt(null))},[ht,wr]),Yt(()=>{wr&&Et&&(Rt(!1),We(!1),Ft(null),Re(!1),Gt(null))},[Et,wr]),Yt(()=>{wr&&vt&&(Rt(!1),We(!1),Ft(null),Vt(null),Gt(null))},[vt,wr]),Yt(()=>{window.addEventListener("message",Je=>{console.log("Received message from parent:",Je.data),Je.data.notification&&ui([Je.data.notification])})},[]),K(c4.Provider,{value:Gw,children:[K("style",{children:jw}),K("style",{children:Yz}),K(QB.Provider,{value:Ie,children:K(RI.Provider,{value:je,children:K("div",{className:"relative size-full overflow-hidden font-sans @container/main",ref:ne,style:sAe,children:K("div",{className:"relative flex size-full flex-col text-base @lg/main:flex-row-reverse",children:[K(XB,{className:"relative flex-1 overflow-visible ",children:[K(zB,{...nAe}),K(Kw,{}),fe&&K(GR,{}),Wr&&K($B,{...xt}),K(aT,{}),Xi&&K(e4,{title:Zn.echtzeit,...aAe}),K(jT,{minZoom:10,title:Zn.haltestellen,...tt}),K(CT,{title:Zn.tarifzonen}),K(lT,{isQueryable:!0,title:Zn.verkaufsstellen}),K(nT,{isQueryable:!0,title:Zn.liniennetz}),K(oT,{title:Zn.pois}),K(xT,{title:Zn.sharedMobility}),K("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[K(MT,{className:"bg-slate-50/70"}),K(HB,{className:"pointer-events-auto bg-slate-50/70",options:Oe})]}),K("div",{className:"absolute right-2 top-2 z-10 flex flex-col gap-2",children:[qi&&K(WB,{}),!wr&&ee&&K(_w,{})]}),ai&&K("div",{className:"absolute left-2 right-12 top-2 z-10 flex max-h-[90%] min-w-64 max-w-96 flex-col",children:K(qw,{})}),K("div",{className:"absolute bottom-10 right-2 z-10 flex flex-col justify-between gap-2",children:K(LT,{})}),!wr&&nr&&K(tT,{isOpen:Ut,onClick:Ge,title:"Kartendaten",children:K(Vw,{className:"w-full px-2"})})]}),K(YB,{className:"z-50 bg-white",ScrollableHandlerProps:oAe,children:[Xi&&Et&&K(Oi,{children:[K(Jf,{onClose:()=>{Vt(null)},title:Zn.echtzeit}),K(C4,{className:"relative overflow-y-auto overflow-x-hidden"})]}),Ce&&ht&&K(Oi,{children:[K(Jf,{onClose:()=>{Ft(null)},title:"Station"}),K(VT,{className:"relative flex flex-col overflow-y-auto overflow-x-hidden p-2"})]}),re&&zt&&!zt.get("severity")&&K(Oi,{children:[K(Jf,{onClose:()=>{Gt(null)},title:Hz(zt)}),K(eT,{className:"relative flex h-full flex-col gap-4 overflow-y-auto overflow-x-hidden p-4"})]}),wr&&ee&&Kt&&K(Oi,{children:[K(Jf,{onClose:()=>{We(!1)},title:"Drucken"}),K(vw,{className:"relative flex flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6"})]}),wr&&nr&&Ut&&K(Oi,{children:[K(Jf,{onClose:()=>{Rt(!1)},title:"Layers"}),K(Vw,{className:" relative flex h-full flex-col overflow-y-auto overflow-x-hidden p-2"})]}),wr&&Me&&vt&&K(Oi,{children:[K(Jf,{onClose:()=>{Re(!1)},title:"Share"}),K(gT,{className:"relative flex h-full flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6"})]})]}),wr&&K("div",{className:"z-[100] flex justify-around overflow-x-hidden border-t bg-white p-1 @lg/main:block @lg/main:border-r @lg/main:border-t-0 @lg/main:p-0 ",children:[nr&&K(iT,{className:"border-none",title:"Layers"}),ee&&K(_w,{className:"border-none",title:"Drucken"}),Me&&K(bT,{className:"border-none",title:"Share"})]}),!wr&&ee&&Kt&&K(sT,{onClose:rt,children:[K(Jf,{onClose:()=>{We(!1)},title:"Drucken"}),K(vw,{className:"relative flex flex-col gap-4 overflow-y-auto overflow-x-hidden px-4 py-6"})]})]})})})})]})}var Xw=or(lAe);Wb(Xw,"geops-mobility",["apikey","baselayer","center","extent","maxextent","geolocation","details","layers","layertree","mapsurl","mots","notification","notificationat","notificationurl","notificationbeforelayerid","print","realtime","realtimeurl","search","share","tenant","zoom","permalink","embed"],{shadow:!0});Wb(Zy,"geops-mobility-search",["apikey","bbox","countrycode","event","field","limit","mots","onselect","params","prefagencies","reflocation","url"],{shadow:!0});})();
|
|
3088
3088
|
/*! Bundled license information:
|
|
3089
3089
|
|
|
3090
3090
|
maplibre-gl/dist/maplibre-gl.js:
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@geops/rvf-mobility-web-component",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"description": "Web components for rvf in the domains of mobility and logistics.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.46",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
|
@@ -155,7 +155,7 @@ const realtimeLayerProps = {
|
|
|
155
155
|
function RvfMobilityMap({
|
|
156
156
|
apikey = "5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",
|
|
157
157
|
// baselayer = "review-geops-tgma-085vyz.de.rvf",
|
|
158
|
-
baselayer = "de.
|
|
158
|
+
baselayer = "de.rvf_moco",
|
|
159
159
|
center = null,
|
|
160
160
|
details = "true",
|
|
161
161
|
embed = "false",
|