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 Col from "../components/Col.svelte";
|
2022-02-04 09:36:34 +01:00
|
|
|
import Row from "../components/Row.svelte";
|
2022-09-27 04:16:45 +02:00
|
|
|
import SpinBox from "../components/SpinBox.svelte";
|
2022-10-25 08:18:50 +02:00
|
|
|
import ConfigInput from "./ConfigInput.svelte";
|
2021-05-29 13:30:10 +02:00
|
|
|
import RevertButton from "./RevertButton.svelte";
|
|
|
|
|
|
|
|
export let value: any;
|
|
|
|
export let defaultValue: any;
|
|
|
|
export let min = 0;
|
|
|
|
export let max: number | undefined = undefined;
|
|
|
|
</script>
|
|
|
|
|
2022-10-25 08:18:50 +02:00
|
|
|
<Row --cols={13}>
|
|
|
|
<Col --col-size={7} breakpoint="xs">
|
|
|
|
<slot />
|
2021-05-29 13:30:10 +02:00
|
|
|
</Col>
|
2022-10-25 08:18:50 +02:00
|
|
|
<Col --col-size={6} breakpoint="xs">
|
|
|
|
<ConfigInput>
|
|
|
|
<SpinBox bind:value {min} {max} step={0.01} />
|
|
|
|
<RevertButton slot="revert" bind:value {defaultValue} />
|
|
|
|
</ConfigInput>
|
2021-05-29 13:30:10 +02:00
|
|
|
</Col>
|
|
|
|
</Row>
|