2021-05-29 13:30:10 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
2021-11-17 04:49:52 +01:00
|
|
|
import Row from "../components/Row.svelte";
|
|
|
|
import Col from "../components/Col.svelte";
|
2021-06-11 23:15:40 +02:00
|
|
|
import TooltipLabel from "./TooltipLabel.svelte";
|
2021-05-29 13:30:10 +02:00
|
|
|
import SpinBoxFloat from "./SpinBoxFloat.svelte";
|
|
|
|
import RevertButton from "./RevertButton.svelte";
|
|
|
|
|
|
|
|
export let value: any;
|
|
|
|
export let defaultValue: any;
|
|
|
|
export let min = 0;
|
|
|
|
export let max: number | undefined = undefined;
|
|
|
|
export let markdownTooltip: string;
|
|
|
|
</script>
|
|
|
|
|
2021-11-17 04:49:52 +01:00
|
|
|
<Row --cols={12}>
|
|
|
|
<Col --col-size={7} breakpoint="sm">
|
2021-06-11 23:15:40 +02:00
|
|
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
2021-05-29 13:30:10 +02:00
|
|
|
</Col>
|
2021-11-17 04:49:52 +01:00
|
|
|
<Col --col-size={5} breakpoint="sm">
|
2021-06-05 14:35:02 +02:00
|
|
|
<SpinBoxFloat bind:value {min} {max} />
|
2021-06-22 01:41:31 +02:00
|
|
|
<RevertButton bind:value {defaultValue} />
|
2021-05-29 13:30:10 +02:00
|
|
|
</Col>
|
|
|
|
</Row>
|