|
2 | 2 | import { getFormContext } from '$lib/context/FormContext.svelte'; |
3 | 3 | import FieldTools from '../FieldTools.svelte'; |
4 | 4 | import FieldHint from '../FieldHint.svelte'; |
5 | | - import NumberInput from '../Inputs/NumberInput.svelte'; |
6 | 5 | import type { CRS, PartialExtent } from '$lib/models/metadata'; |
7 | 6 | import { MetadataService } from '$lib/services/MetadataService'; |
8 | 7 | import Button, { Icon, Label } from '@smui/button'; |
|
15 | 14 | import { page } from '$app/state'; |
16 | 15 | import { ValidationService } from '$lib/services/ValidationService'; |
17 | 16 | import { logger } from 'loggisch'; |
| 17 | + import TextInput from '../Inputs/TextInput.svelte'; |
18 | 18 |
|
19 | 19 | const t = $derived(page.data.t); |
20 | 20 |
|
|
167 | 167 | </div> |
168 | 168 | <div class="extent-fields"> |
169 | 169 | <div class="inline-fields"> |
170 | | - <NumberInput |
| 170 | + <TextInput |
171 | 171 | label={t('18_ExtentField.label_min_x')} |
172 | 172 | fieldConfig={minXFieldConfig} |
173 | 173 | bind:value={inputValue.minx} |
|
178 | 178 | step={['EPSG:4326', 'EPSG:4258'].includes(crs?.label as CRS) ? '0.0001' : undefined} |
179 | 179 | validationResult={validationResultMinX} |
180 | 180 | /> |
181 | | - <NumberInput |
| 181 | + <TextInput |
182 | 182 | bind:value={inputValue.maxx} |
183 | 183 | label={t('18_ExtentField.label_max_x')} |
184 | 184 | fieldConfig={maxXFieldConfig} |
|
191 | 191 | /> |
192 | 192 | </div> |
193 | 193 | <div class="inline-fields"> |
194 | | - <NumberInput |
| 194 | + <TextInput |
195 | 195 | bind:value={inputValue.miny} |
196 | 196 | label={t('18_ExtentField.label_min_y')} |
197 | 197 | fieldConfig={minYFieldConfig} |
|
202 | 202 | step={['EPSG:4326', 'EPSG:4258'].includes(crs?.label as CRS) ? '0.0001' : undefined} |
203 | 203 | validationResult={validationResultMinY} |
204 | 204 | /> |
205 | | - <NumberInput |
| 205 | + <TextInput |
206 | 206 | bind:value={inputValue.maxy} |
207 | 207 | label={t('18_ExtentField.label_max_y')} |
208 | 208 | fieldConfig={maxYFieldConfig} |
|
0 commit comments