@geotrekce/geotrek-rando-widget 0.0.5 → 0.0.8

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.
Files changed (62) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +2 -2
  2. package/dist/cjs/grw-app.cjs.entry.js +38 -11
  3. package/dist/cjs/grw-filter_6.cjs.entry.js +141 -71
  4. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +3 -3
  5. package/dist/cjs/grw-trek-card.cjs.entry.js +3 -3
  6. package/dist/cjs/{index-c2c4531d.js → index-4c76daa3.js} +8 -3
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/{store-972b8d2a.js → store-b4c3c507.js} +7 -3
  9. package/dist/collection/components/grw-app/grw-app.css +17 -11
  10. package/dist/collection/components/grw-app/grw-app.js +45 -15
  11. package/dist/collection/components/grw-filter/grw-filter.js +11 -12
  12. package/dist/collection/components/grw-map/grw-map.js +41 -22
  13. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +1 -0
  14. package/dist/collection/components/grw-trek-card/grw-trek-card.js +1 -1
  15. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +6 -0
  16. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +21 -5
  17. package/dist/collection/components/grw-treks-list/grw-treks-list.css +0 -12
  18. package/dist/collection/components/grw-treks-list/grw-treks-list.js +21 -9
  19. package/dist/collection/store/grw-trek-provider.js +28 -15
  20. package/dist/collection/store/grw-treks-provider.js +17 -8
  21. package/dist/collection/store/store.js +6 -2
  22. package/dist/components/grw-app.js +38 -11
  23. package/dist/components/grw-filter2.js +11 -12
  24. package/dist/components/grw-map2.js +41 -22
  25. package/dist/components/grw-sensitive-area-detail2.js +1 -1
  26. package/dist/components/grw-trek-card2.js +1 -1
  27. package/dist/components/grw-trek-detail2.js +20 -4
  28. package/dist/components/grw-trek-provider2.js +28 -15
  29. package/dist/components/grw-treks-list2.js +23 -9
  30. package/dist/components/grw-treks-provider2.js +17 -8
  31. package/dist/components/store.js +6 -2
  32. package/dist/esm/geotrek-rando-widget.js +2 -2
  33. package/dist/esm/grw-app.entry.js +38 -11
  34. package/dist/esm/grw-filter_6.entry.js +141 -71
  35. package/dist/esm/grw-information-desk-detail_3.entry.js +3 -3
  36. package/dist/esm/grw-trek-card.entry.js +3 -3
  37. package/dist/esm/{index-192d910f.js → index-ee473772.js} +8 -3
  38. package/dist/esm/loader.js +2 -2
  39. package/dist/esm/{store-5a42b5d8.js → store-a5f523fd.js} +7 -3
  40. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  41. package/dist/geotrek-rando-widget/{p-d3aa9819.entry.js → p-0510e16b.entry.js} +1 -1
  42. package/dist/geotrek-rando-widget/p-22562f4d.js +1 -0
  43. package/dist/geotrek-rando-widget/{p-2d9ae918.entry.js → p-500436f1.entry.js} +1 -1
  44. package/dist/geotrek-rando-widget/p-94f0db4d.entry.js +1 -0
  45. package/dist/geotrek-rando-widget/p-9a25f817.entry.js +1 -0
  46. package/dist/geotrek-rando-widget/p-b62909db.js +2 -0
  47. package/dist/types/components/grw-app/grw-app.d.ts +3 -3
  48. package/dist/types/components/grw-filter/grw-filter.d.ts +1 -1
  49. package/dist/types/components/grw-map/grw-map.d.ts +3 -2
  50. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +1 -1
  51. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -1
  52. package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +3 -2
  53. package/dist/types/components.d.ts +2 -2
  54. package/dist/types/store/grw-trek-provider.d.ts +4 -1
  55. package/dist/types/store/grw-treks-provider.d.ts +4 -1
  56. package/dist/types/store/store.d.ts +9 -0
  57. package/package.json +1 -1
  58. package/readme.md +4 -0
  59. package/dist/geotrek-rando-widget/p-206a52d9.entry.js +0 -1
  60. package/dist/geotrek-rando-widget/p-6dce5e6c.js +0 -2
  61. package/dist/geotrek-rando-widget/p-8cfa03c0.entry.js +0 -1
  62. package/dist/geotrek-rando-widget/p-e63213a9.js +0 -1
@@ -0,0 +1,2 @@
1
+ let e,t,n=null,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},i={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),a=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),c=u(t,s),r=d(n);i.ael(o,l,c,r),(t.o=t.o||[]).push((()=>i.rel(o,l,c,r)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){Y(e)}},f=(e,t)=>8&t?s:e,d=e=>0!=(2&e),y=new WeakMap,$=e=>"sc-"+e.$,h={},m=e=>"object"==(e=typeof e)||"function"===e,p=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1;const c=[],r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!m(l))&&(l+=""),o&&i?c[c.length-1].h+=l:c.push(o?b(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=b(e,null);return a.m=t,c.length>0&&(a.p=c),a.g=s,a},b=(e,t)=>({t:0,S:e,h:t,k:null,p:null,m:null,g:null}),w={},g=(e,t,n,l,o,c)=>{if(n!==l){let r=X(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=k(n),o=k(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const s=m(l);if((r||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&c||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):X(s,a)?a.slice(2):a[2]+t.slice(3),n&&i.rel(e,t,n,!1),l&&i.ael(e,t,l,!1)}},S=/\s/,k=e=>e?e.split(S):[],v=(e,t,n,l)=>{const s=11===t.k.nodeType&&t.k.host?t.k.host:t.k,o=e&&e.m||h,i=t.m||h;for(l in o)l in i||g(s,l,o[l],void 0,n,t.t);for(l in i)g(s,l,o[l],i[l],n,t.t)},j=(t,n,l)=>{const s=n.p[l];let i,c,r=0;if(null!==s.h)i=s.k=o.createTextNode(s.h);else if(i=s.k=o.createElement(s.S),v(null,s,!1),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.p)for(r=0;r<s.p.length;++r)c=j(t,s,r),c&&i.appendChild(c);return i},C=(e,n,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=j(null,l,o),c&&(s[o].k=c,r.insertBefore(c,n)))},M=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.k.remove()},O=(e,t)=>e.S===t.S&&e.g===t.g,P=(e,t)=>{const n=t.k=e.k,l=e.p,s=t.p,o=t.h;null===o?(v(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],y=l.length-1,$=l[0],h=l[y];for(;i<=u&&c<=y;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==$)$=l[++c];else if(null==h)h=l[--y];else if(O(f,$))P(f,$),f=t[++i],$=l[++c];else if(O(d,h))P(d,h),d=t[--u],h=l[--y];else if(O(f,h))P(f,h),e.insertBefore(f.k,d.k.nextSibling),f=t[++i],h=l[--y];else if(O(d,$))P(d,$),e.insertBefore(d.k,f.k),d=t[--u],$=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===$.g){r=a;break}r>=0?(o=t[r],o.S!==$.S?s=j(t&&t[c],n,r):(P(o,$),t[r]=void 0,s=o.k),$=l[++c]):(s=j(t&&t[c],n,c),$=l[++c]),s&&f.k.parentNode.insertBefore(s,f.k)}i>u?C(e,null==l[y+1]?null:l[y+1].k,n,l,c,y):c>y&&M(t,i,u)})(n,l,t,s):null!==s?(null!==e.h&&(n.textContent=""),C(n,null,t,s,0,s.length-1)):null!==l&&M(l,0,l.length-1)):e.h!==o&&(n.data=o)},x=e=>J(e).v,E=(e,t,n)=>{const l=x(e);return{emit:e=>L(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},L=(e,t,n)=>{const l=i.ce(t,n);return e.dispatchEvent(l),l},N=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},T=(e,t)=>{if(e.t|=16,!(4&e.t))return N(e,e.C),re((()=>A(e,t)));e.t|=512},A=(e,t)=>{const n=e.i;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>D(n,e,t))),e.u=null)),V(void 0,(()=>F(e,n,t)))},F=async(e,t,n)=>{const l=e.v,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.v,l=t.t,s=((e,t)=>{let n=$(t);const l=te.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=y.get(e=e.head||e);s||y.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);H(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>U(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},H=(l,s)=>{try{n=s,s=s.render(),l.t&=-17,l.t|=2,((n,l)=>{const s=n.v,o=n.O||b(null,null),i=(e=>e&&e.S===w)(l)?l:p(null,null,l);t=s.tagName,i.S=null,i.t|=4,n.O=i,i.k=o.k=s.shadowRoot||s,e=s["s-sc"],P(o,i)})(l,s)}catch(e){Y(e,l.v)}return n=null,null},R=()=>n,U=e=>{const t=e.v,n=e.i,l=e.C;64&e.t||(e.t|=64,_(t),D(n,"componentDidLoad"),e.P(t),l||q()),e.j&&(e.j(),e.j=void 0),512&e.t&&ce((()=>T(e,!1))),e.t&=-517},W=e=>{{const t=J(e),n=t.v.isConnected;return n&&2==(18&t.t)&&T(t,!1),n}},q=()=>{_(o.documentElement),ce((()=>L(s,"appload",{detail:{namespace:"geotrek-rando-widget"}})))},D=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Y(e)}},V=(e,t)=>e&&e.then?e.then(t):t(),_=e=>e.classList.add("hydrated"),z=(e,t,n)=>{if(t.L){e.watchers&&(t.N=e.watchers);const l=Object.entries(t.L),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>J(this).T.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=J(e),o=s.v,i=s.T.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||m(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.T.set(t,n),r)){if(l.N&&128&c){const e=l.N[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){Y(e,o)}}))}2==(18&c)&&T(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){i.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},B=e=>{D(e,"connectedCallback")},G=(e,t={})=>{const n=[],l=t.exclude||[],c=s.customElements,u=o.head,f=u.querySelector("meta[charset]"),d=o.createElement("style"),y=[];let h,m=!0;Object.assign(i,t),i.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],L:t[2],A:t[3]};s.L=t[2],s.A=t[3],s.N={};const o=s.$,u=class extends HTMLElement{constructor(e){super(e),Q(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?y.push(this):i.jmp((()=>(e=>{if(0==(1&i.t)){const t=J(e),n=t.M,l=()=>{};if(1&t.t)a(e,t,n.A),B(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(t,t.C=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=ee(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.N=s.watchers,z(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){Y(e)}t.t&=-9,t.t|=128,e(),B(t.i)}if(s.style){let e=s.style;const t=$(n);if(!te.has(t)){const l=()=>{};((e,t,n)=>{let l=te.get(e);r&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,te.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.C,i=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){i.jmp((()=>(()=>{if(0==(1&i.t)){const e=J(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),D(t,"disconnectedCallback")}})()))}componentOnReady(){return J(this).F}};s.H=e[0],l.includes(o)||c.get(o)||(n.push(o),c.define(o,z(u,s,1)))}))})),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),u.insertBefore(d,f?f.nextSibling:u.firstChild),m=!1,y.length?y.map((e=>e.connectedCallback())):i.jmp((()=>h=setTimeout(q,30)))},I=new WeakMap,J=e=>I.get(e),K=(e,t)=>I.set(t.i=e,t),Q=(e,t)=>{const n={t:0,v:e,M:t,T:new Map};return n.F=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],a(e,n,t.A),I.set(e,n)},X=(e,t)=>t in e,Y=(e,t)=>(0,console.error)(e,t),Z=new Map,ee=e=>{const t=e.$.replace(/-/g,"_"),n=e.H,l=Z.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Z.set(n,e),e[t])),Y)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},te=new Map,ne=[],le=[],se=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&i.t?ce(ie):i.raf(ie))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){Y(e)}e.length=0},ie=()=>{oe(ne),oe(le),(l=ne.length>0)&&i.raf(ie)},ce=e=>c().then(e),re=se(le,!0);export{w as H,R as a,G as b,E as c,W as f,x as g,p as h,c as p,K as r}
@@ -18,7 +18,7 @@ export declare class GrwApp {
18
18
  practices: string;
19
19
  urlLayer: string;
20
20
  center: string;
21
- zoom: any;
21
+ zoom: number;
22
22
  attribution: string;
23
23
  colorPrimary: string;
24
24
  colorPrimaryShade: string;
@@ -28,9 +28,8 @@ export declare class GrwApp {
28
28
  colorArrivalIcon: string;
29
29
  colorSensitiveArea: string;
30
30
  colorPoiIcon: string;
31
- forwardTrekId: number;
32
- handlePopStateBind: (event: any) => void;
33
31
  largeViewSize: number;
32
+ handlePopStateBind: (event: any) => void;
34
33
  onTrekCardPress(event: CustomEvent<number>): void;
35
34
  onWindowResize(): void;
36
35
  watchPropHandler(): void;
@@ -38,6 +37,7 @@ export declare class GrwApp {
38
37
  onTrekDetailsClose(): void;
39
38
  handleView(): void;
40
39
  handleFilters(): void;
40
+ handleBackButton(): void;
41
41
  handlePopState(): void;
42
42
  handleShowMap(): void;
43
43
  disconnectedCallback(): void;
@@ -4,6 +4,6 @@ export declare class GrwFilter {
4
4
  filterName: string;
5
5
  filterNameProperty: string;
6
6
  filters: Filters;
7
- handleFilter(_event: any, filterToHandle: any): void;
7
+ handleFilter(_event: MouseEvent, filterToHandle: any): void;
8
8
  render(): any;
9
9
  }
@@ -17,7 +17,6 @@ export declare class GrwMap {
17
17
  colorPoiIcon: string;
18
18
  map: L.Map;
19
19
  sensitiveAreasControl: any;
20
- currentBounds: L.LatLngBoundsExpression;
21
20
  treksLayer: L.GeoJSON<any>;
22
21
  currentTrekLayer: L.GeoJSON<any>;
23
22
  currentDepartureArrivalLayer: L.GeoJSON<any>;
@@ -26,9 +25,11 @@ export declare class GrwMap {
26
25
  currentParkingLayer: L.GeoJSON<any>;
27
26
  currentInformationDesksLayer: L.GeoJSON<any>;
28
27
  currentPointsReferenceLayer: L.GeoJSON<any>;
29
- componentDidLoad(): void;
28
+ handleTreksWithinBoundsBind: (event: any) => void;
29
+ connectedCallback(): void;
30
30
  addTreks(): void;
31
31
  removeTreks(): void;
32
+ handleTreksWithinBounds(): void;
32
33
  addTrek(): void;
33
34
  removeTrek(): void;
34
35
  render(): any;
@@ -11,6 +11,6 @@ export declare class GrwTrekCard {
11
11
  colorPrimary: string;
12
12
  colorPrimaryTint: string;
13
13
  isLargeView: boolean;
14
- componentWillLoad(): void;
14
+ connectedCallback(): void;
15
15
  render(): any;
16
16
  }
@@ -13,6 +13,6 @@ export declare class GrwTrekDetail {
13
13
  colorPrimaryShade: string;
14
14
  colorPrimaryTint: string;
15
15
  currentTrek: Trek;
16
- componentWillLoad(): void;
16
+ connectedCallback(): void;
17
17
  render(): any;
18
18
  }
@@ -5,9 +5,10 @@ export declare class GrwTreksList {
5
5
  colorPrimary: string;
6
6
  colorPrimaryTint: string;
7
7
  isLargeView: boolean;
8
- handleInfiniteScrollBind: (event: any) => void;
9
8
  step: number;
10
- componentWillLoad(): void;
9
+ handleInfiniteScrollBind: (event: any) => void;
10
+ connectedCallback(): void;
11
11
  handleInfiniteScroll(event: any): void;
12
+ disconnectedCallback(): void;
12
13
  render(): any;
13
14
  }
@@ -29,7 +29,7 @@ export namespace Components {
29
29
  "structures": string;
30
30
  "themes": string;
31
31
  "urlLayer": string;
32
- "zoom": any;
32
+ "zoom": number;
33
33
  }
34
34
  interface GrwFilter {
35
35
  "filterName": string;
@@ -205,7 +205,7 @@ declare namespace LocalJSX {
205
205
  "structures"?: string;
206
206
  "themes"?: string;
207
207
  "urlLayer"?: string;
208
- "zoom"?: any;
208
+ "zoom"?: number;
209
209
  }
210
210
  interface GrwFilter {
211
211
  "filterName"?: string;
@@ -2,7 +2,10 @@ export declare class GrwTrekProvider {
2
2
  language: string;
3
3
  api: string;
4
4
  trekId: string;
5
- componentWillLoad(): Promise<void>;
5
+ trekNetworkError: boolean;
6
+ controller: AbortController;
7
+ signal: AbortSignal;
8
+ connectedCallback(): void;
6
9
  disconnectedCallback(): void;
7
10
  render(): any;
8
11
  }
@@ -9,6 +9,9 @@ export declare class GrwTreksProvider {
9
9
  portals: string;
10
10
  routes: string;
11
11
  practices: string;
12
- componentWillLoad(): Promise<void>;
12
+ controller: AbortController;
13
+ signal: AbortSignal;
14
+ connectedCallback(): void;
15
+ disconnectedCallback(): void;
13
16
  render(): any;
14
17
  }
@@ -1,7 +1,10 @@
1
+ import { LatLngBounds } from 'leaflet';
1
2
  import { Accessibilities, accessibilitiesLevel, Difficulties, Durations, InformationDesks, Labels, Pois, Practices, Routes, SensitiveAreas, Sources, Themes, Trek, Treks } from 'types/types';
2
3
  declare const state: {
3
4
  api: string;
4
5
  treks: Treks;
6
+ treksWithinBounds: Treks;
7
+ currentMapTreksBounds: LatLngBounds;
5
8
  currentTreks: Treks;
6
9
  difficulties: Difficulties;
7
10
  routes: Routes;
@@ -16,9 +19,13 @@ declare const state: {
16
19
  currentSensitiveAreas: SensitiveAreas;
17
20
  currentPois: Pois;
18
21
  currentInformationDesks: InformationDesks;
22
+ treksNetworkError: boolean;
23
+ trekNetworkError: boolean;
19
24
  }, onChange: import("@stencil/store/dist/types").OnChangeHandler<{
20
25
  api: string;
21
26
  treks: Treks;
27
+ treksWithinBounds: Treks;
28
+ currentMapTreksBounds: LatLngBounds;
22
29
  currentTreks: Treks;
23
30
  difficulties: Difficulties;
24
31
  routes: Routes;
@@ -33,6 +40,8 @@ declare const state: {
33
40
  currentSensitiveAreas: SensitiveAreas;
34
41
  currentPois: Pois;
35
42
  currentInformationDesks: InformationDesks;
43
+ treksNetworkError: boolean;
44
+ trekNetworkError: boolean;
36
45
  }>;
37
46
  export { onChange };
38
47
  export default state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geotrekce/geotrek-rando-widget",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "description": "Geotrek Rando Widget",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
package/readme.md CHANGED
@@ -5,6 +5,8 @@ You can use a complete app or each component independantly.
5
5
 
6
6
  ## Usage
7
7
 
8
+ **The api you want to use had to authorize your domain.**
9
+
8
10
  To use the latest version, copy-paste this inside `<head></head>`
9
11
 
10
12
  ```
@@ -17,5 +19,7 @@ You can replace _latest_ with a specific version.
17
19
 
18
20
  ## Explore
19
21
 
22
+ **The api you want to use had to authorize geotrekce.github.io.**
23
+
20
24
  You can explore Geotrek Rando Widget and create your own component [here](https://geotrekce.github.io/Geotrek-rando-widget/).\
21
25
  Once you made your component, you can get the code to copy-paste by clicking on _Docs_ then _Show code_.