@svadmin/ui 0.112.0 → 0.113.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.
Files changed (46) hide show
  1. package/dist/app.css +207 -0
  2. package/dist/app.theme.css +207 -0
  3. package/dist/components/AboutSettings.svelte +1 -1
  4. package/dist/components/FormDependency.svelte +36 -0
  5. package/dist/components/FormDependency.svelte.d.ts +12 -0
  6. package/dist/components/PageContainer.svelte +263 -0
  7. package/dist/components/PageContainer.svelte.d.ts +53 -0
  8. package/dist/components/ProDescriptions.svelte +278 -0
  9. package/dist/components/ProDescriptions.svelte.d.ts +37 -0
  10. package/dist/components/QueryFilter.svelte +194 -0
  11. package/dist/components/QueryFilter.svelte.d.ts +34 -0
  12. package/dist/components/RealtimeMonitorView.svelte +245 -0
  13. package/dist/components/RealtimeMonitorView.svelte.d.ts +40 -0
  14. package/dist/components/RoleSwitcher.svelte +267 -0
  15. package/dist/components/RoleSwitcher.svelte.d.ts +40 -0
  16. package/dist/components/WorkflowDesigner.svelte +244 -0
  17. package/dist/components/WorkflowDesigner.svelte.d.ts +29 -0
  18. package/dist/components/fields/UploadField.svelte +222 -0
  19. package/dist/components/fields/UploadField.svelte.d.ts +14 -0
  20. package/dist/components/icons/IconApprove.svelte +35 -0
  21. package/dist/components/icons/IconApprove.svelte.d.ts +4 -0
  22. package/dist/components/icons/IconAudit.svelte +38 -0
  23. package/dist/components/icons/IconAudit.svelte.d.ts +4 -0
  24. package/dist/components/icons/IconBilling.svelte +37 -0
  25. package/dist/components/icons/IconBilling.svelte.d.ts +4 -0
  26. package/dist/components/icons/IconCluster.svelte +41 -0
  27. package/dist/components/icons/IconCluster.svelte.d.ts +4 -0
  28. package/dist/components/icons/IconMonitor.svelte +37 -0
  29. package/dist/components/icons/IconMonitor.svelte.d.ts +4 -0
  30. package/dist/components/icons/IconReject.svelte +36 -0
  31. package/dist/components/icons/IconReject.svelte.d.ts +4 -0
  32. package/dist/components/icons/IconSeal.svelte +36 -0
  33. package/dist/components/icons/IconSeal.svelte.d.ts +4 -0
  34. package/dist/components/icons/IconSecurity.svelte +35 -0
  35. package/dist/components/icons/IconSecurity.svelte.d.ts +4 -0
  36. package/dist/components/icons/IconTenant.svelte +39 -0
  37. package/dist/components/icons/IconTenant.svelte.d.ts +4 -0
  38. package/dist/components/icons/IconWorkflow.svelte +38 -0
  39. package/dist/components/icons/IconWorkflow.svelte.d.ts +4 -0
  40. package/dist/components/icons/index.d.ts +11 -0
  41. package/dist/components/icons/index.js +10 -0
  42. package/dist/components/icons/types.d.ts +15 -0
  43. package/dist/components/icons/types.js +1 -0
  44. package/dist/index.d.ts +22 -5
  45. package/dist/index.js +16 -5
  46. package/package.json +5 -5
@@ -0,0 +1,222 @@
1
+ <script lang="ts">
2
+ import { useStorage } from '@svadmin/core';
3
+ import { Upload, X, FileText, AlertCircle, Loader2 } from '@lucide/svelte';
4
+
5
+ export interface UploadFieldProps {
6
+ value?: string | string[] | null;
7
+ multiple?: boolean;
8
+ accept?: string;
9
+ maxSizeBytes?: number;
10
+ path?: string;
11
+ disabled?: boolean;
12
+ label?: string;
13
+ description?: string;
14
+ onchange?: (value: string | string[] | null) => void;
15
+ }
16
+
17
+ let {
18
+ value = $bindable(null),
19
+ multiple = false,
20
+ accept = '*/*',
21
+ maxSizeBytes,
22
+ path = 'uploads',
23
+ disabled = false,
24
+ label,
25
+ description,
26
+ onchange,
27
+ }: UploadFieldProps = $props();
28
+
29
+ const inputId = $props.id();
30
+ const storage = useStorage();
31
+
32
+ let isDragging = $state(false);
33
+ let errorMessage = $state<string | null>(null);
34
+ let uploadQueue = $state<Array<{ name: string; size: number; progress: number }>>([]);
35
+
36
+ // Normalize initial value to array for uniform internal rendering
37
+ let fileList = $derived.by<string[]>(() => {
38
+ if (!value) return [];
39
+ if (Array.isArray(value)) return value;
40
+ return [value];
41
+ });
42
+
43
+ function updateValue(newList: string[]) {
44
+ const nextVal = multiple ? newList : (newList[0] ?? null);
45
+ value = nextVal;
46
+ onchange?.(nextVal);
47
+ }
48
+
49
+ async function handleFiles(files: FileList | File[]) {
50
+ if (disabled || !files || files.length === 0) return;
51
+ errorMessage = null;
52
+
53
+ const fileArray = Array.from(files);
54
+
55
+ // Validation
56
+ for (const f of fileArray) {
57
+ if (maxSizeBytes && f.size > maxSizeBytes) {
58
+ errorMessage = `File "${f.name}" exceeds the maximum size limit (${(maxSizeBytes / (1024 * 1024)).toFixed(1)}MB).`;
59
+ return;
60
+ }
61
+ }
62
+
63
+ const currentUrls = [...fileList];
64
+
65
+ for (const file of fileArray) {
66
+ const queueItem = { name: file.name, size: file.size, progress: 0 };
67
+ uploadQueue = [...uploadQueue, queueItem];
68
+
69
+ try {
70
+ const res = await storage.upload(file, {
71
+ path,
72
+ filename: file.name,
73
+ onProgress: (p) => {
74
+ uploadQueue = uploadQueue.map((item) => item === queueItem ? { ...item, progress: p.percentage } : item);
75
+ },
76
+ });
77
+
78
+ if (multiple) {
79
+ currentUrls.push(res.url);
80
+ } else {
81
+ currentUrls.splice(0, currentUrls.length, res.url);
82
+ }
83
+ } catch (err) {
84
+ errorMessage = err instanceof Error ? err.message : 'Upload failed';
85
+ } finally {
86
+ uploadQueue = uploadQueue.filter((q) => q !== queueItem);
87
+ }
88
+ }
89
+
90
+ updateValue(currentUrls);
91
+ }
92
+
93
+ function handleDrop(e: DragEvent) {
94
+ e.preventDefault();
95
+ isDragging = false;
96
+ if (disabled) return;
97
+ if (e.dataTransfer?.files) {
98
+ handleFiles(e.dataTransfer.files);
99
+ }
100
+ }
101
+
102
+ function handleInputChange(e: Event) {
103
+ const input = e.target as HTMLInputElement;
104
+ if (input.files) {
105
+ handleFiles(input.files);
106
+ input.value = '';
107
+ }
108
+ }
109
+
110
+ async function removeItem(urlToRemove: string) {
111
+ if (disabled) return;
112
+ const nextUrls = fileList.filter((u) => u !== urlToRemove);
113
+ updateValue(nextUrls);
114
+
115
+ // Attempt backend delete if path is extractable
116
+ try {
117
+ const urlObj = new URL(urlToRemove, 'https://dummy.local');
118
+ const cleanPath = urlObj.pathname.replace(/^\/+/, '');
119
+ await storage.deleteFile(cleanPath);
120
+ } catch {
121
+ // Best-effort cleanup
122
+ }
123
+ }
124
+ </script>
125
+
126
+ <div class="svadmin-upload-field space-y-2">
127
+ {#if label}
128
+ <label for={inputId} class="block text-sm font-medium text-foreground">{label}</label>
129
+ {/if}
130
+
131
+ <!-- Drop Zone -->
132
+ <div
133
+ class="relative border-2 border-dashed rounded-lg p-4 text-center transition-colors
134
+ {isDragging ? 'border-primary bg-primary/5' : 'border-border hover:border-primary/50'}
135
+ {disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'}"
136
+ ondragover={(e) => { e.preventDefault(); if (!disabled) isDragging = true; }}
137
+ ondragleave={() => { isDragging = false; }}
138
+ ondrop={handleDrop}
139
+ role="region"
140
+ aria-label="File upload dropzone"
141
+ >
142
+ <input
143
+ id={inputId}
144
+ type="file"
145
+ {accept}
146
+ {multiple}
147
+ {disabled}
148
+ class="absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
149
+ onchange={handleInputChange}
150
+ aria-label="Upload files"
151
+ />
152
+
153
+ <div class="flex flex-col items-center justify-center gap-1.5 py-2 pointer-events-none">
154
+ {#if storage.isUploading}
155
+ <Loader2 class="h-6 w-6 text-primary animate-spin" />
156
+ <span class="text-xs font-medium text-muted-foreground">Uploading... ({storage.uploadProgress}%)</span>
157
+ {:else}
158
+ <Upload class="h-6 w-6 text-muted-foreground/80" />
159
+ <div class="text-xs text-foreground font-medium">
160
+ <span class="text-primary font-semibold">Click to upload</span> or drag and drop
161
+ </div>
162
+ {#if description}
163
+ <p class="text-[11px] text-muted-foreground">{description}</p>
164
+ {:else}
165
+ <p class="text-[11px] text-muted-foreground">Any file up to {maxSizeBytes ? `${(maxSizeBytes / (1024 * 1024)).toFixed(0)}MB` : '50MB'}</p>
166
+ {/if}
167
+ {/if}
168
+ </div>
169
+ </div>
170
+
171
+ <!-- Error feedback -->
172
+ {#if errorMessage}
173
+ <div class="flex items-center gap-1.5 text-xs text-destructive">
174
+ <AlertCircle class="h-3.5 w-3.5 shrink-0" />
175
+ <span>{errorMessage}</span>
176
+ </div>
177
+ {/if}
178
+
179
+ <!-- Upload Queue Progress -->
180
+ {#if uploadQueue.length > 0}
181
+ <div class="space-y-1 pt-1">
182
+ {#each uploadQueue as item (item.name)}
183
+ <div class="flex items-center justify-between text-xs p-1.5 bg-muted/40 rounded border border-border">
184
+ <span class="truncate max-w-[200px] font-medium">{item.name}</span>
185
+ <span class="text-[11px] text-muted-foreground">{item.progress}%</span>
186
+ </div>
187
+ {/each}
188
+ </div>
189
+ {/if}
190
+
191
+ <!-- Uploaded Files List -->
192
+ {#if fileList.length > 0}
193
+ <div class="grid grid-cols-1 sm:grid-cols-2 gap-2 pt-1">
194
+ {#each fileList as fileUrl (fileUrl)}
195
+ {@const fileName = fileUrl.split('/').pop()?.split('?')[0] ?? fileUrl}
196
+ <div class="flex items-center justify-between gap-2 p-2 rounded-md border border-border bg-card text-xs">
197
+ <div class="flex items-center gap-2 min-w-0">
198
+ <FileText class="h-4 w-4 text-primary shrink-0" />
199
+ <a
200
+ href={fileUrl}
201
+ target="_blank"
202
+ rel="noreferrer"
203
+ class="truncate font-medium text-foreground hover:underline"
204
+ title={fileName}
205
+ >
206
+ {fileName}
207
+ </a>
208
+ </div>
209
+ <button
210
+ type="button"
211
+ class="p-1 text-muted-foreground hover:text-destructive transition-colors rounded"
212
+ onclick={() => removeItem(fileUrl)}
213
+ {disabled}
214
+ aria-label={`Remove ${fileName}`}
215
+ >
216
+ <X class="h-3.5 w-3.5" />
217
+ </button>
218
+ </div>
219
+ {/each}
220
+ </div>
221
+ {/if}
222
+ </div>
@@ -0,0 +1,14 @@
1
+ export interface UploadFieldProps {
2
+ value?: string | string[] | null;
3
+ multiple?: boolean;
4
+ accept?: string;
5
+ maxSizeBytes?: number;
6
+ path?: string;
7
+ disabled?: boolean;
8
+ label?: string;
9
+ description?: string;
10
+ onchange?: (value: string | string[] | null) => void;
11
+ }
12
+ declare const UploadField: import("svelte").Component<UploadFieldProps, {}, "value">;
13
+ type UploadField = ReturnType<typeof UploadField>;
14
+ export default UploadField;
@@ -0,0 +1,35 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconApprove"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-approve inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14" />
34
+ <polyline points="22 4 12 14.01 9 11.01" />
35
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconApprove: import("svelte").Component<IconProps, {}, "">;
3
+ type IconApprove = ReturnType<typeof IconApprove>;
4
+ export default IconApprove;
@@ -0,0 +1,38 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconAudit"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-audit inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
34
+ <polyline points="14 2 14 8 20 8" />
35
+ <line x1="16" y1="13" x2="8" y2="13" />
36
+ <line x1="16" y1="17" x2="8" y2="17" />
37
+ <polyline points="10 9 9 9 8 9" />
38
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconAudit: import("svelte").Component<IconProps, {}, "">;
3
+ type IconAudit = ReturnType<typeof IconAudit>;
4
+ export default IconAudit;
@@ -0,0 +1,37 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconBilling"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-billing inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <rect x="2" y="4" width="20" height="16" rx="2" />
34
+ <line x1="2" y1="10" x2="22" y2="10" />
35
+ <line x1="6" y1="15" x2="10" y2="15" />
36
+ <circle cx="17" cy="15" r="1.5" />
37
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconBilling: import("svelte").Component<IconProps, {}, "">;
3
+ type IconBilling = ReturnType<typeof IconBilling>;
4
+ export default IconBilling;
@@ -0,0 +1,41 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconCluster"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-cluster inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <rect x="2" y="2" width="8" height="8" rx="2" />
34
+ <rect x="14" y="2" width="8" height="8" rx="2" />
35
+ <rect x="2" y="14" width="8" height="8" rx="2" />
36
+ <rect x="14" y="14" width="8" height="8" rx="2" />
37
+ <line x1="6" y1="10" x2="6" y2="14" />
38
+ <line x1="18" y1="10" x2="18" y2="14" />
39
+ <line x1="10" y1="6" x2="14" y2="6" />
40
+ <line x1="10" y1="18" x2="14" y2="18" />
41
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconCluster: import("svelte").Component<IconProps, {}, "">;
3
+ type IconCluster = ReturnType<typeof IconCluster>;
4
+ export default IconCluster;
@@ -0,0 +1,37 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconMonitor"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-monitor inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <rect x="2" y="3" width="20" height="14" rx="2" ry="2" />
34
+ <line x1="8" y1="21" x2="16" y2="21" />
35
+ <line x1="12" y1="17" x2="12" y2="21" />
36
+ <polyline points="6 10 9 7 12 11 15 8 18 10" />
37
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconMonitor: import("svelte").Component<IconProps, {}, "">;
3
+ type IconMonitor = ReturnType<typeof IconMonitor>;
4
+ export default IconMonitor;
@@ -0,0 +1,36 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconReject"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-reject inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <circle cx="12" cy="12" r="10" />
34
+ <line x1="15" y1="9" x2="9" y2="15" />
35
+ <line x1="9" y1="9" x2="15" y2="15" />
36
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconReject: import("svelte").Component<IconProps, {}, "">;
3
+ type IconReject = ReturnType<typeof IconReject>;
4
+ export default IconReject;
@@ -0,0 +1,36 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconSeal"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-seal inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <circle cx="12" cy="12" r="9" />
34
+ <circle cx="12" cy="12" r="5" stroke-dasharray="2 2" />
35
+ <polygon points="12 9 13 11 15.5 11 13.5 12.5 14.5 15 12 13.5 9.5 15 10.5 12.5 8.5 11 11 11" fill={color} stroke="none" />
36
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconSeal: import("svelte").Component<IconProps, {}, "">;
3
+ type IconSeal = ReturnType<typeof IconSeal>;
4
+ export default IconSeal;
@@ -0,0 +1,35 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconSecurity"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-security inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
34
+ <polyline points="9 12 11 14 15 10" />
35
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconSecurity: import("svelte").Component<IconProps, {}, "">;
3
+ type IconSecurity = ReturnType<typeof IconSecurity>;
4
+ export default IconSecurity;
@@ -0,0 +1,39 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconTenant"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-tenant inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <path d="M3 21h18" />
34
+ <path d="M5 21V7l8-4v18" />
35
+ <path d="M19 21V11l-6-3" />
36
+ <line x1="9" y1="9" x2="9" y2="9.01" />
37
+ <line x1="9" y1="13" x2="9" y2="13.01" />
38
+ <line x1="9" y1="17" x2="9" y2="17.01" />
39
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconTenant: import("svelte").Component<IconProps, {}, "">;
3
+ type IconTenant = ReturnType<typeof IconTenant>;
4
+ export default IconTenant;
@@ -0,0 +1,38 @@
1
+ <script lang="ts">
2
+ import type { IconProps } from './types.js';
3
+ import { cn } from '../../utils.js';
4
+
5
+ let {
6
+ size = 16,
7
+ color = 'currentColor',
8
+ strokeWidth = 2,
9
+ spin = false,
10
+ class: className = '',
11
+ style = '',
12
+ ...restProps
13
+ }: IconProps = $props();
14
+
15
+ const dimension = $derived(typeof size === 'number' ? `${size}px` : size);
16
+ </script>
17
+
18
+ <svg
19
+ data-svadmin-component="IconWorkflow"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ viewBox="0 0 24 24"
22
+ width={dimension}
23
+ height={dimension}
24
+ fill="none"
25
+ stroke={color}
26
+ stroke-width={strokeWidth}
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ class={cn('svadmin-icon svadmin-icon-workflow inline-block shrink-0', spin && 'animate-spin', className)}
30
+ style={style}
31
+ {...restProps}
32
+ >
33
+ <rect x="3" y="3" width="6" height="6" rx="1" />
34
+ <rect x="15" y="3" width="6" height="6" rx="1" />
35
+ <rect x="9" y="15" width="6" height="6" rx="1" />
36
+ <path d="M6 9v3a3 3 0 0 0 3 3h3" />
37
+ <path d="M18 9v3a3 3 0 0 1-3 3" />
38
+ </svg>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconWorkflow: import("svelte").Component<IconProps, {}, "">;
3
+ type IconWorkflow = ReturnType<typeof IconWorkflow>;
4
+ export default IconWorkflow;