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