diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json
index deda66b65..56555e871 100644
--- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json
+++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json
@@ -1,19 +1,13 @@
{
"id": "mapcomplete-changes",
"title": {
- "en": "Changes made with MapComplete",
- "de": "Mit MapComplete erstellte Änderungen",
- "nl": "Wijzigingen gemaakt met MapComplete"
+ "en": "Changes made with MapComplete"
},
"shortDescription": {
- "en": "Show changes made with MapComplete",
- "de": "Mit MapComplete erstellte Änderungen anzeigen",
- "nl": "Toon wijzigingen gemaakt met MapComplete"
+ "en": "Shows changes made by MapComplete"
},
"description": {
- "en": "This maps shows all the changes made with MapComplete",
- "de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen",
- "nl": "Deze kaart toont alle wijzigingen die met MapComplete gemaakt werden"
+ "en": "This maps shows all the changes made with MapComplete"
},
"icon": "./assets/svg/logo.svg",
"hideFromOverview": true,
@@ -26,9 +20,7 @@
{
"id": "mapcomplete-changes",
"name": {
- "en": "Changeset centers",
- "de": "Zentrum der Änderungssätze",
- "nl": "Centerpunt van changeset"
+ "en": "Changeset centers"
},
"minzoom": 0,
"source": {
@@ -39,51 +31,41 @@
},
"title": {
"render": {
- "en": "Changeset for {theme}",
- "de": "Änderungssatz für {theme}"
+ "en": "Changeset for {theme}"
}
},
"description": {
- "en": "Show all MapComplete changes",
- "de": "Alle MapComplete-Änderungen anzeigen",
- "nl": "Toon alle MapComplete wijzigingen"
+ "en": "Shows all MapComplete changes"
},
"tagRenderings": [
{
"id": "show_changeset_id",
"render": {
- "en": "Changeset {id}",
- "de": "Änderungssatz {id}"
+ "en": "Changeset {id}"
}
},
{
"id": "contributor",
"question": {
- "en": "Which contributor made this change?",
- "de": "Welcher Mitwirkende hat diese Änderung vorgenommen?",
- "nl": "Welke bijdrager maakte deze wijziging?"
+ "en": "What contributor did make this change?"
},
"freeform": {
"key": "user"
},
"render": {
- "en": "Change made by {user}",
- "de": "Änderung gemacht von {user}",
- "nl": "Wijziging gemaakt door {user}"
+ "en": "Change made by {user}"
}
},
{
"id": "theme-id",
"question": {
- "en": "What theme was used to make this change?",
- "de": "Welches Thema wurde für diese Änderung verwendet?"
+ "en": "What theme was used to make this change?"
},
"freeform": {
"key": "theme"
},
"render": {
- "en": "Change with theme {theme}",
- "de": "Geändert mit Thema {theme}"
+ "en": "Change with theme {theme}"
}
},
{
@@ -92,27 +74,19 @@
"key": "locale"
},
"question": {
- "en": "What locale (language) was this change made in?",
- "de": "In welcher Sprache wurde diese Änderung vorgenommen?",
- "nl": "In welke locale (taal) werd deze wijziging gemaakt?"
+ "en": "What locale (language) was this change made in?"
},
"render": {
- "en": "User locale is {locale}",
- "de": "Usersprache ist {locale}",
- "nl": "De gebruikerstaal is {locale}"
+ "en": "User locale is {locale}"
}
},
{
"id": "host",
"render": {
- "en": "Change made with {host}",
- "de": "Änderung vorgenommen mit {host}",
- "nl": "Wijziging gemaakt met {host}"
+ "en": "Change with with {host}"
},
"question": {
- "en": "What host (website) was this change made with?",
- "de": "Mit welchem Host / welcher Website wurde diese Änderung gemacht?",
- "nl": "Met welke host (website) werd deze wijziging gemaakt?"
+ "en": "What host (website) was this change made with?"
},
"freeform": {
"key": "host"
@@ -133,12 +107,10 @@
{
"id": "version",
"question": {
- "en": "What version of MapComplete was used to make this change?",
- "de": "Mit welcher Version von MapComplete wurde diese Änderung gemacht?"
+ "en": "What version of MapComplete was used to make this change?"
},
"render": {
- "en": "Made with {editor}",
- "de": "Erstellt mit {editor}"
+ "en": "Made with {editor}"
},
"freeform": {
"key": "editor"
@@ -480,9 +452,7 @@
}
],
"question": {
- "en": "Theme name contains {search}",
- "de": "Themenname enthält {search}",
- "nl": "Themenaam bevat {search}"
+ "en": "Themename contains {search}"
}
}
]
@@ -498,9 +468,7 @@
}
],
"question": {
- "en": "Made by contributor {search}",
- "de": "Erstellt von {search}",
- "nl": "Gemaakt door bijdrager {search}"
+ "en": "Made by contributor {search}"
}
}
]
@@ -516,9 +484,7 @@
}
],
"question": {
- "en": "Not made by contributor {search}",
- "de": "Nicht erstellt von {search}",
- "nl": "Niet gemaakt door bijdrager {search}"
+ "en": "Not made by contributor {search}"
}
}
]
@@ -535,9 +501,7 @@
}
],
"question": {
- "en": "Made before {search}",
- "de": "Erstellt vor {search}",
- "nl": "Gemaakt voor {search}"
+ "en": "Made before {search}"
}
}
]
@@ -554,9 +518,7 @@
}
],
"question": {
- "en": "Made after {search}",
- "de": "Erstellt nach {search}",
- "nl": "Gemaakt na {search}"
+ "en": "Made after {search}"
}
}
]
@@ -572,9 +534,7 @@
}
],
"question": {
- "en": "User language (iso-code) {search}",
- "de": "Benutzersprache (ISO-Code) {search}",
- "nl": "De taal van de bijdrager is {search}"
+ "en": "User language (iso-code) {search}"
}
}
]
@@ -590,9 +550,7 @@
}
],
"question": {
- "en": "Made with host {search}",
- "de": "Erstellt mit Host {search}",
- "nl": "Gemaakt met host {search}"
+ "en": "Made with host {search}"
}
}
]
@@ -603,9 +561,7 @@
{
"osmTags": "add-image>0",
"question": {
- "en": "Changeset added at least one image",
- "de": "Changeset fügte mindestens ein Bild hinzu",
- "nl": "Changeset bevat minstens één afbeelding"
+ "en": "Changeset added at least one image"
}
}
]
@@ -620,8 +576,7 @@
{
"id": "link_to_more",
"render": {
- "en": "More statistics can be found here",
- "de": "Mehr Statistiken gibt es hier"
+ "en": "More statistics can be found here"
}
},
{
diff --git a/src/UI/InputElement/ValidatedInput.svelte b/src/UI/InputElement/ValidatedInput.svelte
index 3656e819f..57b702e1d 100644
--- a/src/UI/InputElement/ValidatedInput.svelte
+++ b/src/UI/InputElement/ValidatedInput.svelte
@@ -9,7 +9,7 @@
import { Unit } from "../../Models/Unit"
import UnitInput from "../Popup/UnitInput.svelte"
- export let type: ValidatorType
+ export let type: ValidatorType
export let feedback: UIEventSource | undefined = undefined
export let getCountry: () => string | undefined
export let placeholder: string | Translation | undefined
@@ -63,6 +63,7 @@
}
if (unit && isNaN(Number(v))) {
+ console.debug("Not a number, but a unit is required")
value.setData(undefined)
return
}
diff --git a/src/UI/InputElement/Validator.ts b/src/UI/InputElement/Validator.ts
index 5172b2433..e63a98f94 100644
--- a/src/UI/InputElement/Validator.ts
+++ b/src/UI/InputElement/Validator.ts
@@ -1,6 +1,6 @@
-import BaseUIElement from "../BaseUIElement"
-import { Translation } from "../i18n/Translation"
-import Translations from "../i18n/Translations"
+import BaseUIElement from "../BaseUIElement";
+import { Translation } from "../i18n/Translation";
+import Translations from "../i18n/Translations";
/**
* A 'TextFieldValidator' contains various methods to check and cleanup an entered value or to give feedback.
@@ -16,13 +16,13 @@ export abstract class Validator {
/**
* What HTML-inputmode to use
*/
- public readonly inputmode?: string
+ public readonly inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'
public readonly textArea: boolean
constructor(
name: string,
explanation: string | BaseUIElement,
- inputmode?: string,
+ inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search',
textArea?: false | boolean
) {
this.name = name
diff --git a/src/UI/InputElement/Validators/FloatValidator.ts b/src/UI/InputElement/Validators/FloatValidator.ts
index f984a9fc0..2c3f6adbb 100644
--- a/src/UI/InputElement/Validators/FloatValidator.ts
+++ b/src/UI/InputElement/Validators/FloatValidator.ts
@@ -1,11 +1,12 @@
import { Translation } from "../../i18n/Translation"
import Translations from "../../i18n/Translations"
import { Validator } from "../Validator"
+import { ValidatorType } from "../Validators";
export default class FloatValidator extends Validator {
- inputmode = "decimal"
+ inputmode: "decimal" = "decimal"
- constructor(name?: string, explanation?: string) {
+ constructor(name?: ValidatorType, explanation?: string) {
super(name ?? "float", explanation ?? "A decimal number", "decimal")
}
diff --git a/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte b/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte
index a746aba3d..0454187e3 100644
--- a/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte
+++ b/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte
@@ -69,7 +69,7 @@
export let selectedTags: TagsFilter = undefined
let mappings: Mapping[] = config?.mappings
- let searchTerm: Store = new UIEventSource("")
+ let searchTerm: UIEventSource = new UIEventSource("")
$: {
try {