@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,57 +1,52 @@
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 GrwSensitiveAreaDetail {
4
4
  render() {
5
- return (h(Host, null,
6
- h("div", { class: "sensitive-area-title" }, this.sensitiveArea.name),
7
- h("div", { class: "sensitive-area-description", innerHTML: this.sensitiveArea.description }),
8
- this.sensitiveArea.practices && this.sensitiveArea.practices.length > 0 && (h("div", { class: "sensitive-area-practice-container" },
9
- h("div", { class: "sensitive-area-practice-title" }, "Domaines d'activit\u00E9s concern\u00E9s :"),
10
- h("div", { class: "sensitive-area-practice-values" }, this.sensitiveArea.practices.map((sensitiveAreaPractice, index) => {
11
- const practice = state.practices.find(statePractice => statePractice.id === sensitiveAreaPractice);
12
- if (practice) {
13
- return h("div", { innerHTML: `${practice.name.toUpperCase()}${index + 1 !== this.sensitiveArea.practices.length ? ' - ' : ''}` });
14
- }
15
- })))),
16
- this.sensitiveArea.period && this.sensitiveArea.period.length > 0 && (h("div", { class: "sensitive-area-period-container" },
17
- h("div", { class: "sensitive-area-period-title" }, "P\u00E9riodes de sensibilit\u00E9"),
18
- h("div", { class: "sensitive-area-period-values" }, this.sensitiveArea.period.map((month, index) => {
19
- if (month) {
20
- return (h("div", { innerHTML: `${new Date(0, index + 1, 0).toLocaleDateString('fr', { month: 'long' }).toUpperCase()}${this.sensitiveArea.period.slice(index + 1).find(month => month) ? ' - ' : ''}` }));
21
- }
22
- })))),
23
- h("div", { class: "sensitive-area-contact-container" },
24
- h("div", { class: "sensitive-area-contact-title" }, "Contact"),
25
- h("div", { innerHTML: this.sensitiveArea.contact, class: "sensitive-area-contact-value" }))));
5
+ return (h(Host, null, h("div", { class: "sensitive-area-title" }, this.sensitiveArea.name), h("div", { class: "sensitive-area-description", innerHTML: this.sensitiveArea.description }), this.sensitiveArea.practices && this.sensitiveArea.practices.length > 0 && (h("div", { class: "sensitive-area-practice-container" }, h("div", { class: "sensitive-area-practice-title" }, "Domaines d'activit\u00E9s concern\u00E9s :"), h("div", { class: "sensitive-area-practice-values" }, this.sensitiveArea.practices.map((sensitiveAreaPractice, index) => {
6
+ const practice = state.practices.find(statePractice => statePractice.id === sensitiveAreaPractice);
7
+ if (practice) {
8
+ return h("div", { innerHTML: `${practice.name.toUpperCase()}${index + 1 !== this.sensitiveArea.practices.length ? ' - ' : ''}` });
9
+ }
10
+ })))), this.sensitiveArea.period && this.sensitiveArea.period.length > 0 && (h("div", { class: "sensitive-area-period-container" }, h("div", { class: "sensitive-area-period-title" }, "P\u00E9riodes de sensibilit\u00E9"), h("div", { class: "sensitive-area-period-values" }, this.sensitiveArea.period.map((month, index) => {
11
+ if (month) {
12
+ return (h("div", { innerHTML: `${new Date(0, index + 1, 0).toLocaleDateString('fr', { month: 'long' }).toUpperCase()}${this.sensitiveArea.period.slice(index + 1).find(month => month) ? ' - ' : ''}` }));
13
+ }
14
+ })))), h("div", { class: "sensitive-area-contact-container" }, h("div", { class: "sensitive-area-contact-title" }, "Contact"), h("div", { innerHTML: this.sensitiveArea.contact, class: "sensitive-area-contact-value" }))));
26
15
  }
27
16
  static get is() { return "grw-sensitive-area-detail"; }
28
17
  static get encapsulation() { return "shadow"; }
29
- static get originalStyleUrls() { return {
30
- "$": ["grw-sensitive-area-detail.scss"]
31
- }; }
32
- static get styleUrls() { return {
33
- "$": ["grw-sensitive-area-detail.css"]
34
- }; }
35
- static get properties() { return {
36
- "sensitiveArea": {
37
- "type": "unknown",
38
- "mutable": false,
39
- "complexType": {
40
- "original": "SensitiveArea",
41
- "resolved": "{ id: number; geometry: Geometry; name: string; description: string; contact: string; info_url: string; period: boolean[]; practices: number[]; }",
42
- "references": {
43
- "SensitiveArea": {
44
- "location": "import",
45
- "path": "types/types"
18
+ static get originalStyleUrls() {
19
+ return {
20
+ "$": ["grw-sensitive-area-detail.scss"]
21
+ };
22
+ }
23
+ static get styleUrls() {
24
+ return {
25
+ "$": ["grw-sensitive-area-detail.css"]
26
+ };
27
+ }
28
+ static get properties() {
29
+ return {
30
+ "sensitiveArea": {
31
+ "type": "unknown",
32
+ "mutable": false,
33
+ "complexType": {
34
+ "original": "SensitiveArea",
35
+ "resolved": "{ id: number; geometry: Geometry; name: string; description: string; contact: string; info_url: string; period: boolean[]; practices: number[]; }",
36
+ "references": {
37
+ "SensitiveArea": {
38
+ "location": "import",
39
+ "path": "types/types"
40
+ }
46
41
  }
42
+ },
43
+ "required": false,
44
+ "optional": false,
45
+ "docs": {
46
+ "tags": [],
47
+ "text": ""
47
48
  }
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [],
53
- "text": ""
54
49
  }
55
- }
56
- }; }
50
+ };
51
+ }
57
52
  }
@@ -1,5 +1,5 @@
1
- import { Component, Host, h, Prop, Event, State } 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 { formatDuration, formatLength, formatAscent } from 'utils/utils';
4
4
  import ascentImage from '../../assets/ascent.svg';
5
5
  import durationImage from '../../assets/duration.svg';
@@ -9,6 +9,7 @@ export class GrwTrekCard {
9
9
  this.colorPrimary = '#6b0030';
10
10
  this.colorPrimaryTint = '#974c6e';
11
11
  this.isLargeView = false;
12
+ this.resetStoreOnDisconnected = true;
12
13
  }
13
14
  connectedCallback() {
14
15
  this.currentTrek = this.trek ? this.trek : state.currentTrek;
@@ -17,6 +18,7 @@ export class GrwTrekCard {
17
18
  this.route = state.routes.find(route => route.id === this.currentTrek.route);
18
19
  this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);
19
20
  this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
21
+ this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);
20
22
  }
21
23
  onChange('currentTrek', () => {
22
24
  this.currentTrek = this.trek ? this.trek : state.currentTrek;
@@ -25,145 +27,156 @@ export class GrwTrekCard {
25
27
  this.route = state.routes.find(route => route.id === this.currentTrek.route);
26
28
  this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);
27
29
  this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
30
+ this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);
28
31
  }
29
32
  });
30
33
  }
34
+ disconnectedCallback() {
35
+ if (this.resetStoreOnDisconnected) {
36
+ reset();
37
+ }
38
+ }
31
39
  render() {
32
- var _a, _b, _c, _d, _e, _f, _g, _h;
33
- return (h(Host, { onClick: () => this.trekCardPress.emit(this.currentTrek.id), style: { 'width': this.isLargeView ? '100%' : 'auto', '--color-primary': this.colorPrimary, '--color-primary-tint': this.colorPrimaryTint } }, this.currentTrek && (h("div", { class: this.isLargeView ? 'trek-card-large-view-container' : 'trek-card-container' },
34
- this.currentTrek.attachments && this.currentTrek.attachments[0] && this.currentTrek.attachments[0].thumbnail && (h("img", { class: "image", src: `${this.currentTrek.attachments[0].thumbnail}`, loading: "lazy" })),
35
- h("div", { class: "sub-container" },
36
- h("div", { class: "departure" }, (_a = this.currentTrek) === null || _a === void 0 ? void 0 : _a.departure),
37
- h("div", { class: "name" }, (_b = this.currentTrek) === null || _b === void 0 ? void 0 : _b.name),
38
- h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label)))),
39
- h("div", { class: "icons-labels-container" },
40
- h("div", { class: "row" },
41
- h("div", { class: "icon-label difficulty" },
42
- ((_c = this.difficulty) === null || _c === void 0 ? void 0 : _c.pictogram) && h("img", { src: this.difficulty.pictogram }), (_d = this.difficulty) === null || _d === void 0 ? void 0 :
43
- _d.label),
44
- h("div", { class: "icon-label duration" },
45
- h("div", { class: "svg-icon", innerHTML: durationImage }),
46
- formatDuration(this.currentTrek.duration))),
47
- h("div", { class: "row" },
48
- h("div", { class: "icon-label length" },
49
- h("div", { class: "svg-icon", innerHTML: lengthImage }),
50
- formatLength(this.currentTrek.length_2d)),
51
- h("div", { class: "icon-label ascent" },
52
- h("div", { class: "svg-icon", innerHTML: ascentImage }),
53
- formatAscent(this.currentTrek.ascent))),
54
- h("div", { class: "row" },
55
- h("div", { class: "icon-label route" },
56
- ((_e = this.route) === null || _e === void 0 ? void 0 : _e.pictogram) && h("img", { src: this.route.pictogram }), (_f = this.route) === null || _f === void 0 ? void 0 :
57
- _f.route),
58
- h("div", { class: "icon-label practice" },
59
- ((_g = this.practice) === null || _g === void 0 ? void 0 : _g.pictogram) && h("img", { src: this.practice.pictogram }), (_h = this.practice) === null || _h === void 0 ? void 0 :
60
- _h.name))))))));
40
+ var _a, _b, _c, _d, _e, _f, _g;
41
+ return (h(Host, { onClick: () => this.trekCardPress.emit(this.currentTrek.id), style: { 'width': this.isLargeView ? '100%' : 'auto', '--color-primary': this.colorPrimary, '--color-primary-tint': this.colorPrimaryTint } }, this.currentTrek && (h("div", { class: this.isLargeView ? 'trek-card-large-view-container' : 'trek-card-container' }, this.currentTrek.attachments && this.currentTrek.attachments[0] && this.currentTrek.attachments[0].thumbnail && (h("img", { class: "image", src: `${this.currentTrek.attachments[0].thumbnail}`, loading: "lazy" })), h("div", { class: "sub-container" }, this.departureCity && h("div", { class: "departure" }, this.departureCity.name), h("div", { class: "name" }, (_a = this.currentTrek) === null || _a === void 0 ? void 0 : _a.name), h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label)))), h("div", { class: "icons-labels-container" }, h("div", { class: "row" }, h("div", { class: "icon-label difficulty" }, ((_b = this.difficulty) === null || _b === void 0 ? void 0 : _b.pictogram) && h("img", { src: this.difficulty.pictogram }), (_c = this.difficulty) === null || _c === void 0 ? void 0 :
42
+ _c.label), h("div", { class: "icon-label duration" }, h("div", { class: "svg-icon", innerHTML: durationImage }), formatDuration(this.currentTrek.duration))), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("div", { class: "svg-icon", innerHTML: lengthImage }), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("div", { class: "svg-icon", innerHTML: ascentImage }), formatAscent(this.currentTrek.ascent))), h("div", { class: "row" }, h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
43
+ _e.route), h("div", { class: "icon-label practice" }, ((_f = this.practice) === null || _f === void 0 ? void 0 : _f.pictogram) && h("img", { src: this.practice.pictogram }), (_g = this.practice) === null || _g === void 0 ? void 0 :
44
+ _g.name))))))));
61
45
  }
62
46
  static get is() { return "grw-trek-card"; }
63
47
  static get encapsulation() { return "shadow"; }
64
- static get originalStyleUrls() { return {
65
- "$": ["grw-trek-card.scss"]
66
- }; }
67
- static get styleUrls() { return {
68
- "$": ["grw-trek-card.css"]
69
- }; }
70
- static get properties() { return {
71
- "trek": {
72
- "type": "unknown",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "Trek",
76
- "resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser: string; difficulty: number; route: number; practice: number; themes: number[]; duration: number; length_2d: number; ascent: number; departure: string; arrival?: string; altimetric_profile?: string; geometry?: LineString; departure_geom?: Position; gpx?: string; kml?: string; pdf?: string; parking_location?: Position; ambiance?: string; access?: string; public_transport?: string; advice?: string; advised_parking?: string; gear?: string; labels?: number[]; points_reference?: MultiPoint; source?: number[]; structure?: number; disabled_infrastructure?: string; accessibilities?: number[]; accessibility_level?: number; accessibility_slope?: string; accessibility_width?: string; accessibility_signage?: string; accessibility_covering?: string; accessibility_exposure?: string; accessibility_advice?: string; }",
77
- "references": {
78
- "Trek": {
79
- "location": "import",
80
- "path": "types/types"
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["grw-trek-card.scss"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["grw-trek-card.css"]
56
+ };
57
+ }
58
+ static get properties() {
59
+ return {
60
+ "trek": {
61
+ "type": "unknown",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "Trek",
65
+ "resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser: string; difficulty: number; route: number; practice: number; themes: number[]; duration: number; length_2d: number; ascent: number; departure: string; departure_city: string; arrival?: string; altimetric_profile?: string; geometry?: LineString; departure_geom?: Position; gpx?: string; kml?: string; pdf?: string; parking_location?: Position; ambiance?: string; access?: string; public_transport?: string; advice?: string; advised_parking?: string; gear?: string; labels?: number[]; points_reference?: MultiPoint; source?: number[]; structure?: number; disabled_infrastructure?: string; accessibilities?: number[]; accessibility_level?: number; accessibility_slope?: string; accessibility_width?: string; accessibility_signage?: string; accessibility_covering?: string; accessibility_exposure?: string; accessibility_advice?: string; }",
66
+ "references": {
67
+ "Trek": {
68
+ "location": "import",
69
+ "path": "types/types"
70
+ }
81
71
  }
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": ""
82
78
  }
83
79
  },
84
- "required": false,
85
- "optional": false,
86
- "docs": {
87
- "tags": [],
88
- "text": ""
89
- }
90
- },
91
- "colorPrimary": {
92
- "type": "string",
93
- "mutable": false,
94
- "complexType": {
95
- "original": "string",
96
- "resolved": "string",
97
- "references": {}
98
- },
99
- "required": false,
100
- "optional": false,
101
- "docs": {
102
- "tags": [],
103
- "text": ""
104
- },
105
- "attribute": "color-primary",
106
- "reflect": false,
107
- "defaultValue": "'#6b0030'"
108
- },
109
- "colorPrimaryTint": {
110
- "type": "string",
111
- "mutable": false,
112
- "complexType": {
113
- "original": "string",
114
- "resolved": "string",
115
- "references": {}
80
+ "colorPrimary": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "attribute": "color-primary",
95
+ "reflect": false,
96
+ "defaultValue": "'#6b0030'"
116
97
  },
117
- "required": false,
118
- "optional": false,
119
- "docs": {
120
- "tags": [],
121
- "text": ""
98
+ "colorPrimaryTint": {
99
+ "type": "string",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "string",
103
+ "resolved": "string",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": ""
111
+ },
112
+ "attribute": "color-primary-tint",
113
+ "reflect": false,
114
+ "defaultValue": "'#974c6e'"
122
115
  },
123
- "attribute": "color-primary-tint",
124
- "reflect": false,
125
- "defaultValue": "'#974c6e'"
126
- },
127
- "isLargeView": {
128
- "type": "boolean",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "boolean",
132
- "resolved": "boolean",
133
- "references": {}
116
+ "isLargeView": {
117
+ "type": "boolean",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "boolean",
121
+ "resolved": "boolean",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": ""
129
+ },
130
+ "attribute": "is-large-view",
131
+ "reflect": false,
132
+ "defaultValue": "false"
134
133
  },
135
- "required": false,
136
- "optional": false,
137
- "docs": {
138
- "tags": [],
139
- "text": ""
140
- },
141
- "attribute": "is-large-view",
142
- "reflect": false,
143
- "defaultValue": "false"
144
- }
145
- }; }
146
- static get states() { return {
147
- "currentTrek": {},
148
- "difficulty": {},
149
- "route": {},
150
- "practice": {},
151
- "themes": {}
152
- }; }
153
- static get events() { return [{
154
- "method": "trekCardPress",
155
- "name": "trekCardPress",
156
- "bubbles": true,
157
- "cancelable": true,
158
- "composed": true,
159
- "docs": {
160
- "tags": [],
161
- "text": ""
162
- },
163
- "complexType": {
164
- "original": "number",
165
- "resolved": "number",
166
- "references": {}
134
+ "resetStoreOnDisconnected": {
135
+ "type": "boolean",
136
+ "mutable": false,
137
+ "complexType": {
138
+ "original": "boolean",
139
+ "resolved": "boolean",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": ""
147
+ },
148
+ "attribute": "reset-store-on-disconnected",
149
+ "reflect": false,
150
+ "defaultValue": "true"
167
151
  }
168
- }]; }
152
+ };
153
+ }
154
+ static get states() {
155
+ return {
156
+ "currentTrek": {},
157
+ "difficulty": {},
158
+ "route": {},
159
+ "practice": {},
160
+ "themes": {},
161
+ "departureCity": {}
162
+ };
163
+ }
164
+ static get events() {
165
+ return [{
166
+ "method": "trekCardPress",
167
+ "name": "trekCardPress",
168
+ "bubbles": true,
169
+ "cancelable": true,
170
+ "composed": true,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": ""
174
+ },
175
+ "complexType": {
176
+ "original": "number",
177
+ "resolved": "number",
178
+ "references": {}
179
+ }
180
+ }];
181
+ }
169
182
  }