2021-05-29 12:29:22 +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";
|
2023-09-09 01:00:55 +02:00
|
|
|
import ConfigInput from "../components/ConfigInput.svelte";
|
|
|
|
import RevertButton from "../components/RevertButton.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";
|
2021-05-29 12:29:22 +02:00
|
|
|
|
2023-01-28 11:58:37 +01:00
|
|
|
export let value: number;
|
|
|
|
export let defaultValue: number;
|
2021-05-29 13:06:17 +02:00
|
|
|
export let min = 0;
|
2023-01-28 11:58:37 +01:00
|
|
|
export let max = 9999;
|
2021-05-29 12:29:22 +02:00
|
|
|
</script>
|
|
|
|
|
2022-10-25 08:18:50 +02:00
|
|
|
<Row --cols={13}>
|
|
|
|
<Col --col-size={7} breakpoint="xs">
|
|
|
|
<slot />
|
2021-05-29 12:29:22 +02:00
|
|
|
</Col>
|
2022-10-25 08:18:50 +02:00
|
|
|
<Col --col-size={6} breakpoint="xs">
|
|
|
|
<Row class="flex-grow-1">
|
|
|
|
<slot name="tabs" />
|
|
|
|
<ConfigInput>
|
|
|
|
<SpinBox bind:value {min} {max} />
|
|
|
|
<RevertButton slot="revert" bind:value {defaultValue} />
|
|
|
|
</ConfigInput>
|
|
|
|
</Row>
|
2021-05-29 12:29:22 +02:00
|
|
|
</Col>
|
|
|
|
</Row>
|