feat(ui): interactive graph, strip context menus, days by activity, message times, limit status words
This commit is contained in:
1 parent
256b2a68d6
commit
d41f18504c
27 files changed
+1619
-381
No files matched your search
@@ -24,6 +24,7 @@
|
||||
onChanged,
|
||||
class: className = "",
|
||||
children,
|
||||
trigger,
|
||||
}: {
|
||||
client: ApiClient;
|
||||
id: string;
|
||||
@@ -35,6 +36,9 @@
|
||||
onChanged: () => void;
|
||||
class?: string;
|
||||
children?: Snippet;
|
||||
// Render the trigger yourself with these props spread on it - the strip
|
||||
// stays a strip instead of sitting inside a wrapper div.
|
||||
trigger?: Snippet<[Record<string, unknown>]>;
|
||||
} = $props();
|
||||
|
||||
const host = usePanelHost();
|
||||
@@ -93,9 +97,17 @@
|
||||
|
||||
{#if mode === "context"}
|
||||
<ContextMenu.Root bind:open>
|
||||
<ContextMenu.Trigger class={className}>
|
||||
{@render children?.()}
|
||||
</ContextMenu.Trigger>
|
||||
{#if trigger}
|
||||
<ContextMenu.Trigger>
|
||||
{#snippet child({ props })}
|
||||
{@render trigger(props)}
|
||||
{/snippet}
|
||||
</ContextMenu.Trigger>
|
||||
{:else}
|
||||
<ContextMenu.Trigger class={className}>
|
||||
{@render children?.()}
|
||||
</ContextMenu.Trigger>
|
||||
{/if}
|
||||
<ContextMenu.Content class="min-w-52">
|
||||
{@render body(ContextMenu)}
|
||||
</ContextMenu.Content>
|
||||
|
||||
Reference in new issue
Block a user