@geotrekce/geotrek-rando-widget 0.0.1 → 0.0.4

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 (87) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +2 -2
  2. package/dist/cjs/{grw-app_7.cjs.entry.js → grw-app_11.cjs.entry.js} +513 -89
  3. package/dist/cjs/{index-31255e29.js → index-c2c4531d.js} +82 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/assets/departure-arrival.svg +1 -1
  6. package/dist/collection/collection-manifest.json +4 -0
  7. package/dist/collection/components/grw-app/grw-app.css +127 -39
  8. package/dist/collection/components/grw-app/grw-app.js +375 -18
  9. package/dist/collection/components/grw-filter/grw-filter.css +29 -0
  10. package/dist/collection/components/grw-filter/grw-filter.js +132 -0
  11. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css +30 -0
  12. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +53 -0
  13. package/dist/collection/components/grw-map/grw-map.css +117 -0
  14. package/dist/collection/components/grw-map/grw-map.js +409 -40
  15. package/dist/collection/components/grw-poi-detail/grw-poi-detail.css +30 -0
  16. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +41 -0
  17. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +16 -0
  18. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +38 -0
  19. package/dist/collection/components/grw-trek-card/grw-trek-card.css +67 -30
  20. package/dist/collection/components/grw-trek-card/grw-trek-card.js +112 -33
  21. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +36 -1
  22. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +122 -33
  23. package/dist/collection/components/grw-treks-list/grw-treks-list.css +17 -12
  24. package/dist/collection/components/grw-treks-list/grw-treks-list.js +70 -6
  25. package/dist/collection/store/grw-trek-provider.js +50 -8
  26. package/dist/collection/store/grw-treks-provider.js +166 -11
  27. package/dist/collection/store/store.js +6 -0
  28. package/dist/collection/stories/App.js +39 -3
  29. package/dist/collection/stories/App.stories.js +30 -5
  30. package/dist/collection/stories/TrekCard.js +9 -3
  31. package/dist/collection/stories/TrekCard.stories.js +5 -2
  32. package/dist/collection/stories/TrekDetail.js +10 -3
  33. package/dist/collection/stories/TrekDetail.stories.js +6 -2
  34. package/dist/collection/stories/TrekMap.js +15 -6
  35. package/dist/collection/stories/TrekMap.stories.js +21 -6
  36. package/dist/collection/stories/TreksList.js +17 -3
  37. package/dist/collection/stories/TreksList.stories.js +13 -2
  38. package/dist/collection/stories/TreksMap.js +12 -3
  39. package/dist/collection/stories/TreksMap.stories.js +18 -3
  40. package/dist/collection/utils/utils.js +2 -2
  41. package/dist/components/grw-app.js +79 -9
  42. package/dist/components/grw-filter.d.ts +11 -0
  43. package/dist/components/grw-filter.js +6 -0
  44. package/dist/components/grw-filter2.js +95 -0
  45. package/dist/components/grw-information-desk-detail.d.ts +11 -0
  46. package/dist/components/grw-information-desk-detail.js +6 -0
  47. package/dist/components/grw-information-desk-detail2.js +34 -0
  48. package/dist/components/grw-map2.js +260 -43
  49. package/dist/components/grw-poi-detail.d.ts +11 -0
  50. package/dist/components/grw-poi-detail.js +6 -0
  51. package/dist/components/grw-poi-detail2.js +32 -0
  52. package/dist/components/grw-sensitive-area-detail.d.ts +11 -0
  53. package/dist/components/grw-sensitive-area-detail.js +6 -0
  54. package/dist/components/grw-sensitive-area-detail2.js +32 -0
  55. package/dist/components/grw-trek-card2.js +33 -10
  56. package/dist/components/grw-trek-detail2.js +47 -9
  57. package/dist/components/grw-trek-provider2.js +32 -9
  58. package/dist/components/grw-treks-list2.js +15 -6
  59. package/dist/components/grw-treks-provider2.js +37 -13
  60. package/dist/components/length.js +2 -2
  61. package/dist/components/store.js +6 -0
  62. package/dist/esm/geotrek-rando-widget.js +2 -2
  63. package/dist/esm/{grw-app_7.entry.js → grw-app_11.entry.js} +510 -90
  64. package/dist/esm/{index-b36f38f5.js → index-fe16e7b6.js} +82 -1
  65. package/dist/esm/loader.js +2 -2
  66. package/dist/geotrek-rando-widget/geotrek-rando-widget.css +1 -1
  67. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  68. package/dist/geotrek-rando-widget/p-8c206aec.js +2 -0
  69. package/dist/geotrek-rando-widget/p-ed8706fb.entry.js +1 -0
  70. package/dist/types/components/grw-app/grw-app.d.ts +27 -2
  71. package/dist/types/components/grw-filter/grw-filter.d.ts +9 -0
  72. package/dist/types/components/grw-information-desk-detail/grw-information-desk-detail.d.ts +5 -0
  73. package/dist/types/components/grw-map/grw-map.d.ts +19 -2
  74. package/dist/types/components/grw-poi-detail/grw-poi-detail.d.ts +5 -0
  75. package/dist/types/components/grw-sensitive-area-detail/grw-sensitive-area-detail.d.ts +5 -0
  76. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +6 -2
  77. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +3 -0
  78. package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +3 -0
  79. package/dist/types/components.d.ts +158 -1
  80. package/dist/types/store/grw-trek-provider.d.ts +1 -0
  81. package/dist/types/store/grw-treks-provider.d.ts +8 -0
  82. package/dist/types/store/store.d.ts +13 -1
  83. package/dist/types/types/types.d.ts +69 -3
  84. package/package.json +5 -7
  85. package/readme.md +19 -1
  86. package/dist/geotrek-rando-widget/p-f721481d.js +0 -2
  87. package/dist/geotrek-rando-widget/p-fe788eaa.entry.js +0 -1
@@ -0,0 +1,53 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class GrwInformationDeskDetail {
3
+ render() {
4
+ return (h(Host, null,
5
+ this.informationDesk.photo_url && (h("div", { class: "information-desk-img" },
6
+ h("img", { src: this.informationDesk.photo_url, loading: "lazy" }))),
7
+ h("div", { class: "information-desk-right-container" },
8
+ this.informationDesk.name && h("div", { class: "information-desk-name" }, this.informationDesk.name),
9
+ this.informationDesk.description && h("div", { class: "information-desk-description", innerHTML: this.informationDesk.description }),
10
+ this.informationDesk.postal_code ||
11
+ this.informationDesk.municipality ||
12
+ (this.informationDesk.street && (h("div", null,
13
+ this.informationDesk.postal_code,
14
+ ` ${this.informationDesk.municipality}`,
15
+ ` ${this.informationDesk.street}`))),
16
+ this.informationDesk.phone && (h("div", null,
17
+ h("a", { href: `tel:${this.informationDesk.phone}` }, this.informationDesk.phone))),
18
+ this.informationDesk.email && (h("div", null,
19
+ h("a", { href: `mailto:${this.informationDesk.email}` }, this.informationDesk.email))),
20
+ this.informationDesk.website && (h("div", null,
21
+ h("a", { href: `${this.informationDesk.website}` }, this.informationDesk.website))))));
22
+ }
23
+ static get is() { return "grw-information-desk-detail"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get originalStyleUrls() { return {
26
+ "$": ["grw-information-desk-detail.scss"]
27
+ }; }
28
+ static get styleUrls() { return {
29
+ "$": ["grw-information-desk-detail.css"]
30
+ }; }
31
+ static get properties() { return {
32
+ "informationDesk": {
33
+ "type": "unknown",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "InformationDesk",
37
+ "resolved": "{ id: number; name: string; description: string; type: InformationDeskType; phone: string; email: string; website: string; municipality: string; postal_code: string; street: string; photo_url: string; latitude: string; longitude: string; }",
38
+ "references": {
39
+ "InformationDesk": {
40
+ "location": "import",
41
+ "path": "types/types"
42
+ }
43
+ }
44
+ },
45
+ "required": false,
46
+ "optional": false,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": ""
50
+ }
51
+ }
52
+ }; }
53
+ }
@@ -657,8 +657,10 @@ svg.leaflet-image-layer.leaflet-interactive path {
657
657
  }
658
658
 
659
659
  grw-map {
660
+ font-family: "Roboto";
660
661
  display: block;
661
662
  height: 100%;
663
+ max-height: 100vh;
662
664
  }
663
665
 
664
666
  .departure-icon svg,
@@ -683,4 +685,119 @@ grw-map {
683
685
  .trek-marker {
684
686
  background-color: var(--color-primary);
685
687
  border-radius: 50%;
688
+ display: flex;
689
+ justify-content: center;
690
+ align-items: center;
691
+ }
692
+ .trek-marker img {
693
+ width: 36px !important;
694
+ }
695
+
696
+ .map-loader-container {
697
+ position: absolute;
698
+ z-index: 500;
699
+ width: 100%;
700
+ height: 100%;
701
+ background: rgba(255, 255, 255, 0.5);
702
+ display: flex;
703
+ justify-content: center;
704
+ align-items: center;
705
+ }
706
+ .map-loader-container .loader {
707
+ width: 48px;
708
+ height: 48px;
709
+ border: 5px solid var(--color-primary-tint);
710
+ border-bottom-color: var(--color-primary);
711
+ border-radius: 50%;
712
+ display: inline-block;
713
+ box-sizing: border-box;
714
+ animation: rotation 1s linear infinite;
715
+ }
716
+ @keyframes rotation {
717
+ 0% {
718
+ transform: rotate(0deg);
719
+ }
720
+ 100% {
721
+ transform: rotate(360deg);
722
+ }
723
+ }
724
+
725
+ .leaflet-popup-content {
726
+ width: 144px;
727
+ margin: 0;
728
+ }
729
+
730
+ .trek-departure-popup {
731
+ position: relative;
732
+ display: flex;
733
+ flex-direction: column;
734
+ width: 100px;
735
+ height: auto;
736
+ padding: 24px;
737
+ }
738
+ .trek-departure-popup img {
739
+ border-radius: 8px;
740
+ box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.25);
741
+ }
742
+ .trek-departure-popup .trek-name {
743
+ color: var(--color-primary);
744
+ font-weight: bold;
745
+ font-size: 12px;
746
+ }
747
+ .trek-departure-popup .trek-name-margin-top {
748
+ margin-top: 12px;
749
+ }
750
+
751
+ .poi-tooltip .poi-name,
752
+ .poi-tooltip .information-desks-name,
753
+ .information-desks-tooltip .poi-name,
754
+ .information-desks-tooltip .information-desks-name {
755
+ color: var(--color-primary);
756
+ font-weight: bold;
757
+ font-size: 12px;
758
+ }
759
+
760
+ .sensitiveAreasCheckboxContainer {
761
+ display: flex;
762
+ justify-content: center;
763
+ align-items: center;
764
+ background-color: #ffffff;
765
+ padding: 8px;
766
+ border-radius: 8px;
767
+ user-select: none;
768
+ }
769
+ .sensitiveAreasCheckboxContainer input,
770
+ .sensitiveAreasCheckboxContainer label {
771
+ cursor: pointer;
772
+ }
773
+ .sensitiveAreasCheckboxContainer input {
774
+ margin: 0;
775
+ }
776
+ .sensitiveAreasCheckboxContainer label {
777
+ padding-left: 8px;
778
+ }
779
+
780
+ .poi-icon,
781
+ .information-desks-icon {
782
+ background-color: var(--color-poi-icon);
783
+ border-radius: 50%;
784
+ display: flex;
785
+ justify-content: center;
786
+ align-items: center;
787
+ }
788
+ .poi-icon img,
789
+ .information-desks-icon img {
790
+ width: 36px !important;
791
+ }
792
+
793
+ .parking-icon {
794
+ background-color: #0000ff;
795
+ border-radius: 50%;
796
+ display: flex;
797
+ justify-content: center;
798
+ align-items: center;
799
+ width: 48px;
800
+ height: 48px;
801
+ font-size: 24px;
802
+ color: #ffffff;
686
803
  }