import { localizer } from "../../utils/Localizer.mjs"; export function numberInput(input, data) { const label = localizer(input.label); const id = `${data.meta.idp}-${input.id}`; if (!data.meta.editable) { return `
${label} ${data.meta.limited && input.limited ? `???` : input.value}
`; }; let attrs = ``; if (input.min != undefined) { attrs += ` min="${input.min}"` }; if (input.max != undefined) { attrs += ` max="${input.max}"` }; if (input.step != undefined) { attrs += `step="${input.step}"` }; return `
`; };