@geotrekce/geotrek-rando-widget 0.2.10 → 0.2.12
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 +13 -11
- 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 → grw-filter_8.cjs.entry.js} +54 -66
- package/dist/cjs/grw-filter_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_8.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js +2 -2
- package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/{i18n-67fd458f.js → i18n-c0a655bf.js} +11 -1
- package/dist/cjs/i18n-c0a655bf.js.br +0 -0
- package/dist/cjs/i18n-c0a655bf.js.gz +0 -0
- package/dist/cjs/i18n-c0a655bf.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-6ec4d0d2.js → store-8489a70a.js} +4 -1
- package/dist/cjs/store-8489a70a.js.br +0 -0
- package/dist/cjs/store-8489a70a.js.gz +0 -0
- package/dist/cjs/store-8489a70a.js.map +1 -0
- package/dist/cjs/utils-51ed599a.js +103 -0
- package/dist/cjs/utils-51ed599a.js.br +0 -0
- package/dist/cjs/utils-51ed599a.js.gz +0 -0
- package/dist/cjs/utils-51ed599a.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/grw-app/grw-app.css +37 -11
- 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 +27 -8
- 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.css +1 -1
- package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js +20 -55
- 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-search/grw-search.css +32 -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-search/grw-search.js +25 -0
- 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 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.css +17 -3
- package/dist/collection/components/grw-treks-list/grw-treks-list.css.br +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.css.gz +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +2 -1
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.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 +5 -3
- 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/grw-treks-provider.js +16 -2
- package/dist/collection/store/grw-treks-provider.js.br +0 -0
- package/dist/collection/store/grw-treks-provider.js.gz +0 -0
- package/dist/collection/store/grw-treks-provider.js.map +1 -1
- package/dist/collection/store/store.js +3 -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 +3 -3
- 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 +14 -12
- 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 → grw-filter_8.entry.js} +55 -68
- package/dist/esm/grw-filter_8.entry.js.br +0 -0
- package/dist/esm/grw-filter_8.entry.js.gz +0 -0
- package/dist/esm/grw-filter_8.entry.js.map +1 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
- package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm/grw-trek-card.entry.js +3 -3
- package/dist/esm/grw-trek-card.entry.js.br +0 -0
- package/dist/esm/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm/{i18n-b25e6b48.js → i18n-22f5fa38.js} +11 -1
- package/dist/esm/i18n-22f5fa38.js.br +0 -0
- package/dist/esm/i18n-22f5fa38.js.gz +0 -0
- package/dist/esm/i18n-22f5fa38.js.map +1 -0
- package/dist/esm/{index-3bfebaa2.js → index-82644551.js} +2 -2
- package/dist/esm/index-82644551.js.br +0 -0
- package/dist/esm/index-82644551.js.gz +0 -0
- package/dist/esm/{index-3bfebaa2.js.map → index-82644551.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/{store-8a967dc3.js → store-af9549c8.js} +5 -2
- package/dist/esm/store-af9549c8.js.br +0 -0
- package/dist/esm/store-af9549c8.js.gz +0 -0
- package/dist/esm/store-af9549c8.js.map +1 -0
- package/dist/esm/utils-85317c68.js +98 -0
- package/dist/esm/utils-85317c68.js.br +0 -0
- package/dist/esm/utils-85317c68.js.gz +0 -0
- package/dist/esm/utils-85317c68.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_7.entry.js → grw-filter_8.entry.js} +3 -3
- package/dist/esm-es5/grw-filter_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_8.entry.js.map +1 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm-es5/i18n-22f5fa38.js +2 -0
- package/dist/esm-es5/i18n-22f5fa38.js.br +0 -0
- package/dist/esm-es5/i18n-22f5fa38.js.gz +0 -0
- package/dist/esm-es5/i18n-22f5fa38.js.map +1 -0
- package/dist/esm-es5/{index-3bfebaa2.js → index-82644551.js} +2 -2
- package/dist/esm-es5/index-82644551.js.br +0 -0
- package/dist/esm-es5/index-82644551.js.gz +0 -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-8a967dc3.js → store-af9549c8.js} +2 -2
- package/dist/esm-es5/store-af9549c8.js.br +0 -0
- package/dist/esm-es5/store-af9549c8.js.gz +0 -0
- package/dist/esm-es5/store-af9549c8.js.map +1 -0
- package/dist/esm-es5/utils-85317c68.js +2 -0
- package/dist/esm-es5/utils-85317c68.js.br +0 -0
- package/dist/esm-es5/utils-85317c68.js.gz +0 -0
- package/dist/esm-es5/utils-85317c68.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/geotrek-rando-widget.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-00f05696.js +2 -0
- package/dist/geotrek-rando-widget/p-00f05696.js.br +0 -0
- package/dist/geotrek-rando-widget/p-00f05696.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-00f05696.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-11732b6a.system.entry.js → p-0ec7146e.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js +2 -0
- 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-ccc3be5e.system.js.map → p-148f5f1d.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-3eaed9f9.system.js → p-266b2cee.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-266b2cee.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-266b2cee.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4213dc8b.system.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-4213dc8b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4213dc8b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4213dc8b.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-51b07d4b.system.js → p-458ec23b.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-458ec23b.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-458ec23b.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-458ec23b.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6568b5d8.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-6568b5d8.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6568b5d8.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6568b5d8.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-764c52b8.js +2 -0
- package/dist/geotrek-rando-widget/p-764c52b8.js.br +0 -0
- package/dist/geotrek-rando-widget/p-764c52b8.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-764c52b8.js.map +1 -0
- package/dist/geotrek-rando-widget/p-93dc4557.system.js +2 -0
- package/dist/geotrek-rando-widget/p-93dc4557.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-93dc4557.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-93dc4557.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-a1530528.js +2 -0
- package/dist/geotrek-rando-widget/p-a1530528.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a1530528.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a1530528.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-3b2f4d05.system.entry.js → p-a7477417.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-16f28b0e.js → p-b4e1f9ae.js} +2 -2
- package/dist/geotrek-rando-widget/p-b4e1f9ae.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b4e1f9ae.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-4549b320.entry.js → p-d7444266.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d7444266.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d7444266.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d7e384ea.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-efda3439.entry.js.map → p-d7e384ea.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js +2 -0
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.map +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +4 -0
- package/dist/types/components/grw-filter/grw-filter.d.ts +3 -2
- package/dist/types/components/grw-search/grw-search.d.ts +4 -0
- package/dist/types/components.d.ts +18 -0
- package/dist/types/i18n/i18n.d.ts +5 -0
- package/dist/types/store/store.d.ts +7 -1
- package/dist/types/types/types.d.ts +17 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +5 -4
- 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 +0 -1
- package/dist/cjs/i18n-67fd458f.js.br +0 -0
- package/dist/cjs/i18n-67fd458f.js.gz +0 -0
- package/dist/cjs/i18n-67fd458f.js.map +0 -1
- package/dist/cjs/store-6ec4d0d2.js.br +0 -0
- package/dist/cjs/store-6ec4d0d2.js.gz +0 -0
- package/dist/cjs/store-6ec4d0d2.js.map +0 -1
- package/dist/cjs/utils-15de4c32.js +0 -27
- package/dist/cjs/utils-15de4c32.js.br +0 -2
- package/dist/cjs/utils-15de4c32.js.gz +0 -0
- package/dist/cjs/utils-15de4c32.js.map +0 -1
- 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 +0 -1
- package/dist/esm/i18n-b25e6b48.js.br +0 -0
- package/dist/esm/i18n-b25e6b48.js.gz +0 -0
- package/dist/esm/i18n-b25e6b48.js.map +0 -1
- package/dist/esm/index-3bfebaa2.js.br +0 -0
- package/dist/esm/index-3bfebaa2.js.gz +0 -0
- package/dist/esm/store-8a967dc3.js.br +0 -0
- package/dist/esm/store-8a967dc3.js.gz +0 -0
- package/dist/esm/store-8a967dc3.js.map +0 -1
- package/dist/esm/utils-160ec4d0.js +0 -23
- package/dist/esm/utils-160ec4d0.js.br +0 -0
- package/dist/esm/utils-160ec4d0.js.gz +0 -0
- package/dist/esm/utils-160ec4d0.js.map +0 -1
- 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 +0 -1
- package/dist/esm-es5/i18n-b25e6b48.js +0 -2
- package/dist/esm-es5/i18n-b25e6b48.js.br +0 -0
- package/dist/esm-es5/i18n-b25e6b48.js.gz +0 -0
- package/dist/esm-es5/i18n-b25e6b48.js.map +0 -1
- package/dist/esm-es5/index-3bfebaa2.js.br +0 -0
- package/dist/esm-es5/index-3bfebaa2.js.gz +0 -0
- package/dist/esm-es5/store-8a967dc3.js.br +0 -0
- package/dist/esm-es5/store-8a967dc3.js.gz +0 -0
- package/dist/esm-es5/store-8a967dc3.js.map +0 -1
- package/dist/esm-es5/utils-160ec4d0.js +0 -2
- package/dist/esm-es5/utils-160ec4d0.js.br +0 -0
- package/dist/esm-es5/utils-160ec4d0.js.gz +0 -0
- package/dist/esm-es5/utils-160ec4d0.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0773c38f.js +0 -2
- package/dist/geotrek-rando-widget/p-0773c38f.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0773c38f.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0773c38f.js.map +0 -1
- package/dist/geotrek-rando-widget/p-11732b6a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-11732b6a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-16f28b0e.js.br +0 -0
- package/dist/geotrek-rando-widget/p-16f28b0e.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2d3ac9a0.js +0 -2
- package/dist/geotrek-rando-widget/p-2d3ac9a0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2d3ac9a0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2d3ac9a0.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3b2f4d05.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3b2f4d05.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4549b320.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4549b320.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-51b07d4b.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-51b07d4b.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-51b07d4b.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-7459199d.system.js +0 -2
- package/dist/geotrek-rando-widget/p-7459199d.system.js.br +0 -1
- package/dist/geotrek-rando-widget/p-7459199d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7459199d.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-87deca22.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-87deca22.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-87deca22.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-87deca22.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ccb5e416.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ccb5e416.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ccb5e416.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ccb5e416.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ccc3be5e.system.js +0 -2
- package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js +0 -2
- package/dist/geotrek-rando-widget/p-dc91249a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-dc91249a.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-e9e878ef.js +0 -2
- package/dist/geotrek-rando-widget/p-e9e878ef.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9e878ef.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e9e878ef.js.map +0 -1
- package/dist/geotrek-rando-widget/p-efda3439.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-efda3439.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-efda3439.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fc167c7a.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-fc167c7a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fc167c7a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fc167c7a.entry.js.map +0 -1
- /package/dist/esm-es5/{index-3bfebaa2.js.map → index-82644551.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-11732b6a.system.entry.js.map → p-0ec7146e.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-3eaed9f9.system.js.map → p-266b2cee.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-3b2f4d05.system.entry.js.map → p-a7477417.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-16f28b0e.js.map → p-b4e1f9ae.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-4549b320.entry.js.map → p-d7444266.entry.js.map} +0 -0
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-37f5c77b.js');
|
|
6
6
|
const pagination = require('./pagination-149c2052.js');
|
|
7
|
-
const store = require('./store-
|
|
7
|
+
const store = require('./store-8489a70a.js');
|
|
8
8
|
|
|
9
9
|
const grwInformationDeskDetailCss = ".material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:12px;background-color:var(--color-surface-container-low);color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.information-desk-img{position:relative}.information-desk-img img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.information-desk-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.information-desk-name{font-size:16px;line-height:24px;font-weight:500}.information-desk-description{font-size:14px;line-height:20px}.information-desk-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-information-desk-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}.phone-container,.mail-container,.link-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.phone-container span,.mail-container span,.link-container span{font-family:\"Material Symbols Outlined\";font-size:16px;margin-right:8px}.center-on-map-button{cursor:pointer;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;border:none;font-size:14px;margin:12px 0px}.center-on-map-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.center-on-map-button span{font-family:\"Material Symbols Outlined\";font-size:18px}";
|
|
10
10
|
|
|
Binary file
|
|
Binary file
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-37f5c77b.js');
|
|
6
|
-
const store = require('./store-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const store = require('./store-8489a70a.js');
|
|
7
|
+
const utils = require('./utils-51ed599a.js');
|
|
8
8
|
|
|
9
9
|
const grwTrekCardCss = ".material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:\"Roboto\";border-radius:12px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:12px;border-top-right-radius:12px}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-family:\"Material Symbols Outlined\";font-size:24px;width:24px;height:auto;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-card-container{width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}";
|
|
10
10
|
|
|
Binary file
|
|
Binary file
|
|
@@ -6,6 +6,7 @@ const translate = {
|
|
|
6
6
|
practice: 'Pratique',
|
|
7
7
|
difficulty: 'Difficulté',
|
|
8
8
|
duration: 'Durée',
|
|
9
|
+
length: 'Longueur',
|
|
9
10
|
treks: 'randonnées',
|
|
10
11
|
trek: 'randonnée',
|
|
11
12
|
showList: 'Voir la liste',
|
|
@@ -50,12 +51,17 @@ const translate = {
|
|
|
50
51
|
informationPlaces: 'Lieux de renseignement',
|
|
51
52
|
pois: 'Patrimoines',
|
|
52
53
|
},
|
|
54
|
+
themes: 'Thèmes',
|
|
55
|
+
routes: 'Type de parcours',
|
|
56
|
+
elevation: 'Denivelé positif',
|
|
57
|
+
others: 'Autres',
|
|
53
58
|
},
|
|
54
59
|
en: {
|
|
55
60
|
filter: 'Filter',
|
|
56
61
|
practice: 'Practice',
|
|
57
62
|
difficulty: 'Difficulty',
|
|
58
63
|
duration: 'Duration',
|
|
64
|
+
length: 'Length',
|
|
59
65
|
treks: 'Hikes',
|
|
60
66
|
trek: 'Hike',
|
|
61
67
|
showList: 'Show the list',
|
|
@@ -100,9 +106,13 @@ const translate = {
|
|
|
100
106
|
informationPlaces: 'Information places',
|
|
101
107
|
pois: 'Points of interest',
|
|
102
108
|
},
|
|
109
|
+
themes: 'Themes',
|
|
110
|
+
routes: 'Type of course',
|
|
111
|
+
elevation: 'Positive elevation',
|
|
112
|
+
others: 'Others',
|
|
103
113
|
},
|
|
104
114
|
};
|
|
105
115
|
|
|
106
116
|
exports.translate = translate;
|
|
107
117
|
|
|
108
|
-
//# sourceMappingURL=i18n-
|
|
118
|
+
//# sourceMappingURL=i18n-c0a655bf.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|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AClC,2BAA2B,EAAE,iBAAiB;MAC9C,iBAAiB,EAAE,oBAAoB;MACvC,IAAI,EAAE,oBAAoB;KAC3B;IACD,MAAM,EAAE;MACN,eAAe,EAAE,kBAAkB;MACnC,OAAO,EAAE,SAAS;MAClB,aAAa,EAAE,iBAAiB;MAChC,iBAAiB,EAAE,oBAAoB;MACvC,IAAI,EAAE,oBAAoB;KAC3B;IACD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,oBAAoB;IAC/B,MAAM,EAAE,QAAQ;GACjB;;;;;","names":[],"sources":["./src/i18n/i18n.ts"],"sourcesContent":["interface Translation {\n filter: string;\n practice: string;\n difficulty: string;\n duration: string;\n length: string;\n treks: string;\n trek: string;\n showList: string;\n showMap: string;\n showRoute: string;\n showDetails: string;\n downloads: string;\n description: string;\n departure: string;\n arrival: string;\n elevationProfile: string;\n roadAccess: string;\n transport: string;\n recommendations: string;\n recommendedParking: string;\n equipments: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n accessibility: string;\n accessibilityLevel: string;\n accessibilitySlope: string;\n accessibilityWidth: string;\n accessibilitySignage: string;\n accessibilityCovering: string;\n accessibilityExposure: string;\n accessibilityAdvices: string;\n pois: Function;\n sources: string;\n cities: string;\n options: {\n presentation: string;\n description: string;\n recommendations: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n pois: string;\n };\n layers: {\n pointsReference: string;\n parking: string;\n sensitiveArea: string;\n informationPlaces: string;\n pois: string;\n };\n themes: string;\n routes: string;\n elevation: string;\n others: string;\n}\n\ninterface AvailableTranslations {\n fr: Translation;\n en: Translation;\n}\n\nexport const translate: AvailableTranslations = {\n fr: {\n filter: 'Filtrer',\n practice: 'Pratique',\n difficulty: 'Difficulté',\n duration: 'Durée',\n length: 'Longueur',\n treks: 'randonnées',\n trek: 'randonnée',\n showList: 'Voir la liste',\n showMap: 'Voir la carte',\n showRoute: \"Voir l'itinéraire\",\n showDetails: 'Voir la fiche',\n downloads: 'Téléchargements',\n description: 'Description',\n departure: 'Départ',\n arrival: 'Arrivée',\n elevationProfile: 'Profil altimétrique',\n roadAccess: 'Accès routier',\n transport: 'Transport',\n recommendations: 'Recommandations',\n recommendedParking: 'Parking conseillé',\n equipments: 'Équipements',\n environmentalSensitiveAreas: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n accessibility: 'Accessibilité',\n accessibilityLevel: \"Niveau d'accessibilité\",\n accessibilitySlope: 'Pente',\n accessibilityWidth: 'Largeur',\n accessibilitySignage: 'Signalisation',\n accessibilityCovering: 'Revêtement',\n accessibilityExposure: 'Exposition',\n accessibilityAdvices: 'Conseils',\n pois: (poisLength: number) => `Les ${poisLength} patrimoines à découvrir`,\n sources: 'Sources',\n cities: 'Communes traversées',\n options: {\n presentation: 'Présentation',\n description: 'Description',\n recommendations: 'Recommandations',\n environmentalSensitiveAreas: 'Zones sensibles',\n informationPlaces: \"Lieux d'informations\",\n pois: 'Patrimoines',\n },\n layers: {\n pointsReference: 'Points de référence',\n parking: 'Parking conseillé',\n sensitiveArea: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n pois: 'Patrimoines',\n },\n themes: 'Thèmes',\n routes: 'Type de parcours',\n elevation: 'Denivelé positif',\n others: 'Autres',\n },\n en: {\n filter: 'Filter',\n practice: 'Practice',\n difficulty: 'Difficulty',\n duration: 'Duration',\n length: 'Length',\n treks: 'Hikes',\n trek: 'Hike',\n showList: 'Show the list',\n showMap: 'Show the map',\n showRoute: 'Show the route',\n showDetails: 'Show the details',\n downloads: 'Downloads',\n description: 'Description',\n departure: 'Departure',\n arrival: 'Arrival',\n elevationProfile: 'Elevation profile',\n roadAccess: 'Road acess',\n transport: 'Transport',\n recommendations: 'Recommendations',\n recommendedParking: 'Parking recommended',\n equipments: 'Equipements',\n environmentalSensitiveAreas: 'Areas of environmental sensitivity',\n informationPlaces: 'Information places',\n accessibility: 'Accessibility',\n accessibilityLevel: 'Accessibility level',\n accessibilitySlope: 'Slope',\n accessibilityWidth: 'Width',\n accessibilitySignage: 'Signage',\n accessibilityCovering: 'Covering',\n accessibilityExposure: 'Exposure',\n accessibilityAdvices: 'Advices',\n pois: (poisLength: number) => `${poisLength} points of interest`,\n sources: 'Sources',\n cities: 'Cities crossed',\n options: {\n presentation: 'Presentation',\n description: 'Description',\n recommendations: 'Recommendations',\n environmentalSensitiveAreas: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n },\n layers: {\n pointsReference: 'Reference points',\n parking: 'Parking',\n sensitiveArea: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n },\n themes: 'Themes',\n routes: 'Type of course',\n elevation: 'Positive elevation',\n others: 'Others',\n },\n};\n"],"version":3}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -30,7 +30,7 @@ const patchEsm = () => {
|
|
|
30
30
|
const defineCustomElements = (win, options) => {
|
|
31
31
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
32
32
|
return patchEsm().then(() => {
|
|
33
|
-
return index.bootstrapLazy([["grw-trek-card.cjs",[[1,"grw-trek-card",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32]}]]],["grw-information-desk-detail_3.cjs",[[1,"grw-information-desk-detail",{"informationDesk":[16],"displayShortDescription":[32]}],[1,"grw-poi-detail",{"poi":[16],"displayShortDescription":[32],"displayFullscreen":[32]}],[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}]]],["grw-
|
|
33
|
+
return index.bootstrapLazy([["grw-trek-card.cjs",[[1,"grw-trek-card",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32]}]]],["grw-information-desk-detail_3.cjs",[[1,"grw-information-desk-detail",{"informationDesk":[16],"displayShortDescription":[32]}],[1,"grw-poi-detail",{"poi":[16],"displayShortDescription":[32],"displayFullscreen":[32]}],[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}]]],["grw-filter_8.cjs",[[1,"grw-trek-detail",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"weather":[4],"isLargeView":[4,"is-large-view"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32]}],[1,"grw-treks-list",{"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"treksToDisplay":[32]}],[1,"grw-filter",{"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterNameProperty":[1,"filter-name-property"]},[[8,"resetFilter","onResetFilter"]]],[0,"grw-map",{"urlLayer":[1,"url-layer"],"attribution":[1],"center":[1],"zoom":[2],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"isLargeView":[4,"is-large-view"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-search"],[1,"grw-select-language"],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[1,"trek-id"]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1]}]]],["grw-app.cjs",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"urlLayer":[1,"url-layer"],"center":[1],"zoom":[2],"attribution":[1],"linkName":[1,"link-name"],"linkTarget":[1,"link-target"],"weather":[4],"colorPrimaryApp":[1,"color-primary-app"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"showTrek":[32],"showTreksMap":[32],"showTrekMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]], options);
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
|
|
Binary file
|
|
Binary file
|
|
@@ -207,6 +207,8 @@ const { state, onChange, reset } = createStore({
|
|
|
207
207
|
themes: null,
|
|
208
208
|
cities: null,
|
|
209
209
|
durations: null,
|
|
210
|
+
lengths: null,
|
|
211
|
+
elevations: null,
|
|
210
212
|
currentSensitiveAreas: null,
|
|
211
213
|
labels: null,
|
|
212
214
|
sources: null,
|
|
@@ -218,10 +220,11 @@ const { state, onChange, reset } = createStore({
|
|
|
218
220
|
currentInformationDesks: null,
|
|
219
221
|
treksNetworkError: false,
|
|
220
222
|
trekNetworkError: false,
|
|
223
|
+
searchValue: null,
|
|
221
224
|
});
|
|
222
225
|
|
|
223
226
|
exports.onChange = onChange;
|
|
224
227
|
exports.reset = reset;
|
|
225
228
|
exports.state = state;
|
|
226
229
|
|
|
227
|
-
//# sourceMappingURL=store-
|
|
230
|
+
//# sourceMappingURL=store-8489a70a.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"store-8489a70a.js","mappings":";;;;AAEA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,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/C,QAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;AACvB,KAAK;AACL,CAAC,CAAC;AACF;AACA,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK;AACpD,IAAI,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAChE,IAAI,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,CAAC;AACnC,IAAI,OAAO,GAAG,CAAC;AACf,CAAC;;MCxKK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,WAAW,CA4B3C;EACD,GAAG,EAAE,IAAI;EACT,SAAS,EAAE,IAAI;EACf,QAAQ,EAAE,IAAI;EACd,KAAK,EAAE,IAAI;EACX,YAAY,EAAE,IAAI;EAClB,iBAAiB,EAAE,IAAI;EACvB,qBAAqB,EAAE,IAAI;EAC3B,YAAY,EAAE,IAAI;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,IAAI;EAChB,qBAAqB,EAAE,IAAI;EAC3B,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,eAAe,EAAE,IAAI;EACrB,oBAAoB,EAAE,IAAI;EAC1B,QAAQ,EAAE,IAAI;EACd,WAAW,EAAE,IAAI;EACjB,WAAW,EAAE,IAAI;EACjB,uBAAuB,EAAE,IAAI;EAC7B,iBAAiB,EAAE,KAAK;EACxB,gBAAgB,EAAE,KAAK;EACvB,WAAW,EAAE,IAAI;CAClB;;;;;;","names":["getRenderingRef","forceUpdate"],"sources":["./node_modules/@stencil/store/dist/index.mjs","./src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n accessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapTreksBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n sources: Sources;\n accessibilities: Accessibilities;\n accessibilitiesLevel: accessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n treksNetworkError: boolean;\n trekNetworkError: boolean;\n searchValue: string;\n}>({\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapTreksBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n sources: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n treksNetworkError: false,\n trekNetworkError: false,\n searchValue: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"version":3}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const store = require('./store-8489a70a.js');
|
|
4
|
+
|
|
5
|
+
function formatDuration(duration) {
|
|
6
|
+
let formattedDuration;
|
|
7
|
+
if (duration < 24) {
|
|
8
|
+
formattedDuration = `${Math.floor(duration)}h`;
|
|
9
|
+
if (duration % 1 > 0) {
|
|
10
|
+
formattedDuration += `${Math.round(60 * (duration % 1))}min`;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
formattedDuration = `${duration / 24}j`;
|
|
15
|
+
}
|
|
16
|
+
return formattedDuration;
|
|
17
|
+
}
|
|
18
|
+
function formatLength(length) {
|
|
19
|
+
return `${Math.round(length / 1000)}km`;
|
|
20
|
+
}
|
|
21
|
+
function formatAscent(ascent) {
|
|
22
|
+
return `${ascent}m`;
|
|
23
|
+
}
|
|
24
|
+
function handleFiltersAndSearch() {
|
|
25
|
+
const filters = [
|
|
26
|
+
{ property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include' },
|
|
27
|
+
{ property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include' },
|
|
28
|
+
{ property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval' },
|
|
29
|
+
{ property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval' },
|
|
30
|
+
{ property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval' },
|
|
31
|
+
{ property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include' },
|
|
32
|
+
{ property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include' },
|
|
33
|
+
{ property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include' },
|
|
34
|
+
{ property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include' },
|
|
35
|
+
{ property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include' },
|
|
36
|
+
];
|
|
37
|
+
let isUsingFilter = false;
|
|
38
|
+
let filtersTreks = [];
|
|
39
|
+
for (const filter of filters) {
|
|
40
|
+
const currentFiltersId = store.state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);
|
|
41
|
+
if (currentFiltersId.length > 0) {
|
|
42
|
+
if (filtersTreks.length > 0) {
|
|
43
|
+
if (filter.type === 'include') {
|
|
44
|
+
if (filter.trekPropertyIsArray) {
|
|
45
|
+
filtersTreks = [...store.state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else if (filter.type === 'interval') {
|
|
52
|
+
filtersTreks = [
|
|
53
|
+
...filtersTreks.filter(trek => {
|
|
54
|
+
for (const currentFilterId of currentFiltersId) {
|
|
55
|
+
const currentFilter = store.state[filter.property].find(property => property.id === currentFilterId);
|
|
56
|
+
if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return false;
|
|
61
|
+
}),
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (!isUsingFilter) {
|
|
67
|
+
isUsingFilter = true;
|
|
68
|
+
}
|
|
69
|
+
if (filter.type === 'include') {
|
|
70
|
+
if (filter.trekPropertyIsArray) {
|
|
71
|
+
filtersTreks = [...store.state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
filtersTreks = [...store.state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else if (filter.type === 'interval') {
|
|
78
|
+
let minValue;
|
|
79
|
+
let maxValue;
|
|
80
|
+
for (const currentFilterId of currentFiltersId) {
|
|
81
|
+
const currentFilter = store.state[filter.property].find(property => property.id === currentFilterId);
|
|
82
|
+
if (isNaN(minValue) || currentFilter.minValue < minValue) {
|
|
83
|
+
minValue = currentFilter.minValue;
|
|
84
|
+
}
|
|
85
|
+
if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {
|
|
86
|
+
maxValue = currentFilter.maxValue;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
filtersTreks = [...store.state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const searchTreks = isUsingFilter ? filtersTreks : store.state.treks;
|
|
95
|
+
return Boolean(store.state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(store.state.searchValue.toLowerCase())) : searchTreks;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
exports.formatAscent = formatAscent;
|
|
99
|
+
exports.formatDuration = formatDuration;
|
|
100
|
+
exports.formatLength = formatLength;
|
|
101
|
+
exports.handleFiltersAndSearch = handleFiltersAndSearch;
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=utils-51ed599a.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-51ed599a.js","mappings":";;;;SAGgB,cAAc,CAAC,QAAgB;EAC7C,IAAI,iBAAiB,CAAC;EACtB,IAAI,QAAQ,GAAG,EAAE,EAAE;IACjB,iBAAiB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;IAC/C,IAAI,QAAQ,GAAG,CAAC,GAAG,CAAC,EAAE;MACpB,iBAAiB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,QAAQ,GAAG,CAAC,CAAC,CAA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C,QAAQ,IAAI,QAAQ,CAAC,EAAE,KAAK,eAAe,CAAC,CAAC;YAC/F,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,QAAQ,GAAG,QAAQ,EAAE;cACxD,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC;aACnC;YACD,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,QAAQ,GAAG,QAAQ,EAAE;cACxD,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC;aACnC;WACF;UACD,YAAY,GAAG,CAAC,GAAGA,WAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;SAChI;OACF;KACF;GACF;EAED,MAAM,WAAW,GAAG,aAAa,GAAG,YAAY,GAAGA,WAAK,CAAC,KAAK,CAAC;EAC/D,OAAO,OAAO,CAACA,WAAK,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAACA,WAAK,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,GAAG,WAAW,CAAC;AAChK;;;;;;;","names":["state"],"sources":["./src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { Filters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport function handleFiltersAndSearch(): Treks {\n const filters: Filters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include' },\n ];\n\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of filters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n"],"version":3}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"./components/grw-information-desk-detail/grw-information-desk-detail.js",
|
|
6
6
|
"./components/grw-map/grw-map.js",
|
|
7
7
|
"./components/grw-poi-detail/grw-poi-detail.js",
|
|
8
|
+
"./components/grw-search/grw-search.js",
|
|
8
9
|
"./components/grw-select-language/grw-select-language.js",
|
|
9
10
|
"./components/grw-sensitive-area-detail/grw-sensitive-area-detail.js",
|
|
10
11
|
"./components/grw-trek-card/grw-trek-card.js",
|
|
@@ -82,14 +82,14 @@ grw-app {
|
|
|
82
82
|
top: 64px;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.handle-filters-container {
|
|
85
|
+
.handle-search-filters-container {
|
|
86
86
|
display: flex;
|
|
87
87
|
align-items: center;
|
|
88
88
|
justify-content: space-between;
|
|
89
89
|
margin: 0px 16px;
|
|
90
90
|
height: 64px;
|
|
91
91
|
}
|
|
92
|
-
.handle-filters-container .handle-filters-button {
|
|
92
|
+
.handle-search-filters-container .handle-filters-button {
|
|
93
93
|
user-select: none;
|
|
94
94
|
cursor: pointer;
|
|
95
95
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -113,30 +113,31 @@ grw-app {
|
|
|
113
113
|
box-shadow: var(--elevation-1);
|
|
114
114
|
transition: box-shadow 0.2s ease-in-out 0s;
|
|
115
115
|
}
|
|
116
|
-
.handle-filters-container .handle-filters-button span {
|
|
116
|
+
.handle-search-filters-container .handle-filters-button span {
|
|
117
117
|
font-size: 18px;
|
|
118
118
|
font-family: "Material Symbols Outlined";
|
|
119
119
|
}
|
|
120
|
-
.handle-filters-container .current-treks-within-bounds-length {
|
|
121
|
-
margin-left: 12px;
|
|
122
|
-
color: var(--color-on-surface);
|
|
123
|
-
}
|
|
124
120
|
|
|
125
121
|
.filters-container {
|
|
126
122
|
background-color: var(--color-background);
|
|
127
|
-
position:
|
|
123
|
+
position: relative;
|
|
128
124
|
width: 100%;
|
|
129
|
-
|
|
125
|
+
height: 100%;
|
|
130
126
|
z-index: 1100;
|
|
131
127
|
}
|
|
132
128
|
|
|
129
|
+
.filters-options-container {
|
|
130
|
+
overflow-y: scroll;
|
|
131
|
+
padding-bottom: 32px;
|
|
132
|
+
max-height: calc(100% - 48px - 32px);
|
|
133
|
+
}
|
|
134
|
+
|
|
133
135
|
.back-filters-container {
|
|
134
136
|
background-color: rgba(0, 0, 0, 0.5);
|
|
135
137
|
width: 100%;
|
|
136
|
-
height:
|
|
138
|
+
height: 100%;
|
|
137
139
|
position: absolute;
|
|
138
140
|
z-index: 1099;
|
|
139
|
-
top: 64px;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
.divider {
|
|
@@ -276,4 +277,29 @@ grw-trek-detail {
|
|
|
276
277
|
.large-view-app-map-container {
|
|
277
278
|
position: relative;
|
|
278
279
|
width: 50%;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.filters-options-buttons-container {
|
|
283
|
+
display: flex;
|
|
284
|
+
justify-content: flex-end;
|
|
285
|
+
align-items: center;
|
|
286
|
+
height: 48px;
|
|
287
|
+
}
|
|
288
|
+
.filters-options-buttons-container .filter-option-button {
|
|
289
|
+
cursor: pointer;
|
|
290
|
+
user-select: none;
|
|
291
|
+
font-size: 14px;
|
|
292
|
+
font-weight: 500;
|
|
293
|
+
margin: 8px 0px 0px 8px;
|
|
294
|
+
padding: 8px 16px;
|
|
295
|
+
height: 32px;
|
|
296
|
+
display: flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
justify-content: center;
|
|
299
|
+
box-shadow: var(--elevation-0);
|
|
300
|
+
border: none;
|
|
301
|
+
-webkit-tap-highlight-color: transparent;
|
|
302
|
+
line-height: 20px;
|
|
303
|
+
color: var(--color-primary);
|
|
304
|
+
background-color: transparent;
|
|
279
305
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -134,12 +134,13 @@ export class GrwApp {
|
|
|
134
134
|
this.showTreksMap = !this.showTreksMap;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
handleEraseFilters() {
|
|
138
|
+
this.resetFilter.emit();
|
|
139
|
+
state.currentTreks = state.treks;
|
|
140
|
+
}
|
|
141
|
+
handleOkFilters() {
|
|
142
|
+
this.handleFilters();
|
|
143
|
+
}
|
|
143
144
|
disconnectedCallback() {
|
|
144
145
|
reset();
|
|
145
146
|
window.removeEventListener('popstate', this.handlePopStateBind);
|
|
@@ -163,7 +164,7 @@ export class GrwApp {
|
|
|
163
164
|
'--fab-color': this.fabColor,
|
|
164
165
|
'--app-width': this.appWidth,
|
|
165
166
|
'--app-height': this.appHeight,
|
|
166
|
-
} }, !state.currentTreks && !state.currentTrek && (h("div", { class: "init-loader-container" }, h("span", { class: "loader" }))), !this.showTrek && !state.treks && (h("grw-treks-provider", { api: this.api, languages: this.languages, "in-bbox": this.inBbox, cities: this.cities, districts: this.districts, structures: this.structures, themes: this.themes, portals: this.portals, routes: this.routes, practices: this.practices })), this.showTrek && this.currentTrekId && !state.currentTrek && (h("grw-trek-provider", { api: this.api, languages: this.languages, "trek-id": this.currentTrekId })), (state.currentTreks || state.currentTrek) && (h("div", { class: "app-container" }, h("div", { class: this.isLargeView ? 'large-view-header-container' : 'header-container' }, h("div", { class: "header-top" }, h("div", { class: "header-left-container" }, this.showTrek ? (h("button", { onClick: () => this.handleBackButton(), class: "arrow-back-icon" }, h("span", { class: "material-symbols-outlined" }, "arrow_back"))) : (h("div", { class: "attribution-container" }, h("a", { target: "_blank", href: this.linkTarget }, this.linkName)))), h("div", { class: "header-right-container" }, state.languages.length > 1 && h("grw-select-language", null))), !this.showTrek && (h("div", { class: "handle-filters-container" },
|
|
167
|
+
} }, !state.currentTreks && !state.currentTrek && (h("div", { class: "init-loader-container" }, h("span", { class: "loader" }))), !this.showTrek && !state.treks && (h("grw-treks-provider", { api: this.api, languages: this.languages, "in-bbox": this.inBbox, cities: this.cities, districts: this.districts, structures: this.structures, themes: this.themes, portals: this.portals, routes: this.routes, practices: this.practices })), this.showTrek && this.currentTrekId && !state.currentTrek && (h("grw-trek-provider", { api: this.api, languages: this.languages, "trek-id": this.currentTrekId })), (state.currentTreks || state.currentTrek) && (h("div", { class: "app-container" }, h("div", { class: this.isLargeView ? 'large-view-header-container' : 'header-container' }, h("div", { class: "header-top" }, h("div", { class: "header-left-container" }, this.showTrek ? (h("button", { onClick: () => this.handleBackButton(), class: "arrow-back-icon" }, h("span", { class: "material-symbols-outlined" }, "arrow_back"))) : (h("div", { class: "attribution-container" }, h("a", { target: "_blank", href: this.linkTarget }, this.linkName)))), h("div", { class: "header-right-container" }, state.languages.length > 1 && h("grw-select-language", null))), !this.showTrek && (h("div", { class: "handle-search-filters-container" }, h("div", { class: "handle-search-container" }, h("grw-search", null)), h("div", { class: "handle-filters-container" }, h("button", { onClick: () => this.handleFilters(), class: "handle-filters-button" }, h("span", { class: "material-symbols-outlined margin-right-icon" }, "filter_list"), translate[state.language].filter))))), h("div", { class: `content-container ${this.showTrek ? 'content-trek' : 'content-treks'}` }, h("div", { class: this.isLargeView ? 'large-view-app-treks-list-container' : 'app-treks-list-container', style: { display: this.showTrek ? 'none' : 'flex', position: this.showTrek ? 'absolute' : 'relative' } }, h("grw-treks-list", { "reset-store-on-disconnected": "false", "is-large-view": this.isLargeView, "color-primary-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 })), this.showTrek && !state.currentTrek && (h("div", { class: this.isLargeView ? 'large-view-loader-container' : 'loader-container' }, h("span", { class: "loader" }))), state.currentTrek && (h("div", { class: this.isLargeView ? 'large-view-app-trek-detail-container' : 'app-trek-detail-container' }, h("grw-trek-detail", { "reset-store-on-disconnected": "false", "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-primary-container": this.colorPrimaryContainer, "color-on-primary-container": this.colorOnPrimaryContainer, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-background": this.colorBackground, weather: this.weather, style: { zIndex: this.showTrekMap ? '0' : '1' }, "is-large-view": this.isLargeView }))), h("grw-map", { "reset-store-on-disconnected": "false", class: this.isLargeView ? 'large-view-app-map-container' : 'app-map-container', style: {
|
|
167
168
|
visibility: (this.showTreksMap && !this.showTrek) || (this.showTrekMap && this.showTrek) || this.isLargeView ? 'visible' : 'hidden',
|
|
168
169
|
zIndex: this.showTrekMap ? '1' : '0',
|
|
169
170
|
}, "url-layer": this.urlLayer, center: this.center, zoom: this.zoom, attribution: this.attribution, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-primary-container": this.colorPrimaryContainer, "color-on-primary-container": this.colorOnPrimaryContainer, "color-background": this.colorBackground, "color-trek-line": this.colorTrekLine, "color-departure-icon": this.colorDepartureIcon, "color-arrival-icon": this.colorArrivalIcon, "color-sensitive-area": this.colorSensitiveArea, "color-poi-icon": this.colorPoiIcon, "is-large-view": this.isLargeView })), (!this.showTrek || (this.showTrek && state.currentTrek)) && (h("div", { class: "map-visibility-button-container" }, h("button", { onClick: () => this.handleShowMap(), class: "map-visibility-button", style: { display: this.isLargeView ? 'none' : 'flex' } }, h("span", { class: "material-symbols-outlined" }, this.showTrek ? (this.showTrekMap ? 'summarize' : 'map') : this.showTreksMap ? 'list' : 'map'), this.showTrek
|
|
@@ -172,7 +173,7 @@ export class GrwApp {
|
|
|
172
173
|
: translate[state.language].showRoute
|
|
173
174
|
: this.showTreksMap
|
|
174
175
|
? translate[state.language].showList
|
|
175
|
-
: translate[state.language].showMap))))), !this.showTrek && this.showFilters && (h("div", { class: "options-container" }, h("div", { class: "filters-container" }, h("grw-filter", { filterName: translate[state.language].practice, filterType: "practices", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].difficulty, filterType: "difficulties", filterNameProperty: "label" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].duration, filterType: "durations", filterNameProperty: "name" })), h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" })))));
|
|
176
|
+
: translate[state.language].showMap))))), !this.showTrek && this.showFilters && (h("div", { class: "options-container" }, h("div", { class: "filters-container" }, h("div", { class: "filters-options-buttons-container" }, h("button", { class: "filter-option-button", onClick: () => this.handleEraseFilters() }, "Effacer"), h("button", { class: "filter-option-button", onClick: () => this.handleOkFilters() }, "Ok")), h("div", { class: "filters-options-container" }, h("grw-filter", { filterName: translate[state.language].practice, filterType: "practices", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].difficulty, filterType: "difficulties", filterNameProperty: "label" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].duration, filterType: "durations", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].length, filterType: "lengths", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].elevation, filterType: "elevations", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].themes, filterType: "themes", filterNameProperty: "label" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].routes, filterType: "routes", filterNameProperty: "route" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].others, filterType: "labels", filterNameProperty: "name" }), h("div", { class: "divider" }), h("grw-filter", { filterName: translate[state.language].cities, filterType: "cities", filterNameProperty: "name" }))), h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" })))));
|
|
176
177
|
}
|
|
177
178
|
static get is() { return "grw-app"; }
|
|
178
179
|
static get originalStyleUrls() {
|
|
@@ -888,6 +889,24 @@ export class GrwApp {
|
|
|
888
889
|
"currentTrekId": {}
|
|
889
890
|
};
|
|
890
891
|
}
|
|
892
|
+
static get events() {
|
|
893
|
+
return [{
|
|
894
|
+
"method": "resetFilter",
|
|
895
|
+
"name": "resetFilter",
|
|
896
|
+
"bubbles": true,
|
|
897
|
+
"cancelable": true,
|
|
898
|
+
"composed": true,
|
|
899
|
+
"docs": {
|
|
900
|
+
"tags": [],
|
|
901
|
+
"text": ""
|
|
902
|
+
},
|
|
903
|
+
"complexType": {
|
|
904
|
+
"original": "any",
|
|
905
|
+
"resolved": "any",
|
|
906
|
+
"references": {}
|
|
907
|
+
}
|
|
908
|
+
}];
|
|
909
|
+
}
|
|
891
910
|
static get elementRef() { return "appElement"; }
|
|
892
911
|
static get watchers() {
|
|
893
912
|
return [{
|
|
Binary file
|
|
Binary file
|