@geotrekce/geotrek-rando-widget 0.0.13 → 0.0.14

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 (94) hide show
  1. package/dist/cjs/{css-shim-6f592941.js → css-shim-06c204c1.js} +1 -1
  2. package/dist/cjs/{dom-d5e52c7e.js → dom-874a1e39.js} +1 -1
  3. package/dist/cjs/geotrek-rando-widget.cjs.js +4 -4
  4. package/dist/cjs/grw-app.cjs.entry.js +4 -3
  5. package/dist/cjs/grw-filter_6.cjs.entry.js +14447 -14156
  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-c3fb4999.js} +219 -66
  9. package/dist/cjs/loader.cjs.js +4 -4
  10. package/dist/cjs/{shadow-css-cf936b02.js → shadow-css-a33dc836.js} +1 -1
  11. package/dist/cjs/{store-d301af22.js → store-5183d8f8.js} +4 -2
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/grw-app/grw-app.js +432 -450
  14. package/dist/collection/components/grw-filter/grw-filter.js +65 -61
  15. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +35 -44
  16. package/dist/collection/components/grw-map/grw-map.css +5 -4
  17. package/dist/collection/components/grw-map/grw-map.js +251 -217
  18. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +33 -32
  19. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +42 -47
  20. package/dist/collection/components/grw-trek-card/grw-trek-card.js +142 -129
  21. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +135 -208
  22. package/dist/collection/components/grw-treks-list/grw-treks-list.js +95 -65
  23. package/dist/collection/store/grw-trek-provider.js +61 -55
  24. package/dist/collection/store/grw-treks-provider.js +181 -177
  25. package/dist/collection/store/store.js +3 -2
  26. package/dist/components/grw-app.js +3 -2
  27. package/dist/components/grw-map2.js +14405 -14129
  28. package/dist/components/grw-trek-card2.js +17 -7
  29. package/dist/components/grw-trek-detail2.js +10 -3
  30. package/dist/components/grw-trek-provider2.js +6 -2
  31. package/dist/components/grw-treks-list2.js +7 -2
  32. package/dist/components/grw-treks-provider2.js +5 -3
  33. package/dist/components/store.js +3 -2
  34. package/dist/esm/{css-shim-2d0a698c.js → css-shim-bfa379cd.js} +1 -1
  35. package/dist/esm/{dom-9794f747.js → dom-104fb833.js} +1 -1
  36. package/dist/esm/geotrek-rando-widget.js +4 -4
  37. package/dist/esm/grw-app.entry.js +4 -3
  38. package/dist/esm/grw-filter_6.entry.js +14427 -14136
  39. package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
  40. package/dist/esm/grw-trek-card.entry.js +15 -7
  41. package/dist/esm/{index-899307bb.js → index-e834943f.js} +219 -66
  42. package/dist/esm/loader.js +4 -4
  43. package/dist/esm/{shadow-css-4cd4480f.js → shadow-css-4261c637.js} +1 -1
  44. package/dist/esm/{store-70461a28.js → store-c6ccb3db.js} +4 -3
  45. package/dist/esm-es5/{css-shim-2d0a698c.js → css-shim-bfa379cd.js} +0 -0
  46. package/dist/esm-es5/{dom-9794f747.js → dom-104fb833.js} +0 -0
  47. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  48. package/dist/esm-es5/grw-app.entry.js +1 -1
  49. package/dist/esm-es5/grw-filter_6.entry.js +4 -5
  50. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  51. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  52. package/dist/esm-es5/{index-899307bb.js → index-e834943f.js} +1 -1
  53. package/dist/esm-es5/loader.js +1 -1
  54. package/dist/esm-es5/{shadow-css-4cd4480f.js → shadow-css-4261c637.js} +0 -0
  55. package/dist/esm-es5/{store-70461a28.js → store-c6ccb3db.js} +1 -1
  56. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  57. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  58. package/dist/geotrek-rando-widget/p-392538a1.system.entry.js +1 -0
  59. package/dist/geotrek-rando-widget/{p-d1582cff.js → p-4c61dcad.js} +0 -0
  60. package/dist/geotrek-rando-widget/p-4e0fcbe6.js +1 -0
  61. package/dist/geotrek-rando-widget/p-6469fc8a.system.js +1 -0
  62. package/dist/geotrek-rando-widget/{p-c8c96517.system.js → p-6523a23b.system.js} +0 -0
  63. package/dist/geotrek-rando-widget/{p-32d97a4f.system.js → p-70ecdd1b.system.js} +0 -0
  64. package/dist/geotrek-rando-widget/{p-0c5b047c.js → p-88046639.js} +0 -0
  65. package/dist/geotrek-rando-widget/p-88e55e13.entry.js +1 -0
  66. package/dist/geotrek-rando-widget/p-93d51eaa.entry.js +1 -0
  67. package/dist/geotrek-rando-widget/p-95932d69.system.entry.js +5 -0
  68. package/dist/geotrek-rando-widget/{p-4690907e.js → p-9c0d229f.js} +1 -1
  69. package/dist/geotrek-rando-widget/{p-b1530d9c.system.js → p-a8de6293.system.js} +0 -0
  70. package/dist/geotrek-rando-widget/p-d56c1888.system.entry.js +1 -0
  71. package/dist/geotrek-rando-widget/{p-533fc2bb.entry.js → p-dce99cef.entry.js} +1 -1
  72. package/dist/geotrek-rando-widget/{p-8f9914f4.system.js → p-e2d589f8.system.js} +1 -1
  73. package/dist/geotrek-rando-widget/{p-82ca029f.system.js → p-e3c13365.system.js} +1 -1
  74. package/dist/geotrek-rando-widget/{p-2bd0278f.system.entry.js → p-e9f13f25.system.entry.js} +1 -1
  75. package/dist/geotrek-rando-widget/{p-4eaf20b7.js → p-ef5d4167.js} +0 -0
  76. package/dist/geotrek-rando-widget/p-fce69064.entry.js +1 -0
  77. package/dist/types/components/grw-map/grw-map.d.ts +3 -1
  78. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +4 -1
  79. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +3 -1
  80. package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +1 -0
  81. package/dist/types/components.d.ts +8 -0
  82. package/dist/types/store/store.d.ts +5 -3
  83. package/dist/types/types/types.d.ts +6 -0
  84. package/loader/package.json +1 -0
  85. package/package.json +12 -12
  86. package/readme.md +4 -6
  87. package/dist/geotrek-rando-widget/p-067c02c4.system.js +0 -1
  88. package/dist/geotrek-rando-widget/p-18038011.js +0 -1
  89. package/dist/geotrek-rando-widget/p-2712caa8.system.entry.js +0 -6
  90. package/dist/geotrek-rando-widget/p-3ed52659.entry.js +0 -1
  91. package/dist/geotrek-rando-widget/p-48d5dde7.entry.js +0 -1
  92. package/dist/geotrek-rando-widget/p-e1431f36.system.entry.js +0 -1
  93. package/dist/geotrek-rando-widget/p-e38f4ff4.system.entry.js +0 -1
  94. package/dist/geotrek-rando-widget/p-f5d98aae.entry.js +0 -1
@@ -1,5 +1,5 @@
1
- import { Component, Host, h, Listen, State, Prop, Element, Watch } from '@stencil/core';
2
- import state, { onChange } from 'store/store';
1
+ import { Host, h } from '@stencil/core';
2
+ import state, { onChange, reset } from 'store/store';
3
3
  import arrowBackImage from '../../assets/arrow-back.svg';
4
4
  export class GrwApp {
5
5
  constructor() {
@@ -98,459 +98,441 @@ export class GrwApp {
98
98
  }
99
99
  }
100
100
  disconnectedCallback() {
101
+ reset();
101
102
  window.removeEventListener('popstate', this.handlePopStateBind);
102
103
  }
103
104
  render() {
104
- return (h(Host, { style: { '--color-primary': this.colorPrimary, '--color-primary-tint': this.colorPrimaryTint, '--color-primary-shade': this.colorPrimaryShade } },
105
- !state.currentTreks && !state.currentTrek && (h("div", { class: "init-loader-container" },
106
- h("span", { class: "loader" }))),
107
- !this.showTrek && !state.treks && (h("grw-treks-provider", { api: this.api, language: this.language, "in-bbox": this.inBbox, cities: this.cities, districts: this.districts, structures: this.structures, themes: this.themes, portals: this.portals, routes: this.routes, practices: this.practices })),
108
- this.showTrek && this.currentTrekId && h("grw-trek-provider", { api: this.api, language: this.language, "trek-id": this.currentTrekId }),
109
- (state.currentTreks || state.currentTrek) && (h("div", { class: "app-container" },
110
- h("div", { class: this.isLargeView ? 'large-view-header-container' : 'header-container' },
111
- this.showTrek ? (h("div", { onClick: () => this.handleBackButton(), class: "arrow-back-icon", innerHTML: arrowBackImage })) : (h("div", { class: "handle-filters-container" },
112
- h("div", { onClick: () => this.handleFilters(), class: "handle-filters-button" }, "FILTRER"),
113
- state.treksWithinBounds && (h("div", { class: "current-treks-within-bounds-length" }, `${state.treksWithinBounds.length} randonnée${state.treksWithinBounds.length > 1 ? 's' : ''}`)))),
114
- !this.showTrek && this.showFilters && (h("div", { class: "options-container" },
115
- h("div", { class: "filters-container" },
116
- h("div", { onClick: () => this.handleFilters(), class: "close-filters-button" }, "X"),
117
- h("div", null,
118
- h("grw-filter", { filterName: "Pratique", filterType: "practices", filterNameProperty: "name" })),
119
- h("div", { class: "filter-margin-top" },
120
- h("grw-filter", { filterName: "Difficult\u00E9", filterType: "difficulties", filterNameProperty: "label" })),
121
- h("div", { class: "filter-margin-top" },
122
- h("grw-filter", { filterName: "Dur\u00E9e", filterType: "durations", filterNameProperty: "name" }))),
123
- h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))),
124
- h("div", { class: "attribution-container" },
125
- h("a", { target: "_blank", href: "https://geotrek.fr" }, "GEOTREK"))),
126
- h("div", { class: "content-container" },
127
- h("div", { class: this.isLargeView ? 'large-view-app-treks-list-container' : 'app-treks-list-container', style: { display: this.showTrek ? 'none' : 'flex', position: this.showTrek ? 'absolute' : 'relative' } },
128
- h("grw-treks-list", { "is-large-view": this.isLargeView, "color-primary": this.colorPrimary, "color-primary-tint": this.colorPrimaryTint })),
129
- this.showTrek && !state.currentTrek && (h("div", { class: this.isLargeView ? 'large-view-loader-container' : 'loader-container' },
130
- h("span", { class: "loader" }))),
131
- state.currentTrek && (h("div", { class: this.isLargeView ? 'large-view-app-trek-detail-container' : 'app-trek-detail-container' },
132
- h("grw-trek-detail", { "color-primary": this.colorPrimary, "color-primary-shade": this.colorPrimaryShade, "color-primary-tint": this.colorPrimaryTint }))),
133
- h("grw-map", { class: this.isLargeView ? 'large-view-app-map-container' : 'app-map-container', style: { visibility: (this.showTreksMap && !this.showTrek) || (this.showTrekMap && this.showTrek) ? 'visible' : 'hidden' }, "url-layer": this.urlLayer, center: this.center, zoom: this.zoom, attribution: this.attribution, "color-primary": this.colorPrimary, "color-primary-tint": this.colorPrimaryTint, "color-trek-line": this.colorTrekLine, "color-departure-icon": this.colorDepartureIcon, "color-arrival-icon": this.colorArrivalIcon, "color-sensitive-area": this.colorSensitiveArea, "color-poi-icon": this.colorPoiIcon })),
134
- h("div", { class: "map-visibility-button", style: { display: this.isLargeView ? 'none' : 'flex' } },
135
- h("div", { onClick: () => this.handleShowMap() }, this.showTrek ? (this.showTrekMap ? 'Voir la fiche' : 'Voir la carte') : this.showTreksMap ? 'Voir la liste' : 'Voir la carte'))))));
105
+ return (h(Host, { style: { '--color-primary': this.colorPrimary, '--color-primary-tint': this.colorPrimaryTint, '--color-primary-shade': this.colorPrimaryShade } }, !state.currentTreks && !state.currentTrek && (h("div", { class: "init-loader-container" }, h("span", { class: "loader" }))), !this.showTrek && !state.treks && (h("grw-treks-provider", { api: this.api, language: this.language, "in-bbox": this.inBbox, cities: this.cities, districts: this.districts, structures: this.structures, themes: this.themes, portals: this.portals, routes: this.routes, practices: this.practices })), this.showTrek && this.currentTrekId && h("grw-trek-provider", { api: this.api, language: this.language, "trek-id": this.currentTrekId }), (state.currentTreks || state.currentTrek) && (h("div", { class: "app-container" }, h("div", { class: this.isLargeView ? 'large-view-header-container' : 'header-container' }, this.showTrek ? (h("div", { onClick: () => this.handleBackButton(), class: "arrow-back-icon", innerHTML: arrowBackImage })) : (h("div", { class: "handle-filters-container" }, h("div", { onClick: () => this.handleFilters(), class: "handle-filters-button" }, "FILTRER"), state.treksWithinBounds && (h("div", { class: "current-treks-within-bounds-length" }, `${state.treksWithinBounds.length} randonnée${state.treksWithinBounds.length > 1 ? 's' : ''}`)))), !this.showTrek && this.showFilters && (h("div", { class: "options-container" }, h("div", { class: "filters-container" }, h("div", { onClick: () => this.handleFilters(), class: "close-filters-button" }, "X"), h("div", null, h("grw-filter", { filterName: "Pratique", filterType: "practices", filterNameProperty: "name" })), h("div", { class: "filter-margin-top" }, h("grw-filter", { filterName: "Difficult\u00E9", filterType: "difficulties", filterNameProperty: "label" })), h("div", { class: "filter-margin-top" }, h("grw-filter", { filterName: "Dur\u00E9e", filterType: "durations", filterNameProperty: "name" }))), h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))), h("div", { class: "attribution-container" }, h("a", { target: "_blank", href: "https://geotrek.fr" }, "GEOTREK"))), h("div", { class: "content-container" }, h("div", { class: this.isLargeView ? 'large-view-app-treks-list-container' : 'app-treks-list-container', style: { display: this.showTrek ? 'none' : 'flex', position: this.showTrek ? 'absolute' : 'relative' } }, h("grw-treks-list", { "reset-store-on-disconnected": "false", "is-large-view": this.isLargeView, "color-primary": this.colorPrimary, "color-primary-tint": this.colorPrimaryTint })), this.showTrek && !state.currentTrek && (h("div", { class: this.isLargeView ? 'large-view-loader-container' : 'loader-container' }, h("span", { class: "loader" }))), state.currentTrek && (h("div", { class: this.isLargeView ? 'large-view-app-trek-detail-container' : 'app-trek-detail-container' }, h("grw-trek-detail", { "reset-store-on-disconnected": "false", "color-primary": this.colorPrimary, "color-primary-shade": this.colorPrimaryShade, "color-primary-tint": this.colorPrimaryTint }))), h("grw-map", { "reset-store-on-disconnected": "false", class: this.isLargeView ? 'large-view-app-map-container' : 'app-map-container', style: { visibility: (this.showTreksMap && !this.showTrek) || (this.showTrekMap && this.showTrek) ? 'visible' : 'hidden' }, "url-layer": this.urlLayer, center: this.center, zoom: this.zoom, attribution: this.attribution, "color-primary": this.colorPrimary, "color-primary-tint": this.colorPrimaryTint, "color-trek-line": this.colorTrekLine, "color-departure-icon": this.colorDepartureIcon, "color-arrival-icon": this.colorArrivalIcon, "color-sensitive-area": this.colorSensitiveArea, "color-poi-icon": this.colorPoiIcon })), h("div", { class: "map-visibility-button", style: { display: this.isLargeView ? 'none' : 'flex' } }, h("div", { onClick: () => this.handleShowMap() }, this.showTrek ? (this.showTrekMap ? 'Voir la fiche' : 'Voir la carte') : this.showTreksMap ? 'Voir la liste' : 'Voir la carte'))))));
136
106
  }
137
107
  static get is() { return "grw-app"; }
138
108
  static get encapsulation() { return "shadow"; }
139
- static get originalStyleUrls() { return {
140
- "$": ["grw-app.scss"]
141
- }; }
142
- static get styleUrls() { return {
143
- "$": ["grw-app.css"]
144
- }; }
145
- static get properties() { return {
146
- "api": {
147
- "type": "string",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "string",
151
- "resolved": "string",
152
- "references": {}
153
- },
154
- "required": false,
155
- "optional": false,
156
- "docs": {
157
- "tags": [],
158
- "text": ""
159
- },
160
- "attribute": "api",
161
- "reflect": false
162
- },
163
- "language": {
164
- "type": "string",
165
- "mutable": false,
166
- "complexType": {
167
- "original": "string",
168
- "resolved": "string",
169
- "references": {}
170
- },
171
- "required": false,
172
- "optional": false,
173
- "docs": {
174
- "tags": [],
175
- "text": ""
176
- },
177
- "attribute": "language",
178
- "reflect": false,
179
- "defaultValue": "'fr'"
180
- },
181
- "inBbox": {
182
- "type": "string",
183
- "mutable": false,
184
- "complexType": {
185
- "original": "string",
186
- "resolved": "string",
187
- "references": {}
188
- },
189
- "required": false,
190
- "optional": false,
191
- "docs": {
192
- "tags": [],
193
- "text": ""
194
- },
195
- "attribute": "in-bbox",
196
- "reflect": false
197
- },
198
- "cities": {
199
- "type": "string",
200
- "mutable": false,
201
- "complexType": {
202
- "original": "string",
203
- "resolved": "string",
204
- "references": {}
205
- },
206
- "required": false,
207
- "optional": false,
208
- "docs": {
209
- "tags": [],
210
- "text": ""
211
- },
212
- "attribute": "cities",
213
- "reflect": false
214
- },
215
- "districts": {
216
- "type": "string",
217
- "mutable": false,
218
- "complexType": {
219
- "original": "string",
220
- "resolved": "string",
221
- "references": {}
222
- },
223
- "required": false,
224
- "optional": false,
225
- "docs": {
226
- "tags": [],
227
- "text": ""
228
- },
229
- "attribute": "districts",
230
- "reflect": false
231
- },
232
- "structures": {
233
- "type": "string",
234
- "mutable": false,
235
- "complexType": {
236
- "original": "string",
237
- "resolved": "string",
238
- "references": {}
239
- },
240
- "required": false,
241
- "optional": false,
242
- "docs": {
243
- "tags": [],
244
- "text": ""
245
- },
246
- "attribute": "structures",
247
- "reflect": false
248
- },
249
- "themes": {
250
- "type": "string",
251
- "mutable": false,
252
- "complexType": {
253
- "original": "string",
254
- "resolved": "string",
255
- "references": {}
256
- },
257
- "required": false,
258
- "optional": false,
259
- "docs": {
260
- "tags": [],
261
- "text": ""
262
- },
263
- "attribute": "themes",
264
- "reflect": false
265
- },
266
- "portals": {
267
- "type": "string",
268
- "mutable": false,
269
- "complexType": {
270
- "original": "string",
271
- "resolved": "string",
272
- "references": {}
273
- },
274
- "required": false,
275
- "optional": false,
276
- "docs": {
277
- "tags": [],
278
- "text": ""
279
- },
280
- "attribute": "portals",
281
- "reflect": false
282
- },
283
- "routes": {
284
- "type": "string",
285
- "mutable": false,
286
- "complexType": {
287
- "original": "string",
288
- "resolved": "string",
289
- "references": {}
290
- },
291
- "required": false,
292
- "optional": false,
293
- "docs": {
294
- "tags": [],
295
- "text": ""
296
- },
297
- "attribute": "routes",
298
- "reflect": false
299
- },
300
- "practices": {
301
- "type": "string",
302
- "mutable": false,
303
- "complexType": {
304
- "original": "string",
305
- "resolved": "string",
306
- "references": {}
307
- },
308
- "required": false,
309
- "optional": false,
310
- "docs": {
311
- "tags": [],
312
- "text": ""
313
- },
314
- "attribute": "practices",
315
- "reflect": false
316
- },
317
- "urlLayer": {
318
- "type": "string",
319
- "mutable": false,
320
- "complexType": {
321
- "original": "string",
322
- "resolved": "string",
323
- "references": {}
324
- },
325
- "required": false,
326
- "optional": false,
327
- "docs": {
328
- "tags": [],
329
- "text": ""
330
- },
331
- "attribute": "url-layer",
332
- "reflect": false
333
- },
334
- "center": {
335
- "type": "string",
336
- "mutable": false,
337
- "complexType": {
338
- "original": "string",
339
- "resolved": "string",
340
- "references": {}
341
- },
342
- "required": false,
343
- "optional": false,
344
- "docs": {
345
- "tags": [],
346
- "text": ""
347
- },
348
- "attribute": "center",
349
- "reflect": false
350
- },
351
- "zoom": {
352
- "type": "number",
353
- "mutable": false,
354
- "complexType": {
355
- "original": "number",
356
- "resolved": "number",
357
- "references": {}
358
- },
359
- "required": false,
360
- "optional": false,
361
- "docs": {
362
- "tags": [],
363
- "text": ""
364
- },
365
- "attribute": "zoom",
366
- "reflect": false
367
- },
368
- "attribution": {
369
- "type": "string",
370
- "mutable": false,
371
- "complexType": {
372
- "original": "string",
373
- "resolved": "string",
374
- "references": {}
375
- },
376
- "required": false,
377
- "optional": false,
378
- "docs": {
379
- "tags": [],
380
- "text": ""
381
- },
382
- "attribute": "attribution",
383
- "reflect": false
384
- },
385
- "colorPrimary": {
386
- "type": "string",
387
- "mutable": false,
388
- "complexType": {
389
- "original": "string",
390
- "resolved": "string",
391
- "references": {}
392
- },
393
- "required": false,
394
- "optional": false,
395
- "docs": {
396
- "tags": [],
397
- "text": ""
398
- },
399
- "attribute": "color-primary",
400
- "reflect": false,
401
- "defaultValue": "'#6b0030'"
402
- },
403
- "colorPrimaryShade": {
404
- "type": "string",
405
- "mutable": false,
406
- "complexType": {
407
- "original": "string",
408
- "resolved": "string",
409
- "references": {}
410
- },
411
- "required": false,
412
- "optional": false,
413
- "docs": {
414
- "tags": [],
415
- "text": ""
416
- },
417
- "attribute": "color-primary-shade",
418
- "reflect": false,
419
- "defaultValue": "'#4a0021'"
420
- },
421
- "colorPrimaryTint": {
422
- "type": "string",
423
- "mutable": false,
424
- "complexType": {
425
- "original": "string",
426
- "resolved": "string",
427
- "references": {}
428
- },
429
- "required": false,
430
- "optional": false,
431
- "docs": {
432
- "tags": [],
433
- "text": ""
434
- },
435
- "attribute": "color-primary-tint",
436
- "reflect": false,
437
- "defaultValue": "'#974c6e'"
438
- },
439
- "colorTrekLine": {
440
- "type": "string",
441
- "mutable": false,
442
- "complexType": {
443
- "original": "string",
444
- "resolved": "string",
445
- "references": {}
446
- },
447
- "required": false,
448
- "optional": false,
449
- "docs": {
450
- "tags": [],
451
- "text": ""
452
- },
453
- "attribute": "color-trek-line",
454
- "reflect": false,
455
- "defaultValue": "'#6b0030'"
456
- },
457
- "colorDepartureIcon": {
458
- "type": "string",
459
- "mutable": false,
460
- "complexType": {
461
- "original": "string",
462
- "resolved": "string",
463
- "references": {}
464
- },
465
- "required": false,
466
- "optional": false,
467
- "docs": {
468
- "tags": [],
469
- "text": ""
470
- },
471
- "attribute": "color-departure-icon",
472
- "reflect": false,
473
- "defaultValue": "'#006b3b'"
474
- },
475
- "colorArrivalIcon": {
476
- "type": "string",
477
- "mutable": false,
478
- "complexType": {
479
- "original": "string",
480
- "resolved": "string",
481
- "references": {}
482
- },
483
- "required": false,
484
- "optional": false,
485
- "docs": {
486
- "tags": [],
487
- "text": ""
488
- },
489
- "attribute": "color-arrival-icon",
490
- "reflect": false,
491
- "defaultValue": "'#85003b'"
492
- },
493
- "colorSensitiveArea": {
494
- "type": "string",
495
- "mutable": false,
496
- "complexType": {
497
- "original": "string",
498
- "resolved": "string",
499
- "references": {}
500
- },
501
- "required": false,
502
- "optional": false,
503
- "docs": {
504
- "tags": [],
505
- "text": ""
506
- },
507
- "attribute": "color-sensitive-area",
508
- "reflect": false,
509
- "defaultValue": "'#4974a5'"
510
- },
511
- "colorPoiIcon": {
512
- "type": "string",
513
- "mutable": false,
514
- "complexType": {
515
- "original": "string",
516
- "resolved": "string",
517
- "references": {}
518
- },
519
- "required": false,
520
- "optional": false,
521
- "docs": {
522
- "tags": [],
523
- "text": ""
524
- },
525
- "attribute": "color-poi-icon",
526
- "reflect": false,
527
- "defaultValue": "'#974c6e'"
528
- }
529
- }; }
530
- static get states() { return {
531
- "showTrek": {},
532
- "showTreksMap": {},
533
- "showTrekMap": {},
534
- "showFilters": {},
535
- "isLargeView": {},
536
- "currentTrekId": {}
537
- }; }
109
+ static get originalStyleUrls() {
110
+ return {
111
+ "$": ["grw-app.scss"]
112
+ };
113
+ }
114
+ static get styleUrls() {
115
+ return {
116
+ "$": ["grw-app.css"]
117
+ };
118
+ }
119
+ static get properties() {
120
+ return {
121
+ "api": {
122
+ "type": "string",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "string",
126
+ "resolved": "string",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": ""
134
+ },
135
+ "attribute": "api",
136
+ "reflect": false
137
+ },
138
+ "language": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "string",
143
+ "resolved": "string",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": false,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": ""
151
+ },
152
+ "attribute": "language",
153
+ "reflect": false,
154
+ "defaultValue": "'fr'"
155
+ },
156
+ "inBbox": {
157
+ "type": "string",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "string",
161
+ "resolved": "string",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": ""
169
+ },
170
+ "attribute": "in-bbox",
171
+ "reflect": false
172
+ },
173
+ "cities": {
174
+ "type": "string",
175
+ "mutable": false,
176
+ "complexType": {
177
+ "original": "string",
178
+ "resolved": "string",
179
+ "references": {}
180
+ },
181
+ "required": false,
182
+ "optional": false,
183
+ "docs": {
184
+ "tags": [],
185
+ "text": ""
186
+ },
187
+ "attribute": "cities",
188
+ "reflect": false
189
+ },
190
+ "districts": {
191
+ "type": "string",
192
+ "mutable": false,
193
+ "complexType": {
194
+ "original": "string",
195
+ "resolved": "string",
196
+ "references": {}
197
+ },
198
+ "required": false,
199
+ "optional": false,
200
+ "docs": {
201
+ "tags": [],
202
+ "text": ""
203
+ },
204
+ "attribute": "districts",
205
+ "reflect": false
206
+ },
207
+ "structures": {
208
+ "type": "string",
209
+ "mutable": false,
210
+ "complexType": {
211
+ "original": "string",
212
+ "resolved": "string",
213
+ "references": {}
214
+ },
215
+ "required": false,
216
+ "optional": false,
217
+ "docs": {
218
+ "tags": [],
219
+ "text": ""
220
+ },
221
+ "attribute": "structures",
222
+ "reflect": false
223
+ },
224
+ "themes": {
225
+ "type": "string",
226
+ "mutable": false,
227
+ "complexType": {
228
+ "original": "string",
229
+ "resolved": "string",
230
+ "references": {}
231
+ },
232
+ "required": false,
233
+ "optional": false,
234
+ "docs": {
235
+ "tags": [],
236
+ "text": ""
237
+ },
238
+ "attribute": "themes",
239
+ "reflect": false
240
+ },
241
+ "portals": {
242
+ "type": "string",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "string",
246
+ "resolved": "string",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": ""
254
+ },
255
+ "attribute": "portals",
256
+ "reflect": false
257
+ },
258
+ "routes": {
259
+ "type": "string",
260
+ "mutable": false,
261
+ "complexType": {
262
+ "original": "string",
263
+ "resolved": "string",
264
+ "references": {}
265
+ },
266
+ "required": false,
267
+ "optional": false,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": ""
271
+ },
272
+ "attribute": "routes",
273
+ "reflect": false
274
+ },
275
+ "practices": {
276
+ "type": "string",
277
+ "mutable": false,
278
+ "complexType": {
279
+ "original": "string",
280
+ "resolved": "string",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": false,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": ""
288
+ },
289
+ "attribute": "practices",
290
+ "reflect": false
291
+ },
292
+ "urlLayer": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "string",
297
+ "resolved": "string",
298
+ "references": {}
299
+ },
300
+ "required": false,
301
+ "optional": false,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": ""
305
+ },
306
+ "attribute": "url-layer",
307
+ "reflect": false
308
+ },
309
+ "center": {
310
+ "type": "string",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "string",
314
+ "resolved": "string",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": ""
322
+ },
323
+ "attribute": "center",
324
+ "reflect": false
325
+ },
326
+ "zoom": {
327
+ "type": "number",
328
+ "mutable": false,
329
+ "complexType": {
330
+ "original": "number",
331
+ "resolved": "number",
332
+ "references": {}
333
+ },
334
+ "required": false,
335
+ "optional": false,
336
+ "docs": {
337
+ "tags": [],
338
+ "text": ""
339
+ },
340
+ "attribute": "zoom",
341
+ "reflect": false
342
+ },
343
+ "attribution": {
344
+ "type": "string",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "string",
348
+ "resolved": "string",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": false,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": ""
356
+ },
357
+ "attribute": "attribution",
358
+ "reflect": false
359
+ },
360
+ "colorPrimary": {
361
+ "type": "string",
362
+ "mutable": false,
363
+ "complexType": {
364
+ "original": "string",
365
+ "resolved": "string",
366
+ "references": {}
367
+ },
368
+ "required": false,
369
+ "optional": false,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": ""
373
+ },
374
+ "attribute": "color-primary",
375
+ "reflect": false,
376
+ "defaultValue": "'#6b0030'"
377
+ },
378
+ "colorPrimaryShade": {
379
+ "type": "string",
380
+ "mutable": false,
381
+ "complexType": {
382
+ "original": "string",
383
+ "resolved": "string",
384
+ "references": {}
385
+ },
386
+ "required": false,
387
+ "optional": false,
388
+ "docs": {
389
+ "tags": [],
390
+ "text": ""
391
+ },
392
+ "attribute": "color-primary-shade",
393
+ "reflect": false,
394
+ "defaultValue": "'#4a0021'"
395
+ },
396
+ "colorPrimaryTint": {
397
+ "type": "string",
398
+ "mutable": false,
399
+ "complexType": {
400
+ "original": "string",
401
+ "resolved": "string",
402
+ "references": {}
403
+ },
404
+ "required": false,
405
+ "optional": false,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": ""
409
+ },
410
+ "attribute": "color-primary-tint",
411
+ "reflect": false,
412
+ "defaultValue": "'#974c6e'"
413
+ },
414
+ "colorTrekLine": {
415
+ "type": "string",
416
+ "mutable": false,
417
+ "complexType": {
418
+ "original": "string",
419
+ "resolved": "string",
420
+ "references": {}
421
+ },
422
+ "required": false,
423
+ "optional": false,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": ""
427
+ },
428
+ "attribute": "color-trek-line",
429
+ "reflect": false,
430
+ "defaultValue": "'#6b0030'"
431
+ },
432
+ "colorDepartureIcon": {
433
+ "type": "string",
434
+ "mutable": false,
435
+ "complexType": {
436
+ "original": "string",
437
+ "resolved": "string",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": false,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": ""
445
+ },
446
+ "attribute": "color-departure-icon",
447
+ "reflect": false,
448
+ "defaultValue": "'#006b3b'"
449
+ },
450
+ "colorArrivalIcon": {
451
+ "type": "string",
452
+ "mutable": false,
453
+ "complexType": {
454
+ "original": "string",
455
+ "resolved": "string",
456
+ "references": {}
457
+ },
458
+ "required": false,
459
+ "optional": false,
460
+ "docs": {
461
+ "tags": [],
462
+ "text": ""
463
+ },
464
+ "attribute": "color-arrival-icon",
465
+ "reflect": false,
466
+ "defaultValue": "'#85003b'"
467
+ },
468
+ "colorSensitiveArea": {
469
+ "type": "string",
470
+ "mutable": false,
471
+ "complexType": {
472
+ "original": "string",
473
+ "resolved": "string",
474
+ "references": {}
475
+ },
476
+ "required": false,
477
+ "optional": false,
478
+ "docs": {
479
+ "tags": [],
480
+ "text": ""
481
+ },
482
+ "attribute": "color-sensitive-area",
483
+ "reflect": false,
484
+ "defaultValue": "'#4974a5'"
485
+ },
486
+ "colorPoiIcon": {
487
+ "type": "string",
488
+ "mutable": false,
489
+ "complexType": {
490
+ "original": "string",
491
+ "resolved": "string",
492
+ "references": {}
493
+ },
494
+ "required": false,
495
+ "optional": false,
496
+ "docs": {
497
+ "tags": [],
498
+ "text": ""
499
+ },
500
+ "attribute": "color-poi-icon",
501
+ "reflect": false,
502
+ "defaultValue": "'#974c6e'"
503
+ }
504
+ };
505
+ }
506
+ static get states() {
507
+ return {
508
+ "showTrek": {},
509
+ "showTreksMap": {},
510
+ "showTrekMap": {},
511
+ "showFilters": {},
512
+ "isLargeView": {},
513
+ "currentTrekId": {}
514
+ };
515
+ }
538
516
  static get elementRef() { return "element"; }
539
- static get watchers() { return [{
540
- "propName": "isLargeView",
541
- "methodName": "watchPropHandler"
542
- }]; }
543
- static get listeners() { return [{
544
- "name": "trekCardPress",
545
- "method": "onTrekCardPress",
546
- "target": undefined,
547
- "capture": false,
548
- "passive": false
549
- }, {
550
- "name": "resize",
551
- "method": "onWindowResize",
552
- "target": "window",
553
- "capture": false,
554
- "passive": true
555
- }]; }
517
+ static get watchers() {
518
+ return [{
519
+ "propName": "isLargeView",
520
+ "methodName": "watchPropHandler"
521
+ }];
522
+ }
523
+ static get listeners() {
524
+ return [{
525
+ "name": "trekCardPress",
526
+ "method": "onTrekCardPress",
527
+ "target": undefined,
528
+ "capture": false,
529
+ "passive": false
530
+ }, {
531
+ "name": "resize",
532
+ "method": "onWindowResize",
533
+ "target": "window",
534
+ "capture": false,
535
+ "passive": true
536
+ }];
537
+ }
556
538
  }