Themes(toilets): add an allowed range to some freeform inputs, allow to specify 'units' in the freeform, add the possibility to convert units

This commit is contained in:
Pieter Vander Vennet 2025-05-20 00:34:39 +02:00
parent e71a80732e
commit 1e0ac3febf
16 changed files with 270 additions and 103 deletions

View file

@ -53,6 +53,7 @@
type={config.freeform.type}
{placeholder}
{value}
range={config.freeform.range}
/>
</Inline>
{:else if InputHelpers.hideInputField.indexOf(config.freeform.type) < 0}
@ -66,6 +67,7 @@
{placeholder}
{value}
{unvalidatedText}
range={config.freeform.range}
/>
{/if}

View file

@ -221,7 +221,8 @@
$freeformInput,
selectedMapping,
checkedMappings,
tags.data
tags.data,
unit
)
if (featureSwitchIsDebugging?.data) {
console.log(