@svadmin/ui 0.122.0 → 0.126.0
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/dist/app.css +581 -4
- package/dist/app.theme.css +581 -4
- package/dist/components/AbacPolicyMatrix.svelte +356 -0
- package/dist/components/AbacPolicyMatrix.svelte.d.ts +30 -0
- package/dist/components/AboutSettings.svelte +1 -1
- package/dist/components/ActionPalette.svelte +272 -0
- package/dist/components/ActionPalette.svelte.d.ts +23 -0
- package/dist/components/AdminCopilotWidget.svelte +316 -0
- package/dist/components/AdminCopilotWidget.svelte.d.ts +33 -0
- package/dist/components/AnnouncementBanner.svelte +12 -1
- package/dist/components/AnnouncementBanner.svelte.d.ts +4 -0
- package/dist/components/ApiPlayground.svelte +255 -0
- package/dist/components/ApiPlayground.svelte.d.ts +24 -0
- package/dist/components/ApiSettings.svelte +1 -1
- package/dist/components/AppearanceSettings.svelte +1 -1
- package/dist/components/ApprovalChainBuilder.svelte +262 -0
- package/dist/components/ApprovalChainBuilder.svelte.d.ts +20 -0
- package/dist/components/ApprovalTimeline.svelte +8 -1
- package/dist/components/AsyncExportModal.svelte +1 -1
- package/dist/components/AudioFeedbackProvider.svelte +1 -1
- package/dist/components/AuditLogDrawer.svelte +2 -2
- package/dist/components/AuditTrailInspector.svelte +448 -0
- package/dist/components/AuditTrailInspector.svelte.d.ts +44 -0
- package/dist/components/AutoTable.svelte +20 -1
- package/dist/components/AutoTable.svelte.d.ts +2 -0
- package/dist/components/BatchEditModal.svelte +266 -0
- package/dist/components/BatchEditModal.svelte.d.ts +27 -0
- package/dist/components/BillingInvoiceDrawer.svelte +206 -0
- package/dist/components/BillingInvoiceDrawer.svelte.d.ts +30 -0
- package/dist/components/ChartAnnotationOverlay.svelte +228 -0
- package/dist/components/ChartAnnotationOverlay.svelte.d.ts +21 -0
- package/dist/components/CheckCard.svelte +1 -1
- package/dist/components/ClusterTopologyGraph.svelte +317 -0
- package/dist/components/ClusterTopologyGraph.svelte.d.ts +31 -0
- package/dist/components/ColumnHeaderFilter.svelte +6 -6
- package/dist/components/ColumnMappingTable.svelte +174 -0
- package/dist/components/ColumnMappingTable.svelte.d.ts +23 -0
- package/dist/components/ConversionFunnel.svelte +1 -1
- package/dist/components/CursorListFooter.svelte +67 -0
- package/dist/components/CursorListFooter.svelte.d.ts +17 -0
- package/dist/components/DashboardGridLayout.svelte +309 -0
- package/dist/components/DashboardGridLayout.svelte.d.ts +30 -0
- package/dist/components/DashboardLayoutStorage.svelte +278 -0
- package/dist/components/DashboardLayoutStorage.svelte.d.ts +23 -0
- package/dist/components/DataFreshnessIndicator.svelte +149 -0
- package/dist/components/DataFreshnessIndicator.svelte.d.ts +20 -0
- package/dist/components/DataImportDropzone.svelte +215 -0
- package/dist/components/DataImportDropzone.svelte.d.ts +24 -0
- package/dist/components/DataLineageGraph.svelte +203 -0
- package/dist/components/DataLineageGraph.svelte.d.ts +26 -0
- package/dist/components/DataMaskPolicyEngine.svelte +291 -0
- package/dist/components/DataMaskPolicyEngine.svelte.d.ts +25 -0
- package/dist/components/DataScopeRuleEditor.svelte +142 -0
- package/dist/components/DataScopeRuleEditor.svelte.d.ts +19 -0
- package/dist/components/DataScreenContainer.svelte +160 -0
- package/dist/components/DataScreenContainer.svelte.d.ts +15 -0
- package/dist/components/DevTools.svelte +3 -3
- package/dist/components/DualApprovalGate.svelte +132 -65
- package/dist/components/DualApprovalGate.svelte.d.ts +20 -1
- package/dist/components/EditableTable.svelte +2 -2
- package/dist/components/ElectronicSealStamp.svelte +102 -0
- package/dist/components/ElectronicSealStamp.svelte.d.ts +14 -0
- package/dist/components/EnvVariableEditor.svelte +284 -0
- package/dist/components/EnvVariableEditor.svelte.d.ts +17 -0
- package/dist/components/ExcelImportWizard.svelte +2 -2
- package/dist/components/FeatureAnnouncementModal.svelte +173 -0
- package/dist/components/FeatureAnnouncementModal.svelte.d.ts +21 -0
- package/dist/components/FieldRenderer.svelte +1 -1
- package/dist/components/FilterTagBar.svelte +210 -0
- package/dist/components/FilterTagBar.svelte.d.ts +23 -0
- package/dist/components/FormulaField.svelte +149 -0
- package/dist/components/FormulaField.svelte.d.ts +18 -0
- package/dist/components/GeoScatterMap.svelte +225 -0
- package/dist/components/GeoScatterMap.svelte.d.ts +22 -0
- package/dist/components/HmacSignatureCalculator.svelte +199 -0
- package/dist/components/HmacSignatureCalculator.svelte.d.ts +10 -0
- package/dist/components/I18nLanguagePackEditor.svelte +208 -0
- package/dist/components/I18nLanguagePackEditor.svelte.d.ts +17 -0
- package/dist/components/ImportPreviewValidator.svelte +239 -0
- package/dist/components/ImportPreviewValidator.svelte.d.ts +26 -0
- package/dist/components/ImportWizard.svelte +2 -2
- package/dist/components/IncidentWarRoomDrawer.svelte +194 -0
- package/dist/components/IncidentWarRoomDrawer.svelte.d.ts +24 -0
- package/dist/components/InputGroup.svelte +133 -0
- package/dist/components/InputGroup.svelte.d.ts +16 -0
- package/dist/components/JsonSchemaForm.svelte +4 -4
- package/dist/components/LightFilter.svelte +2 -2
- package/dist/components/ListPagination.svelte +39 -3
- package/dist/components/LiveStreamLogViewer.svelte +185 -0
- package/dist/components/LiveStreamLogViewer.svelte.d.ts +21 -0
- package/dist/components/MasterSubTableDrawer.svelte +223 -0
- package/dist/components/MasterSubTableDrawer.svelte.d.ts +25 -0
- package/dist/components/MicroAppRouteSync.svelte +185 -0
- package/dist/components/MicroAppRouteSync.svelte.d.ts +12 -0
- package/dist/components/MicroAppSandbox.svelte +200 -0
- package/dist/components/MicroAppSandbox.svelte.d.ts +16 -0
- package/dist/components/MicroAppStateBusIndicator.svelte +159 -0
- package/dist/components/MicroAppStateBusIndicator.svelte.d.ts +12 -0
- package/dist/components/MockDataInterceptor.svelte +292 -0
- package/dist/components/MockDataInterceptor.svelte.d.ts +27 -0
- package/dist/components/OmnibarCommandPalette.svelte +320 -0
- package/dist/components/OmnibarCommandPalette.svelte.d.ts +27 -0
- package/dist/components/PageSkeleton.svelte +19 -5
- package/dist/components/PageSkeleton.svelte.d.ts +5 -3
- package/dist/components/PeriodComparisonCard.svelte +142 -0
- package/dist/components/PeriodComparisonCard.svelte.d.ts +16 -0
- package/dist/components/PermissionMatrix.svelte +1 -1
- package/dist/components/PermissionSimulator.svelte +319 -0
- package/dist/components/PermissionSimulator.svelte.d.ts +34 -0
- package/dist/components/PivotMatrix.svelte +271 -0
- package/dist/components/PivotMatrix.svelte.d.ts +32 -0
- package/dist/components/PlanUsageQuotaBar.svelte +154 -0
- package/dist/components/PlanUsageQuotaBar.svelte.d.ts +26 -0
- package/dist/components/Popconfirm.svelte +20 -8
- package/dist/components/Popconfirm.svelte.d.ts +3 -1
- package/dist/components/ProSkeleton.svelte +4 -0
- package/dist/components/ProSkeleton.svelte.d.ts +2 -0
- package/dist/components/QueryAiExplainer.svelte +148 -0
- package/dist/components/QueryAiExplainer.svelte.d.ts +16 -0
- package/dist/components/QueryBuilder.svelte +456 -0
- package/dist/components/QueryBuilder.svelte.d.ts +33 -0
- package/dist/components/Rate.svelte +19 -2
- package/dist/components/Result.svelte +36 -4
- package/dist/components/Result.svelte.d.ts +4 -2
- package/dist/components/RolePermissionComparator.svelte +273 -0
- package/dist/components/RolePermissionComparator.svelte.d.ts +28 -0
- package/dist/components/RuleExpressionBuilder.svelte +380 -0
- package/dist/components/RuleExpressionBuilder.svelte.d.ts +31 -0
- package/dist/components/ScheduledJobManager.svelte +225 -0
- package/dist/components/ScheduledJobManager.svelte.d.ts +23 -0
- package/dist/components/SchemaVisualModeler.svelte +2 -2
- package/dist/components/ScreenAntiLeakGuard.svelte +88 -0
- package/dist/components/ScreenAntiLeakGuard.svelte.d.ts +12 -0
- package/dist/components/SecureDataExporter.svelte +296 -0
- package/dist/components/SecureDataExporter.svelte.d.ts +29 -0
- package/dist/components/ServerStatusGrid.svelte +179 -0
- package/dist/components/ServerStatusGrid.svelte.d.ts +21 -0
- package/dist/components/SnapshotTimelineReplay.svelte +219 -0
- package/dist/components/SnapshotTimelineReplay.svelte.d.ts +19 -0
- package/dist/components/Spin.svelte +33 -11
- package/dist/components/Spin.svelte.d.ts +7 -4
- package/dist/components/SqlConsole.svelte +247 -0
- package/dist/components/SqlConsole.svelte.d.ts +20 -0
- package/dist/components/StepWizard.svelte +1 -1
- package/dist/components/Steps.svelte +44 -3
- package/dist/components/SystemCapacityForecastCard.svelte +132 -0
- package/dist/components/SystemCapacityForecastCard.svelte.d.ts +19 -0
- package/dist/components/SystemHealthCheckDashboard.svelte +306 -0
- package/dist/components/SystemHealthCheckDashboard.svelte.d.ts +24 -0
- package/dist/components/TableAggregationFooter.svelte +173 -0
- package/dist/components/TableAggregationFooter.svelte.d.ts +22 -0
- package/dist/components/TaskCenter.svelte +37 -29
- package/dist/components/TenantContextSwitcher.svelte +314 -0
- package/dist/components/TenantContextSwitcher.svelte.d.ts +35 -0
- package/dist/components/TenantQuotasMatrix.svelte +229 -0
- package/dist/components/TenantQuotasMatrix.svelte.d.ts +22 -0
- package/dist/components/ThemeSettingsDrawer.svelte +6 -14
- package/dist/components/ThreadedCommentDrawer.svelte +246 -0
- package/dist/components/ThreadedCommentDrawer.svelte.d.ts +26 -0
- package/dist/components/TierFeatureComparison.svelte +147 -0
- package/dist/components/TierFeatureComparison.svelte.d.ts +28 -0
- package/dist/components/Timeline.svelte +12 -3
- package/dist/components/Timeline.svelte.d.ts +2 -0
- package/dist/components/TreeTransferSelect.svelte +333 -0
- package/dist/components/TreeTransferSelect.svelte.d.ts +18 -0
- package/dist/components/VirtualCardGrid.svelte +180 -0
- package/dist/components/VirtualCardGrid.svelte.d.ts +65 -0
- package/dist/components/WebhookSimulator.svelte +263 -0
- package/dist/components/WebhookSimulator.svelte.d.ts +26 -0
- package/dist/components/WidgetContainer.svelte +204 -0
- package/dist/components/WidgetContainer.svelte.d.ts +31 -0
- package/dist/components/WorkflowExecutionTracker.svelte +131 -0
- package/dist/components/WorkflowExecutionTracker.svelte.d.ts +19 -0
- package/dist/components/WorkflowGraphDesigner.svelte +202 -0
- package/dist/components/WorkflowGraphDesigner.svelte.d.ts +24 -0
- package/dist/components/WorkflowNodeInspector.svelte +217 -0
- package/dist/components/WorkflowNodeInspector.svelte.d.ts +24 -0
- package/dist/components/WorkflowStepper.svelte +1 -1
- package/dist/components/list-i18n.d.ts +7 -0
- package/dist/components/list-i18n.js +14 -0
- package/dist/components/ui/badge/badge.svelte +3 -3
- package/dist/components/ui/button/button.svelte +3 -1
- package/dist/components/ui/button/button.svelte.d.ts +1 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +1 -1
- package/dist/components/useDynamicLocale.d.svelte.ts +1 -0
- package/dist/components/useDynamicLocale.svelte.d.ts +10 -0
- package/dist/components/useDynamicLocale.svelte.js +40 -0
- package/dist/components/useFormulaEngine.d.svelte.ts +1 -0
- package/dist/components/useFormulaEngine.svelte.d.ts +9 -0
- package/dist/components/useFormulaEngine.svelte.js +209 -0
- package/dist/components/useMicroAppState.d.svelte.ts +1 -0
- package/dist/components/useMicroAppState.svelte.d.ts +17 -0
- package/dist/components/useMicroAppState.svelte.js +38 -0
- package/dist/components/useStorageCache.d.svelte.ts +1 -0
- package/dist/components/useStorageCache.svelte.d.ts +49 -0
- package/dist/components/useStorageCache.svelte.js +229 -0
- package/dist/components.css +5 -1
- package/dist/index.d.ts +75 -3
- package/dist/index.js +118 -2
- package/package.json +4 -4
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import {
|
|
4
|
+
PieChart,
|
|
5
|
+
AlertTriangle,
|
|
6
|
+
Zap,
|
|
7
|
+
HardDrive,
|
|
8
|
+
Users,
|
|
9
|
+
Cpu,
|
|
10
|
+
ArrowUpRight,
|
|
11
|
+
} from '@lucide/svelte';
|
|
12
|
+
import { useTranslation } from '@svadmin/core/i18n';
|
|
13
|
+
import { cn } from '../utils.js';
|
|
14
|
+
import { Button } from './ui/button/index.js';
|
|
15
|
+
|
|
16
|
+
export interface TenantQuotaItem {
|
|
17
|
+
id: string;
|
|
18
|
+
resourceName: string;
|
|
19
|
+
used: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
unit?: string | undefined;
|
|
22
|
+
icon?: 'api' | 'storage' | 'seats' | 'compute' | undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface TenantQuotasMatrixProps {
|
|
26
|
+
tenantName?: string | undefined;
|
|
27
|
+
planName?: string | undefined;
|
|
28
|
+
quotas?: TenantQuotaItem[] | undefined;
|
|
29
|
+
title?: string | undefined;
|
|
30
|
+
class?: string | undefined;
|
|
31
|
+
onUpgradePlan?: (() => void) | undefined;
|
|
32
|
+
onRequestQuotaIncrease?: ((quota: TenantQuotaItem) => void) | undefined;
|
|
33
|
+
children?: Snippet | undefined;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
let {
|
|
37
|
+
tenantName = 'Acme Global Group',
|
|
38
|
+
planName = 'Enterprise Pro',
|
|
39
|
+
quotas = [
|
|
40
|
+
{ id: 'api_calls', resourceName: '每月 API 调用次数', used: 980000, limit: 1000000, unit: '次', icon: 'api' },
|
|
41
|
+
{ id: 'cloud_storage', resourceName: '分布式对象存储容量', used: 485, limit: 500, unit: 'GB', icon: 'storage' },
|
|
42
|
+
{ id: 'team_seats', resourceName: '企业已分配席位', used: 48, limit: 50, unit: '人', icon: 'seats' },
|
|
43
|
+
{ id: 'gpu_compute', resourceName: 'AI 算力点数消耗', used: 12000, limit: 12000, unit: '点', icon: 'compute' },
|
|
44
|
+
],
|
|
45
|
+
title,
|
|
46
|
+
class: className = '',
|
|
47
|
+
onUpgradePlan,
|
|
48
|
+
onRequestQuotaIncrease,
|
|
49
|
+
children,
|
|
50
|
+
}: TenantQuotasMatrixProps = $props();
|
|
51
|
+
|
|
52
|
+
const i18n = useTranslation();
|
|
53
|
+
const chinese = $derived(i18n.locale.startsWith('zh'));
|
|
54
|
+
|
|
55
|
+
let exhaustedModalQuota = $state<TenantQuotaItem | null>(null);
|
|
56
|
+
|
|
57
|
+
const enrichedQuotas = $derived(
|
|
58
|
+
quotas.map((q) => {
|
|
59
|
+
const percentage = Math.min(100, Math.round((q.used / Math.max(1, q.limit)) * 100));
|
|
60
|
+
const isExhausted = q.used >= q.limit;
|
|
61
|
+
const isNearLimit = percentage >= 80 && !isExhausted;
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
...q,
|
|
65
|
+
percentage,
|
|
66
|
+
isExhausted,
|
|
67
|
+
isNearLimit,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
const resolvedTitle = $derived(title ?? (chinese ? '多租户配额与资源熔断看板' : 'Tenant Resource Quotas Matrix'));
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<div
|
|
77
|
+
data-svadmin-component="TenantQuotasMatrix"
|
|
78
|
+
class={cn(
|
|
79
|
+
'w-full rounded-2xl border border-border bg-card text-card-foreground shadow-xs p-6 space-y-4 flex flex-col text-xs',
|
|
80
|
+
className,
|
|
81
|
+
)}
|
|
82
|
+
>
|
|
83
|
+
<!-- Header Bar -->
|
|
84
|
+
<div class="flex items-center justify-between border-b border-border/70 pb-4">
|
|
85
|
+
<div class="flex items-center gap-2.5">
|
|
86
|
+
<div class="flex h-9 w-9 items-center justify-center rounded-xl bg-primary/10 text-primary border border-primary/20">
|
|
87
|
+
<PieChart class="h-5 w-5" />
|
|
88
|
+
</div>
|
|
89
|
+
<div>
|
|
90
|
+
<h3 class="text-base font-semibold text-foreground">{resolvedTitle}</h3>
|
|
91
|
+
<p class="text-xs text-muted-foreground">{tenantName} · {planName}</p>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
{#if onUpgradePlan}
|
|
96
|
+
<Button size="sm" onclick={onUpgradePlan} class="gap-1 text-xs font-semibold">
|
|
97
|
+
<span>{chinese ? '升级租户套餐' : 'Upgrade Plan'}</span>
|
|
98
|
+
<ArrowUpRight class="h-3.5 w-3.5" />
|
|
99
|
+
</Button>
|
|
100
|
+
{/if}
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<!-- Quota Gauges Grid -->
|
|
104
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
|
105
|
+
{#each enrichedQuotas as quota (quota.id)}
|
|
106
|
+
<div
|
|
107
|
+
class={cn(
|
|
108
|
+
'relative flex flex-col justify-between p-4 rounded-xl border transition-all bg-card shadow-2xs space-y-3',
|
|
109
|
+
quota.isExhausted
|
|
110
|
+
? 'border-destructive/60 ring-2 ring-destructive/20 bg-destructive/5'
|
|
111
|
+
: quota.isNearLimit
|
|
112
|
+
? 'border-warning/60 bg-warning/5'
|
|
113
|
+
: 'border-border/80',
|
|
114
|
+
)}
|
|
115
|
+
>
|
|
116
|
+
<div class="flex items-start justify-between">
|
|
117
|
+
<div class="flex items-center gap-2">
|
|
118
|
+
{#if quota.icon === 'api'}
|
|
119
|
+
<Zap class="h-4 w-4 text-primary" />
|
|
120
|
+
{:else if quota.icon === 'storage'}
|
|
121
|
+
<HardDrive class="h-4 w-4 text-info" />
|
|
122
|
+
{:else if quota.icon === 'seats'}
|
|
123
|
+
<Users class="h-4 w-4 text-success" />
|
|
124
|
+
{:else}
|
|
125
|
+
<Cpu class="h-4 w-4 text-warning" />
|
|
126
|
+
{/if}
|
|
127
|
+
<span class="font-bold text-xs text-foreground truncate max-w-28">{quota.resourceName}</span>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
{#if quota.isExhausted}
|
|
131
|
+
<span class="rounded bg-destructive/15 px-1.5 py-0.2 text-[9px] font-bold text-destructive uppercase">
|
|
132
|
+
100% 熔断
|
|
133
|
+
</span>
|
|
134
|
+
{:else if quota.isNearLimit}
|
|
135
|
+
<span class="rounded bg-warning/15 px-1.5 py-0.2 text-[9px] font-bold text-warning uppercase">
|
|
136
|
+
{quota.percentage}% 告警
|
|
137
|
+
</span>
|
|
138
|
+
{:else}
|
|
139
|
+
<span class="font-mono text-[11px] text-muted-foreground font-semibold">
|
|
140
|
+
{quota.percentage}%
|
|
141
|
+
</span>
|
|
142
|
+
{/if}
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<!-- Numbers Row -->
|
|
146
|
+
<div class="flex items-baseline justify-between font-mono text-xs">
|
|
147
|
+
<span class="font-bold text-foreground text-sm">
|
|
148
|
+
{quota.used.toLocaleString()} <span class="text-[11px] text-muted-foreground font-normal">{quota.unit ?? ''}</span>
|
|
149
|
+
</span>
|
|
150
|
+
<span class="text-muted-foreground text-[11px]">
|
|
151
|
+
/ {quota.limit.toLocaleString()} {quota.unit ?? ''}
|
|
152
|
+
</span>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
<!-- Progress Bar -->
|
|
156
|
+
<div class="h-2 w-full rounded-full bg-muted overflow-hidden">
|
|
157
|
+
<div
|
|
158
|
+
class={cn(
|
|
159
|
+
'h-full rounded-full transition-all duration-300',
|
|
160
|
+
quota.isExhausted ? 'bg-destructive' : quota.isNearLimit ? 'bg-warning' : 'bg-primary',
|
|
161
|
+
)}
|
|
162
|
+
style="width: {quota.percentage}%;"
|
|
163
|
+
></div>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
{#if quota.isExhausted && onRequestQuotaIncrease}
|
|
167
|
+
<button
|
|
168
|
+
type="button"
|
|
169
|
+
onclick={() => (exhaustedModalQuota = quota)}
|
|
170
|
+
class="w-full text-center text-[11px] font-bold text-destructive hover:underline pt-1"
|
|
171
|
+
>
|
|
172
|
+
{chinese ? '⚠️ 配额已用尽,申请临时提额' : 'Request Quota Increase'}
|
|
173
|
+
</button>
|
|
174
|
+
{/if}
|
|
175
|
+
</div>
|
|
176
|
+
{/each}
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
{#if children}
|
|
180
|
+
<div class="pt-2">
|
|
181
|
+
{@render children()}
|
|
182
|
+
</div>
|
|
183
|
+
{/if}
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<!-- Exhausted Warning Dialog -->
|
|
187
|
+
{#if exhaustedModalQuota}
|
|
188
|
+
<div
|
|
189
|
+
role="dialog"
|
|
190
|
+
aria-modal="true"
|
|
191
|
+
aria-label="Quota Exhausted"
|
|
192
|
+
class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-background/80 backdrop-blur-sm"
|
|
193
|
+
>
|
|
194
|
+
<div class="w-full max-w-md rounded-2xl border border-destructive/40 bg-card p-6 shadow-2xl text-xs space-y-3">
|
|
195
|
+
<div class="flex items-start gap-3">
|
|
196
|
+
<div class="flex h-10 w-10 items-center justify-center rounded-xl bg-destructive/15 text-destructive border border-destructive/20 shrink-0">
|
|
197
|
+
<AlertTriangle class="h-5 w-5" />
|
|
198
|
+
</div>
|
|
199
|
+
<div class="flex-1">
|
|
200
|
+
<h4 class="text-sm font-bold text-foreground">
|
|
201
|
+
{chinese ? '当前租户资源配额已耗尽' : 'Resource Quota Exhausted'}
|
|
202
|
+
</h4>
|
|
203
|
+
<p class="text-[11px] text-muted-foreground mt-1 leading-relaxed">
|
|
204
|
+
{chinese
|
|
205
|
+
? `租户已达到 [${exhaustedModalQuota.resourceName}] 上限 (${exhaustedModalQuota.limit.toLocaleString()} ${exhaustedModalQuota.unit ?? ''})。继续执行操作可能被服务端拒绝。`
|
|
206
|
+
: `Quota for ${exhaustedModalQuota.resourceName} has reached 100%.`}
|
|
207
|
+
</p>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<div class="flex justify-end gap-2 pt-3 border-t border-border/70">
|
|
212
|
+
<Button variant="ghost" size="sm" onclick={() => (exhaustedModalQuota = null)}>
|
|
213
|
+
{chinese ? '关闭' : 'Dismiss'}
|
|
214
|
+
</Button>
|
|
215
|
+
{#if onRequestQuotaIncrease}
|
|
216
|
+
<Button
|
|
217
|
+
size="sm"
|
|
218
|
+
onclick={() => {
|
|
219
|
+
if (exhaustedModalQuota) onRequestQuotaIncrease(exhaustedModalQuota);
|
|
220
|
+
exhaustedModalQuota = null;
|
|
221
|
+
}}
|
|
222
|
+
>
|
|
223
|
+
{chinese ? '提交提额工单' : 'Submit Request'}
|
|
224
|
+
</Button>
|
|
225
|
+
{/if}
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
{/if}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
export interface TenantQuotaItem {
|
|
3
|
+
id: string;
|
|
4
|
+
resourceName: string;
|
|
5
|
+
used: number;
|
|
6
|
+
limit: number;
|
|
7
|
+
unit?: string | undefined;
|
|
8
|
+
icon?: 'api' | 'storage' | 'seats' | 'compute' | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface TenantQuotasMatrixProps {
|
|
11
|
+
tenantName?: string | undefined;
|
|
12
|
+
planName?: string | undefined;
|
|
13
|
+
quotas?: TenantQuotaItem[] | undefined;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
class?: string | undefined;
|
|
16
|
+
onUpgradePlan?: (() => void) | undefined;
|
|
17
|
+
onRequestQuotaIncrease?: ((quota: TenantQuotaItem) => void) | undefined;
|
|
18
|
+
children?: Snippet | undefined;
|
|
19
|
+
}
|
|
20
|
+
declare const TenantQuotasMatrix: import("svelte").Component<TenantQuotasMatrixProps, {}, "">;
|
|
21
|
+
type TenantQuotasMatrix = ReturnType<typeof TenantQuotasMatrix>;
|
|
22
|
+
export default TenantQuotasMatrix;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<h3>Navigation</h3>
|
|
97
97
|
<label class="svadmin-theme-settings__field">
|
|
98
98
|
<span>Navigation mode</span>
|
|
99
|
-
<select value={uiPreferences.navigation} onchange={(event) => chooseNavigation((event.currentTarget as HTMLSelectElement).value as 'side' | 'top' | 'mix' | 'split')}>
|
|
99
|
+
<select class="svadmin-select" value={uiPreferences.navigation} onchange={(event) => chooseNavigation((event.currentTarget as HTMLSelectElement).value as 'side' | 'top' | 'mix' | 'split')}>
|
|
100
100
|
<option value="side">Sidebar</option>
|
|
101
101
|
<option value="top">Top bar</option>
|
|
102
102
|
<option value="mix">Mixed</option>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</label>
|
|
106
106
|
<label class="svadmin-theme-settings__field">
|
|
107
107
|
<span>Navigation theme</span>
|
|
108
|
-
<select value={uiPreferences.navigationTheme} onchange={(event) => updateUiPreferences({ navigationTheme: (event.currentTarget as HTMLSelectElement).value as 'light' | 'dark' | 'system' })}>
|
|
108
|
+
<select class="svadmin-select" value={uiPreferences.navigationTheme} onchange={(event) => updateUiPreferences({ navigationTheme: (event.currentTarget as HTMLSelectElement).value as 'light' | 'dark' | 'system' })}>
|
|
109
109
|
<option value="light">Light</option>
|
|
110
110
|
<option value="dark">Dark</option>
|
|
111
111
|
<option value="system">Follow theme</option>
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
</label>
|
|
114
114
|
<label class="svadmin-theme-settings__field">
|
|
115
115
|
<span>Content width</span>
|
|
116
|
-
<select value={uiPreferences.contentWidth} onchange={(event) => updateUiPreferences({ contentWidth: (event.currentTarget as HTMLSelectElement).value as 'fluid' | 'fixed' | 'wide' })}>
|
|
116
|
+
<select class="svadmin-select" value={uiPreferences.contentWidth} onchange={(event) => updateUiPreferences({ contentWidth: (event.currentTarget as HTMLSelectElement).value as 'fluid' | 'fixed' | 'wide' })}>
|
|
117
117
|
<option value="fixed">Fixed</option>
|
|
118
118
|
<option value="fluid">Fluid</option>
|
|
119
119
|
<option value="wide">Wide</option>
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
</label>
|
|
138
138
|
<label class="svadmin-theme-settings__field">
|
|
139
139
|
<span>Motion</span>
|
|
140
|
-
<select value={uiPreferences.motion} onchange={(event) => updateUiPreferences({ motion: (event.currentTarget as HTMLSelectElement).value as 'system' | 'reduced' })}>
|
|
140
|
+
<select class="svadmin-select" value={uiPreferences.motion} onchange={(event) => updateUiPreferences({ motion: (event.currentTarget as HTMLSelectElement).value as 'system' | 'reduced' })}>
|
|
141
141
|
<option value="system">System</option>
|
|
142
142
|
<option value="reduced">Reduced motion</option>
|
|
143
143
|
</select>
|
|
@@ -192,15 +192,7 @@
|
|
|
192
192
|
}
|
|
193
193
|
.svadmin-theme-settings__swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--foreground); }
|
|
194
194
|
.svadmin-theme-settings__field { display: grid; gap: var(--svadmin-space-1); color: var(--foreground); font-size: var(--svadmin-text-label); }
|
|
195
|
-
.svadmin-theme-settings__field select {
|
|
196
|
-
width: 100%;
|
|
197
|
-
height: var(--svadmin-control-h);
|
|
198
|
-
border: 1px solid var(--input);
|
|
199
|
-
border-radius: var(--radius-sm);
|
|
200
|
-
background: var(--background);
|
|
201
|
-
color: var(--foreground);
|
|
202
|
-
padding-inline: var(--svadmin-space-2);
|
|
203
|
-
}
|
|
195
|
+
.svadmin-theme-settings__field select { width: 100%; }
|
|
204
196
|
.svadmin-theme-settings__toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--svadmin-space-4); }
|
|
205
197
|
.svadmin-theme-settings__toggle span { display: grid; gap: 0.1rem; }
|
|
206
198
|
.svadmin-theme-settings__toggle strong { font-size: var(--svadmin-text-label); font-weight: 600; color: var(--foreground); }
|
|
@@ -209,4 +201,4 @@
|
|
|
209
201
|
.svadmin-theme-settings__segmented button { min-height: var(--svadmin-control-h); border: 0; border-inline-end: 1px solid var(--border); background: transparent; color: var(--muted-foreground); font-size: var(--svadmin-text-label); }
|
|
210
202
|
.svadmin-theme-settings__segmented button:last-child { border-inline-end: 0; }
|
|
211
203
|
.svadmin-theme-settings__segmented button[aria-pressed='true'] { background: var(--accent); color: var(--accent-foreground); font-weight: 600; }
|
|
212
|
-
</style>
|
|
204
|
+
</style>
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
MessageSquare,
|
|
4
|
+
Send,
|
|
5
|
+
Reply,
|
|
6
|
+
CheckCircle2,
|
|
7
|
+
Smile,
|
|
8
|
+
Trash2,
|
|
9
|
+
} from '@lucide/svelte';
|
|
10
|
+
import { useTranslation } from '@svadmin/core/i18n';
|
|
11
|
+
import { cn } from '../utils.js';
|
|
12
|
+
import { Button } from './ui/button/index.js';
|
|
13
|
+
import * as Sheet from './ui/sheet/index.js';
|
|
14
|
+
|
|
15
|
+
export interface ThreadedComment {
|
|
16
|
+
id: string;
|
|
17
|
+
author: string;
|
|
18
|
+
avatar?: string | undefined;
|
|
19
|
+
content: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
parentId?: string | undefined;
|
|
22
|
+
isResolved?: boolean | undefined;
|
|
23
|
+
reactions?: Record<string, number> | undefined;
|
|
24
|
+
replies?: ThreadedComment[] | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ThreadedCommentDrawerProps {
|
|
28
|
+
open?: boolean | undefined;
|
|
29
|
+
recordId?: string | number | undefined;
|
|
30
|
+
recordTitle?: string | undefined;
|
|
31
|
+
comments?: ThreadedComment[] | undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
class?: string | undefined;
|
|
34
|
+
onAddComment?: ((content: string, parentId?: string) => void) | undefined;
|
|
35
|
+
onToggleReaction?: ((commentId: string, emoji: string) => void) | undefined;
|
|
36
|
+
onToggleResolved?: ((commentId: string, resolved: boolean) => void) | undefined;
|
|
37
|
+
onDeleteComment?: ((commentId: string) => void) | undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
let {
|
|
41
|
+
open = $bindable(false),
|
|
42
|
+
recordId,
|
|
43
|
+
recordTitle,
|
|
44
|
+
comments = [
|
|
45
|
+
{
|
|
46
|
+
id: 'c1',
|
|
47
|
+
author: '张合规 (Auditor)',
|
|
48
|
+
content: '请核实该记录附带的发票抬头与税号是否与企业开票资料完全一致。',
|
|
49
|
+
createdAt: '10 分钟前',
|
|
50
|
+
isResolved: false,
|
|
51
|
+
reactions: { '👍': 2 },
|
|
52
|
+
replies: [
|
|
53
|
+
{
|
|
54
|
+
id: 'c1-1',
|
|
55
|
+
author: '李财务 (Finance)',
|
|
56
|
+
content: '已核验完毕,金税四期电子发票已在线核销通过。',
|
|
57
|
+
createdAt: '2 分钟前',
|
|
58
|
+
parentId: 'c1',
|
|
59
|
+
reactions: { '✅': 1 },
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
title,
|
|
65
|
+
class: className = '',
|
|
66
|
+
onAddComment,
|
|
67
|
+
onToggleReaction,
|
|
68
|
+
onToggleResolved,
|
|
69
|
+
onDeleteComment,
|
|
70
|
+
}: ThreadedCommentDrawerProps = $props();
|
|
71
|
+
|
|
72
|
+
const i18n = useTranslation();
|
|
73
|
+
const chinese = $derived(i18n.locale.startsWith('zh'));
|
|
74
|
+
|
|
75
|
+
let newCommentText = $state('');
|
|
76
|
+
let replyingToId = $state<string | null>(null);
|
|
77
|
+
|
|
78
|
+
function handleSend() {
|
|
79
|
+
const text = newCommentText.trim();
|
|
80
|
+
if (!text) return;
|
|
81
|
+
onAddComment?.(text, replyingToId ?? undefined);
|
|
82
|
+
newCommentText = '';
|
|
83
|
+
replyingToId = null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const resolvedTitle = $derived(
|
|
87
|
+
title ?? (chinese ? '记录协同讨论与批注流' : 'Threaded Comments & Annotations'),
|
|
88
|
+
);
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<Sheet.Root bind:open side="right">
|
|
92
|
+
<Sheet.Content class={cn('w-full sm:max-w-md p-0 flex flex-col', className)}>
|
|
93
|
+
<!-- Header -->
|
|
94
|
+
<div class="px-6 py-5 border-b border-border/70 bg-card">
|
|
95
|
+
<div class="flex items-center justify-between">
|
|
96
|
+
<div class="flex items-center gap-2.5 text-primary">
|
|
97
|
+
<MessageSquare class="h-5 w-5" />
|
|
98
|
+
<Sheet.Title class="text-base font-semibold text-foreground">
|
|
99
|
+
{resolvedTitle}
|
|
100
|
+
</Sheet.Title>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
{#if recordTitle || recordId}
|
|
104
|
+
<Sheet.Description class="text-xs text-muted-foreground mt-1 truncate">
|
|
105
|
+
{recordTitle ?? `Record #${recordId}`}
|
|
106
|
+
</Sheet.Description>
|
|
107
|
+
{/if}
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<!-- Comments Stream List -->
|
|
111
|
+
<div class="flex-1 overflow-y-auto px-6 py-4 space-y-4">
|
|
112
|
+
{#each comments as comment (comment.id)}
|
|
113
|
+
<div class="rounded-md border border-border/70 bg-card p-3.5 space-y-2 text-xs shadow-2xs">
|
|
114
|
+
<!-- Comment Header -->
|
|
115
|
+
<div class="flex items-center justify-between">
|
|
116
|
+
<div class="flex items-center gap-2">
|
|
117
|
+
<span class="flex h-6 w-6 items-center justify-center rounded-full bg-primary/10 text-primary text-xs font-bold">
|
|
118
|
+
{comment.author.slice(0, 1)}
|
|
119
|
+
</span>
|
|
120
|
+
<span class="font-semibold text-foreground">{comment.author}</span>
|
|
121
|
+
<span class="text-xs text-muted-foreground font-mono">{comment.createdAt}</span>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<div class="flex items-center gap-1">
|
|
125
|
+
{#if comment.isResolved}
|
|
126
|
+
<span class="inline-flex items-center gap-1 rounded bg-success/10 px-1.5 py-0.5 text-xs font-medium text-success">
|
|
127
|
+
<CheckCircle2 class="h-3 w-3" />
|
|
128
|
+
{chinese ? '已解决' : 'Resolved'}
|
|
129
|
+
</span>
|
|
130
|
+
{:else if onToggleResolved}
|
|
131
|
+
<button
|
|
132
|
+
type="button"
|
|
133
|
+
onclick={() => onToggleResolved?.(comment.id, true)}
|
|
134
|
+
class="rounded p-1 text-muted-foreground hover:text-success hover:bg-success/10"
|
|
135
|
+
title={chinese ? '标记为已解决' : 'Mark resolved'}
|
|
136
|
+
>
|
|
137
|
+
<CheckCircle2 class="h-3.5 w-3.5" />
|
|
138
|
+
</button>
|
|
139
|
+
{/if}
|
|
140
|
+
|
|
141
|
+
{#if onDeleteComment}
|
|
142
|
+
<button
|
|
143
|
+
type="button"
|
|
144
|
+
onclick={() => onDeleteComment?.(comment.id)}
|
|
145
|
+
class="rounded p-1 text-muted-foreground hover:text-destructive hover:bg-destructive/10"
|
|
146
|
+
title="Delete"
|
|
147
|
+
>
|
|
148
|
+
<Trash2 class="h-3 w-3" />
|
|
149
|
+
</button>
|
|
150
|
+
{/if}
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
<!-- Comment Content Body -->
|
|
155
|
+
<p class="text-foreground leading-relaxed pl-8">
|
|
156
|
+
{comment.content}
|
|
157
|
+
</p>
|
|
158
|
+
|
|
159
|
+
<!-- Reactions & Reply Footer -->
|
|
160
|
+
<div class="flex items-center justify-between pl-8 pt-1 text-[11px]">
|
|
161
|
+
<div class="flex items-center gap-1.5">
|
|
162
|
+
{#if comment.reactions}
|
|
163
|
+
{#each Object.entries(comment.reactions) as [emoji, count] (emoji)}
|
|
164
|
+
<button
|
|
165
|
+
type="button"
|
|
166
|
+
onclick={() => onToggleReaction?.(comment.id, emoji)}
|
|
167
|
+
class="inline-flex items-center gap-1 rounded-full border border-border bg-muted/40 px-2 py-0.5 text-xs hover:border-primary transition-colors"
|
|
168
|
+
>
|
|
169
|
+
<span>{emoji}</span>
|
|
170
|
+
<span class="font-mono text-xs text-muted-foreground">{count}</span>
|
|
171
|
+
</button>
|
|
172
|
+
{/each}
|
|
173
|
+
{/if}
|
|
174
|
+
|
|
175
|
+
{#if onToggleReaction}
|
|
176
|
+
<button
|
|
177
|
+
type="button"
|
|
178
|
+
onclick={() => onToggleReaction?.(comment.id, '👍')}
|
|
179
|
+
class="rounded p-1 text-muted-foreground hover:text-foreground"
|
|
180
|
+
>
|
|
181
|
+
<Smile class="h-3 w-3" />
|
|
182
|
+
</button>
|
|
183
|
+
{/if}
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<button
|
|
187
|
+
type="button"
|
|
188
|
+
onclick={() => (replyingToId = comment.id)}
|
|
189
|
+
class="inline-flex items-center gap-1 text-muted-foreground hover:text-primary transition-colors"
|
|
190
|
+
>
|
|
191
|
+
<Reply class="h-3 w-3" />
|
|
192
|
+
<span>{chinese ? '回复' : 'Reply'}</span>
|
|
193
|
+
</button>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<!-- Nested Replies Block -->
|
|
197
|
+
{#if comment.replies && comment.replies.length > 0}
|
|
198
|
+
<div class="mt-2.5 ml-6 pl-3 border-l-2 border-primary/30 space-y-2">
|
|
199
|
+
{#each comment.replies as reply (reply.id)}
|
|
200
|
+
<div class="rounded-lg bg-muted/30 p-2 text-xs space-y-1">
|
|
201
|
+
<div class="flex items-center justify-between">
|
|
202
|
+
<span class="font-semibold text-foreground text-[11px]">{reply.author}</span>
|
|
203
|
+
<span class="text-xs text-muted-foreground font-mono">{reply.createdAt}</span>
|
|
204
|
+
</div>
|
|
205
|
+
<p class="text-foreground leading-relaxed">{reply.content}</p>
|
|
206
|
+
</div>
|
|
207
|
+
{/each}
|
|
208
|
+
</div>
|
|
209
|
+
{/if}
|
|
210
|
+
</div>
|
|
211
|
+
{/each}
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
<!-- Reply Input Box -->
|
|
215
|
+
<div class="p-4 border-t border-border/70 bg-card space-y-2">
|
|
216
|
+
{#if replyingToId}
|
|
217
|
+
<div class="flex items-center justify-between bg-primary/10 px-2.5 py-1 rounded text-[11px] text-primary">
|
|
218
|
+
<span>{chinese ? `回复评论 #${replyingToId}` : `Replying to comment #${replyingToId}`}</span>
|
|
219
|
+
<button type="button" onclick={() => (replyingToId = null)} class="hover:underline">
|
|
220
|
+
{chinese ? '取消回复' : 'Cancel'}
|
|
221
|
+
</button>
|
|
222
|
+
</div>
|
|
223
|
+
{/if}
|
|
224
|
+
|
|
225
|
+
<div class="relative flex items-end gap-2">
|
|
226
|
+
<textarea
|
|
227
|
+
bind:value={newCommentText}
|
|
228
|
+
placeholder={chinese ? '发表业务批注或 @成员协同讨论...' : 'Leave a comment...'}
|
|
229
|
+
rows="2"
|
|
230
|
+
class="flex-1 rounded-lg border border-input bg-background p-2.5 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
|
231
|
+
></textarea>
|
|
232
|
+
|
|
233
|
+
<Button
|
|
234
|
+
type="button"
|
|
235
|
+
size="sm"
|
|
236
|
+
onclick={handleSend}
|
|
237
|
+
disabled={!newCommentText.trim()}
|
|
238
|
+
class="h-9 px-3 gap-1"
|
|
239
|
+
>
|
|
240
|
+
<Send class="h-3.5 w-3.5" />
|
|
241
|
+
<span>{chinese ? '发送' : 'Send'}</span>
|
|
242
|
+
</Button>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
</Sheet.Content>
|
|
246
|
+
</Sheet.Root>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ThreadedComment {
|
|
2
|
+
id: string;
|
|
3
|
+
author: string;
|
|
4
|
+
avatar?: string | undefined;
|
|
5
|
+
content: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
parentId?: string | undefined;
|
|
8
|
+
isResolved?: boolean | undefined;
|
|
9
|
+
reactions?: Record<string, number> | undefined;
|
|
10
|
+
replies?: ThreadedComment[] | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface ThreadedCommentDrawerProps {
|
|
13
|
+
open?: boolean | undefined;
|
|
14
|
+
recordId?: string | number | undefined;
|
|
15
|
+
recordTitle?: string | undefined;
|
|
16
|
+
comments?: ThreadedComment[] | undefined;
|
|
17
|
+
title?: string | undefined;
|
|
18
|
+
class?: string | undefined;
|
|
19
|
+
onAddComment?: ((content: string, parentId?: string) => void) | undefined;
|
|
20
|
+
onToggleReaction?: ((commentId: string, emoji: string) => void) | undefined;
|
|
21
|
+
onToggleResolved?: ((commentId: string, resolved: boolean) => void) | undefined;
|
|
22
|
+
onDeleteComment?: ((commentId: string) => void) | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare const ThreadedCommentDrawer: import("svelte").Component<ThreadedCommentDrawerProps, {}, "open">;
|
|
25
|
+
type ThreadedCommentDrawer = ReturnType<typeof ThreadedCommentDrawer>;
|
|
26
|
+
export default ThreadedCommentDrawer;
|