diff --git a/package-lock.json b/package-lock.json index af9e71a0..8c5a09f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24020,7 +24020,7 @@ }, "packages/map-template": { "name": "@mapsindoors/map-template", - "version": "1.58.0", + "version": "1.59.0", "devDependencies": { "@googlemaps/js-api-loader": "^1.15.1", "@mapsindoors/components": "*", diff --git a/packages/map-template/CHANGELOG.md b/packages/map-template/CHANGELOG.md index c4c64668..6a712193 100644 --- a/packages/map-template/CHANGELOG.md +++ b/packages/map-template/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.60.0] - 2024-12-10 + +### Added + +- Upgrade UI on the Wayfinding page. + ## [1.59.0] - 2024-11-26 ### Added diff --git a/packages/map-template/src/components/Search/Search.jsx b/packages/map-template/src/components/Search/Search.jsx index 5e083d31..bee9e0aa 100644 --- a/packages/map-template/src/components/Search/Search.jsx +++ b/packages/map-template/src/components/Search/Search.jsx @@ -387,17 +387,19 @@ function Search({ onSetSize, isOpen }) { {isKioskContext && showLegendButton && } { /* Search field that allows users to search for locations (MapsIndoors Locations and external) */} - - onResults(locations)} - clicked={() => searchFieldClicked()} - cleared={() => cleared()} - category={selectedCategory} - disabled={searchDisabled} // Disabled initially to prevent content jumping when clicking and changing sheet size. - /> + diff --git a/packages/map-template/src/components/Search/Search.scss b/packages/map-template/src/components/Search/Search.scss index dc899963..6d51a75c 100644 --- a/packages/map-template/src/components/Search/Search.scss +++ b/packages/map-template/src/components/Search/Search.scss @@ -43,8 +43,13 @@ background-color: white; } + &__label { + span { + display: none; + } + } + @media (max-width: $desktop-breakpoint) { padding: var(--spacing-medium) var(--spacing-x-small) var(--spacing-medium) var(--spacing-x-small); } - } \ No newline at end of file diff --git a/packages/map-template/src/components/Wayfinding/Wayfinding.jsx b/packages/map-template/src/components/Wayfinding/Wayfinding.jsx index c64b7d47..274de51b 100644 --- a/packages/map-template/src/components/Wayfinding/Wayfinding.jsx +++ b/packages/map-template/src/components/Wayfinding/Wayfinding.jsx @@ -402,7 +402,7 @@ function Wayfinding({ onStartDirections, onBack, directionsToLocation, direction return (
-
{t('Start wayfinding')}
+
{t('Directions')}
{!hasFoundRoute &&

{t('No route found')}

} diff --git a/packages/map-template/src/components/Wayfinding/Wayfinding.scss b/packages/map-template/src/components/Wayfinding/Wayfinding.scss index 7d86fde9..18bb0ece 100644 --- a/packages/map-template/src/components/Wayfinding/Wayfinding.scss +++ b/packages/map-template/src/components/Wayfinding/Wayfinding.scss @@ -3,7 +3,7 @@ .wayfinding { color: var(--brand-colors-black-100); display: grid; - grid-template-rows: 238px min-content; + grid-template-rows: 190px min-content; min-height: 435px; &__directions { @@ -47,14 +47,6 @@ position: relative; } - &__label { - display: grid; - gap: var(--spacing-x-small); - font-size: var(--font-size-small); - color: var(--color-gray-70); - font-weight: var(--font-weight-large); - } - &__use-current-position { padding: var(--spacing-medium); font-size: var(--font-size-medium); @@ -169,7 +161,7 @@ background: transparent; position: absolute; right: 0; - top: 80px; + top: 40px; &:hover { opacity: .8; @@ -189,6 +181,12 @@ align-items: center; } + &__label { + span { + display: none; + } + } + mi-dropdown::part(dropdown-container) { overflow-y: auto; left: unset; @@ -207,4 +205,8 @@ background: var(--color-gray-10); border: 1px solid var(--color-gray-30); } + + mi-search { + width: calc(100% - 48px); + } } \ No newline at end of file diff --git a/packages/map-template/src/i18n/da.js b/packages/map-template/src/i18n/da.js index 95d881d0..4f2b2414 100644 --- a/packages/map-template/src/i18n/da.js +++ b/packages/map-template/src/i18n/da.js @@ -58,6 +58,9 @@ const da = { 'My position': 'Min position', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Slå "Tilgængelig rute" til for at få en rutevejledning uden trapper og rulletrapper.', 'Go!': 'Go!', + 'Directions': 'Rutevejledning', + 'Choose departure': 'Vælg startpunkt', + 'Choose destination': 'Vælg destination', // Venue selector 'Venues': 'Venues', 'Select venue': 'Vælg venue', diff --git a/packages/map-template/src/i18n/de.js b/packages/map-template/src/i18n/de.js index 339d6dd7..00a4b59d 100644 --- a/packages/map-template/src/i18n/de.js +++ b/packages/map-template/src/i18n/de.js @@ -58,6 +58,9 @@ const de = { 'My position': 'Meine Position', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Schalte Barrierefrei ein, um Treppen und Rolltreppen zu vermeiden.', 'Go!': 'Start!', + 'Directions': 'Wegbeschreibung', + 'Choose departure': 'Abfahrt wählen', + 'Choose destination': 'Ziel wählen', // Venue selector 'Venues': 'Standorte', 'Select venue': 'Wähle Standort', diff --git a/packages/map-template/src/i18n/en.js b/packages/map-template/src/i18n/en.js index 21962951..abb4f2bf 100644 --- a/packages/map-template/src/i18n/en.js +++ b/packages/map-template/src/i18n/en.js @@ -58,6 +58,9 @@ const en = { 'My position': 'My position', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Turn on Accessibility to get directions that avoid stairs and escalators.', 'Go!': 'Go!', + 'Directions': 'Directions', + 'Choose departure': 'Choose departure', + 'Choose destination': 'Choose destination', // Venue selector 'Venues': 'Venues', 'Select venue': 'Select venue', diff --git a/packages/map-template/src/i18n/es.js b/packages/map-template/src/i18n/es.js index ba9273f1..5f318e13 100644 --- a/packages/map-template/src/i18n/es.js +++ b/packages/map-template/src/i18n/es.js @@ -58,6 +58,9 @@ const es = { 'My position': 'Mi posición', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Active Accesibilidad para obtener indicaciones que eviten escalares y escaleras mecánicas', 'Go!': '¡Ir!', + 'Directions': 'Instrucciones', + 'Choose departure': 'Elige la salida', + 'Choose destination': 'Elige destino', // Venue selector 'Venues': 'Lugares', 'Select venue': 'Seleccionar lugar', diff --git a/packages/map-template/src/i18n/fr.js b/packages/map-template/src/i18n/fr.js index e1817878..d5edec18 100644 --- a/packages/map-template/src/i18n/fr.js +++ b/packages/map-template/src/i18n/fr.js @@ -58,6 +58,9 @@ const fr = { 'My position': 'Ma position', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Activez l\'accessibilité pour obtenir des itinéraires qui évitent les escaliers.', 'Go!': 'C\'est parti!', + 'Directions': 'Instructions', + 'Choose departure': 'Choisir le départ', + 'Choose destination': 'Choisir la destination', // Venue selector 'Venues': 'Lieux', 'Select venue': 'Sélectionner le lieu', diff --git a/packages/map-template/src/i18n/it.js b/packages/map-template/src/i18n/it.js index 845e9c6c..74ef08d5 100644 --- a/packages/map-template/src/i18n/it.js +++ b/packages/map-template/src/i18n/it.js @@ -58,6 +58,9 @@ const it = { 'My position': 'La mia posizione', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Attiva "Percorso accessibile" per ottenere indicazioni che evitano scale e scale mobili.', 'Go!': 'Vai!', + 'Directions': 'Indicazioni', + 'Choose departure': 'Scegli la partenza', + 'Choose destination': 'Scegli destinazione', // Venue selector 'Venues': 'Luoghi', 'Select venue': 'Seleziona luogo', diff --git a/packages/map-template/src/i18n/nl.js b/packages/map-template/src/i18n/nl.js index 1b5d5d7a..0e4ca828 100644 --- a/packages/map-template/src/i18n/nl.js +++ b/packages/map-template/src/i18n/nl.js @@ -58,6 +58,9 @@ const nl = { 'My position': 'Mijn positie', 'Turn on Accessibility to get directions that avoid stairs and escalators.': 'Schakel toegankelijkheid in voor een routebeschrijving waarbij trappen en roltrappen worden vermeden', 'Go!': 'Gaan!', + 'Directions': 'Richtingen', + 'Choose departure': 'Kies vertrek', + 'Choose destination': 'Kies bestemming', // Venue selector 'Venues': 'Locaties', 'Select venue': 'Kies locatie',