@geotrekce/geotrek-rando-widget 0.0.13 → 0.0.15

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 (105) hide show
  1. package/dist/cjs/css-shim-1269258a.js +6 -0
  2. package/dist/cjs/{dom-d5e52c7e.js → dom-36862b77.js} +1 -1
  3. package/dist/cjs/geotrek-rando-widget.cjs.js +4 -4
  4. package/dist/cjs/grw-app.cjs.entry.js +5 -4
  5. package/dist/cjs/grw-filter_6.cjs.entry.js +489 -183
  6. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +2 -2
  7. package/dist/cjs/grw-trek-card.cjs.entry.js +15 -7
  8. package/dist/cjs/{index-66d58516.js → index-e5425fef.js} +437 -266
  9. package/dist/cjs/loader.cjs.js +4 -4
  10. package/dist/cjs/{shadow-css-cf936b02.js → shadow-css-346c0795.js} +1 -1
  11. package/dist/cjs/{store-d301af22.js → store-a9172740.js} +4 -2
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/grw-app/grw-app.css +4 -0
  14. package/dist/collection/components/grw-app/grw-app.js +432 -450
  15. package/dist/collection/components/grw-filter/grw-filter.js +65 -61
  16. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +35 -44
  17. package/dist/collection/components/grw-map/grw-map.css +5 -4
  18. package/dist/collection/components/grw-map/grw-map.js +251 -217
  19. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +33 -32
  20. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +42 -47
  21. package/dist/collection/components/grw-trek-card/grw-trek-card.js +142 -129
  22. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +135 -208
  23. package/dist/collection/components/grw-treks-list/grw-treks-list.js +95 -65
  24. package/dist/collection/store/grw-trek-provider.js +61 -55
  25. package/dist/collection/store/grw-treks-provider.js +181 -177
  26. package/dist/collection/store/store.js +3 -2
  27. package/dist/components/grw-app.js +4 -3
  28. package/dist/components/grw-map2.js +467 -176
  29. package/dist/components/grw-trek-card2.js +17 -7
  30. package/dist/components/grw-trek-detail2.js +10 -3
  31. package/dist/components/grw-trek-provider2.js +6 -2
  32. package/dist/components/grw-treks-list2.js +7 -2
  33. package/dist/components/grw-treks-provider2.js +5 -3
  34. package/dist/components/store.js +3 -2
  35. package/dist/esm/css-shim-88cc621b.js +4 -0
  36. package/dist/esm/{dom-9794f747.js → dom-665d6011.js} +1 -1
  37. package/dist/esm/geotrek-rando-widget.js +4 -4
  38. package/dist/esm/grw-app.entry.js +5 -4
  39. package/dist/esm/grw-filter_6.entry.js +489 -183
  40. package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
  41. package/dist/esm/grw-trek-card.entry.js +15 -7
  42. package/dist/esm/{index-899307bb.js → index-185d186f.js} +437 -266
  43. package/dist/esm/loader.js +4 -4
  44. package/dist/esm/polyfills/css-shim.js +1 -1
  45. package/dist/esm/{shadow-css-4cd4480f.js → shadow-css-b18e99d7.js} +1 -1
  46. package/dist/esm/{store-70461a28.js → store-38e90440.js} +4 -3
  47. package/dist/esm-es5/css-shim-88cc621b.js +1 -0
  48. package/dist/esm-es5/{dom-9794f747.js → dom-665d6011.js} +0 -0
  49. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  50. package/dist/esm-es5/grw-app.entry.js +1 -1
  51. package/dist/esm-es5/grw-filter_6.entry.js +3 -3
  52. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  53. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  54. package/dist/esm-es5/index-185d186f.js +2 -0
  55. package/dist/esm-es5/loader.js +1 -1
  56. package/dist/esm-es5/{shadow-css-4cd4480f.js → shadow-css-b18e99d7.js} +0 -0
  57. package/dist/esm-es5/{store-70461a28.js → store-38e90440.js} +1 -1
  58. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  59. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +2 -2
  60. package/dist/geotrek-rando-widget/p-144c62f8.system.entry.js +1 -0
  61. package/dist/geotrek-rando-widget/p-23a696ea.system.entry.js +6 -0
  62. package/dist/geotrek-rando-widget/p-412fe797.system.js +1 -0
  63. package/dist/geotrek-rando-widget/p-4b12d113.js +1 -0
  64. package/dist/geotrek-rando-widget/p-54bf2ec8.js +2 -0
  65. package/dist/geotrek-rando-widget/{p-d1582cff.js → p-62b28500.js} +0 -0
  66. package/dist/geotrek-rando-widget/{p-2bd0278f.system.entry.js → p-6484dee6.system.entry.js} +1 -1
  67. package/dist/geotrek-rando-widget/{p-c8c96517.system.js → p-6a050b2c.system.js} +0 -0
  68. package/dist/geotrek-rando-widget/{p-b1530d9c.system.js → p-88092d06.system.js} +0 -0
  69. package/dist/geotrek-rando-widget/{p-533fc2bb.entry.js → p-911224bd.entry.js} +1 -1
  70. package/dist/geotrek-rando-widget/p-b44ba765.entry.js +1 -0
  71. package/dist/geotrek-rando-widget/p-bd5f732d.entry.js +1 -0
  72. package/dist/geotrek-rando-widget/p-d2dd6057.js +1 -0
  73. package/dist/geotrek-rando-widget/p-d6fffac2.entry.js +1 -0
  74. package/dist/geotrek-rando-widget/p-dd8d9020.system.js +2 -0
  75. package/dist/geotrek-rando-widget/p-e2652fee.system.js +1 -0
  76. package/dist/geotrek-rando-widget/p-e763374d.system.entry.js +1 -0
  77. package/dist/geotrek-rando-widget/{p-4eaf20b7.js → p-f26ed61d.js} +0 -0
  78. package/dist/geotrek-rando-widget/{p-82ca029f.system.js → p-f7cc8285.system.js} +1 -1
  79. package/dist/types/components/grw-map/grw-map.d.ts +3 -1
  80. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +4 -1
  81. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +3 -1
  82. package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +1 -0
  83. package/dist/types/components.d.ts +8 -0
  84. package/dist/types/stencil-public-runtime.d.ts +15 -4
  85. package/dist/types/store/store.d.ts +5 -3
  86. package/dist/types/types/types.d.ts +6 -0
  87. package/loader/package.json +1 -0
  88. package/package.json +12 -12
  89. package/readme.md +4 -6
  90. package/dist/cjs/css-shim-6f592941.js +0 -6
  91. package/dist/esm/css-shim-2d0a698c.js +0 -4
  92. package/dist/esm-es5/css-shim-2d0a698c.js +0 -1
  93. package/dist/esm-es5/index-899307bb.js +0 -2
  94. package/dist/geotrek-rando-widget/p-067c02c4.system.js +0 -1
  95. package/dist/geotrek-rando-widget/p-0c5b047c.js +0 -1
  96. package/dist/geotrek-rando-widget/p-18038011.js +0 -1
  97. package/dist/geotrek-rando-widget/p-2712caa8.system.entry.js +0 -6
  98. package/dist/geotrek-rando-widget/p-32d97a4f.system.js +0 -1
  99. package/dist/geotrek-rando-widget/p-3ed52659.entry.js +0 -1
  100. package/dist/geotrek-rando-widget/p-4690907e.js +0 -2
  101. package/dist/geotrek-rando-widget/p-48d5dde7.entry.js +0 -1
  102. package/dist/geotrek-rando-widget/p-8f9914f4.system.js +0 -2
  103. package/dist/geotrek-rando-widget/p-e1431f36.system.entry.js +0 -1
  104. package/dist/geotrek-rando-widget/p-e38f4ff4.system.entry.js +0 -1
  105. package/dist/geotrek-rando-widget/p-f5d98aae.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Prop } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  import state from 'store/store';
3
3
  export class GrwFilter {
4
4
  constructor() {
@@ -63,69 +63,73 @@ export class GrwFilter {
63
63
  state.currentTreks = isUsingFilter ? filtersTreks : state.treks;
64
64
  }
65
65
  render() {
66
- return (h(Host, null,
67
- h("div", { class: "filter-name" }, this.filterName),
68
- h("div", { class: "filter-button-container" }, state[this.filterType].map(currentFilter => (h("div", { onClick: event => this.handleFilter(event, currentFilter), class: currentFilter.selected ? 'selected-filter-button' : 'filter-button' }, currentFilter[this.filterNameProperty]))))));
66
+ return (h(Host, null, h("div", { class: "filter-name" }, this.filterName), h("div", { class: "filter-button-container" }, state[this.filterType].map(currentFilter => (h("div", { onClick: event => this.handleFilter(event, currentFilter), class: currentFilter.selected ? 'selected-filter-button' : 'filter-button' }, currentFilter[this.filterNameProperty]))))));
69
67
  }
70
68
  static get is() { return "grw-filter"; }
71
69
  static get encapsulation() { return "shadow"; }
72
- static get originalStyleUrls() { return {
73
- "$": ["grw-filter.scss"]
74
- }; }
75
- static get styleUrls() { return {
76
- "$": ["grw-filter.css"]
77
- }; }
78
- static get properties() { return {
79
- "filterType": {
80
- "type": "string",
81
- "mutable": false,
82
- "complexType": {
83
- "original": "string",
84
- "resolved": "string",
85
- "references": {}
86
- },
87
- "required": false,
88
- "optional": false,
89
- "docs": {
90
- "tags": [],
91
- "text": ""
92
- },
93
- "attribute": "filter-type",
94
- "reflect": false
95
- },
96
- "filterName": {
97
- "type": "string",
98
- "mutable": false,
99
- "complexType": {
100
- "original": "string",
101
- "resolved": "string",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": ""
109
- },
110
- "attribute": "filter-name",
111
- "reflect": false
112
- },
113
- "filterNameProperty": {
114
- "type": "string",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "string",
118
- "resolved": "string",
119
- "references": {}
70
+ static get originalStyleUrls() {
71
+ return {
72
+ "$": ["grw-filter.scss"]
73
+ };
74
+ }
75
+ static get styleUrls() {
76
+ return {
77
+ "$": ["grw-filter.css"]
78
+ };
79
+ }
80
+ static get properties() {
81
+ return {
82
+ "filterType": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "string",
87
+ "resolved": "string",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": ""
95
+ },
96
+ "attribute": "filter-type",
97
+ "reflect": false
120
98
  },
121
- "required": false,
122
- "optional": false,
123
- "docs": {
124
- "tags": [],
125
- "text": ""
99
+ "filterName": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "string",
104
+ "resolved": "string",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": ""
112
+ },
113
+ "attribute": "filter-name",
114
+ "reflect": false
126
115
  },
127
- "attribute": "filter-name-property",
128
- "reflect": false
129
- }
130
- }; }
116
+ "filterNameProperty": {
117
+ "type": "string",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "string",
121
+ "resolved": "string",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": ""
129
+ },
130
+ "attribute": "filter-name-property",
131
+ "reflect": false
132
+ }
133
+ };
134
+ }
131
135
  }
@@ -1,53 +1,44 @@
1
- import { Component, Host, h, Prop } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  export class GrwInformationDeskDetail {
3
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-sub-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))))));
4
+ return (h(Host, null, this.informationDesk.photo_url && (h("div", { class: "information-desk-img" }, h("img", { src: this.informationDesk.photo_url, loading: "lazy" }))), h("div", { class: "information-desk-sub-container" }, this.informationDesk.name && h("div", { class: "information-desk-name" }, this.informationDesk.name), this.informationDesk.description && h("div", { class: "information-desk-description", innerHTML: this.informationDesk.description }), this.informationDesk.postal_code ||
5
+ this.informationDesk.municipality ||
6
+ (this.informationDesk.street && (h("div", null, this.informationDesk.postal_code, ` ${this.informationDesk.municipality}`, ` ${this.informationDesk.street}`))), this.informationDesk.phone && (h("div", null, h("a", { href: `tel:${this.informationDesk.phone}` }, this.informationDesk.phone))), this.informationDesk.email && (h("div", null, h("a", { href: `mailto:${this.informationDesk.email}` }, this.informationDesk.email))), this.informationDesk.website && (h("div", null, h("a", { href: `${this.informationDesk.website}` }, this.informationDesk.website))))));
22
7
  }
23
8
  static get is() { return "grw-information-desk-detail"; }
24
9
  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"
10
+ static get originalStyleUrls() {
11
+ return {
12
+ "$": ["grw-information-desk-detail.scss"]
13
+ };
14
+ }
15
+ static get styleUrls() {
16
+ return {
17
+ "$": ["grw-information-desk-detail.css"]
18
+ };
19
+ }
20
+ static get properties() {
21
+ return {
22
+ "informationDesk": {
23
+ "type": "unknown",
24
+ "mutable": false,
25
+ "complexType": {
26
+ "original": "InformationDesk",
27
+ "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; }",
28
+ "references": {
29
+ "InformationDesk": {
30
+ "location": "import",
31
+ "path": "types/types"
32
+ }
42
33
  }
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": ""
43
40
  }
44
- },
45
- "required": false,
46
- "optional": false,
47
- "docs": {
48
- "tags": [],
49
- "text": ""
50
41
  }
51
- }
52
- }; }
42
+ };
43
+ }
53
44
  }
@@ -423,8 +423,11 @@ svg.leaflet-image-layer.leaflet-interactive path {
423
423
  .leaflet-control-attribution a:focus {
424
424
  text-decoration: underline;
425
425
  }
426
- .leaflet-control-attribution svg {
426
+ .leaflet-attribution-flag {
427
427
  display: inline !important;
428
+ vertical-align: baseline !important;
429
+ width: 1em;
430
+ height: 0.6669em;
428
431
  }
429
432
  .leaflet-left .leaflet-control-scale {
430
433
  margin-left: 5px;
@@ -537,8 +540,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
537
540
  }
538
541
  .leaflet-popup-scrolled {
539
542
  overflow: auto;
540
- border-bottom: 1px solid #ddd;
541
- border-top: 1px solid #ddd;
542
543
  }
543
544
 
544
545
  .leaflet-oldie .leaflet-popup-content-wrapper {
@@ -652,7 +653,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
652
653
  /* Prevent printers from removing background-images of controls. */
653
654
  .leaflet-control {
654
655
  -webkit-print-color-adjust: exact;
655
- color-adjust: exact;
656
+ print-color-adjust: exact;
656
657
  }
657
658
  }
658
659