@geotrekce/geotrek-rando-widget 0.3.3 → 0.3.5
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.
- package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +23 -4
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter_7.cjs.entry.js +306 -31
- package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-information-desk_5.cjs.entry.js +227 -0
- package/dist/cjs/grw-information-desk_5.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_5.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk_5.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-select-language.cjs.entry.js +1 -1
- package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
- package/dist/cjs/{i18n-cb39db65.js → i18n-691abc83.js} +11 -1
- package/dist/cjs/i18n-691abc83.js.br +0 -0
- package/dist/cjs/i18n-691abc83.js.gz +0 -0
- package/dist/cjs/i18n-691abc83.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{store-f3f3d4e3.js → store-a36efc0f.js} +6 -1
- package/dist/cjs/store-a36efc0f.js.br +0 -0
- package/dist/cjs/store-a36efc0f.js.gz +0 -0
- package/dist/cjs/store-a36efc0f.js.map +1 -0
- package/dist/cjs/{utils-691c0e59.js → utils-151d3b05.js} +2 -2
- package/dist/cjs/utils-151d3b05.js.br +0 -0
- package/dist/cjs/utils-151d3b05.js.gz +0 -0
- package/dist/cjs/{utils-691c0e59.js.map → utils-151d3b05.js.map} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/grw-app/grw-app.css +6 -2
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +25 -0
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.js → grw-information-desk/grw-information-desk.js} +4 -4
- package/dist/collection/components/grw-information-desk/grw-information-desk.js.br +0 -0
- package/dist/collection/components/grw-information-desk/grw-information-desk.js.gz +0 -0
- package/dist/collection/components/grw-information-desk/grw-information-desk.js.map +1 -0
- package/dist/collection/components/grw-map/grw-map.css +64 -10
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +232 -8
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-poi-detail/{grw-poi-detail.js → grw-poi.js} +4 -4
- package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -0
- package/dist/collection/components/grw-search/grw-search.css +1 -0
- package/dist/collection/components/grw-search/grw-search.css.br +0 -0
- package/dist/collection/components/grw-search/grw-search.css.gz +0 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.css +601 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.css.br +0 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.css.gz +0 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.js +84 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.br +0 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.map +1 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +3 -2
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +6 -6
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +103 -5
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +102 -11
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/i18n/i18n.js +10 -0
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +24 -9
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/store.js +5 -0
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/collection/types/types.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +23 -4
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-filter_7.entry.js +306 -31
- package/dist/esm/grw-filter_7.entry.js.br +0 -0
- package/dist/esm/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm/grw-filter_7.entry.js.map +1 -1
- package/dist/esm/grw-information-desk_5.entry.js +219 -0
- package/dist/esm/grw-information-desk_5.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_5.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk_5.entry.js.map +1 -0
- package/dist/esm/grw-select-language.entry.js +1 -1
- package/dist/esm/grw-select-language.entry.js.br +0 -0
- package/dist/esm/grw-select-language.entry.js.gz +0 -0
- package/dist/esm/{i18n-a9d6ba05.js → i18n-16a29f6f.js} +11 -1
- package/dist/esm/i18n-16a29f6f.js.br +0 -0
- package/dist/esm/i18n-16a29f6f.js.gz +0 -0
- package/dist/esm/i18n-16a29f6f.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/{store-8f6de05a.js → store-6101ed72.js} +6 -1
- package/dist/esm/store-6101ed72.js.br +0 -0
- package/dist/esm/store-6101ed72.js.gz +0 -0
- package/dist/esm/store-6101ed72.js.map +1 -0
- package/dist/esm/{utils-be103adf.js → utils-83029b76.js} +2 -2
- package/dist/esm/utils-83029b76.js.br +0 -0
- package/dist/esm/utils-83029b76.js.gz +0 -0
- package/dist/esm/{utils-be103adf.js.map → utils-83029b76.js.map} +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter_7.entry.js +3 -3
- package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.map +1 -1
- package/dist/esm-es5/grw-information-desk_5.entry.js +2 -0
- package/dist/esm-es5/grw-information-desk_5.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_5.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk_5.entry.js.map +1 -0
- package/dist/esm-es5/grw-select-language.entry.js +1 -1
- package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
- package/dist/esm-es5/i18n-16a29f6f.js +2 -0
- package/dist/esm-es5/i18n-16a29f6f.js.br +0 -0
- package/dist/esm-es5/i18n-16a29f6f.js.gz +0 -0
- package/dist/esm-es5/i18n-16a29f6f.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/{store-8f6de05a.js → store-6101ed72.js} +2 -2
- package/dist/esm-es5/store-6101ed72.js.br +0 -0
- package/dist/esm-es5/store-6101ed72.js.gz +0 -0
- package/dist/esm-es5/store-6101ed72.js.map +1 -0
- package/dist/esm-es5/{utils-be103adf.js → utils-83029b76.js} +2 -2
- package/dist/esm-es5/utils-83029b76.js.br +0 -0
- package/dist/esm-es5/utils-83029b76.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/p-05cd2f4e.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-05cd2f4e.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-05cd2f4e.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-05cd2f4e.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-bba5af15.system.entry.js → p-1266b9a7.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-1266b9a7.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1266b9a7.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js +1 -1
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-291b7192.system.js +2 -0
- package/dist/geotrek-rando-widget/p-291b7192.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-291b7192.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-291b7192.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-370f741f.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-370f741f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-370f741f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-370f741f.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-42a3c374.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-42a3c374.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-42a3c374.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-42a3c374.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-3c8ed548.js → p-5a6577cd.js} +2 -2
- package/dist/geotrek-rando-widget/p-5a6577cd.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a6577cd.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5a6577cd.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-b7b00edf.system.entry.js → p-6d738828.system.entry.js} +4 -4
- package/dist/geotrek-rando-widget/p-6d738828.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d738828.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6d738828.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6fe69455.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-6fe69455.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6fe69455.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6fe69455.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-78595a7d.entry.js → p-703802d9.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-703802d9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-703802d9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-f0811cf9.entry.js → p-bacd6952.entry.js} +4 -4
- package/dist/geotrek-rando-widget/p-bacd6952.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bacd6952.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bacd6952.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-e0651ca9.js → p-d0083a9b.js} +2 -2
- package/dist/geotrek-rando-widget/p-d0083a9b.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d0083a9b.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e653caed.js +2 -0
- package/dist/geotrek-rando-widget/p-e653caed.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e653caed.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e653caed.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-c45eb7b7.system.js → p-fe1917d3.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-fe1917d3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fe1917d3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fe1917d3.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-8956507a.system.js → p-ff9cac04.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-ff9cac04.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ff9cac04.system.js.gz +0 -0
- package/dist/types/components/grw-app/grw-app.d.ts +1 -0
- package/dist/types/components/grw-map/grw-map.d.ts +9 -2
- package/dist/types/components/grw-touristic-content/grw-touristic-content.d.ts +14 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +18 -1
- package/dist/types/components.d.ts +42 -24
- package/dist/types/i18n/i18n.d.ts +5 -0
- package/dist/types/store/store.d.ts +11 -1
- package/dist/types/types/types.d.ts +17 -0
- package/package.json +3 -2
- package/readme.md +14 -6
- package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js +0 -182
- package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-cb39db65.js.br +0 -0
- package/dist/cjs/i18n-cb39db65.js.gz +0 -0
- package/dist/cjs/i18n-cb39db65.js.map +0 -1
- package/dist/cjs/store-f3f3d4e3.js.br +0 -0
- package/dist/cjs/store-f3f3d4e3.js.gz +0 -0
- package/dist/cjs/store-f3f3d4e3.js.map +0 -1
- package/dist/cjs/utils-691c0e59.js.br +0 -0
- package/dist/cjs/utils-691c0e59.js.gz +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.br +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.gz +0 -0
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.map +0 -1
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.map +0 -1
- package/dist/esm/grw-information-desk-detail_4.entry.js +0 -175
- package/dist/esm/grw-information-desk-detail_4.entry.js.br +0 -0
- package/dist/esm/grw-information-desk-detail_4.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk-detail_4.entry.js.map +0 -1
- package/dist/esm/i18n-a9d6ba05.js.br +0 -0
- package/dist/esm/i18n-a9d6ba05.js.gz +0 -0
- package/dist/esm/i18n-a9d6ba05.js.map +0 -1
- package/dist/esm/store-8f6de05a.js.br +0 -0
- package/dist/esm/store-8f6de05a.js.gz +0 -0
- package/dist/esm/store-8f6de05a.js.map +0 -1
- package/dist/esm/utils-be103adf.js.br +0 -0
- package/dist/esm/utils-be103adf.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk-detail_4.entry.js +0 -2
- package/dist/esm-es5/grw-information-desk-detail_4.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk-detail_4.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk-detail_4.entry.js.map +0 -1
- package/dist/esm-es5/i18n-a9d6ba05.js +0 -2
- package/dist/esm-es5/i18n-a9d6ba05.js.br +0 -0
- package/dist/esm-es5/i18n-a9d6ba05.js.gz +0 -0
- package/dist/esm-es5/i18n-a9d6ba05.js.map +0 -1
- package/dist/esm-es5/store-8f6de05a.js.br +0 -0
- package/dist/esm-es5/store-8f6de05a.js.gz +0 -0
- package/dist/esm-es5/store-8f6de05a.js.map +0 -1
- package/dist/esm-es5/utils-be103adf.js.br +0 -0
- package/dist/esm-es5/utils-be103adf.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-29f817ac.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-29f817ac.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-29f817ac.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-29f817ac.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-33b7a4a8.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-33b7a4a8.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-33b7a4a8.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-33b7a4a8.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3c8ed548.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3c8ed548.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3c8ed548.js.map +0 -1
- package/dist/geotrek-rando-widget/p-5d5f6ab5.js +0 -2
- package/dist/geotrek-rando-widget/p-5d5f6ab5.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5d5f6ab5.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5d5f6ab5.js.map +0 -1
- package/dist/geotrek-rando-widget/p-78595a7d.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-78595a7d.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-8956507a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-8956507a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-93f67955.system.js +0 -2
- package/dist/geotrek-rando-widget/p-93f67955.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-93f67955.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-93f67955.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b7b00edf.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b7b00edf.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b7b00edf.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ba390498.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ba390498.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ba390498.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ba390498.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-bba5af15.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bba5af15.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c45eb7b7.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c45eb7b7.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c45eb7b7.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-e04da9f0.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-e04da9f0.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e04da9f0.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e04da9f0.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-e0651ca9.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e0651ca9.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0811cf9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f0811cf9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0811cf9.entry.js.map +0 -1
- /package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.css → grw-information-desk/grw-information-desk.css} +0 -0
- /package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.css.br → grw-information-desk/grw-information-desk.css.br} +0 -0
- /package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.css.gz → grw-information-desk/grw-information-desk.css.gz} +0 -0
- /package/dist/collection/components/grw-poi-detail/{grw-poi-detail.css → grw-poi.css} +0 -0
- /package/dist/collection/components/grw-poi-detail/{grw-poi-detail.css.br → grw-poi.css.br} +0 -0
- /package/dist/collection/components/grw-poi-detail/{grw-poi-detail.css.gz → grw-poi.css.gz} +0 -0
- /package/dist/esm-es5/{utils-be103adf.js.map → utils-83029b76.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-bba5af15.system.entry.js.map → p-1266b9a7.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-78595a7d.entry.js.map → p-703802d9.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-e0651ca9.js.map → p-d0083a9b.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-8956507a.system.js.map → p-ff9cac04.system.js.map} +0 -0
- /package/dist/types/components/{grw-information-desk-detail/grw-information-desk-detail.d.ts → grw-information-desk/grw-information-desk.d.ts} +0 -0
- /package/dist/types/components/grw-poi-detail/{grw-poi-detail.d.ts → grw-poi.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grw-touristic-content.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-content/grw-touristic-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQlE,MAAM,OAAO,mBAAmB;;;6BAOD,KAAK;;EAElC,gBAAgB;IACd,IAAI,CAAC,sBAAsB,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE;MACvE,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;MAC3C,UAAU,EAAE;QACV,MAAM,EAAE,IAAI,CAAC,yBAAyB;QACtC,MAAM,EAAE,IAAI,CAAC,yBAAyB;OACvC;MACD,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,+BAA+B,EAAE;MACxD,cAAc,EAAE,KAAK;MACrB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IACH,IAAI,CAAC,yBAAyB,CAAC,kBAAkB,GAAG,GAAG,EAAE;MACvD,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC;MACjD,IAAI,IAAI,CAAC,iBAAiB,EAAE;QAC1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etPath, h } from '@stencil/core';\nimport state from 'store/store';\nimport Swiper, { Keyboard, Navigation, Pagination } from 'swiper';\nimport { TouristicContent } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-content',\n styleUrl: 'grw-touristic-content.scss',\n shadow: true,\n})\nexport class GrwTouristicContent {\n swiperTouristicContent?: Swiper;\n swiperTouristicContentRef?: HTMLDivElement;\n prevElTouristicContentRef?: HTMLDivElement;\n nextElTouristicContentRef?: HTMLDivElement;\n paginationElTouristicContentRef?: HTMLDivElement;\n @Prop() touristicContent: TouristicContent;\n @State() displayFullscreen = false;\n\n componentDidLoad() {\n this.swiperTouristicContent = new Swiper(this.swiperTouristicContentRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElTouristicContentRef,\n nextEl: this.nextElTouristicContentRef,\n },\n pagination: { el: this.paginationElTouristicContentRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperTouristicContentRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n if (this.displayFullscreen) {\n this.swiperTouristicContent.keyboard.enable();\n } else {\n this.swiperTouristicContent.keyboard.disable();\n }\n };\n }\n\n handleFullscreen() {\n if (this.touristicContent.attachments && this.touristicContent.attachments[0] && this.touristicContent.attachments[0].url) {\n this.swiperTouristicContentRef.requestFullscreen();\n }\n }\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicContentCategory = state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === this.touristicContent.category);\n return (\n <Host>\n <div class=\"touristic-content-type-img-container\">\n {/* <img class=\"touristic-content-type\" src={`${state.poiTypes.find(poiType => poiType.id === this.poi.type)?.pictogram}`} /> */}\n <div class=\"swiper\" ref={el => (this.swiperTouristicContentRef = el)}>\n <div class=\"swiper-wrapper\">\n {this.touristicContent.attachments.length > 0 ? (\n this.touristicContent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img\n class={`touristic-content-img${this.displayFullscreen ? ' img-fullscreen' : ''}`}\n src={this.displayFullscreen ? attachment.url : attachment.thumbnail}\n loading=\"lazy\"\n onClick={() => this.handleFullscreen()}\n />\n </div>\n ))\n ) : (\n <div class=\"swiper-slide\">\n <img class=\"default-touristic-content-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElTouristicContentRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElTouristicContentRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElTouristicContentRef = el)}></div>\n </div>\n </div>\n <div class=\"touristic-content-sub-container\">\n <div class=\"touristic-content-category-container\">\n <img src={touristicContentCategory.pictogram} />\n <div class=\"touristic-content-category-name\">{touristicContentCategory.label}</div>\n </div>\n <div class=\"touristic-content-name\">{this.touristicContent.name}</div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span {
|
|
110
110
|
font-size: 24px;
|
|
111
111
|
width: 24px;
|
|
112
|
-
height:
|
|
112
|
+
height: 24px;
|
|
113
113
|
margin-right: 8px;
|
|
114
114
|
}
|
|
115
115
|
.trek-card-container .sub-container .icons-labels-container .row .practice img,
|
|
@@ -122,7 +122,8 @@
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.trek-card-container {
|
|
125
|
-
width:
|
|
125
|
+
width: 100%;
|
|
126
|
+
max-width: 350px;
|
|
126
127
|
}
|
|
127
128
|
.trek-card-container .image {
|
|
128
129
|
width: 100%;
|
|
Binary file
|
|
Binary file
|
|
@@ -45,10 +45,10 @@ export class GrwTrekCard {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
handleMouseOver() {
|
|
48
|
-
|
|
48
|
+
this.cardTrekMouseOver.emit(this.currentTrek.id);
|
|
49
49
|
}
|
|
50
50
|
handleMouseLeave() {
|
|
51
|
-
|
|
51
|
+
this.cardTrekMouseLeave.emit();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -60,13 +60,13 @@ export class GrwTrekCard {
|
|
|
60
60
|
'--color-on-secondary-container': this.colorOnSecondaryContainer,
|
|
61
61
|
'--color-surface-container-low': this.colorSurfaceContainerLow,
|
|
62
62
|
} }, this.currentTrek && (h("div", { class: this.isStep
|
|
63
|
-
?
|
|
63
|
+
? `trek-card-container trek-step-card${state.selectedStepId === this.currentTrek.id ? ' selected-trek-card' : ''}`
|
|
64
64
|
: this.isLargeView
|
|
65
65
|
? `trek-card-large-view-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`
|
|
66
|
-
: `trek-card-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`, onClick: () => this.trekCardPress.emit(this.currentTrek.id) }, this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 && (h("img", { class: "image", src: `${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[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 :
|
|
67
|
-
_c.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols material-symbols-outlined" }, "timelapse"), formatDuration(this.currentTrek.duration))), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols material-symbols-outlined" }, "moving"), 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 :
|
|
66
|
+
: `trek-card-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`, onClick: () => this.trekCardPress.emit(this.currentTrek.id) }, this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 && (h("img", { class: "image", src: `${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[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), !this.isStep && (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 :
|
|
67
|
+
_c.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols material-symbols-outlined" }, "timelapse"), formatDuration(this.currentTrek.duration))), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent))), !this.isStep && (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 :
|
|
68
68
|
_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 :
|
|
69
|
-
_g.name))))))));
|
|
69
|
+
_g.name)))))))));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "grw-trek-card"; }
|
|
72
72
|
static get encapsulation() { return "shadow"; }
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grw-trek-card.js","sourceRoot":"","sources":["../../../src/components/grw-trek-card/grw-trek-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOzE,MAAM,OAAO,WAAW;;;;;;;;;2BASI,SAAS;0BACV,SAAS;mCACA,SAAS;qCACP,SAAS;oCACV,SAAS;uBACtB,KAAK;oCACQ,IAAI;;;EAMvC,iBAAiB;IACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;IAC7D,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;MACvG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, State, Listen } from '@stencil/core';\nimport state, { onChange, reset } from 'store/store';\nimport { City, Difficulty, Practice, Route, Themes, Trek } from 'types/types';\nimport { formatDuration, formatLength, formatAscent } from 'utils/utils';\n\n@Component({\n tag: 'grw-trek-card',\n styleUrl: 'grw-trek-card.scss',\n shadow: true,\n})\nexport class GrwTrekCard {\n @Event() trekCardPress: EventEmitter<number>;\n @State() currentTrek: Trek;\n @State() difficulty: Difficulty;\n @State() route: Route;\n @State() practice: Practice;\n @State() themes: Themes;\n @State() departureCity: City;\n @Prop() trek: Trek;\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() isLargeView = false;\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isStep: false;\n\n @Event() cardTrekMouseOver: EventEmitter<number>;\n @Event() cardTrekMouseLeave: EventEmitter;\n\n connectedCallback() {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n }\n onChange('currentTrek', () => {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n }\n });\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n !this.isStep && this.cardTrekMouseOver.emit(this.currentTrek.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n !this.isStep && this.cardTrekMouseLeave.emit();\n }\n\n render() {\n return (\n <Host\n style={{\n 'width': this.isLargeView ? '100%' : 'auto',\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-surface-container-low': this.colorSurfaceContainerLow,\n }}\n >\n {this.currentTrek && (\n <div\n class={\n this.isStep\n ? 'trek-card-container trek-step-card'\n : this.isLargeView\n ? `trek-card-large-view-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n : `trek-card-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n }\n onClick={() => this.trekCardPress.emit(this.currentTrek.id)}\n >\n {this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 && (\n <img class=\"image\" src={`${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`} loading=\"lazy\" />\n )}\n <div class=\"sub-container\">\n {this.departureCity && <div class=\"departure\">{this.departureCity.name}</div>}\n <div class=\"name\">{this.currentTrek?.name}</div>\n <div class=\"themes-container\">\n {this.themes.map(theme => (\n <div class=\"theme\">{theme.label}</div>\n ))}\n </div>\n <div class=\"icons-labels-container\">\n <div class=\"row\">\n <div class=\"icon-label difficulty\">\n {this.difficulty?.pictogram && <img src={this.difficulty.pictogram} />}\n {this.difficulty?.label}\n </div>\n <div class=\"icon-label duration\">\n <span class=\"material-symbols material-symbols-outlined\">timelapse</span>\n {formatDuration(this.currentTrek.duration)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label length\">\n <span class=\"material-symbols material-symbols-outlined\">open_in_full</span>\n {formatLength(this.currentTrek.length_2d)}\n </div>\n <div class=\"icon-label ascent\">\n <span class=\"material-symbols material-symbols-outlined\">moving</span>\n {formatAscent(this.currentTrek.ascent)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label route\">\n {this.route?.pictogram && <img src={this.route.pictogram} />}\n {this.route?.route}\n </div>\n <div class=\"icon-label practice\">\n {this.practice?.pictogram && <img src={this.practice.pictogram} />}\n {this.practice?.name}\n </div>\n </div>\n </div>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"grw-trek-card.js","sourceRoot":"","sources":["../../../src/components/grw-trek-card/grw-trek-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOzE,MAAM,OAAO,WAAW;;;;;;;;;2BASI,SAAS;0BACV,SAAS;mCACA,SAAS;qCACP,SAAS;oCACV,SAAS;uBACtB,KAAK;oCACQ,IAAI;;;EAMvC,iBAAiB;IACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;IAC7D,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;MACvG,IAAI,CAAC,KAAK,GA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R,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, State, Listen } from '@stencil/core';\nimport state, { onChange, reset } from 'store/store';\nimport { City, Difficulty, Practice, Route, Themes, Trek } from 'types/types';\nimport { formatDuration, formatLength, formatAscent } from 'utils/utils';\n\n@Component({\n tag: 'grw-trek-card',\n styleUrl: 'grw-trek-card.scss',\n shadow: true,\n})\nexport class GrwTrekCard {\n @Event() trekCardPress: EventEmitter<number>;\n @State() currentTrek: Trek;\n @State() difficulty: Difficulty;\n @State() route: Route;\n @State() practice: Practice;\n @State() themes: Themes;\n @State() departureCity: City;\n @Prop() trek: Trek;\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() isLargeView = false;\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isStep: false;\n\n @Event() cardTrekMouseOver: EventEmitter<number>;\n @Event() cardTrekMouseLeave: EventEmitter;\n\n connectedCallback() {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n }\n onChange('currentTrek', () => {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n }\n });\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardTrekMouseOver.emit(this.currentTrek.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardTrekMouseLeave.emit();\n }\n\n render() {\n return (\n <Host\n style={{\n 'width': this.isLargeView ? '100%' : 'auto',\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-surface-container-low': this.colorSurfaceContainerLow,\n }}\n >\n {this.currentTrek && (\n <div\n class={\n this.isStep\n ? `trek-card-container trek-step-card${state.selectedStepId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n : this.isLargeView\n ? `trek-card-large-view-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n : `trek-card-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n }\n onClick={() => this.trekCardPress.emit(this.currentTrek.id)}\n >\n {this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 && (\n <img class=\"image\" src={`${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`} loading=\"lazy\" />\n )}\n <div class=\"sub-container\">\n {this.departureCity && <div class=\"departure\">{this.departureCity.name}</div>}\n <div class=\"name\">{this.currentTrek?.name}</div>\n {!this.isStep && (\n <div class=\"themes-container\">\n {this.themes.map(theme => (\n <div class=\"theme\">{theme.label}</div>\n ))}\n </div>\n )}\n <div class=\"icons-labels-container\">\n <div class=\"row\">\n <div class=\"icon-label difficulty\">\n {this.difficulty?.pictogram && <img src={this.difficulty.pictogram} />}\n {this.difficulty?.label}\n </div>\n <div class=\"icon-label duration\">\n <span class=\"material-symbols material-symbols-outlined\">timelapse</span>\n {formatDuration(this.currentTrek.duration)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label length\">\n <span class=\"material-symbols material-symbols-outlined\">open_in_full</span>\n {formatLength(this.currentTrek.length_2d)}\n </div>\n <div class=\"icon-label ascent\">\n <span class=\"material-symbols material-symbols-outlined\">moving</span>\n {formatAscent(this.currentTrek.ascent)}\n </div>\n </div>\n {!this.isStep && (\n <div class=\"row\">\n <div class=\"icon-label route\">\n {this.route?.pictogram && <img src={this.route.pictogram} />}\n {this.route?.route}\n </div>\n <div class=\"icon-label practice\">\n {this.practice?.pictogram && <img src={this.practice.pictogram} />}\n {this.practice?.name}\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -591,6 +591,10 @@ grw-trek-detail {
|
|
|
591
591
|
width: 240px;
|
|
592
592
|
background-size: 120px 100%;
|
|
593
593
|
}
|
|
594
|
+
.trek-options .steps.selected-trek-option ~ .indicator-selected-trek-option {
|
|
595
|
+
width: 160px;
|
|
596
|
+
background-size: 80px 100%;
|
|
597
|
+
}
|
|
594
598
|
.trek-options .description.selected-trek-option ~ .indicator-selected-trek-option {
|
|
595
599
|
width: 240px;
|
|
596
600
|
background-size: 120px 100%;
|
|
@@ -611,10 +615,18 @@ grw-trek-detail {
|
|
|
611
615
|
width: 240px;
|
|
612
616
|
background-size: 120px 100%;
|
|
613
617
|
}
|
|
618
|
+
.trek-options .touristic-content.selected-trek-option ~ .indicator-selected-trek-option {
|
|
619
|
+
width: 240px;
|
|
620
|
+
background-size: 120px 100%;
|
|
621
|
+
}
|
|
614
622
|
.trek-options .presentation {
|
|
615
623
|
min-width: 120px;
|
|
616
624
|
width: 120px;
|
|
617
625
|
}
|
|
626
|
+
.trek-options .steps {
|
|
627
|
+
min-width: 80px;
|
|
628
|
+
width: 80px;
|
|
629
|
+
}
|
|
618
630
|
.trek-options .description {
|
|
619
631
|
min-width: 120px;
|
|
620
632
|
width: 120px;
|
|
@@ -635,6 +647,10 @@ grw-trek-detail {
|
|
|
635
647
|
min-width: 120px;
|
|
636
648
|
width: 120px;
|
|
637
649
|
}
|
|
650
|
+
.trek-options .touristic-content {
|
|
651
|
+
min-width: 120px;
|
|
652
|
+
width: 120px;
|
|
653
|
+
}
|
|
638
654
|
|
|
639
655
|
.trek-detail-container {
|
|
640
656
|
font-family: "Roboto";
|
|
@@ -776,6 +792,7 @@ grw-trek-detail {
|
|
|
776
792
|
.trek-detail-container .sensitive-areas-container,
|
|
777
793
|
.trek-detail-container .source-container,
|
|
778
794
|
.trek-detail-container .accessibilities-container,
|
|
795
|
+
.trek-detail-container .parent-trek-container,
|
|
779
796
|
.trek-detail-container .weather-container {
|
|
780
797
|
padding: 0px 24px 0px 24px;
|
|
781
798
|
}
|
|
@@ -794,7 +811,9 @@ grw-trek-detail {
|
|
|
794
811
|
.trek-detail-container .source-container,
|
|
795
812
|
.trek-detail-container .accessibilities-container,
|
|
796
813
|
.trek-detail-container .weather-container,
|
|
797
|
-
.trek-detail-container .
|
|
814
|
+
.trek-detail-container .parent-trek-container,
|
|
815
|
+
.trek-detail-container .step-container,
|
|
816
|
+
.trek-detail-container .touristic-content-container {
|
|
798
817
|
font-size: 16px;
|
|
799
818
|
line-height: 24px;
|
|
800
819
|
font-weight: 400;
|
|
@@ -814,7 +833,9 @@ grw-trek-detail {
|
|
|
814
833
|
.trek-detail-container .source-container a,
|
|
815
834
|
.trek-detail-container .accessibilities-container a,
|
|
816
835
|
.trek-detail-container .weather-container a,
|
|
817
|
-
.trek-detail-container .
|
|
836
|
+
.trek-detail-container .parent-trek-container a,
|
|
837
|
+
.trek-detail-container .step-container a,
|
|
838
|
+
.trek-detail-container .touristic-content-container a {
|
|
818
839
|
color: var(--color-primary-app);
|
|
819
840
|
}
|
|
820
841
|
.trek-detail-container .description-title,
|
|
@@ -829,19 +850,58 @@ grw-trek-detail {
|
|
|
829
850
|
.trek-detail-container .pois-title,
|
|
830
851
|
.trek-detail-container .source-title,
|
|
831
852
|
.trek-detail-container .accessibilities-title,
|
|
832
|
-
.trek-detail-container .step-title
|
|
853
|
+
.trek-detail-container .step-title,
|
|
854
|
+
.trek-detail-container .parent-trek-title,
|
|
855
|
+
.trek-detail-container .touristic-content-title {
|
|
833
856
|
color: var(--color-on-surface);
|
|
834
857
|
font-size: 22px;
|
|
835
858
|
line-height: 28px;
|
|
836
859
|
font-weight: 400;
|
|
837
860
|
font-weight: bold;
|
|
838
|
-
margin-bottom: 16px;
|
|
839
861
|
}
|
|
862
|
+
.trek-detail-container .description-title,
|
|
863
|
+
.trek-detail-container .altimetric-profile-title,
|
|
864
|
+
.trek-detail-container .access-title,
|
|
865
|
+
.trek-detail-container .public-transport-title,
|
|
866
|
+
.trek-detail-container .advice-title,
|
|
867
|
+
.trek-detail-container .advised-parking-title,
|
|
868
|
+
.trek-detail-container .gear-title,
|
|
869
|
+
.trek-detail-container .sensitive-areas-title,
|
|
840
870
|
.trek-detail-container .information-desks-title,
|
|
841
871
|
.trek-detail-container .pois-title,
|
|
872
|
+
.trek-detail-container .source-title,
|
|
873
|
+
.trek-detail-container .accessibilities-title,
|
|
874
|
+
.trek-detail-container .parent-trek-title,
|
|
875
|
+
.trek-detail-container .touristic-content-title {
|
|
876
|
+
margin-bottom: 16px;
|
|
877
|
+
}
|
|
842
878
|
.trek-detail-container .step-title {
|
|
879
|
+
margin-bottom: 12px;
|
|
880
|
+
}
|
|
881
|
+
.trek-detail-container .information-desks-title,
|
|
882
|
+
.trek-detail-container .pois-title,
|
|
883
|
+
.trek-detail-container .step-title,
|
|
884
|
+
.trek-detail-container .touristic-content-title {
|
|
843
885
|
padding: 0px 24px 0px 24px;
|
|
844
886
|
}
|
|
887
|
+
.trek-detail-container .parent-trek-title {
|
|
888
|
+
cursor: pointer;
|
|
889
|
+
user-select: none;
|
|
890
|
+
font-weight: 500;
|
|
891
|
+
height: 32px;
|
|
892
|
+
display: flex;
|
|
893
|
+
align-items: center;
|
|
894
|
+
justify-content: flex-start;
|
|
895
|
+
box-shadow: var(--elevation-0);
|
|
896
|
+
border: none;
|
|
897
|
+
-webkit-tap-highlight-color: transparent;
|
|
898
|
+
line-height: 20px;
|
|
899
|
+
color: var(--color-primary);
|
|
900
|
+
background-color: transparent;
|
|
901
|
+
}
|
|
902
|
+
.trek-detail-container .parent-trek-title div {
|
|
903
|
+
margin-right: 4px;
|
|
904
|
+
}
|
|
845
905
|
|
|
846
906
|
.description-container .description ol {
|
|
847
907
|
position: relative;
|
|
@@ -995,7 +1055,8 @@ grw-trek-detail {
|
|
|
995
1055
|
|
|
996
1056
|
.swiper-information-desks,
|
|
997
1057
|
.swiper-pois,
|
|
998
|
-
.swiper-step
|
|
1058
|
+
.swiper-step,
|
|
1059
|
+
.swiper-touristic-content {
|
|
999
1060
|
padding-right: 32px;
|
|
1000
1061
|
padding-left: 32px;
|
|
1001
1062
|
}
|
|
@@ -1003,6 +1064,43 @@ grw-trek-detail {
|
|
|
1003
1064
|
.swiper-step {
|
|
1004
1065
|
padding-bottom: 4px;
|
|
1005
1066
|
}
|
|
1067
|
+
.swiper-step .swiper-wrapper .swiper-slide {
|
|
1068
|
+
counter-increment: stepPoint;
|
|
1069
|
+
padding-top: 36px;
|
|
1070
|
+
}
|
|
1071
|
+
.swiper-step .swiper-wrapper .swiper-slide:first-child:before {
|
|
1072
|
+
border-top-left-radius: 8px;
|
|
1073
|
+
border-bottom-left-radius: 8px;
|
|
1074
|
+
}
|
|
1075
|
+
.swiper-step .swiper-wrapper .swiper-slide:before {
|
|
1076
|
+
content: "";
|
|
1077
|
+
position: absolute;
|
|
1078
|
+
top: 6px;
|
|
1079
|
+
height: 12px;
|
|
1080
|
+
width: calc(100% + 20px);
|
|
1081
|
+
background-color: var(--color-secondary-container);
|
|
1082
|
+
}
|
|
1083
|
+
.swiper-step .swiper-wrapper .swiper-slide:last-child:before {
|
|
1084
|
+
border-top-right-radius: 8px;
|
|
1085
|
+
border-bottom-right-radius: 8px;
|
|
1086
|
+
width: 100%;
|
|
1087
|
+
}
|
|
1088
|
+
.swiper-step .swiper-wrapper .swiper-slide:after {
|
|
1089
|
+
position: absolute;
|
|
1090
|
+
display: flex;
|
|
1091
|
+
align-items: center;
|
|
1092
|
+
justify-content: center;
|
|
1093
|
+
content: counter(stepPoint);
|
|
1094
|
+
width: 24px;
|
|
1095
|
+
height: 24px;
|
|
1096
|
+
background: var(--color-primary-app);
|
|
1097
|
+
border-radius: 12px;
|
|
1098
|
+
font-weight: bold;
|
|
1099
|
+
font-size: 0.8em;
|
|
1100
|
+
color: white;
|
|
1101
|
+
margin-left: calc(50% - 12px);
|
|
1102
|
+
top: 0px;
|
|
1103
|
+
}
|
|
1006
1104
|
|
|
1007
1105
|
.divider {
|
|
1008
1106
|
margin: 16px;
|
|
Binary file
|
|
Binary file
|
|
@@ -8,6 +8,11 @@ const presentation = {
|
|
|
8
8
|
width: 120,
|
|
9
9
|
indicator: false,
|
|
10
10
|
};
|
|
11
|
+
const steps = {
|
|
12
|
+
visible: false,
|
|
13
|
+
width: 80,
|
|
14
|
+
indicator: false,
|
|
15
|
+
};
|
|
11
16
|
const description = {
|
|
12
17
|
visible: false,
|
|
13
18
|
width: 120,
|
|
@@ -33,13 +38,20 @@ const pois = {
|
|
|
33
38
|
width: 120,
|
|
34
39
|
indicator: false,
|
|
35
40
|
};
|
|
41
|
+
const touristicContents = {
|
|
42
|
+
visible: false,
|
|
43
|
+
width: 120,
|
|
44
|
+
indicator: false,
|
|
45
|
+
};
|
|
36
46
|
const options = {
|
|
37
47
|
presentation,
|
|
48
|
+
steps,
|
|
38
49
|
description,
|
|
39
50
|
recommendations,
|
|
40
51
|
sensitiveArea,
|
|
41
52
|
informationPlaces,
|
|
42
53
|
pois,
|
|
54
|
+
touristicContents,
|
|
43
55
|
};
|
|
44
56
|
export class GrwTrekDetail {
|
|
45
57
|
constructor() {
|
|
@@ -125,6 +137,20 @@ export class GrwTrekDetail {
|
|
|
125
137
|
},
|
|
126
138
|
},
|
|
127
139
|
});
|
|
140
|
+
this.swiperTouristicContents = new Swiper(this.swiperTouristicContentsRef, {
|
|
141
|
+
modules: [FreeMode, Mousewheel],
|
|
142
|
+
slidesPerView: 1.5,
|
|
143
|
+
spaceBetween: 20,
|
|
144
|
+
grabCursor: true,
|
|
145
|
+
freeMode: true,
|
|
146
|
+
mousewheel: { forceToAxis: true },
|
|
147
|
+
breakpointsBase: 'container',
|
|
148
|
+
breakpoints: {
|
|
149
|
+
'540': {
|
|
150
|
+
slidesPerView: 2.5,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
});
|
|
128
154
|
if (this.presentationRef) {
|
|
129
155
|
const presentationObserver = new IntersectionObserver(entries => {
|
|
130
156
|
const isIntersecting = entries[0].isIntersecting;
|
|
@@ -134,15 +160,25 @@ export class GrwTrekDetail {
|
|
|
134
160
|
});
|
|
135
161
|
presentationObserver.observe(this.presentationRef);
|
|
136
162
|
}
|
|
163
|
+
if (this.stepsRef) {
|
|
164
|
+
const stepsObserver = new IntersectionObserver(entries => {
|
|
165
|
+
const isIntersecting = entries[0].isIntersecting;
|
|
166
|
+
this.stepsIsInViewport.emit(isIntersecting);
|
|
167
|
+
if (isIntersecting) {
|
|
168
|
+
this.options = Object.assign(Object.assign({}, this.defaultOptions), { steps: Object.assign(Object.assign({}, this.defaultOptions.steps), { indicator: isIntersecting }) });
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
stepsObserver.observe(this.stepsRef);
|
|
172
|
+
}
|
|
137
173
|
if (this.descriptionRef) {
|
|
138
|
-
const
|
|
174
|
+
const descriptionObserver = new IntersectionObserver(entries => {
|
|
139
175
|
const isIntersecting = entries[0].isIntersecting;
|
|
140
|
-
this.
|
|
176
|
+
this.descriptionIsInViewport.emit(isIntersecting);
|
|
141
177
|
if (isIntersecting) {
|
|
142
178
|
this.options = Object.assign(Object.assign({}, this.defaultOptions), { description: Object.assign(Object.assign({}, this.defaultOptions.description), { indicator: isIntersecting }) });
|
|
143
179
|
}
|
|
144
180
|
});
|
|
145
|
-
|
|
181
|
+
descriptionObserver.observe(this.descriptionRef);
|
|
146
182
|
}
|
|
147
183
|
if (this.recommendationRef) {
|
|
148
184
|
const recommendationsObserver = new IntersectionObserver(entries => {
|
|
@@ -190,6 +226,16 @@ export class GrwTrekDetail {
|
|
|
190
226
|
});
|
|
191
227
|
poiObserver.observe(this.poiRef);
|
|
192
228
|
}
|
|
229
|
+
if (this.touristicContentsRef) {
|
|
230
|
+
const touristicContentObserver = new IntersectionObserver(entries => {
|
|
231
|
+
const isIntersecting = entries[0].isIntersecting;
|
|
232
|
+
this.touristicContentsIsInViewport.emit(isIntersecting);
|
|
233
|
+
if (isIntersecting) {
|
|
234
|
+
this.options = Object.assign(Object.assign({}, this.defaultOptions), { touristicContents: Object.assign(Object.assign({}, this.defaultOptions.touristicContents), { indicator: isIntersecting }) });
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
touristicContentObserver.observe(this.touristicContentsRef);
|
|
238
|
+
}
|
|
193
239
|
}
|
|
194
240
|
connectedCallback() {
|
|
195
241
|
this.currentTrek = this.trek ? this.trek : state.currentTrek;
|
|
@@ -235,8 +281,8 @@ export class GrwTrekDetail {
|
|
|
235
281
|
}
|
|
236
282
|
}
|
|
237
283
|
handleOptions() {
|
|
238
|
-
return Object.assign(Object.assign({}, options), { presentation: Object.assign({}, presentation), description: Object.assign(Object.assign({}, description), { visible: Boolean(this.currentTrek.description) }), recommendations: Object.assign(Object.assign({}, recommendations), { visible: Boolean(this.currentTrek.advice || (this.labels && this.labels.length > 0)) }), sensitiveArea: Object.assign(Object.assign({}, sensitiveArea), { visible: Boolean(state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0) }), informationPlaces: Object.assign(Object.assign({}, informationPlaces), { visible: Boolean(state.currentInformationDesks &&
|
|
239
|
-
state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0) }), pois: Object.assign(Object.assign({}, pois), { visible: Boolean(state.currentPois && state.currentPois.length > 0) }) });
|
|
284
|
+
return Object.assign(Object.assign({}, options), { presentation: Object.assign({}, presentation), steps: Object.assign(Object.assign({}, steps), { visible: Boolean(state.parentTrek) }), description: Object.assign(Object.assign({}, description), { visible: Boolean(this.currentTrek.description) }), recommendations: Object.assign(Object.assign({}, recommendations), { visible: Boolean(this.currentTrek.advice || (this.labels && this.labels.length > 0)) }), sensitiveArea: Object.assign(Object.assign({}, sensitiveArea), { visible: Boolean(state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0) }), informationPlaces: Object.assign(Object.assign({}, informationPlaces), { visible: Boolean(state.currentInformationDesks &&
|
|
285
|
+
state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0) }), pois: Object.assign(Object.assign({}, pois), { visible: Boolean(state.currentPois && state.currentPois.length > 0) }), touristicContents: Object.assign(Object.assign({}, touristicContents), { visible: Boolean(state.touristicContents && state.touristicContents.length > 0) }) });
|
|
240
286
|
}
|
|
241
287
|
handleFullscreen() {
|
|
242
288
|
if (this.currentTrek.attachments && this.currentTrek.attachments[0] && this.currentTrek.attachments[0].url) {
|
|
@@ -277,18 +323,18 @@ export class GrwTrekDetail {
|
|
|
277
323
|
'--color-on-secondary-container': this.colorOnSecondaryContainer,
|
|
278
324
|
'--color-background': this.colorBackground,
|
|
279
325
|
'--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
|
|
280
|
-
} }, this.currentTrek && (h("div", { class: "trek-options" }, h("a", { onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.options.presentation.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.presentation), this.options.description.visible && (h("a", { onClick: () => this.handleScrollTo(this.descriptionRef), class: `description trek-option${this.options.description.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.description)), this.options.recommendations.visible && (h("a", { onClick: () => this.handleScrollTo(this.recommendationRef), class: `recommendations trek-option${this.options.recommendations.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.recommendations)), this.options.sensitiveArea.visible && (h("a", { onClick: () => this.handleScrollTo(this.sensitiveAreaRef), class: `sensitive-areas trek-option${this.options.sensitiveArea.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (h("a", { onClick: () => this.handleScrollTo(this.informationDeskRef), class: `information-places trek-option${this.options.informationPlaces.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.informationPlaces)), this.options.pois.visible && (h("a", { onClick: () => this.handleScrollTo(this.poiRef), class: `pois trek-option${this.options.pois.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.pois)), h("span", { class: "indicator-selected-trek-option", style: { transform: `translateX(${this.handleIndicatorSelectedTrekOption()})` } }))), this.currentTrek && (h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
|
|
326
|
+
} }, this.currentTrek && (h("div", { class: "trek-options" }, h("a", { onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.options.presentation.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.presentation), this.options.steps.visible && (h("a", { onClick: () => this.handleScrollTo(this.stepsRef), class: `steps trek-option${this.options.steps.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.steps)), this.options.description.visible && (h("a", { onClick: () => this.handleScrollTo(this.descriptionRef), class: `description trek-option${this.options.description.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.description)), this.options.recommendations.visible && (h("a", { onClick: () => this.handleScrollTo(this.recommendationRef), class: `recommendations trek-option${this.options.recommendations.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.recommendations)), this.options.sensitiveArea.visible && (h("a", { onClick: () => this.handleScrollTo(this.sensitiveAreaRef), class: `sensitive-areas trek-option${this.options.sensitiveArea.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (h("a", { onClick: () => this.handleScrollTo(this.informationDeskRef), class: `information-places trek-option${this.options.informationPlaces.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.informationPlaces)), this.options.pois.visible && (h("a", { onClick: () => this.handleScrollTo(this.poiRef), class: `pois trek-option${this.options.pois.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.pois)), this.options.touristicContents.visible && (h("a", { onClick: () => this.handleScrollTo(this.touristicContentsRef), class: `touristic-content trek-option${this.options.touristicContents.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.touristicContents)), h("span", { class: "indicator-selected-trek-option", style: { transform: `translateX(${this.handleIndicatorSelectedTrekOption()})` } }))), this.currentTrek && (h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
|
|
281
327
|
.filter(attachment => attachment.type === 'image')
|
|
282
328
|
.map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "name" }, this.currentTrek.name), this.themes.length > 0 && (h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label))))), h("div", { class: "sub-container" }, h("div", { class: "icons-labels-container" }, h("div", { class: "row" }, h("div", { class: "icon-label difficulty" }, ((_a = this.difficulty) === null || _a === void 0 ? void 0 : _a.pictogram) && h("img", { src: this.difficulty.pictogram }), (_b = this.difficulty) === null || _b === void 0 ? void 0 :
|
|
283
329
|
_b.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols material-symbols-outlined" }, "timelapse"), formatDuration((_c = this.currentTrek) === null || _c === void 0 ? void 0 : _c.duration)), 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 :
|
|
284
330
|
_e.route)), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent)), 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 :
|
|
285
|
-
_g.name)))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), h("div", { class: "divider" }), this.
|
|
331
|
+
_g.name)))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), h("div", { class: "divider" }), state.parentTrekId && state.parentTrek && this.currentTrek.id !== state.parentTrekId && (h("div", { class: "parent-trek-container" }, h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(state.parentTrekId) }, h("div", null, "<"), state.parentTrek.name))), state.currentTrekSteps && (h("div", { class: "step-container", ref: el => (this.stepsRef = el) }, h("div", { class: "step-title" }, `${state.currentTrekSteps.length} ${translate[state.language].steps}`), h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTrekSteps &&
|
|
286
332
|
state.currentTrekSteps.map(trek => {
|
|
287
333
|
return (h("div", { class: "swiper-slide" }, h("grw-trek-card", { "reset-store-on-disconnected": "false", key: `trek-${trek.id}`, trek: trek, "is-large-view": false, "is-step": true, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })));
|
|
288
334
|
}))))), h("div", { class: "divider" }), this.currentTrek.description && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (h("div", { class: "departure-container" }, h("div", { class: "departure-title" }, translate[state.language].departure, " :\u00A0"), h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (h("div", { class: "arrival-container" }, h("div", { class: "arrival-title" }, translate[state.language].arrival, " :\u00A0"), h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].cities, " :\u00A0"), h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (h("div", { class: "weather-container" }, h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (h("div", null, h("div", { class: "divider" }), h("div", { class: "access-container" }, h("div", { class: "access-title" }, translate[state.language].roadAccess), h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (h("div", null, h("div", { class: "divider" }), h("div", { class: "public-transport-container" }, h("div", { class: "public-transport-title" }, translate[state.language].transport), h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advice-container", ref: el => (this.recommendationRef = el) }, h("div", { class: "advice-title" }, translate[state.language].recommendations), this.currentTrek.advice && (h("div", { class: "current-advice-container" }, h("span", { class: "material-symbols material-symbols-outlined" }, "warning"), h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (h("div", { class: "label-container" }, h("div", { class: "label-sub-container" }, label.pictogram && h("img", { src: label.pictogram }), h("div", { class: "label-name", innerHTML: label.name })), h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advised-parking-container", ref: el => (this.parkingRef = el) }, h("div", { class: "advised-parking-title" }, translate[state.language].recommendedParking), h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (h("div", null, h("div", { class: "divider" }), h("div", { class: "gear-container" }, h("div", { class: "gear-title" }, translate[state.language].equipments), h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "sensitive-areas-container", ref: el => (this.sensitiveAreaRef = el) }, h("div", { class: "sensitive-areas-title" }, translate[state.language].environmentalSensitiveAreas), state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), state.currentInformationDesks &&
|
|
289
335
|
state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "information-desks-container", ref: el => (this.informationDeskRef = el) }, h("div", { class: "information-desks-title" }, translate[state.language].informationPlaces), h("div", { class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentInformationDesks
|
|
290
336
|
.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id))
|
|
291
|
-
.map(informationDesk => (h("div", { class: "swiper-slide" }, h("grw-information-desk
|
|
337
|
+
.map(informationDesk => (h("div", { class: "swiper-slide" }, h("grw-information-desk", { informationDesk: informationDesk }))))))))), (this.currentTrek.disabled_infrastructure ||
|
|
292
338
|
(this.accessibilities && this.accessibilities.length > 0) ||
|
|
293
339
|
this.currentTrek.accessibility_level ||
|
|
294
340
|
this.currentTrek.accessibility_slope ||
|
|
@@ -296,7 +342,7 @@ export class GrwTrekDetail {
|
|
|
296
342
|
this.currentTrek.accessibility_signage ||
|
|
297
343
|
this.currentTrek.accessibility_covering ||
|
|
298
344
|
this.currentTrek.accessibility_exposure ||
|
|
299
|
-
this.currentTrek.accessibility_advice) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "accessibilities-container" }, h("div", { class: "accessibilities-title" }, translate[state.language].accessibility), this.currentTrek.disabled_infrastructure && h("div", { innerHTML: this.currentTrek.disabled_infrastructure }), h("div", { class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (h("div", { class: "accessibility-content-container" }, h("img", { src: accessibility.pictogram }), h("div", { innerHTML: accessibility.name }))))), this.currentTrek.accessibility_level && (h("div", { class: "accessibility-level-container" }, h("div", { class: "accessibility-level-title" }, translate[state.language].accessibilityLevel), h("div", { innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (h("div", { class: "accessibility-slope-container" }, h("div", { class: "accessibility-slope-title" }, translate[state.language].accessibilitySlope), h("div", { innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (h("div", { class: "accessibility-width-container" }, h("div", { class: "accessibility-width-title" }, translate[state.language].accessibilityWidth), h("div", { innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (h("div", { class: "accessibility-signage-container" }, h("div", { class: "accessibility-signage-title" }, translate[state.language].accessibilitySignage), h("div", { innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (h("div", { class: "accessibility-covering-container" }, h("div", { class: "accessibility-covering-title" }, translate[state.language].accessibilityCovering), h("div", { innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (h("div", { class: "accessibility-exposure-container" }, h("div", { class: "accessibility-exposure-title" }, translate[state.language].accessibilityExposure), h("div", { innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (h("div", { class: "accessibility-advice-container" }, h("div", { class: "accessibility-advice-title" }, translate[state.language].accessibilityAdvices), h("div", { innerHTML: this.currentTrek.accessibility_advice })))))), state.currentPois && state.currentPois.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "pois-container", ref: el => (this.poiRef = el) }, h("div", { class: "pois-title" }, translate[state.language].pois(state.currentPois.length)), h("div", { class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentPois.map(poi => (h("div", { class: "swiper-slide" }, h("grw-poi
|
|
345
|
+
this.currentTrek.accessibility_advice) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "accessibilities-container" }, h("div", { class: "accessibilities-title" }, translate[state.language].accessibility), this.currentTrek.disabled_infrastructure && h("div", { innerHTML: this.currentTrek.disabled_infrastructure }), h("div", { class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (h("div", { class: "accessibility-content-container" }, h("img", { src: accessibility.pictogram }), h("div", { innerHTML: accessibility.name }))))), this.currentTrek.accessibility_level && (h("div", { class: "accessibility-level-container" }, h("div", { class: "accessibility-level-title" }, translate[state.language].accessibilityLevel), h("div", { innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (h("div", { class: "accessibility-slope-container" }, h("div", { class: "accessibility-slope-title" }, translate[state.language].accessibilitySlope), h("div", { innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (h("div", { class: "accessibility-width-container" }, h("div", { class: "accessibility-width-title" }, translate[state.language].accessibilityWidth), h("div", { innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (h("div", { class: "accessibility-signage-container" }, h("div", { class: "accessibility-signage-title" }, translate[state.language].accessibilitySignage), h("div", { innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (h("div", { class: "accessibility-covering-container" }, h("div", { class: "accessibility-covering-title" }, translate[state.language].accessibilityCovering), h("div", { innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (h("div", { class: "accessibility-exposure-container" }, h("div", { class: "accessibility-exposure-title" }, translate[state.language].accessibilityExposure), h("div", { innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (h("div", { class: "accessibility-advice-container" }, h("div", { class: "accessibility-advice-title" }, translate[state.language].accessibilityAdvices), h("div", { innerHTML: this.currentTrek.accessibility_advice })))))), state.currentPois && state.currentPois.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "pois-container", ref: el => (this.poiRef = el) }, h("div", { class: "pois-title" }, translate[state.language].pois(state.currentPois.length)), h("div", { class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentPois.map(poi => (h("div", { class: "swiper-slide" }, h("grw-poi", { poi: poi }))))))))), state.touristicContents && state.touristicContents.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "touristic-content-container", ref: el => (this.touristicContentsRef = el) }, h("div", { class: "touristic-content-title" }, translate[state.language].touristicContents(state.touristicContents.length)), h("div", { class: "swiper swiper-touristic-content", ref: el => (this.swiperTouristicContentsRef = el) }, h("div", { class: "swiper-wrapper" }, state.touristicContents.map(touristicContent => (h("div", { class: "swiper-slide" }, h("grw-touristic-content", { touristicContent: touristicContent }))))))))), this.currentTrek.source && this.currentTrek.source.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "source-container" }, h("div", { class: "source-title" }, translate[state.language].sources), this.sources.map(source => (h("div", { class: "source-sub-container" }, source.pictogram && h("img", { src: source.pictogram }), h("div", null, h("div", { class: "source-name", innerHTML: source.name }), h("a", { class: "source-advice", href: source.website, innerHTML: source.website })))))))), h("div", { class: "detail-bottom-space" })))));
|
|
300
346
|
}
|
|
301
347
|
static get is() { return "grw-trek-detail"; }
|
|
302
348
|
static get encapsulation() { return "shadow"; }
|
|
@@ -550,8 +596,8 @@ export class GrwTrekDetail {
|
|
|
550
596
|
}
|
|
551
597
|
static get events() {
|
|
552
598
|
return [{
|
|
553
|
-
"method": "
|
|
554
|
-
"name": "
|
|
599
|
+
"method": "descriptionIsInViewport",
|
|
600
|
+
"name": "descriptionIsInViewport",
|
|
555
601
|
"bubbles": true,
|
|
556
602
|
"cancelable": true,
|
|
557
603
|
"composed": true,
|
|
@@ -624,6 +670,51 @@ export class GrwTrekDetail {
|
|
|
624
670
|
"resolved": "boolean",
|
|
625
671
|
"references": {}
|
|
626
672
|
}
|
|
673
|
+
}, {
|
|
674
|
+
"method": "stepsIsInViewport",
|
|
675
|
+
"name": "stepsIsInViewport",
|
|
676
|
+
"bubbles": true,
|
|
677
|
+
"cancelable": true,
|
|
678
|
+
"composed": true,
|
|
679
|
+
"docs": {
|
|
680
|
+
"tags": [],
|
|
681
|
+
"text": ""
|
|
682
|
+
},
|
|
683
|
+
"complexType": {
|
|
684
|
+
"original": "boolean",
|
|
685
|
+
"resolved": "boolean",
|
|
686
|
+
"references": {}
|
|
687
|
+
}
|
|
688
|
+
}, {
|
|
689
|
+
"method": "touristicContentsIsInViewport",
|
|
690
|
+
"name": "touristicContentsIsInViewport",
|
|
691
|
+
"bubbles": true,
|
|
692
|
+
"cancelable": true,
|
|
693
|
+
"composed": true,
|
|
694
|
+
"docs": {
|
|
695
|
+
"tags": [],
|
|
696
|
+
"text": ""
|
|
697
|
+
},
|
|
698
|
+
"complexType": {
|
|
699
|
+
"original": "boolean",
|
|
700
|
+
"resolved": "boolean",
|
|
701
|
+
"references": {}
|
|
702
|
+
}
|
|
703
|
+
}, {
|
|
704
|
+
"method": "parentTrekPress",
|
|
705
|
+
"name": "parentTrekPress",
|
|
706
|
+
"bubbles": true,
|
|
707
|
+
"cancelable": true,
|
|
708
|
+
"composed": true,
|
|
709
|
+
"docs": {
|
|
710
|
+
"tags": [],
|
|
711
|
+
"text": ""
|
|
712
|
+
},
|
|
713
|
+
"complexType": {
|
|
714
|
+
"original": "number",
|
|
715
|
+
"resolved": "number",
|
|
716
|
+
"references": {}
|
|
717
|
+
}
|
|
627
718
|
}];
|
|
628
719
|
}
|
|
629
720
|
}
|
|
Binary file
|
|
Binary file
|