@geotrekce/geotrek-rando-widget 0.4.4 → 0.4.6
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 +77 -53
- 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.cjs.entry.js +21 -14
- package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-filters_12.cjs.entry.js → grw-filters_16.cjs.entry.js} +867 -376
- package/dist/cjs/grw-filters_16.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_16.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_16.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js +66 -47
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-a5ad3083.js → i18n-25e8e038.js} +13 -3
- package/dist/cjs/i18n-25e8e038.js.br +0 -0
- package/dist/cjs/i18n-25e8e038.js.gz +0 -0
- package/dist/cjs/i18n-25e8e038.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/utils-aafb9447.js +505 -0
- package/dist/cjs/utils-aafb9447.js.br +0 -0
- package/dist/cjs/utils-aafb9447.js.gz +0 -0
- package/dist/cjs/utils-aafb9447.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/grw-app/grw-app.css +8 -1
- 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 +29 -4
- 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-filter/grw-filter.js +9 -1
- package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
- package/dist/collection/components/grw-filters/grw-filters.css +2 -1
- package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js +17 -2
- package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.css +61 -16
- 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 +297 -18
- 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-search/grw-search.js +4 -1
- package/dist/collection/components/grw-search/grw-search.js.br +0 -0
- package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
- package/dist/collection/components/grw-search/grw-search.js.map +1 -1
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css +48 -5
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js +122 -23
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css +8 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css +43 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +220 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.map +1 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +7 -7
- 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 +8 -3
- 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 +2 -2
- 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 +12 -2
- 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-touristic-contents-provider.js +0 -18
- package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +2 -2
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-events-provider.js +211 -0
- package/dist/collection/store/grw-touristic-events-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-events-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-events-provider.js.map +1 -0
- package/dist/collection/store/grw-trek-provider.js +8 -2
- 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 +4 -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/collection/utils/utils.js +74 -0
- package/dist/collection/utils/utils.js.br +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/utils.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 +31 -7
- 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.entry.js +9 -2
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-filter.entry.js.map +1 -1
- package/dist/esm/{grw-filters_12.entry.js → grw-filters_16.entry.js} +522 -35
- package/dist/esm/grw-filters_16.entry.js.br +0 -0
- package/dist/esm/grw-filters_16.entry.js.gz +0 -0
- package/dist/esm/grw-filters_16.entry.js.map +1 -0
- package/dist/esm/grw-information-desk_6.entry.js +50 -31
- package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm/{i18n-e6325e81.js → i18n-c18b35f3.js} +13 -3
- package/dist/esm/i18n-c18b35f3.js.br +0 -0
- package/dist/esm/i18n-c18b35f3.js.gz +0 -0
- package/dist/esm/i18n-c18b35f3.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/utils-6441a08a.js +492 -0
- package/dist/esm/utils-6441a08a.js.br +0 -0
- package/dist/esm/utils-6441a08a.js.gz +0 -0
- package/dist/esm/utils-6441a08a.js.map +1 -0
- 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.entry.js +2 -2
- package/dist/esm-es5/grw-filter.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter.entry.js.map +1 -1
- package/dist/esm-es5/{grw-filters_12.entry.js → grw-filters_16.entry.js} +4 -4
- package/dist/esm-es5/grw-filters_16.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_16.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_16.entry.js.map +1 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm-es5/i18n-c18b35f3.js +2 -0
- package/dist/esm-es5/i18n-c18b35f3.js.br +0 -0
- package/dist/esm-es5/i18n-c18b35f3.js.gz +0 -0
- package/dist/esm-es5/i18n-c18b35f3.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/utils-6441a08a.js +2 -0
- package/dist/esm-es5/utils-6441a08a.js.br +0 -0
- package/dist/esm-es5/utils-6441a08a.js.gz +0 -0
- package/dist/esm-es5/utils-6441a08a.js.map +1 -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-01f5ed45.system.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js → p-06412985.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-06412985.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-06412985.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-06412985.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js +2 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js +2 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js → p-73278096.system.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-73278096.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js.gz → p-73278096.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js.map → p-73278096.system.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-bcac98e0.js +2 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.map +1 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-e16d970b.js +2 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.map +1 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.map +1 -0
- package/dist/types/components/grw-filters/grw-filters.d.ts +2 -0
- package/dist/types/components/grw-map/grw-map.d.ts +13 -0
- package/dist/types/components/grw-touristic-event/grw-touristic-event-card.d.ts +6 -0
- package/dist/types/components/grw-touristic-events-list/grw-touristic-events-list.d.ts +20 -0
- package/dist/types/components.d.ts +82 -21
- package/dist/types/i18n/i18n.d.ts +5 -0
- package/dist/types/store/grw-touristic-contents-provider.d.ts +0 -1
- package/dist/types/store/grw-touristic-events-provider.d.ts +17 -0
- package/dist/types/store/store.d.ts +9 -1
- package/dist/types/types/types.d.ts +18 -1
- package/dist/types/utils/utils.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.map +0 -1
- package/dist/cjs/grw-select-language.cjs.entry.js +0 -28
- 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/grw-select-language.cjs.entry.js.map +0 -1
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +0 -63
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-a5ad3083.js.br +0 -0
- package/dist/cjs/i18n-a5ad3083.js.gz +0 -0
- package/dist/cjs/i18n-a5ad3083.js.map +0 -1
- package/dist/cjs/store-d20ae78f.js +0 -250
- package/dist/cjs/store-d20ae78f.js.br +0 -0
- package/dist/cjs/store-d20ae78f.js.gz +0 -0
- package/dist/cjs/store-d20ae78f.js.map +0 -1
- package/dist/cjs/utils-332e41b3.js +0 -181
- package/dist/cjs/utils-332e41b3.js.br +0 -0
- package/dist/cjs/utils-332e41b3.js.gz +0 -0
- package/dist/cjs/utils-332e41b3.js.map +0 -1
- package/dist/esm/grw-filters_12.entry.js.br +0 -0
- package/dist/esm/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm/grw-filters_12.entry.js.map +0 -1
- package/dist/esm/grw-select-language.entry.js +0 -24
- 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/grw-select-language.entry.js.map +0 -1
- package/dist/esm/grw-touristic-event-card-provider.entry.js +0 -59
- package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.map +0 -1
- package/dist/esm/i18n-e6325e81.js.br +0 -0
- package/dist/esm/i18n-e6325e81.js.gz +0 -0
- package/dist/esm/i18n-e6325e81.js.map +0 -1
- package/dist/esm/store-032ab1f5.js +0 -246
- package/dist/esm/store-032ab1f5.js.br +0 -0
- package/dist/esm/store-032ab1f5.js.gz +0 -0
- package/dist/esm/store-032ab1f5.js.map +0 -1
- package/dist/esm/utils-b09ac7c9.js +0 -173
- package/dist/esm/utils-b09ac7c9.js.br +0 -0
- package/dist/esm/utils-b09ac7c9.js.gz +0 -0
- package/dist/esm/utils-b09ac7c9.js.map +0 -1
- package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.map +0 -1
- package/dist/esm-es5/grw-select-language.entry.js +0 -2
- 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/grw-select-language.entry.js.map +0 -1
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +0 -2
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +0 -1
- package/dist/esm-es5/i18n-e6325e81.js +0 -2
- package/dist/esm-es5/i18n-e6325e81.js.br +0 -0
- package/dist/esm-es5/i18n-e6325e81.js.gz +0 -0
- package/dist/esm-es5/i18n-e6325e81.js.map +0 -1
- package/dist/esm-es5/store-032ab1f5.js +0 -2
- package/dist/esm-es5/store-032ab1f5.js.br +0 -0
- package/dist/esm-es5/store-032ab1f5.js.gz +0 -0
- package/dist/esm-es5/store-032ab1f5.js.map +0 -1
- package/dist/esm-es5/utils-b09ac7c9.js +0 -2
- package/dist/esm-es5/utils-b09ac7c9.js.br +0 -0
- package/dist/esm-es5/utils-b09ac7c9.js.gz +0 -0
- package/dist/esm-es5/utils-b09ac7c9.js.map +0 -1
- package/dist/geotrek-rando-widget/p-048b3a1e.js +0 -2
- package/dist/geotrek-rando-widget/p-048b3a1e.js.br +0 -0
- package/dist/geotrek-rando-widget/p-048b3a1e.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-048b3a1e.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0f47847d.system.js +0 -2
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js +0 -2
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1f8e7e57.js +0 -2
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +0 -1
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-5e7ed046.js +0 -2
- package/dist/geotrek-rando-widget/p-5e7ed046.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5e7ed046.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5e7ed046.js.map +0 -1
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-689557e0.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c63228e8.system.js +0 -2
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grw-search.js","sourceRoot":"","sources":["../../../src/components/grw-search/grw-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,uCAAuC,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"grw-search.js","sourceRoot":"","sources":["../../../src/components/grw-search/grw-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,uCAAuC,EAAE,qCAAqC,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAO1I,MAAM,OAAO,SAAS;EACpB,cAAc,CAAC,KAAiB;IAC9B,KAAK,CAAC,WAAW,GAAI,KAAK,CAAC,MAAc,CAAC,KAAK,CAAC;IAChD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;MAC1B,KAAK,CAAC,YAAY,GAAG,2BAA2B,EAAE,CAAC;KACpD;SAAM,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB,EAAE;MAC7C,KAAK,CAAC,wBAAwB,GAAG,uCAAuC,EAAE,CAAC;KAC5E;SAAM,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE;MAC3C,KAAK,CAAC,sBAAsB,GAAG,qCAAqC,EAAE,CAAC;KACxE;EACH,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MAEH,YAAM,SAAS,EAAE,KAAK,EAAE,KAAK,EAAC,4CAA4C,aAEnE;MACP,aAAO,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,CAAC,WAAW,GAAU,CACtI,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\nimport state from 'store/store';\nimport { handleTouristicContentsFiltersAndSearch, handleTouristicEventsFiltersAndSearch, handleTreksFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-search',\n styleUrl: 'grw-search.scss',\n shadow: true,\n})\nexport class GrwSearch {\n onSearchChange(event: InputEvent) {\n state.searchValue = (event.target as any).value;\n if (state.mode === 'treks') {\n state.currentTreks = handleTreksFiltersAndSearch();\n } else if (state.mode === 'touristicContents') {\n state.currentTouristicContents = handleTouristicContentsFiltersAndSearch();\n } else if (state.mode === 'touristicEvents') {\n state.currentTouristicEvents = handleTouristicEventsFiltersAndSearch();\n }\n }\n\n render() {\n return (\n <Host>\n {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n search\n </span>\n <input onInput={e => this.onSearchChange(e)} class=\"search-input\" type=\"search\" placeholder=\"Rechercher\" value={state.searchValue}></input>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -510,11 +510,6 @@ button.swiper-pagination-bullet {
|
|
|
510
510
|
:host {
|
|
511
511
|
display: flex;
|
|
512
512
|
flex-direction: column;
|
|
513
|
-
overflow: hidden;
|
|
514
|
-
border: 1px solid gray;
|
|
515
|
-
border-radius: 12px;
|
|
516
|
-
background-color: var(--color-surface-container-low);
|
|
517
|
-
color: var(--color-on-surface);
|
|
518
513
|
--swiper-navigation-size: 24px;
|
|
519
514
|
--swiper-navigation-color: var(--color-on-primary-container);
|
|
520
515
|
--swiper-pagination-color: var(--color-primary-container);
|
|
@@ -629,4 +624,52 @@ button.swiper-pagination-bullet {
|
|
|
629
624
|
}
|
|
630
625
|
.touristic-event-more-detail-container .more-details-button span {
|
|
631
626
|
font-size: 18px;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.touristic-event-card-container,
|
|
630
|
+
.touristic-event-card-large-view-container {
|
|
631
|
+
cursor: pointer;
|
|
632
|
+
font-family: "Roboto";
|
|
633
|
+
border-radius: 12px;
|
|
634
|
+
box-shadow: var(--elevation-1);
|
|
635
|
+
background-color: var(--color-surface-container-low);
|
|
636
|
+
color: var(--color-on-surface);
|
|
637
|
+
}
|
|
638
|
+
.touristic-event-card-container .image,
|
|
639
|
+
.touristic-event-card-large-view-container .image {
|
|
640
|
+
height: 100%;
|
|
641
|
+
object-fit: cover;
|
|
642
|
+
border-top-left-radius: 12px;
|
|
643
|
+
border-top-right-radius: 12px;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.touristic-event-container {
|
|
647
|
+
width: 100%;
|
|
648
|
+
max-width: 350px;
|
|
649
|
+
}
|
|
650
|
+
.touristic-event-container .image {
|
|
651
|
+
width: 100%;
|
|
652
|
+
max-height: 200px;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.touristic-event-card-large-view-container {
|
|
656
|
+
width: 100%;
|
|
657
|
+
display: flex;
|
|
658
|
+
flex-direction: row;
|
|
659
|
+
}
|
|
660
|
+
.touristic-event-card-large-view-container .image {
|
|
661
|
+
width: 250px;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.is-inside-vertical-list {
|
|
665
|
+
cursor: pointer;
|
|
666
|
+
border: none;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.selected-touristic-event-card {
|
|
670
|
+
box-shadow: var(--elevation-2);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.touristic-event-date-container {
|
|
674
|
+
margin-top: 12px;
|
|
632
675
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -4,40 +4,58 @@ import Swiper, { Keyboard, Navigation, Pagination } from 'swiper';
|
|
|
4
4
|
export class GrwTouristicEvent {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.touristicEvent = undefined;
|
|
7
|
+
this.isLargeView = false;
|
|
8
|
+
this.isInsideHorizontalList = false;
|
|
7
9
|
this.displayFullscreen = false;
|
|
8
10
|
}
|
|
9
11
|
componentDidLoad() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.
|
|
22
|
-
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
if (this.swiperTouristicEventRef) {
|
|
13
|
+
this.swiperTouristicEvent = new Swiper(this.swiperTouristicEventRef, {
|
|
14
|
+
modules: [Navigation, Pagination, Keyboard],
|
|
15
|
+
navigation: {
|
|
16
|
+
prevEl: this.prevElTouristicEventRef,
|
|
17
|
+
nextEl: this.nextElTouristicEventRef,
|
|
18
|
+
},
|
|
19
|
+
pagination: { el: this.paginationElTouristicEventRef },
|
|
20
|
+
allowTouchMove: false,
|
|
21
|
+
keyboard: false,
|
|
22
|
+
});
|
|
23
|
+
this.swiperTouristicEventRef.onfullscreenchange = () => {
|
|
24
|
+
this.displayFullscreen = !this.displayFullscreen;
|
|
25
|
+
if (this.displayFullscreen) {
|
|
26
|
+
this.swiperTouristicEvent.keyboard.enable();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.swiperTouristicEvent.keyboard.disable();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
handleFullscreen() {
|
|
31
35
|
if (this.touristicEvent.attachments && this.touristicEvent.attachments[0] && this.touristicEvent.attachments[0].url) {
|
|
32
36
|
this.swiperTouristicEventRef.requestFullscreen();
|
|
33
37
|
}
|
|
34
38
|
}
|
|
39
|
+
handleMouseOver() {
|
|
40
|
+
this.cardTouristicEventMouseOver.emit(this.touristicEvent.id);
|
|
41
|
+
}
|
|
42
|
+
handleMouseLeave() {
|
|
43
|
+
this.cardTouristicEventMouseLeave.emit();
|
|
44
|
+
}
|
|
35
45
|
render() {
|
|
36
46
|
const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);
|
|
37
|
-
const
|
|
38
|
-
return (h(Host,
|
|
47
|
+
const touristicEventType = state.touristicEventTypes.find(touristicEventType => touristicEventType.id === this.touristicEvent.type);
|
|
48
|
+
return (h(Host, { style: {
|
|
49
|
+
width: this.isLargeView ? '100%' : 'auto',
|
|
50
|
+
} }, h("div", { class: this.isLargeView
|
|
51
|
+
? `touristic-event-card-large-view-container${state.selectedTouristicEventId === this.touristicEvent.id ? ' selected-touristic-event-card' : ''}${!this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''}`
|
|
52
|
+
: `touristic-event-card-container${state.selectedTouristicEventId === this.touristicEvent.id ? ' selected-touristic-event-card' : ''}${!this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''}`, onClick: () => {
|
|
53
|
+
if (!this.isInsideHorizontalList) {
|
|
54
|
+
this.touristicEventCardPress.emit(this.touristicEvent.id);
|
|
55
|
+
}
|
|
56
|
+
} }, h("div", { class: "touristic-event-type-img-container" }, this.isInsideHorizontalList ? (h("div", { class: "swiper", ref: el => (this.swiperTouristicEventRef = el) }, h("div", { class: "swiper-wrapper" }, this.touristicEvent.attachments.length > 0 ? (this.touristicEvent.attachments
|
|
39
57
|
.filter(attachment => attachment.type === 'image')
|
|
40
|
-
.map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: `touristic-event-img${this.displayFullscreen ? ' img-fullscreen' : ''}`, src: this.displayFullscreen ? attachment.url : attachment.thumbnail, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-touristic-event-img", src: defaultImageSrc, loading: "lazy" })))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElTouristicEventRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElTouristicEventRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElTouristicEventRef = el) }))), h("div", { class: "touristic-event-sub-container" }, h("div", { class: "touristic-event-type-container" }, h("img", { src:
|
|
58
|
+
.map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: `touristic-event-img${this.displayFullscreen ? ' img-fullscreen' : ''}`, src: this.displayFullscreen ? attachment.url : attachment.thumbnail, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-touristic-event-img", src: defaultImageSrc, loading: "lazy" })))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElTouristicEventRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElTouristicEventRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElTouristicEventRef = el) }))) : this.touristicEvent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (h("img", { class: "image", src: `${this.touristicEvent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`, loading: "lazy" })) : (h("div", null))), h("div", { class: "touristic-event-sub-container" }, h("div", { class: "touristic-event-type-container" }, h("img", { src: touristicEventType.pictogram }), h("div", { class: "touristic-event-type-name" }, touristicEventType.type)), h("div", { class: "touristic-event-name" }, this.touristicEvent.name), (this.touristicEvent.begin_date || this.touristicEvent.end_date) && (h("div", { class: "touristic-event-date-container" }, this.touristicEvent.begin_date && h("div", { class: "touristic-event-date" }, "Date de d\u00E9but : ", this.touristicEvent.begin_date), this.touristicEvent.end_date && h("div", { class: "touristic-event-date" }, "Date de fin : ", this.touristicEvent.end_date)))), this.isInsideHorizontalList && (h("div", { class: "touristic-event-more-detail-container" }, h("button", { class: "more-details-button", onClick: () => this.touristicEventCardPress.emit(this.touristicEvent.id) }, "Plus de d\u00E9tails"))))));
|
|
41
59
|
}
|
|
42
60
|
static get is() { return "grw-touristic-event-card"; }
|
|
43
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,7 +76,7 @@ export class GrwTouristicEvent {
|
|
|
58
76
|
"mutable": false,
|
|
59
77
|
"complexType": {
|
|
60
78
|
"original": "TouristicEvent",
|
|
61
|
-
"resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser?: string; practical_info?: string; type: number; geometry: Point; cities?: string[]; source?: number[]; pdf?: string; contact?: string; email?: string; website?: string; }",
|
|
79
|
+
"resolved": "{ id: number; name: string; attachments: Attachments; description?: string; description_teaser?: string; practical_info?: string; type: number; geometry: Point; cities?: string[]; source?: number[]; pdf?: string; contact?: string; email?: string; website?: string; begin_date?: string; end_date?: string; }",
|
|
62
80
|
"references": {
|
|
63
81
|
"TouristicEvent": {
|
|
64
82
|
"location": "import",
|
|
@@ -72,6 +90,42 @@ export class GrwTouristicEvent {
|
|
|
72
90
|
"tags": [],
|
|
73
91
|
"text": ""
|
|
74
92
|
}
|
|
93
|
+
},
|
|
94
|
+
"isLargeView": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"attribute": "is-large-view",
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "false"
|
|
111
|
+
},
|
|
112
|
+
"isInsideHorizontalList": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"attribute": "is-inside-horizontal-list",
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"defaultValue": "false"
|
|
75
129
|
}
|
|
76
130
|
};
|
|
77
131
|
}
|
|
@@ -96,6 +150,51 @@ export class GrwTouristicEvent {
|
|
|
96
150
|
"resolved": "number",
|
|
97
151
|
"references": {}
|
|
98
152
|
}
|
|
153
|
+
}, {
|
|
154
|
+
"method": "cardTouristicEventMouseOver",
|
|
155
|
+
"name": "cardTouristicEventMouseOver",
|
|
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": {}
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
"method": "cardTouristicEventMouseLeave",
|
|
170
|
+
"name": "cardTouristicEventMouseLeave",
|
|
171
|
+
"bubbles": true,
|
|
172
|
+
"cancelable": true,
|
|
173
|
+
"composed": true,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": ""
|
|
177
|
+
},
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "any",
|
|
180
|
+
"resolved": "any",
|
|
181
|
+
"references": {}
|
|
182
|
+
}
|
|
183
|
+
}];
|
|
184
|
+
}
|
|
185
|
+
static get listeners() {
|
|
186
|
+
return [{
|
|
187
|
+
"name": "mouseover",
|
|
188
|
+
"method": "handleMouseOver",
|
|
189
|
+
"target": undefined,
|
|
190
|
+
"capture": false,
|
|
191
|
+
"passive": true
|
|
192
|
+
}, {
|
|
193
|
+
"name": "mouseleave",
|
|
194
|
+
"method": "handleMouseLeave",
|
|
195
|
+
"target": undefined,
|
|
196
|
+
"capture": false,
|
|
197
|
+
"passive": true
|
|
99
198
|
}];
|
|
100
199
|
}
|
|
101
200
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grw-touristic-event-card.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-event/grw-touristic-event-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAC1G,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ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AE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC,GAAQ;UACtF,WAAK,KAAK,EAAC,oBAAoB,EAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC,GAAQ,CAClF,CACF;MACN,WAAK,KAAK,EAAC,+BAA+B;QACxC,WAAK,KAAK,EAAC,gCAAgC;UACzC,WAAK,GAAG,EAAE,mBAAmB,CAAC,SAAS,GAAI;UAC3C,WAAK,KAAK,EAAC,2BAA2B,IAAE,mBAAmB,CAAC,IAAI,CAAO,CACnE;QACN,WAAK,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAO,CAC9D;MACN,WAAK,KAAK,EAAC,uCAAuC;QAChD,cAAQ,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,2BAEnG,CACL,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Build, Component, Host, getAssetPath, h, State, Prop, Event, EventEmitter } from '@stencil/core';\nimport state from 'store/store';\nimport Swiper, { Keyboard, Navigation, Pagination } from 'swiper';\nimport { TouristicEvent } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-event-card',\n styleUrl: 'grw-touristic-event-card.scss',\n shadow: true,\n})\nexport class GrwTouristicEvent {\n @Event() touristicEventCardPress: EventEmitter<number>;\n swiperTouristicEvent?: Swiper;\n swiperTouristicEventRef?: HTMLDivElement;\n prevElTouristicEventRef?: HTMLDivElement;\n nextElTouristicEventRef?: HTMLDivElement;\n paginationElTouristicEventRef?: HTMLDivElement;\n @Prop() touristicEvent: TouristicEvent;\n @State() displayFullscreen = false;\n\n componentDidLoad() {\n this.swiperTouristicEvent = new Swiper(this.swiperTouristicEventRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElTouristicEventRef,\n nextEl: this.nextElTouristicEventRef,\n },\n pagination: { el: this.paginationElTouristicEventRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperTouristicEventRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n if (this.displayFullscreen) {\n this.swiperTouristicEvent.keyboard.enable();\n } else {\n this.swiperTouristicEvent.keyboard.disable();\n }\n };\n }\n\n handleFullscreen() {\n if (this.touristicEvent.attachments && this.touristicEvent.attachments[0] && this.touristicEvent.attachments[0].url) {\n this.swiperTouristicEventRef.requestFullscreen();\n }\n }\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicEventTypes = state.touristicEventTypes.find(touristicEventType => touristicEventType.id === this.touristicEvent.type);\n return (\n <Host>\n <div class=\"touristic-event-type-img-container\">\n <div class=\"swiper\" ref={el => (this.swiperTouristicEventRef = el)}>\n <div class=\"swiper-wrapper\">\n {this.touristicEvent.attachments.length > 0 ? (\n this.touristicEvent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img\n class={`touristic-event-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-event-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElTouristicEventRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElTouristicEventRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElTouristicEventRef = el)}></div>\n </div>\n </div>\n <div class=\"touristic-event-sub-container\">\n <div class=\"touristic-event-type-container\">\n <img src={touristicEventTypes.pictogram} />\n <div class=\"touristic-event-type-name\">{touristicEventTypes.type}</div>\n </div>\n <div class=\"touristic-event-name\">{this.touristicEvent.name}</div>\n </div>\n <div class=\"touristic-event-more-detail-container\">\n <button class=\"more-details-button\" onClick={() => this.touristicEventCardPress.emit(this.touristicEvent.id)}>\n Plus de détails\n </button>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"grw-touristic-event-card.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-event/grw-touristic-event-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQlE,MAAM,OAAO,iBAAiB;;;uBAQN,KAAK;kCACM,KAAK;6BACT,KAAK;;EAKlC,gBAAgB;IACd,IAAI,IAAI,CAAC,uBAAuB,EAAE;MAChC,IAAI,CAAC,oBAAoB,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;QACnE,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;QAC3C,UAAU,EAAE;UACV,MAAM,EAAE,IAAI,CAAC,uBAAuB;UACpC,MAAM,EAAE,IAAI,CAAC,uBAAuB;SACrC;QACD,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,6BAA6B,EAAE;QACtD,cAAc,EAAE,KAAK;QACrB,QAAQ,EAAE,KAAK;OAChB,CAAC,CAAC;MACH,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,GAAG,GAAG,EAAE;QACrD,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC;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KAAK,EAAC,2BAA2B,IAAE,kBAAkB,CAAC,IAAI,CAAO,CAClE;UACN,WAAK,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAO;UACjE,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,IAAI,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CACnE,WAAK,KAAK,EAAC,gCAAgC;YACxC,IAAI,CAAC,cAAc,CAAC,UAAU,IAAI,WAAK,KAAK,EAAC,sBAAsB;;cAAkB,IAAI,CAAC,cAAc,CAAC,UAAU,CAAO;YAC1H,IAAI,CAAC,cAAc,CAAC,QAAQ,IAAI,WAAK,KAAK,EAAC,sBAAsB;;cAAgB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAO,CACjH,CACP,CACG;QAEL,IAAI,CAAC,sBAAsB,IAAI,CAC9B,WAAK,KAAK,EAAC,uCAAuC;UAChD,cAAQ,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,2BAEnG,CACL,CACP,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Build, Component, Host, getAssetPath, h, State, Prop, Event, EventEmitter, Listen } from '@stencil/core';\nimport state from 'store/store';\nimport Swiper, { Keyboard, Navigation, Pagination } from 'swiper';\nimport { TouristicEvent } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-event-card',\n styleUrl: 'grw-touristic-event-card.scss',\n shadow: true,\n})\nexport class GrwTouristicEvent {\n @Event() touristicEventCardPress: EventEmitter<number>;\n swiperTouristicEvent?: Swiper;\n swiperTouristicEventRef?: HTMLDivElement;\n prevElTouristicEventRef?: HTMLDivElement;\n nextElTouristicEventRef?: HTMLDivElement;\n paginationElTouristicEventRef?: HTMLDivElement;\n @Prop() touristicEvent: TouristicEvent;\n @Prop() isLargeView = false;\n @Prop() isInsideHorizontalList = false;\n @State() displayFullscreen = false;\n\n @Event() cardTouristicEventMouseOver: EventEmitter<number>;\n @Event() cardTouristicEventMouseLeave: EventEmitter;\n\n componentDidLoad() {\n if (this.swiperTouristicEventRef) {\n this.swiperTouristicEvent = new Swiper(this.swiperTouristicEventRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElTouristicEventRef,\n nextEl: this.nextElTouristicEventRef,\n },\n pagination: { el: this.paginationElTouristicEventRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperTouristicEventRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n if (this.displayFullscreen) {\n this.swiperTouristicEvent.keyboard.enable();\n } else {\n this.swiperTouristicEvent.keyboard.disable();\n }\n };\n }\n }\n\n handleFullscreen() {\n if (this.touristicEvent.attachments && this.touristicEvent.attachments[0] && this.touristicEvent.attachments[0].url) {\n this.swiperTouristicEventRef.requestFullscreen();\n }\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardTouristicEventMouseOver.emit(this.touristicEvent.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardTouristicEventMouseLeave.emit();\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicEventType = state.touristicEventTypes.find(touristicEventType => touristicEventType.id === this.touristicEvent.type);\n return (\n <Host\n style={{\n width: this.isLargeView ? '100%' : 'auto',\n }}\n >\n <div\n class={\n this.isLargeView\n ? `touristic-event-card-large-view-container${state.selectedTouristicEventId === this.touristicEvent.id ? ' selected-touristic-event-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n : `touristic-event-card-container${state.selectedTouristicEventId === this.touristicEvent.id ? ' selected-touristic-event-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n }\n onClick={() => {\n if (!this.isInsideHorizontalList) {\n this.touristicEventCardPress.emit(this.touristicEvent.id);\n }\n }}\n >\n <div class=\"touristic-event-type-img-container\">\n {this.isInsideHorizontalList ? (\n <div class=\"swiper\" ref={el => (this.swiperTouristicEventRef = el)}>\n <div class=\"swiper-wrapper\">\n {this.touristicEvent.attachments.length > 0 ? (\n this.touristicEvent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img\n class={`touristic-event-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-event-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElTouristicEventRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElTouristicEventRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElTouristicEventRef = el)}></div>\n </div>\n ) : this.touristicEvent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n <img class=\"image\" src={`${this.touristicEvent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`} loading=\"lazy\" />\n ) : (\n <div></div>\n )}\n </div>\n <div class=\"touristic-event-sub-container\">\n <div class=\"touristic-event-type-container\">\n <img src={touristicEventType.pictogram} />\n <div class=\"touristic-event-type-name\">{touristicEventType.type}</div>\n </div>\n <div class=\"touristic-event-name\">{this.touristicEvent.name}</div>\n {(this.touristicEvent.begin_date || this.touristicEvent.end_date) && (\n <div class=\"touristic-event-date-container\">\n {this.touristicEvent.begin_date && <div class=\"touristic-event-date\">Date de début : {this.touristicEvent.begin_date}</div>}\n {this.touristicEvent.end_date && <div class=\"touristic-event-date\">Date de fin : {this.touristicEvent.end_date}</div>}\n </div>\n )}\n </div>\n\n {this.isInsideHorizontalList && (\n <div class=\"touristic-event-more-detail-container\">\n <button class=\"more-details-button\" onClick={() => this.touristicEventCardPress.emit(this.touristicEvent.id)}>\n Plus de détails\n </button>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css
CHANGED
|
@@ -571,6 +571,14 @@ grw-touristic-event-detail {
|
|
|
571
571
|
padding: 0px 24px;
|
|
572
572
|
margin: 8px 0px;
|
|
573
573
|
}
|
|
574
|
+
.touristic-event-detail-container .touristic-event-date-container {
|
|
575
|
+
color: var(--color-on-surface);
|
|
576
|
+
font-size: 16px;
|
|
577
|
+
line-height: 28px;
|
|
578
|
+
font-weight: 400;
|
|
579
|
+
padding: 0px 24px;
|
|
580
|
+
margin: 8px 0px;
|
|
581
|
+
}
|
|
574
582
|
.touristic-event-detail-container .image,
|
|
575
583
|
.touristic-event-detail-container .default-poi-img {
|
|
576
584
|
cursor: pointer;
|
package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br
CHANGED
|
Binary file
|
package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz
CHANGED
|
Binary file
|
|
@@ -53,7 +53,7 @@ export class GrwTouristicEventDetail {
|
|
|
53
53
|
'--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
|
|
54
54
|
} }, state.currentTouristicEvent && (h("div", { class: "touristic-event-detail-container", ref: el => (this.touristicEventDetailContainerRef = 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" }, state.currentTouristicEvent.attachments.length > 0 ? (state.currentTouristicEvent.attachments
|
|
55
55
|
.filter(attachment => attachment.type === 'image')
|
|
56
|
-
.map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), 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: "touristic-event-category-container" }, h("img", { src: touristicEventType.pictogram }), h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), h("div", { class: "name" }, state.currentTouristicEvent.name), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].download), h("div", { class: "links-container" }, h("a", { href: `${state.currentTouristicEvent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), state.currentTouristicEvent.description_teaser && (h("div", null, h("div", { class: "divider" }), h("div", { class: "description-teaser", innerHTML: state.currentTouristicEvent.description_teaser }))), h("div", { class: "divider" }), state.currentTouristicEvent.practical_info && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: state.currentTouristicEvent.description }))), cities && cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].city, " :\u00A0"), h("div", { innerHTML: cities.join(', ') }))), state.currentTouristicEvent.practical_info && (h("div", null, h("div", { class: "divider" }), h("div", { class: "useful-information-container" }, h("div", { class: "useful-information-title" }, translate[state.language].usefulInformation, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.practical_info })))), (state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "contact-container" }, h("div", { class: "contact-title" }, translate[state.language].contact, " :\u00A0"), state.currentTouristicEvent.contact && h("div", { innerHTML: state.currentTouristicEvent.contact }), state.currentTouristicEvent.email && (h("div", { class: "email-container" }, h("div", null, translate[state.language].email, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.email }))), state.currentTouristicEvent.website && (h("div", { class: "website-container" }, h("div", null, translate[state.language].website, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.website })))))), h("div", { class: "detail-bottom-space" })))));
|
|
56
|
+
.map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), 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: "touristic-event-category-container" }, h("img", { src: touristicEventType.pictogram }), h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), h("div", { class: "name" }, state.currentTouristicEvent.name), (state.currentTouristicEvent.begin_date || state.currentTouristicEvent.end_date) && (h("div", { class: "touristic-event-date-container" }, state.currentTouristicEvent.begin_date && h("div", { class: "touristic-event-date" }, "Date de d\u00E9but : ", state.currentTouristicEvent.begin_date), state.currentTouristicEvent.end_date && h("div", { class: "touristic-event-date" }, "Date de fin : ", state.currentTouristicEvent.end_date))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].download), h("div", { class: "links-container" }, h("a", { href: `${state.currentTouristicEvent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), state.currentTouristicEvent.description_teaser && (h("div", null, h("div", { class: "divider" }), h("div", { class: "description-teaser", innerHTML: state.currentTouristicEvent.description_teaser }))), h("div", { class: "divider" }), state.currentTouristicEvent.practical_info && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: state.currentTouristicEvent.description }))), cities && cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].city, " :\u00A0"), h("div", { innerHTML: cities.join(', ') }))), state.currentTouristicEvent.practical_info && (h("div", null, h("div", { class: "divider" }), h("div", { class: "useful-information-container" }, h("div", { class: "useful-information-title" }, translate[state.language].usefulInformation, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.practical_info })))), (state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "contact-container" }, h("div", { class: "contact-title" }, translate[state.language].contact, " :\u00A0"), state.currentTouristicEvent.contact && h("div", { innerHTML: state.currentTouristicEvent.contact }), state.currentTouristicEvent.email && (h("div", { class: "email-container" }, h("div", null, translate[state.language].email, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.email }))), state.currentTouristicEvent.website && (h("div", { class: "website-container" }, h("div", null, translate[state.language].website, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.website })))))), h("div", { class: "detail-bottom-space" })))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "grw-touristic-event-detail"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br
CHANGED
|
Binary file
|
package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz
CHANGED
|
Binary file
|
package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grw-touristic-event-detail.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-event-detail/grw-touristic-event-detail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACrF,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AQ,CACrD,CACP;UACA,KAAK,CAAC,qBAAqB,CAAC,OAAO,IAAI,CACtC,WAAK,KAAK,EAAC,mBAAmB;YAC5B;cAAM,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO;yBAAe;YACtD,WAAK,SAAS,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,GAAQ,CACvD,CACP,CACG,CACF,CACP;MACD,WAAK,KAAK,EAAC,qBAAqB,GAAO,CACnC,CACP,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Build, Component, Host, Prop, State, getAssetPath, h } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state from 'store/store';\nimport Swiper, { FreeMode, Keyboard, Mousewheel, Navigation, Pagination } from 'swiper';\n\n@Component({\n tag: 'grw-touristic-event-detail',\n styleUrl: 'grw-touristic-event-detail.scss',\n shadow: true,\n})\nexport class GrwTouristicEventDetail {\n swiperImages?: Swiper;\n swiperImagesRef?: HTMLDivElement;\n prevElImagesRef?: HTMLDivElement;\n nextElImagesRef?: HTMLDivElement;\n paginationElImagesRef?: HTMLDivElement;\n presentationRef?: HTMLDivElement;\n\n @State() displayFullscreen = false;\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() colorBackground = '#fef7ff';\n @Prop() isLargeView = false;\n\n descriptionRef?: HTMLDivElement;\n touristicEventDetailContainerRef?: HTMLElement;\n\n componentDidLoad() {\n this.swiperImages = new Swiper(this.swiperImagesRef, {\n modules: [Navigation, Pagination, Keyboard, FreeMode, Mousewheel],\n navigation: {\n prevEl: this.prevElImagesRef,\n nextEl: this.nextElImagesRef,\n },\n pagination: { el: this.paginationElImagesRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperImagesRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n this.displayFullscreen ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();\n };\n }\n\n handleFullscreen() {\n if (state.currentTouristicEvent.attachments && state.currentTouristicEvent.attachments[0] && state.currentTouristicEvent.attachments[0].url) {\n this.swiperImagesRef.requestFullscreen();\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicEventType =\n state.touristicEventTypes &&\n state.currentTouristicEvent &&\n state.touristicEventTypes.find(touristicEventCategory => touristicEventCategory.id === state.currentTouristicEvent.type);\n const cities = state.currentTouristicEvent && state.currentTouristicEvent.cities.map(currentCity => state.cities.find(city => city.id === currentCity)?.name);\n return (\n <Host\n style={{\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-background': this.colorBackground,\n '--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',\n }}\n >\n {state.currentTouristicEvent && (\n <div class=\"touristic-event-detail-container\" ref={el => (this.touristicEventDetailContainerRef = el)}>\n <div class=\"images-container\" ref={el => (this.presentationRef = el)}>\n <div class=\"swiper swiper-images\" ref={el => (this.swiperImagesRef = el)}>\n <div class=\"swiper-wrapper\">\n {state.currentTouristicEvent.attachments.length > 0 ? (\n state.currentTouristicEvent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img class=\"image\" src={attachment.url} loading=\"lazy\" onClick={() => this.handleFullscreen()} />\n </div>\n ))\n ) : (\n <div class=\"swiper-slide\">\n <img class=\"default-poi-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElImagesRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElImagesRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElImagesRef = el)}></div>\n </div>\n </div>\n <div class=\"touristic-event-category-container\">\n <img src={touristicEventType.pictogram} />\n <div class=\"touristic-event-category-name\">{touristicEventType.type}</div>\n </div>\n <div class=\"name\">{state.currentTouristicEvent.name}</div>\n <div class=\"divider\"></div>\n <div class=\"downloads-container\">\n <div class=\"download-title\">{translate[state.language].download}</div>\n <div class=\"links-container\">\n <a href={`${state.currentTouristicEvent.pdf}`} target=\"_blank\" rel=\"noopener noreferrer\">\n {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n download\n </span>\n PDF\n </a>\n </div>\n </div>\n {state.currentTouristicEvent.description_teaser && (\n <div>\n <div class=\"divider\"></div>\n <div class=\"description-teaser\" innerHTML={state.currentTouristicEvent.description_teaser}></div>\n </div>\n )}\n <div class=\"divider\"></div>\n {state.currentTouristicEvent.practical_info && (\n <div class=\"description-container\" ref={el => (this.descriptionRef = el)}>\n <div class=\"description-title\">{translate[state.language].description}</div>\n <div class=\"description\" innerHTML={state.currentTouristicEvent.description}></div>\n </div>\n )}\n {cities && cities.length > 0 && (\n <div class=\"cities-container\">\n <div class=\"cities-title\">{translate[state.language].city} : </div>\n <div innerHTML={cities.join(', ')}></div>\n </div>\n )}\n {state.currentTouristicEvent.practical_info && (\n <div>\n <div class=\"divider\"></div>\n <div class=\"useful-information-container\">\n <div class=\"useful-information-title\">{translate[state.language].usefulInformation} : </div>\n <div innerHTML={state.currentTouristicEvent.practical_info}></div>\n </div>\n </div>\n )}\n {(state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (\n <div>\n <div class=\"divider\"></div>\n\n <div class=\"contact-container\">\n <div class=\"contact-title\">{translate[state.language].contact} : </div>\n {state.currentTouristicEvent.contact && <div innerHTML={state.currentTouristicEvent.contact}></div>}\n {state.currentTouristicEvent.email && (\n <div class=\"email-container\">\n <div>{translate[state.language].email} : </div>\n <div innerHTML={state.currentTouristicEvent.email}></div>\n </div>\n )}\n {state.currentTouristicEvent.website && (\n <div class=\"website-container\">\n <div>{translate[state.language].website} : </div>\n <div innerHTML={state.currentTouristicEvent.website}></div>\n </div>\n )}\n </div>\n </div>\n )}\n <div class=\"detail-bottom-space\"></div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"grw-touristic-event-detail.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-event-detail/grw-touristic-event-detail.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,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAOxF,MAAM,OAAO,uBAAuB;;6BAQL,KAAK;2BACR,SAAS;0BACV,SAAS;iCACF,SAAS;mCACP,SAAS;mCACT,SAAS;qCACP,SAAS;oCACV,SAAS;2BAClB,SAAS;uBACb,KAAK;;EAK3B,gBAAgB;IACd,IAAI,CAAC,YAAY,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE;MACnD,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EA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AAC,QAAQ,CAAC,CAAC,OAAO;yBAAe;YACtD,WAAK,SAAS,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,GAAQ,CACvD,CACP,CACG,CACF,CACP;MACD,WAAK,KAAK,EAAC,qBAAqB,GAAO,CACnC,CACP,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Build, Component, Host, Prop, State, getAssetPath, h } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state from 'store/store';\nimport Swiper, { FreeMode, Keyboard, Mousewheel, Navigation, Pagination } from 'swiper';\n\n@Component({\n tag: 'grw-touristic-event-detail',\n styleUrl: 'grw-touristic-event-detail.scss',\n shadow: true,\n})\nexport class GrwTouristicEventDetail {\n swiperImages?: Swiper;\n swiperImagesRef?: HTMLDivElement;\n prevElImagesRef?: HTMLDivElement;\n nextElImagesRef?: HTMLDivElement;\n paginationElImagesRef?: HTMLDivElement;\n presentationRef?: HTMLDivElement;\n\n @State() displayFullscreen = false;\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() colorBackground = '#fef7ff';\n @Prop() isLargeView = false;\n\n descriptionRef?: HTMLDivElement;\n touristicEventDetailContainerRef?: HTMLElement;\n\n componentDidLoad() {\n this.swiperImages = new Swiper(this.swiperImagesRef, {\n modules: [Navigation, Pagination, Keyboard, FreeMode, Mousewheel],\n navigation: {\n prevEl: this.prevElImagesRef,\n nextEl: this.nextElImagesRef,\n },\n pagination: { el: this.paginationElImagesRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperImagesRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n this.displayFullscreen ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();\n };\n }\n\n handleFullscreen() {\n if (state.currentTouristicEvent.attachments && state.currentTouristicEvent.attachments[0] && state.currentTouristicEvent.attachments[0].url) {\n this.swiperImagesRef.requestFullscreen();\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicEventType =\n state.touristicEventTypes &&\n state.currentTouristicEvent &&\n state.touristicEventTypes.find(touristicEventCategory => touristicEventCategory.id === state.currentTouristicEvent.type);\n const cities = state.currentTouristicEvent && state.currentTouristicEvent.cities.map(currentCity => state.cities.find(city => city.id === currentCity)?.name);\n return (\n <Host\n style={{\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-background': this.colorBackground,\n '--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',\n }}\n >\n {state.currentTouristicEvent && (\n <div class=\"touristic-event-detail-container\" ref={el => (this.touristicEventDetailContainerRef = el)}>\n <div class=\"images-container\" ref={el => (this.presentationRef = el)}>\n <div class=\"swiper swiper-images\" ref={el => (this.swiperImagesRef = el)}>\n <div class=\"swiper-wrapper\">\n {state.currentTouristicEvent.attachments.length > 0 ? (\n state.currentTouristicEvent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img class=\"image\" src={attachment.url} loading=\"lazy\" onClick={() => this.handleFullscreen()} />\n </div>\n ))\n ) : (\n <div class=\"swiper-slide\">\n <img class=\"default-poi-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElImagesRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElImagesRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElImagesRef = el)}></div>\n </div>\n </div>\n <div class=\"touristic-event-category-container\">\n <img src={touristicEventType.pictogram} />\n <div class=\"touristic-event-category-name\">{touristicEventType.type}</div>\n </div>\n <div class=\"name\">{state.currentTouristicEvent.name}</div>\n {(state.currentTouristicEvent.begin_date || state.currentTouristicEvent.end_date) && (\n <div class=\"touristic-event-date-container\">\n {state.currentTouristicEvent.begin_date && <div class=\"touristic-event-date\">Date de début : {state.currentTouristicEvent.begin_date}</div>}\n {state.currentTouristicEvent.end_date && <div class=\"touristic-event-date\">Date de fin : {state.currentTouristicEvent.end_date}</div>}\n </div>\n )}\n <div class=\"divider\"></div>\n <div class=\"downloads-container\">\n <div class=\"download-title\">{translate[state.language].download}</div>\n <div class=\"links-container\">\n <a href={`${state.currentTouristicEvent.pdf}`} target=\"_blank\" rel=\"noopener noreferrer\">\n {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n download\n </span>\n PDF\n </a>\n </div>\n </div>\n {state.currentTouristicEvent.description_teaser && (\n <div>\n <div class=\"divider\"></div>\n <div class=\"description-teaser\" innerHTML={state.currentTouristicEvent.description_teaser}></div>\n </div>\n )}\n <div class=\"divider\"></div>\n {state.currentTouristicEvent.practical_info && (\n <div class=\"description-container\" ref={el => (this.descriptionRef = el)}>\n <div class=\"description-title\">{translate[state.language].description}</div>\n <div class=\"description\" innerHTML={state.currentTouristicEvent.description}></div>\n </div>\n )}\n {cities && cities.length > 0 && (\n <div class=\"cities-container\">\n <div class=\"cities-title\">{translate[state.language].city} : </div>\n <div innerHTML={cities.join(', ')}></div>\n </div>\n )}\n {state.currentTouristicEvent.practical_info && (\n <div>\n <div class=\"divider\"></div>\n <div class=\"useful-information-container\">\n <div class=\"useful-information-title\">{translate[state.language].usefulInformation} : </div>\n <div innerHTML={state.currentTouristicEvent.practical_info}></div>\n </div>\n </div>\n )}\n {(state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (\n <div>\n <div class=\"divider\"></div>\n\n <div class=\"contact-container\">\n <div class=\"contact-title\">{translate[state.language].contact} : </div>\n {state.currentTouristicEvent.contact && <div innerHTML={state.currentTouristicEvent.contact}></div>}\n {state.currentTouristicEvent.email && (\n <div class=\"email-container\">\n <div>{translate[state.language].email} : </div>\n <div innerHTML={state.currentTouristicEvent.email}></div>\n </div>\n )}\n {state.currentTouristicEvent.website && (\n <div class=\"website-container\">\n <div>{translate[state.language].website} : </div>\n <div innerHTML={state.currentTouristicEvent.website}></div>\n </div>\n )}\n </div>\n </div>\n )}\n <div class=\"detail-bottom-space\"></div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.material-symbols {
|
|
2
|
+
font-family: "Material Symbols Outlined";
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.material-symbols-outlined {
|
|
6
|
+
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
font-family: "Roboto";
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
grw-touristic-event-card {
|
|
18
|
+
width: 100% !important;
|
|
19
|
+
margin: 0px 8px 8px 8px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.list-bottom-space {
|
|
23
|
+
min-height: 104px;
|
|
24
|
+
height: 104px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.current-touristic-events-within-bounds-length {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
margin: 16px;
|
|
33
|
+
color: var(--color-on-surface);
|
|
34
|
+
font-size: 22px;
|
|
35
|
+
line-height: 28px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.touristic-events-list-container {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
justify-content: space-around;
|
|
43
|
+
}
|
|
Binary file
|