@rainlanguage/ui-components 0.0.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -0
- package/dist/__fixtures__/orderDetail.d.ts +99 -0
- package/dist/__fixtures__/orderDetail.js +204 -0
- package/dist/__fixtures__/settings-12-11-24.json +160 -0
- package/dist/__mocks__/MockComponent.d.ts +1 -0
- package/dist/__mocks__/MockComponent.js +2 -0
- package/dist/__mocks__/MockComponent.svelte +3 -0
- package/dist/__mocks__/MockComponent.svelte.d.ts +18 -0
- package/dist/__mocks__/mockTransactionStore.d.ts +22 -0
- package/dist/__mocks__/mockTransactionStore.js +56 -0
- package/dist/__mocks__/mockWeb3Config.d.ts +2 -0
- package/dist/__mocks__/mockWeb3Config.js +15 -0
- package/dist/__mocks__/queries.d.ts +13 -0
- package/dist/__mocks__/queries.js +64 -0
- package/dist/__mocks__/settings.d.ts +3 -0
- package/dist/__mocks__/settings.js +37 -0
- package/dist/__mocks__/stores.d.ts +94 -0
- package/dist/__mocks__/stores.js +113 -0
- package/dist/app.css +3 -0
- package/dist/assets/ledger.svg +6 -0
- package/dist/assets/logo-dark.svg +15 -0
- package/dist/assets/logo-light.svg +15 -0
- package/dist/assets/walletconnect.svg +1 -0
- package/dist/components/BadgeActive.svelte +9 -0
- package/dist/components/BadgeActive.svelte.d.ts +19 -0
- package/dist/components/BlockQuote.svelte +1 -0
- package/dist/components/BlockQuote.svelte.d.ts +29 -0
- package/dist/components/ButtonDarkMode.svelte +14 -0
- package/dist/components/ButtonDarkMode.svelte.d.ts +18 -0
- package/dist/components/ButtonLoading.svelte +11 -0
- package/dist/components/ButtonLoading.svelte.d.ts +24 -0
- package/dist/components/ButtonTab.svelte +7 -0
- package/dist/components/ButtonTab.svelte.d.ts +23 -0
- package/dist/components/ButtonVaultLink.svelte +29 -0
- package/dist/components/ButtonVaultLink.svelte.d.ts +22 -0
- package/dist/components/CardProperty.svelte +11 -0
- package/dist/components/CardProperty.svelte.d.ts +31 -0
- package/dist/components/CheckboxMyItemsOnly.svelte +23 -0
- package/dist/components/CheckboxMyItemsOnly.svelte.d.ts +21 -0
- package/dist/components/CheckboxZeroBalanceVault.svelte +20 -0
- package/dist/components/CheckboxZeroBalanceVault.svelte.d.ts +19 -0
- package/dist/components/CodeMirrorDotrain.svelte +35 -0
- package/dist/components/CodeMirrorDotrain.svelte.d.ts +23 -0
- package/dist/components/CodeMirrorRainlang.svelte +34 -0
- package/dist/components/CodeMirrorRainlang.svelte.d.ts +23 -0
- package/dist/components/DropdownProperty.svelte +12 -0
- package/dist/components/DropdownProperty.svelte.d.ts +19 -0
- package/dist/components/EditableSpan.svelte +46 -0
- package/dist/components/EditableSpan.svelte.d.ts +21 -0
- package/dist/components/Hash.svelte +85 -0
- package/dist/components/Hash.svelte.d.ts +28 -0
- package/dist/components/Heading.svelte +19 -0
- package/dist/components/Heading.svelte.d.ts +29 -0
- package/dist/components/IconError.svelte +8 -0
- package/dist/components/IconError.svelte.d.ts +16 -0
- package/dist/components/IconExternalLink.svelte +18 -0
- package/dist/components/IconExternalLink.svelte.d.ts +18 -0
- package/dist/components/IconInfo.svelte +8 -0
- package/dist/components/IconInfo.svelte.d.ts +16 -0
- package/dist/components/IconLedger.svelte +13 -0
- package/dist/components/IconLedger.svelte.d.ts +16 -0
- package/dist/components/IconSuccess.svelte +8 -0
- package/dist/components/IconSuccess.svelte.d.ts +16 -0
- package/dist/components/IconTelegram.svelte +12 -0
- package/dist/components/IconTelegram.svelte.d.ts +25 -0
- package/dist/components/IconWalletConnect.svelte +13 -0
- package/dist/components/IconWalletConnect.svelte.d.ts +16 -0
- package/dist/components/IconWarning.svelte +8 -0
- package/dist/components/IconWarning.svelte.d.ts +16 -0
- package/dist/components/License.svelte +29 -0
- package/dist/components/License.svelte.d.ts +25 -0
- package/dist/components/ListViewOrderbookFilters.svelte +58 -0
- package/dist/components/ListViewOrderbookFilters.svelte.d.ts +28 -0
- package/dist/components/OrderOrVaultHash.svelte +24 -0
- package/dist/components/OrderOrVaultHash.svelte.d.ts +22 -0
- package/dist/components/PageHeader.svelte +33 -0
- package/dist/components/PageHeader.svelte.d.ts +21 -0
- package/dist/components/TanstackAppTable.svelte +73 -0
- package/dist/components/TanstackAppTable.svelte.d.ts +30 -0
- package/dist/components/Text.svelte +12 -0
- package/dist/components/Text.svelte.d.ts +31 -0
- package/dist/components/charts/APYTimeFilters.svelte +47 -0
- package/dist/components/charts/APYTimeFilters.svelte.d.ts +19 -0
- package/dist/components/charts/ChartTimeFilters.svelte +35 -0
- package/dist/components/charts/ChartTimeFilters.svelte.d.ts +18 -0
- package/dist/components/charts/LightweightChart.svelte +110 -0
- package/dist/components/charts/LightweightChart.svelte.d.ts +29 -0
- package/dist/components/charts/OrderTradesChart.svelte +36 -0
- package/dist/components/charts/OrderTradesChart.svelte.d.ts +21 -0
- package/dist/components/charts/TableTimeFilters.svelte +48 -0
- package/dist/components/charts/TableTimeFilters.svelte.d.ts +19 -0
- package/dist/components/charts/TanstackLightweightChartLine.svelte +24 -0
- package/dist/components/charts/TanstackLightweightChartLine.svelte.d.ts +23 -0
- package/dist/components/charts/VaultBalanceChart.svelte +37 -0
- package/dist/components/charts/VaultBalanceChart.svelte.d.ts +22 -0
- package/dist/components/checkbox/Checkbox.svelte +17 -0
- package/dist/components/checkbox/Checkbox.svelte.d.ts +21 -0
- package/dist/components/deployment/ButtonSelectOption.svelte +14 -0
- package/dist/components/deployment/ButtonSelectOption.svelte.d.ts +20 -0
- package/dist/components/deployment/ComposedRainlangModal.svelte +35 -0
- package/dist/components/deployment/ComposedRainlangModal.svelte.d.ts +19 -0
- package/dist/components/deployment/DeploymentSectionHeader.svelte +14 -0
- package/dist/components/deployment/DeploymentSectionHeader.svelte.d.ts +19 -0
- package/dist/components/deployment/DeploymentSteps.svelte +252 -0
- package/dist/components/deployment/DeploymentSteps.svelte.d.ts +38 -0
- package/dist/components/deployment/DeploymentTile.svelte +19 -0
- package/dist/components/deployment/DeploymentTile.svelte.d.ts +21 -0
- package/dist/components/deployment/DeploymentsSection.svelte +20 -0
- package/dist/components/deployment/DeploymentsSection.svelte.d.ts +19 -0
- package/dist/components/deployment/DepositInput.svelte +93 -0
- package/dist/components/deployment/DepositInput.svelte.d.ts +20 -0
- package/dist/components/deployment/DepositsSection.svelte +8 -0
- package/dist/components/deployment/DepositsSection.svelte.d.ts +20 -0
- package/dist/components/deployment/DisclaimerModal.svelte +54 -0
- package/dist/components/deployment/DisclaimerModal.svelte.d.ts +19 -0
- package/dist/components/deployment/FieldDefinitionInput.svelte +66 -0
- package/dist/components/deployment/FieldDefinitionInput.svelte.d.ts +20 -0
- package/dist/components/deployment/FieldDefinitionsSection.svelte +9 -0
- package/dist/components/deployment/FieldDefinitionsSection.svelte.d.ts +20 -0
- package/dist/components/deployment/InvalidStrategiesSection.svelte +19 -0
- package/dist/components/deployment/InvalidStrategiesSection.svelte.d.ts +19 -0
- package/dist/components/deployment/SelectToken.svelte +88 -0
- package/dist/components/deployment/SelectToken.svelte.d.ts +21 -0
- package/dist/components/deployment/SelectTokensSection.svelte +17 -0
- package/dist/components/deployment/SelectTokensSection.svelte.d.ts +21 -0
- package/dist/components/deployment/ShareChoicesButton.svelte +26 -0
- package/dist/components/deployment/ShareChoicesButton.svelte.d.ts +18 -0
- package/dist/components/deployment/StrategyPage.svelte +70 -0
- package/dist/components/deployment/StrategyPage.svelte.d.ts +19 -0
- package/dist/components/deployment/TokenIOInput.svelte +62 -0
- package/dist/components/deployment/TokenIOInput.svelte.d.ts +22 -0
- package/dist/components/deployment/TokenIOSection.svelte +17 -0
- package/dist/components/deployment/TokenIOSection.svelte.d.ts +21 -0
- package/dist/components/deployment/ValidStrategiesSection.svelte +25 -0
- package/dist/components/deployment/ValidStrategiesSection.svelte.d.ts +19 -0
- package/dist/components/deployment/getDeploymentTransactionArgs.d.ts +17 -0
- package/dist/components/deployment/getDeploymentTransactionArgs.js +24 -0
- package/dist/components/detail/DepositOrWithdrawButtons.svelte +44 -0
- package/dist/components/detail/DepositOrWithdrawButtons.svelte.d.ts +26 -0
- package/dist/components/detail/OrderDetail.svelte +195 -0
- package/dist/components/detail/OrderDetail.svelte.d.ts +36 -0
- package/dist/components/detail/TanstackOrderQuote.svelte +173 -0
- package/dist/components/detail/TanstackOrderQuote.svelte.d.ts +22 -0
- package/dist/components/detail/TanstackPageContentDetail.svelte +56 -0
- package/dist/components/detail/TanstackPageContentDetail.svelte.d.ts +31 -0
- package/dist/components/detail/VaultDetail.svelte +178 -0
- package/dist/components/detail/VaultDetail.svelte.d.ts +35 -0
- package/dist/components/dropdown/DropdownActiveSubgraphs.svelte +38 -0
- package/dist/components/dropdown/DropdownActiveSubgraphs.svelte.d.ts +21 -0
- package/dist/components/dropdown/DropdownCheckbox.svelte +77 -0
- package/dist/components/dropdown/DropdownCheckbox.svelte.d.ts +26 -0
- package/dist/components/dropdown/DropdownOrderListAccounts.svelte +15 -0
- package/dist/components/dropdown/DropdownOrderListAccounts.svelte.d.ts +20 -0
- package/dist/components/dropdown/DropdownOrderStatus.svelte +31 -0
- package/dist/components/dropdown/DropdownOrderStatus.svelte.d.ts +19 -0
- package/dist/components/dropdown/DropdownRadio.svelte +45 -0
- package/dist/components/dropdown/DropdownRadio.svelte.d.ts +30 -0
- package/dist/components/icon/RainLogo.svelte +54 -0
- package/dist/components/icon/RainLogo.svelte.d.ts +25 -0
- package/dist/components/icon/Refresh.svelte +57 -0
- package/dist/components/icon/Refresh.svelte.d.ts +40 -0
- package/dist/components/input/InputHex.svelte +42 -0
- package/dist/components/input/InputHex.svelte.d.ts +19 -0
- package/dist/components/input/InputOrderHash.svelte +22 -0
- package/dist/components/input/InputOrderHash.svelte.d.ts +20 -0
- package/dist/components/input/InputRegistryUrl.svelte +18 -0
- package/dist/components/input/InputRegistryUrl.svelte.d.ts +16 -0
- package/dist/components/input/InputToken.svelte +53 -0
- package/dist/components/input/InputToken.svelte.d.ts +19 -0
- package/dist/components/input/InputTokenAmount.svelte +63 -0
- package/dist/components/input/InputTokenAmount.svelte.d.ts +21 -0
- package/dist/components/tables/OrderAPY.svelte +57 -0
- package/dist/components/tables/OrderAPY.svelte.d.ts +19 -0
- package/dist/components/tables/OrderTradesListTable.svelte +145 -0
- package/dist/components/tables/OrderTradesListTable.svelte.d.ts +21 -0
- package/dist/components/tables/OrderVaultsVolTable.svelte +67 -0
- package/dist/components/tables/OrderVaultsVolTable.svelte.d.ts +19 -0
- package/dist/components/tables/OrdersListTable.svelte +181 -0
- package/dist/components/tables/OrdersListTable.svelte.d.ts +35 -0
- package/dist/components/tables/VaultBalanceChangesTable.svelte +74 -0
- package/dist/components/tables/VaultBalanceChangesTable.svelte.d.ts +17 -0
- package/dist/components/tables/VaultsListTable.svelte +229 -0
- package/dist/components/tables/VaultsListTable.svelte.d.ts +40 -0
- package/dist/components/wallet/WalletConnect.svelte +28 -0
- package/dist/components/wallet/WalletConnect.svelte.d.ts +23 -0
- package/dist/errors/DeploymentStepsError.d.ts +24 -0
- package/dist/errors/DeploymentStepsError.js +45 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +89 -0
- package/dist/queries/constants.d.ts +2 -0
- package/dist/queries/constants.js +2 -0
- package/dist/queries/keys.d.ts +9 -0
- package/dist/queries/keys.js +9 -0
- package/dist/queries/queryClient.d.ts +3 -0
- package/dist/queries/queryClient.js +16 -0
- package/dist/services/getExplorerLink.d.ts +1 -0
- package/dist/services/getExplorerLink.js +10 -0
- package/dist/services/handleShareChoices.d.ts +2 -0
- package/dist/services/handleShareChoices.js +10 -0
- package/dist/services/historicalOrderCharts.d.ts +12 -0
- package/dist/services/historicalOrderCharts.js +496 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +1 -0
- package/dist/services/registry.d.ts +25 -0
- package/dist/services/registry.js +133 -0
- package/dist/services/time.d.ts +6 -0
- package/dist/services/time.js +17 -0
- package/dist/stores/transactionStore.d.ts +98 -0
- package/dist/stores/transactionStore.js +303 -0
- package/dist/test/matchers.d.ts +6 -0
- package/dist/test/matchers.js +4 -0
- package/dist/types/appStores.d.ts +19 -0
- package/dist/types/appStores.js +1 -0
- package/dist/types/modal.d.ts +20 -0
- package/dist/types/modal.js +1 -0
- package/dist/types/strategy.d.ts +10 -0
- package/dist/types/strategy.js +1 -0
- package/dist/types/transaction.d.ts +27 -0
- package/dist/types/transaction.js +1 -0
- package/dist/utils/breadcrumbs.d.ts +5 -0
- package/dist/utils/breadcrumbs.js +9 -0
- package/dist/utils/codeMirrorThemes.d.ts +2 -0
- package/dist/utils/codeMirrorThemes.js +86 -0
- package/dist/utils/hex.d.ts +2 -0
- package/dist/utils/hex.js +3 -0
- package/dist/utils/lightweightChartsThemes.d.ts +52 -0
- package/dist/utils/lightweightChartsThemes.js +21 -0
- package/dist/utils/number.d.ts +14 -0
- package/dist/utils/number.js +43 -0
- package/dist/utils/time.d.ts +12 -0
- package/dist/utils/time.js +27 -0
- package/dist/utils/vault.d.ts +2 -0
- package/dist/utils/vault.js +29 -0
- package/package.json +86 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} IconTelegramProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} IconTelegramEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} IconTelegramSlots */
|
|
4
|
+
export default class IconTelegram extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type IconTelegramProps = typeof __propDef.props;
|
|
11
|
+
export type IconTelegramEvents = typeof __propDef.events;
|
|
12
|
+
export type IconTelegramSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
exports?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>import icon from "../assets/walletconnect.svg?raw";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
5
|
+
<div class="icon-walletconnect">{@html icon}</div>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
:global(.icon-walletconnect svg) {
|
|
9
|
+
height: 1.5rem;
|
|
10
|
+
width: auto;
|
|
11
|
+
fill: white;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type IconWalletConnectProps = typeof __propDef.props;
|
|
12
|
+
export type IconWalletConnectEvents = typeof __propDef.events;
|
|
13
|
+
export type IconWalletConnectSlots = typeof __propDef.slots;
|
|
14
|
+
export default class IconWalletConnect extends SvelteComponent<IconWalletConnectProps, IconWalletConnectEvents, IconWalletConnectSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<script>import ExclamationCircleSolid from "flowbite-svelte-icons/ExclamationCircleSolid.svelte";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<div
|
|
5
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-yellow-100 text-yellow-500 dark:bg-yellow-800 dark:text-yellow-200"
|
|
6
|
+
>
|
|
7
|
+
<ExclamationCircleSolid class="h-5 w-5" />
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type IconWarningProps = typeof __propDef.props;
|
|
12
|
+
export type IconWarningEvents = typeof __propDef.events;
|
|
13
|
+
export type IconWarningSlots = typeof __propDef.slots;
|
|
14
|
+
export default class IconWarning extends SvelteComponent<IconWarningProps, IconWarningEvents, IconWarningSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { Heading, Text, BlockQuote } from '@rainlanguage/ui-components';
|
|
3
|
+
import Markdown from 'svelte-markdown';
|
|
4
|
+
import { onMount } from 'svelte';
|
|
5
|
+
|
|
6
|
+
let source = '';
|
|
7
|
+
|
|
8
|
+
onMount(async () => {
|
|
9
|
+
try {
|
|
10
|
+
const response = await fetch(
|
|
11
|
+
'https://raw.githubusercontent.com/rainlanguage/decentralicense/refs/heads/master/README.md'
|
|
12
|
+
);
|
|
13
|
+
if (response.ok) {
|
|
14
|
+
source = await response.text();
|
|
15
|
+
}
|
|
16
|
+
} catch {
|
|
17
|
+
source = '';
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<Markdown
|
|
23
|
+
{source}
|
|
24
|
+
renderers={{
|
|
25
|
+
text: Text,
|
|
26
|
+
heading: Heading,
|
|
27
|
+
blockquote: BlockQuote
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} LicenseProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} LicenseEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} LicenseSlots */
|
|
4
|
+
export default class License extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type LicenseProps = typeof __propDef.props;
|
|
11
|
+
export type LicenseEvents = typeof __propDef.events;
|
|
12
|
+
export type LicenseSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
exports?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<script generics="T">import { isEmpty } from "lodash";
|
|
2
|
+
import { Alert, Tooltip } from "flowbite-svelte";
|
|
3
|
+
import DropdownActiveSubgraphs from "./dropdown/DropdownActiveSubgraphs.svelte";
|
|
4
|
+
import DropdownOrderStatus from "./dropdown/DropdownOrderStatus.svelte";
|
|
5
|
+
import DropdownOrderListAccounts from "./dropdown/DropdownOrderListAccounts.svelte";
|
|
6
|
+
import InputOrderHash from "./input/InputOrderHash.svelte";
|
|
7
|
+
import CheckboxZeroBalanceVault from "./CheckboxZeroBalanceVault.svelte";
|
|
8
|
+
import CheckboxMyItemsOnly from "./CheckboxMyItemsOnly.svelte";
|
|
9
|
+
export let settings;
|
|
10
|
+
export let accounts;
|
|
11
|
+
export let hideZeroBalanceVaults;
|
|
12
|
+
export let activeAccountsItems;
|
|
13
|
+
export let showMyItemsOnly;
|
|
14
|
+
export let activeSubgraphs;
|
|
15
|
+
export let activeOrderStatus;
|
|
16
|
+
export let orderHash;
|
|
17
|
+
export let isVaultsPage;
|
|
18
|
+
export let isOrdersPage;
|
|
19
|
+
export let signerAddress;
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<div
|
|
23
|
+
class="grid w-full items-center gap-4 md:flex md:justify-end lg:min-w-[600px]"
|
|
24
|
+
style="grid-template-columns: repeat(2, minmax(0, 1fr));"
|
|
25
|
+
>
|
|
26
|
+
{#if isEmpty($settings?.networks)}
|
|
27
|
+
<Alert color="gray" data-testid="no-networks-alert" class="w-full">
|
|
28
|
+
No networks added to <a class="underline" href="/settings">settings</a>
|
|
29
|
+
</Alert>
|
|
30
|
+
{:else}
|
|
31
|
+
{#if $accounts && !Object.values($accounts).length}
|
|
32
|
+
<div class="mt-4 w-full lg:w-auto" data-testid="my-items-only">
|
|
33
|
+
<CheckboxMyItemsOnly
|
|
34
|
+
context={isVaultsPage ? 'vaults' : 'orders'}
|
|
35
|
+
{showMyItemsOnly}
|
|
36
|
+
{signerAddress}
|
|
37
|
+
/>
|
|
38
|
+
{#if !$signerAddress}
|
|
39
|
+
<Tooltip>Connect a wallet to filter by {isVaultsPage ? 'vault' : 'order'} owner</Tooltip>
|
|
40
|
+
{/if}
|
|
41
|
+
</div>
|
|
42
|
+
{/if}
|
|
43
|
+
{#if isVaultsPage}
|
|
44
|
+
<div class="mt-4 w-full lg:w-auto">
|
|
45
|
+
<CheckboxZeroBalanceVault {hideZeroBalanceVaults} />
|
|
46
|
+
</div>
|
|
47
|
+
{/if}
|
|
48
|
+
|
|
49
|
+
{#if isOrdersPage}
|
|
50
|
+
<InputOrderHash {orderHash} />
|
|
51
|
+
<DropdownOrderStatus {activeOrderStatus} />
|
|
52
|
+
{/if}
|
|
53
|
+
{#if $accounts && Object.values($accounts).length > 0}
|
|
54
|
+
<DropdownOrderListAccounts {accounts} {activeAccountsItems} />
|
|
55
|
+
{/if}
|
|
56
|
+
<DropdownActiveSubgraphs settings={$settings} {activeSubgraphs} />
|
|
57
|
+
{/if}
|
|
58
|
+
</div>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { Readable, Writable } from 'svelte/store';
|
|
3
|
+
import type { ConfigSource } from '@rainlanguage/orderbook/js_api';
|
|
4
|
+
declare class __sveltets_Render<T> {
|
|
5
|
+
props(): {
|
|
6
|
+
settings: Writable<ConfigSource | undefined>;
|
|
7
|
+
accounts: Readable<Record<string, string>> | undefined;
|
|
8
|
+
hideZeroBalanceVaults: Writable<boolean>;
|
|
9
|
+
activeAccountsItems: Writable<Record<string, string>> | undefined;
|
|
10
|
+
showMyItemsOnly: Writable<boolean>;
|
|
11
|
+
activeSubgraphs: Writable<Record<string, string>>;
|
|
12
|
+
activeOrderStatus: Writable<boolean | undefined>;
|
|
13
|
+
orderHash: Writable<string>;
|
|
14
|
+
isVaultsPage: boolean;
|
|
15
|
+
isOrdersPage: boolean;
|
|
16
|
+
signerAddress: Writable<string | null> | undefined;
|
|
17
|
+
};
|
|
18
|
+
events(): {} & {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots(): {};
|
|
22
|
+
}
|
|
23
|
+
export type ListViewOrderbookFiltersProps<T> = ReturnType<__sveltets_Render<T>['props']>;
|
|
24
|
+
export type ListViewOrderbookFiltersEvents<T> = ReturnType<__sveltets_Render<T>['events']>;
|
|
25
|
+
export type ListViewOrderbookFiltersSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
|
|
26
|
+
export default class ListViewOrderbookFilters<T> extends SvelteComponent<ListViewOrderbookFiltersProps<T>, ListViewOrderbookFiltersEvents<T>, ListViewOrderbookFiltersSlots<T>> {
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>import { Button } from "flowbite-svelte";
|
|
2
|
+
import Hash, { HashType } from "./Hash.svelte";
|
|
3
|
+
export let orderOrVault;
|
|
4
|
+
export let type;
|
|
5
|
+
export let network;
|
|
6
|
+
export let updateActiveNetworkAndOrderbook;
|
|
7
|
+
let hash;
|
|
8
|
+
$: isOrder = "orderHash" in (orderOrVault || {});
|
|
9
|
+
$: slug = isOrder ? orderOrVault.orderHash : orderOrVault?.id;
|
|
10
|
+
$: hash = isOrder ? orderOrVault.orderHash : orderOrVault?.id || "";
|
|
11
|
+
$: isActive = isOrder ? orderOrVault.active : false;
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<a href={`/${type}/${network}-${slug}`}>
|
|
15
|
+
<Button
|
|
16
|
+
class="mr-1 mt-1 px-2 py-1 text-sm"
|
|
17
|
+
color={isActive ? 'green' : 'yellow'}
|
|
18
|
+
data-testid="vault-order-input"
|
|
19
|
+
data-id={slug}
|
|
20
|
+
on:click={() => {
|
|
21
|
+
updateActiveNetworkAndOrderbook(network);
|
|
22
|
+
}}><Hash type={HashType.Identifier} value={hash} copyOnClick={false} /></Button
|
|
23
|
+
>
|
|
24
|
+
</a>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { SgOrderAsIO, SgOrder, SgVault } from '@rainlanguage/orderbook/js_api';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
orderOrVault: SgOrder | SgVault | SgOrderAsIO;
|
|
6
|
+
type: "orders" | "vaults";
|
|
7
|
+
network: string;
|
|
8
|
+
updateActiveNetworkAndOrderbook: (subgraphName: string) => void;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
exports?: {} | undefined;
|
|
15
|
+
bindings?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type OrderOrVaultHashProps = typeof __propDef.props;
|
|
18
|
+
export type OrderOrVaultHashEvents = typeof __propDef.events;
|
|
19
|
+
export type OrderOrVaultHashSlots = typeof __propDef.slots;
|
|
20
|
+
export default class OrderOrVaultHash extends SvelteComponent<OrderOrVaultHashProps, OrderOrVaultHashEvents, OrderOrVaultHashSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script>import { Breadcrumb, BreadcrumbItem } from "flowbite-svelte";
|
|
2
|
+
import { generateBreadcrumbs } from "../utils/breadcrumbs";
|
|
3
|
+
export let title;
|
|
4
|
+
export let pathname;
|
|
5
|
+
$: breadcrumbs = generateBreadcrumbs(pathname);
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class="mb-4 flex w-full items-center">
|
|
9
|
+
<div class="flex-grow">
|
|
10
|
+
<Breadcrumb
|
|
11
|
+
olClass="inline-flex items-center rtl:space-x-reverse"
|
|
12
|
+
aria-label="Default breadcrumb example"
|
|
13
|
+
>
|
|
14
|
+
<BreadcrumbItem href="/" home></BreadcrumbItem>
|
|
15
|
+
{#each breadcrumbs as crumb}
|
|
16
|
+
<BreadcrumbItem
|
|
17
|
+
href={crumb.href}
|
|
18
|
+
linkClass="mx-2 text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white first-letter:uppercase"
|
|
19
|
+
>{crumb.label}</BreadcrumbItem
|
|
20
|
+
>
|
|
21
|
+
{/each}
|
|
22
|
+
<BreadcrumbItem
|
|
23
|
+
spanClass="mx-2 text-sm font-medium text-gray-700 dark:text-gray-300 first-letter:uppercase"
|
|
24
|
+
><span data-testid="breadcrumb-page-title">{title}</span></BreadcrumbItem
|
|
25
|
+
>
|
|
26
|
+
</Breadcrumb>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="flex-1">
|
|
29
|
+
<div class="flex justify-end space-x-2">
|
|
30
|
+
<slot name="actions" />
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
title: string;
|
|
5
|
+
pathname: string;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
actions: {};
|
|
12
|
+
};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type PageHeaderProps = typeof __propDef.props;
|
|
17
|
+
export type PageHeaderEvents = typeof __propDef.events;
|
|
18
|
+
export type PageHeaderSlots = typeof __propDef.slots;
|
|
19
|
+
export default class PageHeader extends SvelteComponent<PageHeaderProps, PageHeaderEvents, PageHeaderSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<script generics="T">import { invalidateIdQuery } from "../queries/queryClient";
|
|
2
|
+
import Refresh from "./icon/Refresh.svelte";
|
|
3
|
+
import { Button, Table, TableBody, TableBodyRow, TableHead } from "flowbite-svelte";
|
|
4
|
+
import { createEventDispatcher } from "svelte";
|
|
5
|
+
import { useQueryClient } from "@tanstack/svelte-query";
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
const dispatch = createEventDispatcher();
|
|
8
|
+
export let queryKey;
|
|
9
|
+
export let query;
|
|
10
|
+
export let emptyMessage = "None found";
|
|
11
|
+
export let rowHoverable = true;
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<div data-testid="title" class="flex h-16 w-full items-center justify-end">
|
|
15
|
+
<slot name="info" />
|
|
16
|
+
<slot name="timeFilter" />
|
|
17
|
+
<slot name="title" />
|
|
18
|
+
<Refresh
|
|
19
|
+
class="ml-2 h-8 w-5 cursor-pointer text-gray-400 dark:text-gray-400"
|
|
20
|
+
data-testid="refreshButton"
|
|
21
|
+
spin={$query.isLoading || $query.isFetching}
|
|
22
|
+
on:click={async () => {
|
|
23
|
+
if (queryKey) {
|
|
24
|
+
await invalidateIdQuery(queryClient, queryKey);
|
|
25
|
+
}
|
|
26
|
+
$query.refetch();
|
|
27
|
+
}}
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
{#if $query.data?.pages[0].length === 0}
|
|
31
|
+
<div data-testid="emptyMessage" class="text-center text-gray-900 dark:text-white">
|
|
32
|
+
{emptyMessage}
|
|
33
|
+
</div>
|
|
34
|
+
{:else if $query.data}
|
|
35
|
+
<Table
|
|
36
|
+
divClass="cursor-pointer rounded-lg overflow-auto dark:border-none border"
|
|
37
|
+
hoverable={rowHoverable}
|
|
38
|
+
>
|
|
39
|
+
<TableHead data-testid="head">
|
|
40
|
+
<slot name="head" />
|
|
41
|
+
</TableHead>
|
|
42
|
+
<TableBody>
|
|
43
|
+
{#each $query.data?.pages as page}
|
|
44
|
+
{#each page as item}
|
|
45
|
+
<TableBodyRow
|
|
46
|
+
class="whitespace-nowrap"
|
|
47
|
+
data-testid="bodyRow"
|
|
48
|
+
on:click={() => {
|
|
49
|
+
dispatch('clickRow', { item });
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
<slot name="bodyRow" {item} />
|
|
53
|
+
</TableBodyRow>
|
|
54
|
+
{/each}
|
|
55
|
+
{/each}
|
|
56
|
+
</TableBody>
|
|
57
|
+
</Table>
|
|
58
|
+
<div class="mt-2 flex justify-center">
|
|
59
|
+
<Button
|
|
60
|
+
data-testid="loadMoreButton"
|
|
61
|
+
size="xs"
|
|
62
|
+
color="dark"
|
|
63
|
+
on:click={() => $query.fetchNextPage()}
|
|
64
|
+
disabled={!$query.hasNextPage || $query.isFetchingNextPage}
|
|
65
|
+
>
|
|
66
|
+
{#if $query.isFetchingNextPage}
|
|
67
|
+
Loading more...
|
|
68
|
+
{:else if $query.hasNextPage}
|
|
69
|
+
Load More
|
|
70
|
+
{:else}Nothing more to load{/if}
|
|
71
|
+
</Button>
|
|
72
|
+
</div>
|
|
73
|
+
{/if}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { CreateInfiniteQueryResult, InfiniteData } from '@tanstack/svelte-query';
|
|
3
|
+
declare class __sveltets_Render<T> {
|
|
4
|
+
props(): {
|
|
5
|
+
queryKey: string | undefined;
|
|
6
|
+
query: CreateInfiniteQueryResult<InfiniteData<T[], unknown>, Error>;
|
|
7
|
+
emptyMessage?: string;
|
|
8
|
+
rowHoverable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
events(): {
|
|
11
|
+
clickRow: CustomEvent<any>;
|
|
12
|
+
} & {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots(): {
|
|
16
|
+
info: {};
|
|
17
|
+
timeFilter: {};
|
|
18
|
+
title: {};
|
|
19
|
+
head: {};
|
|
20
|
+
bodyRow: {
|
|
21
|
+
item: T;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export type TanstackAppTableProps<T> = ReturnType<__sveltets_Render<T>['props']>;
|
|
26
|
+
export type TanstackAppTableEvents<T> = ReturnType<__sveltets_Render<T>['events']>;
|
|
27
|
+
export type TanstackAppTableSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
|
|
28
|
+
export default class TanstackAppTable<T> extends SvelteComponent<TanstackAppTableProps<T>, TanstackAppTableEvents<T>, TanstackAppTableSlots<T>> {
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
3
|
+
export let text;
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
5
|
+
text;
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
7
|
+
export let raw;
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
9
|
+
raw;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<div class="my-2 mb-3"><slot /></div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TextProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TextEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TextSlots */
|
|
4
|
+
export default class Text extends SvelteComponent<{
|
|
5
|
+
text: any;
|
|
6
|
+
raw: any;
|
|
7
|
+
}, {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
}, {
|
|
10
|
+
default: {};
|
|
11
|
+
}> {
|
|
12
|
+
}
|
|
13
|
+
export type TextProps = typeof __propDef.props;
|
|
14
|
+
export type TextEvents = typeof __propDef.events;
|
|
15
|
+
export type TextSlots = typeof __propDef.slots;
|
|
16
|
+
import { SvelteComponent } from "svelte";
|
|
17
|
+
declare const __propDef: {
|
|
18
|
+
props: {
|
|
19
|
+
text: any;
|
|
20
|
+
raw: any;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {
|
|
26
|
+
default: {};
|
|
27
|
+
};
|
|
28
|
+
exports?: undefined;
|
|
29
|
+
bindings?: undefined;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script>import ButtonTab from "../ButtonTab.svelte";
|
|
2
|
+
import { dateTimestamp, TIME_DELTA_1_YEAR, TIME_DELTA_30_DAYS } from "../../services/time";
|
|
3
|
+
import { ButtonGroup } from "flowbite-svelte";
|
|
4
|
+
let now = dateTimestamp(/* @__PURE__ */ new Date());
|
|
5
|
+
let timeDelta;
|
|
6
|
+
function setNow() {
|
|
7
|
+
now = dateTimestamp(/* @__PURE__ */ new Date());
|
|
8
|
+
}
|
|
9
|
+
export let startTimestamp;
|
|
10
|
+
export let endTimestamp;
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<ButtonGroup class="bg-gray-800" data-testid="lightweightChartYearButtons">
|
|
14
|
+
<ButtonTab
|
|
15
|
+
on:click={() => {
|
|
16
|
+
setNow();
|
|
17
|
+
timeDelta = undefined;
|
|
18
|
+
startTimestamp = undefined;
|
|
19
|
+
endTimestamp = undefined;
|
|
20
|
+
}}
|
|
21
|
+
active={timeDelta === undefined}
|
|
22
|
+
size="xs"
|
|
23
|
+
class="px-2 py-1">All Time</ButtonTab
|
|
24
|
+
>
|
|
25
|
+
<ButtonTab
|
|
26
|
+
on:click={() => {
|
|
27
|
+
setNow();
|
|
28
|
+
timeDelta = TIME_DELTA_1_YEAR;
|
|
29
|
+
startTimestamp = now - TIME_DELTA_1_YEAR;
|
|
30
|
+
endTimestamp = now;
|
|
31
|
+
}}
|
|
32
|
+
active={timeDelta === TIME_DELTA_1_YEAR}
|
|
33
|
+
size="xs"
|
|
34
|
+
class="px-2 py-1">Last Year</ButtonTab
|
|
35
|
+
>
|
|
36
|
+
<ButtonTab
|
|
37
|
+
on:click={() => {
|
|
38
|
+
setNow();
|
|
39
|
+
timeDelta = TIME_DELTA_30_DAYS;
|
|
40
|
+
startTimestamp = now - TIME_DELTA_30_DAYS;
|
|
41
|
+
endTimestamp = now;
|
|
42
|
+
}}
|
|
43
|
+
active={timeDelta === TIME_DELTA_30_DAYS}
|
|
44
|
+
size="xs"
|
|
45
|
+
class="px-2 py-1">Last Month</ButtonTab
|
|
46
|
+
>
|
|
47
|
+
</ButtonGroup>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
startTimestamp: number | undefined;
|
|
5
|
+
endTimestamp: number | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type ApyTimeFiltersProps = typeof __propDef.props;
|
|
15
|
+
export type ApyTimeFiltersEvents = typeof __propDef.events;
|
|
16
|
+
export type ApyTimeFiltersSlots = typeof __propDef.slots;
|
|
17
|
+
export default class ApyTimeFilters extends SvelteComponent<ApyTimeFiltersProps, ApyTimeFiltersEvents, ApyTimeFiltersSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script>import ButtonTab from "../ButtonTab.svelte";
|
|
2
|
+
import { ButtonGroup } from "flowbite-svelte";
|
|
3
|
+
const TIME_DELTA_24_HOURS = 60 * 60 * 24;
|
|
4
|
+
const TIME_DELTA_7_DAYS = TIME_DELTA_24_HOURS * 7;
|
|
5
|
+
const TIME_DELTA_30_DAYS = TIME_DELTA_24_HOURS * 30;
|
|
6
|
+
const TIME_DELTA_1_YEAR = TIME_DELTA_24_HOURS * 365;
|
|
7
|
+
export let timeDelta = TIME_DELTA_1_YEAR;
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<ButtonGroup class="bg-gray-800" data-testid="lightweightChartYearButtons">
|
|
11
|
+
<ButtonTab
|
|
12
|
+
on:click={() => (timeDelta = TIME_DELTA_1_YEAR)}
|
|
13
|
+
active={timeDelta === TIME_DELTA_1_YEAR}
|
|
14
|
+
size="xs"
|
|
15
|
+
class="px-2 py-1">1 Year</ButtonTab
|
|
16
|
+
>
|
|
17
|
+
<ButtonTab
|
|
18
|
+
on:click={() => (timeDelta = TIME_DELTA_30_DAYS)}
|
|
19
|
+
active={timeDelta === TIME_DELTA_30_DAYS}
|
|
20
|
+
size="xs"
|
|
21
|
+
class="px-2 py-1">30 Days</ButtonTab
|
|
22
|
+
>
|
|
23
|
+
<ButtonTab
|
|
24
|
+
on:click={() => (timeDelta = TIME_DELTA_7_DAYS)}
|
|
25
|
+
active={timeDelta === TIME_DELTA_7_DAYS}
|
|
26
|
+
size="xs"
|
|
27
|
+
class="px-2 py-1">7 Days</ButtonTab
|
|
28
|
+
>
|
|
29
|
+
<ButtonTab
|
|
30
|
+
on:click={() => (timeDelta = TIME_DELTA_24_HOURS)}
|
|
31
|
+
active={timeDelta === TIME_DELTA_24_HOURS}
|
|
32
|
+
size="xs"
|
|
33
|
+
class="px-2 py-1">24 Hours</ButtonTab
|
|
34
|
+
>
|
|
35
|
+
</ButtonGroup>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
timeDelta?: number;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
exports?: {} | undefined;
|
|
11
|
+
bindings?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type ChartTimeFiltersProps = typeof __propDef.props;
|
|
14
|
+
export type ChartTimeFiltersEvents = typeof __propDef.events;
|
|
15
|
+
export type ChartTimeFiltersSlots = typeof __propDef.slots;
|
|
16
|
+
export default class ChartTimeFilters extends SvelteComponent<ChartTimeFiltersProps, ChartTimeFiltersEvents, ChartTimeFiltersSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|