@svadmin/lite 0.16.10 → 0.17.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 (72) hide show
  1. package/dist/components/LiteActivityFeed.svelte +7 -7
  2. package/dist/components/LiteApprovalActionCard.svelte +4 -4
  3. package/dist/components/LiteAuditLog.svelte +9 -9
  4. package/dist/components/LiteCanvasAnnotation.svelte +13 -13
  5. package/dist/components/LiteChatDialog.svelte +8 -8
  6. package/dist/components/LiteColumnSettings.svelte +3 -3
  7. package/dist/components/LiteConfirmDialog.svelte +2 -2
  8. package/dist/components/LiteDecisionTable.svelte +14 -14
  9. package/dist/components/LiteDraggableRowTable.svelte +1 -1
  10. package/dist/components/LiteDrawerForm.svelte +7 -7
  11. package/dist/components/LiteDynamicFormList.svelte +5 -5
  12. package/dist/components/LiteEditableTable.svelte +1 -1
  13. package/dist/components/LiteEmptyState.svelte +3 -3
  14. package/dist/components/LiteFilterBuilder.svelte +4 -4
  15. package/dist/components/LiteGanttChart.svelte +20 -20
  16. package/dist/components/LiteImageCropper.svelte +3 -3
  17. package/dist/components/LiteImportWizard.svelte +7 -7
  18. package/dist/components/LiteJsonSchemaForm.svelte +6 -6
  19. package/dist/components/LiteKanbanBoard.svelte +19 -19
  20. package/dist/components/LiteLayout.svelte +2 -2
  21. package/dist/components/LiteMasterDetailView.svelte +9 -9
  22. package/dist/components/LiteMediaLibraryModal.svelte +4 -4
  23. package/dist/components/LiteMediaThumbnail.svelte +3 -3
  24. package/dist/components/LiteMentionsInput.svelte +9 -9
  25. package/dist/components/LiteModalForm.svelte +5 -5
  26. package/dist/components/LiteMultiTabKeepAlive.svelte +6 -6
  27. package/dist/components/LiteOfflineSyncBanner.svelte +6 -6
  28. package/dist/components/LitePdfDocumentViewer.svelte +14 -14
  29. package/dist/components/LitePermissionMatrix.svelte +8 -8
  30. package/dist/components/LitePivotTable.svelte +11 -11
  31. package/dist/components/LitePresenceAvatarGroup.svelte +4 -4
  32. package/dist/components/LitePrintableBill.svelte +8 -8
  33. package/dist/components/LiteShow.svelte +1 -1
  34. package/dist/components/LiteShowField.svelte +2 -2
  35. package/dist/components/LiteSignaturePad.svelte +9 -9
  36. package/dist/components/LiteSplitPaneLayout.svelte +2 -2
  37. package/dist/components/LiteSpreadsheetView.svelte +8 -8
  38. package/dist/components/LiteStepForm.svelte +10 -10
  39. package/dist/components/LiteTable.svelte +1 -1
  40. package/dist/components/LiteTableSummary.svelte +4 -4
  41. package/dist/components/LiteTabs.svelte +5 -5
  42. package/dist/components/LiteTransfer.svelte +5 -5
  43. package/dist/components/LiteTreeTable.svelte +1 -1
  44. package/dist/components/LiteVersionDiffViewer.svelte +12 -12
  45. package/dist/components/LiteVirtualTable.svelte +1 -1
  46. package/dist/components/advanced/LiteAutoSaveIndicator.svelte +3 -3
  47. package/dist/components/advanced/LiteDraggableHeader.svelte +2 -2
  48. package/dist/components/advanced/LiteInlineEdit.svelte +1 -1
  49. package/dist/components/advanced/LiteToast.svelte +3 -3
  50. package/dist/components/advanced/LiteUndoableNotification.svelte +1 -1
  51. package/dist/components/fields/LiteDateRangeField.svelte +1 -1
  52. package/dist/components/fields/LiteJsonField.svelte +1 -1
  53. package/dist/components/fields/LiteMarkdownField.svelte +1 -1
  54. package/dist/components/fields/LiteRichTextField.svelte +5 -5
  55. package/dist/components/layout/LiteAuthenticated.svelte +2 -2
  56. package/dist/components/layout/LiteCanAccess.svelte +1 -1
  57. package/dist/components/layout/LiteErrorComponent.svelte +4 -4
  58. package/dist/components/layout/LiteHeader.svelte +2 -2
  59. package/dist/components/layout/LiteSidebar.svelte +2 -2
  60. package/dist/components/pages/LiteForgotPasswordPage.svelte +7 -7
  61. package/dist/components/pages/LiteListPage.svelte +2 -2
  62. package/dist/components/pages/LiteProfilePage.svelte +2 -2
  63. package/dist/components/pages/LiteRegisterPage.svelte +6 -6
  64. package/dist/components/pages/LiteShowPage.svelte +2 -2
  65. package/dist/components/pages/LiteUpdatePasswordPage.svelte +4 -4
  66. package/dist/components/widgets/LiteAnomalyBadge.svelte +2 -2
  67. package/dist/components/widgets/LiteBarChart.svelte +6 -6
  68. package/dist/components/widgets/LiteInsightCard.svelte +4 -4
  69. package/dist/components/widgets/LiteLineChart.svelte +7 -7
  70. package/dist/components/widgets/LitePieChart.svelte +6 -6
  71. package/dist/lite.css +127 -127
  72. package/package.json +2 -2
@@ -44,10 +44,10 @@
44
44
  {/each}
45
45
  {/if}
46
46
  {#if userName}
47
- <div style="position:absolute;bottom:0;left:0;right:0;padding:12px 16px;border-top:1px solid #334155;font-size:12px;color:#94a3b8;">
47
+ <div style="position:absolute;bottom:0;left:0;right:0;padding:12px 16px;border-top:1px solid #1D2129;font-size:12px;color:#86909C;">
48
48
  {userName}
49
49
  <form method="POST" action={`${basePath}/login?/logout`} style="display:inline;margin-left:8px;">
50
- <button type="submit" class="lite-btn lite-btn-sm" style="color:#94a3b8;border-color:#475569;background:transparent;padding:2px 8px;">Logout</button>
50
+ <button type="submit" class="lite-btn lite-btn-sm" style="color:#86909C;border-color:#4E5969;background:transparent;padding:2px 8px;">Logout</button>
51
51
  </form>
52
52
  </div>
53
53
  {/if}
@@ -18,11 +18,11 @@
18
18
  }: Props = $props();
19
19
  </script>
20
20
 
21
- <div style="min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 20px;">
21
+ <div style="min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #F7F8FA; padding: 20px;">
22
22
  <div class="lite-card" style="width: 100%; max-width: 400px; padding: 32px;">
23
23
  <div style="text-align: center; margin-bottom: 24px;">
24
- <h1 style="font-size: 24px; font-weight: 600; color: #0f172a; margin: 0 0 8px;">{title}</h1>
25
- <p style="font-size: 14px; color: #64748b; margin: 0;">{description}</p>
24
+ <h1 style="font-size: 24px; font-weight: 600; color: #1D2129; margin: 0 0 8px;">{title}</h1>
25
+ <p style="font-size: 14px; color: #4E5969; margin: 0;">{description}</p>
26
26
  </div>
27
27
 
28
28
  <form method="POST" {action} class="lite-stack-lg">
@@ -32,7 +32,7 @@
32
32
  </div>
33
33
 
34
34
  {#if errors.length > 0}
35
- <div style="padding: 12px; background: #fef2f2; border-radius: 6px; color: #ef4444; font-size: 13px;">
35
+ <div style="padding: 12px; background: #FFECE8; border-radius: 6px; color: #F53F3F; font-size: 13px;">
36
36
  <ul style="margin: 0; padding-left: 20px;">
37
37
  {#each errors as err, _i (_i)}
38
38
  <li>{err}</li>
@@ -42,7 +42,7 @@
42
42
  {/if}
43
43
 
44
44
  {#if successMessage}
45
- <div style="padding: 12px; background: #ecfdf5; border-radius: 6px; color: #10b981; font-size: 13px;">
45
+ <div style="padding: 12px; background: #E8FFEA; border-radius: 6px; color: #00B42A; font-size: 13px;">
46
46
  {successMessage}
47
47
  </div>
48
48
  {/if}
@@ -51,8 +51,8 @@
51
51
  Send Reset Link
52
52
  </button>
53
53
 
54
- <div style="text-align: center; font-size: 13px; color: #64748b; margin-top: 8px;">
55
- Remember your password? <a href={loginUrl} style="color: #2563eb; text-decoration: none;">Back to Login</a>
54
+ <div style="text-align: center; font-size: 13px; color: #4E5969; margin-top: 8px;">
55
+ Remember your password? <a href={loginUrl} style="color: #165DFF; text-decoration: none;">Back to Login</a>
56
56
  </div>
57
57
  </form>
58
58
  </div>
@@ -78,7 +78,7 @@
78
78
  </div>
79
79
 
80
80
  <div class="lite-card" style="margin-bottom: 20px;">
81
- <div style="padding: 16px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
81
+ <div style="padding: 16px; border-bottom: 1px solid #E5E6EB; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
82
82
  <form method="GET" class="lite-filter-bar" style="margin: 0;">
83
83
  <input
84
84
  type="text"
@@ -127,7 +127,7 @@
127
127
  {/if}
128
128
  </form>
129
129
 
130
- <span style="font-size: 13px; color: #64748b;">
130
+ <span style="font-size: 13px; color: #4E5969;">
131
131
  {t("common.total") || "Total"}: <strong>{total}</strong>
132
132
  </span>
133
133
  </div>
@@ -36,7 +36,7 @@
36
36
  <!-- Password update fields can be added here or handled in a separate form -->
37
37
 
38
38
  {#if errors.length > 0}
39
- <div style="padding: 12px; background: #fef2f2; border-radius: 6px; color: #ef4444; font-size: 13px;">
39
+ <div style="padding: 12px; background: #FFECE8; border-radius: 6px; color: #F53F3F; font-size: 13px;">
40
40
  <ul style="margin: 0; padding-left: 20px;">
41
41
  {#each errors as err, _i (_i)}
42
42
  <li>{err}</li>
@@ -46,7 +46,7 @@
46
46
  {/if}
47
47
 
48
48
  {#if successMessage}
49
- <div style="padding: 12px; background: #ecfdf5; border-radius: 6px; color: #10b981; font-size: 13px;">
49
+ <div style="padding: 12px; background: #E8FFEA; border-radius: 6px; color: #00B42A; font-size: 13px;">
50
50
  {successMessage}
51
51
  </div>
52
52
  {/if}
@@ -17,11 +17,11 @@
17
17
  }: Props = $props();
18
18
  </script>
19
19
 
20
- <div style="min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 20px;">
20
+ <div style="min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #F7F8FA; padding: 20px;">
21
21
  <div class="lite-card" style="width: 100%; max-width: 400px; padding: 32px;">
22
22
  <div style="text-align: center; margin-bottom: 24px;">
23
- <h1 style="font-size: 24px; font-weight: 600; color: #0f172a; margin: 0 0 8px;">{title}</h1>
24
- <p style="font-size: 14px; color: #64748b; margin: 0;">{description}</p>
23
+ <h1 style="font-size: 24px; font-weight: 600; color: #1D2129; margin: 0 0 8px;">{title}</h1>
24
+ <p style="font-size: 14px; color: #4E5969; margin: 0;">{description}</p>
25
25
  </div>
26
26
 
27
27
  <form method="POST" {action} class="lite-stack-lg">
@@ -41,7 +41,7 @@
41
41
  </div>
42
42
 
43
43
  {#if errors.length > 0}
44
- <div style="padding: 12px; background: #fef2f2; border-radius: 6px; color: #ef4444; font-size: 13px;">
44
+ <div style="padding: 12px; background: #FFECE8; border-radius: 6px; color: #F53F3F; font-size: 13px;">
45
45
  <ul style="margin: 0; padding-left: 20px;">
46
46
  {#each errors as err, _i (_i)}
47
47
  <li>{err}</li>
@@ -54,8 +54,8 @@
54
54
  Register
55
55
  </button>
56
56
 
57
- <div style="text-align: center; font-size: 13px; color: #64748b; margin-top: 8px;">
58
- Already have an account? <a href={loginUrl} style="color: #2563eb; text-decoration: none;">Login</a>
57
+ <div style="text-align: center; font-size: 13px; color: #4E5969; margin-top: 8px;">
58
+ Already have an account? <a href={loginUrl} style="color: #165DFF; text-decoration: none;">Login</a>
59
59
  </div>
60
60
  </form>
61
61
  </div>
@@ -59,10 +59,10 @@
59
59
  <div class="lite-stack-lg">
60
60
  {#each showFields as field, _i (_i)}
61
61
  <div>
62
- <div style="display: block; font-size: 13px; font-weight: 500; color: #64748b; margin-bottom: 8px;">
62
+ <div style="display: block; font-size: 13px; font-weight: 500; color: #4E5969; margin-bottom: 8px;">
63
63
  {field.label}
64
64
  </div>
65
- <div style="color: #0f172a; font-size: 14px;">
65
+ <div style="color: #1D2129; font-size: 14px;">
66
66
  <LiteShowField {field} value={record[field.key]} {basePath} />
67
67
  </div>
68
68
  </div>
@@ -14,11 +14,11 @@
14
14
  }: Props = $props();
15
15
  </script>
16
16
 
17
- <div style="min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 20px;">
17
+ <div style="min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #F7F8FA; padding: 20px;">
18
18
  <div class="lite-card" style="width: 100%; max-width: 400px; padding: 32px;">
19
19
  <div style="text-align: center; margin-bottom: 24px;">
20
- <h1 style="font-size: 24px; font-weight: 600; color: #0f172a; margin: 0 0 8px;">{title}</h1>
21
- <p style="font-size: 14px; color: #64748b; margin: 0;">{description}</p>
20
+ <h1 style="font-size: 24px; font-weight: 600; color: #1D2129; margin: 0 0 8px;">{title}</h1>
21
+ <p style="font-size: 14px; color: #4E5969; margin: 0;">{description}</p>
22
22
  </div>
23
23
 
24
24
  <form method="POST" {action} class="lite-stack-lg">
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
 
35
35
  {#if errors.length > 0}
36
- <div style="padding: 12px; background: #fef2f2; border-radius: 6px; color: #ef4444; font-size: 13px;">
36
+ <div style="padding: 12px; background: #FFECE8; border-radius: 6px; color: #F53F3F; font-size: 13px;">
37
37
  <ul style="margin: 0; padding-left: 20px;">
38
38
  {#each errors as err, _i (_i)}
39
39
  <li>{err}</li>
@@ -32,12 +32,12 @@
32
32
  </script>
33
33
 
34
34
  {#if !isAnomaly}
35
- <span style="font-size: 14px; color: #64748b;">{formatter(value)}</span>
35
+ <span style="font-size: 14px; color: #4E5969;">{formatter(value)}</span>
36
36
  {:else}
37
37
  <span
38
38
  title="Baseline: {formatter(baseline)} ({diff > 0 ? '+' : '-'}{percentLabel})"
39
39
  class="lite-badge"
40
- style="background: {isGood ? '#ecfdf5' : '#fef2f2'}; color: {isGood ? '#065f46' : '#991b1b'}; border: 1px solid {isGood ? '#a7f3d0' : '#fecaca'};"
40
+ style="background: {isGood ? '#E8FFEA' : '#FFECE8'}; color: {isGood ? '#009A29' : '#CB272D'}; border: 1px solid {isGood ? '#E8FFEA' : '#FDCDC5'};"
41
41
  >
42
42
  {arrow} {formatter(value)}
43
43
  </span>
@@ -22,7 +22,7 @@
22
22
 
23
23
  <div class="lite-card" style="margin-bottom: 16px;">
24
24
  {#if title}
25
- <div style="padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 14px; color: #0f172a;">
25
+ <div style="padding: 12px 16px; border-bottom: 1px solid #E5E6EB; font-weight: 600; font-size: 14px; color: #1D2129;">
26
26
  {title}
27
27
  </div>
28
28
  {/if}
@@ -30,16 +30,16 @@
30
30
  {#each data as point, _i (_i)}
31
31
  <div>
32
32
  <div style="display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px;">
33
- <span style="color: #334155;">{point.label}</span>
34
- <span style="color: #64748b; font-weight: 500;">{point.value}</span>
33
+ <span style="color: #1D2129;">{point.label}</span>
34
+ <span style="color: #4E5969; font-weight: 500;">{point.value}</span>
35
35
  </div>
36
- <div style="height: 20px; background: #f1f5f9; border-radius: 4px; overflow: hidden;">
37
- <div style="height: 100%; width: {(point.value / maxValue) * 100}%; background: {point.color ?? '#6366f1'}; border-radius: 4px; transition: width 0.3s;"></div>
36
+ <div style="height: 20px; background: #F2F3F5; border-radius: 4px; overflow: hidden;">
37
+ <div style="height: 100%; width: {(point.value / maxValue) * 100}%; background: {point.color ?? '#165DFF'}; border-radius: 4px; transition: width 0.3s;"></div>
38
38
  </div>
39
39
  </div>
40
40
  {/each}
41
41
  {#if data.length === 0}
42
- <p style="color: #94a3b8; font-style: italic; text-align: center;">No data</p>
42
+ <p style="color: #86909C; font-style: italic; text-align: center;">No data</p>
43
43
  {/if}
44
44
  </div>
45
45
  </div>
@@ -17,15 +17,15 @@
17
17
  </script>
18
18
 
19
19
  <div class="lite-card" style="margin-bottom: 16px;">
20
- <div class="lite-inline-md" style="padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 14px; color: #0f172a; align-items: center;">
21
- <span style="color: #f59e0b;">✦</span>
20
+ <div class="lite-inline-md" style="padding: 12px 16px; border-bottom: 1px solid #E5E6EB; font-weight: 600; font-size: 14px; color: #1D2129; align-items: center;">
21
+ <span style="color: #FF7D00;">✦</span>
22
22
  {title}
23
23
  </div>
24
- <div style="padding: 16px; font-size: 14px; color: #334155; line-height: 1.6;">
24
+ <div style="padding: 16px; font-size: 14px; color: #1D2129; line-height: 1.6;">
25
25
  {#if displayContent}
26
26
  <p style="white-space: pre-wrap; margin: 0;">{displayContent}</p>
27
27
  {:else}
28
- <p style="color: #94a3b8; font-style: italic;">No insights available. AI analysis requires JavaScript.</p>
28
+ <p style="color: #86909C; font-style: italic;">No insights available. AI analysis requires JavaScript.</p>
29
29
  {/if}
30
30
  </div>
31
31
  </div>
@@ -20,27 +20,27 @@
20
20
 
21
21
  <div class="lite-card" style="margin-bottom: 16px;">
22
22
  {#if title}
23
- <div style="padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 14px; color: #0f172a;">
23
+ <div style="padding: 12px 16px; border-bottom: 1px solid #E5E6EB; font-weight: 600; font-size: 14px; color: #1D2129;">
24
24
  {title}
25
25
  </div>
26
26
  {/if}
27
27
  <table style="width: 100%; border-collapse: collapse;">
28
28
  <thead>
29
29
  <tr>
30
- <th style="text-align: left; padding: 10px 16px; font-size: 12px; color: #64748b; border-bottom: 1px solid #e2e8f0;">Label</th>
31
- <th style="text-align: right; padding: 10px 16px; font-size: 12px; color: #64748b; border-bottom: 1px solid #e2e8f0;">{valueLabel}</th>
30
+ <th style="text-align: left; padding: 10px 16px; font-size: 12px; color: #4E5969; border-bottom: 1px solid #E5E6EB;">Label</th>
31
+ <th style="text-align: right; padding: 10px 16px; font-size: 12px; color: #4E5969; border-bottom: 1px solid #E5E6EB;">{valueLabel}</th>
32
32
  </tr>
33
33
  </thead>
34
34
  <tbody>
35
35
  {#each data as point, i (i)}
36
- <tr style="background: {i % 2 === 0 ? '#ffffff' : '#f8fafc'};">
37
- <td style="padding: 8px 16px; font-size: 13px; color: #334155;">{point.label}</td>
38
- <td style="padding: 8px 16px; font-size: 13px; color: #0f172a; text-align: right; font-weight: 500;">{point.value}</td>
36
+ <tr style="background: {i % 2 === 0 ? '#ffffff' : '#F7F8FA'};">
37
+ <td style="padding: 8px 16px; font-size: 13px; color: #1D2129;">{point.label}</td>
38
+ <td style="padding: 8px 16px; font-size: 13px; color: #1D2129; text-align: right; font-weight: 500;">{point.value}</td>
39
39
  </tr>
40
40
  {/each}
41
41
  {#if data.length === 0}
42
42
  <tr>
43
- <td colspan="2" style="padding: 16px; text-align: center; color: #94a3b8; font-style: italic;">No data</td>
43
+ <td colspan="2" style="padding: 16px; text-align: center; color: #86909C; font-style: italic;">No data</td>
44
44
  </tr>
45
45
  {/if}
46
46
  </tbody>
@@ -18,12 +18,12 @@
18
18
  let { data, title }: Props = $props();
19
19
 
20
20
  const total = $derived(data.reduce((sum, d) => sum + d.value, 0));
21
- const defaultColors = ['#6366f1', '#f59e0b', '#10b981', '#ef4444', '#8b5cf6', '#06b6d4', '#f97316', '#ec4899'];
21
+ const defaultColors = ['#165DFF', '#FF7D00', '#00B42A', '#F53F3F', '#8b5cf6', '#06b6d4', '#f97316', '#ec4899'];
22
22
  </script>
23
23
 
24
24
  <div class="lite-card" style="margin-bottom: 16px;">
25
25
  {#if title}
26
- <div style="padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 14px; color: #0f172a;">
26
+ <div style="padding: 12px 16px; border-bottom: 1px solid #E5E6EB; font-weight: 600; font-size: 14px; color: #1D2129;">
27
27
  {title}
28
28
  </div>
29
29
  {/if}
@@ -32,13 +32,13 @@
32
32
  {@const pct = total > 0 ? ((point.value / total) * 100).toFixed(1) : '0.0'}
33
33
  <div class="lite-inline-lg" style="align-items: center; font-size: 13px;">
34
34
  <span style="width: 12px; height: 12px; border-radius: 50%; background: {point.color ?? defaultColors[i % defaultColors.length]}; flex-shrink: 0;"></span>
35
- <span style="flex: 1; color: #334155;">{point.label}</span>
36
- <span style="color: #64748b; font-weight: 500;">{point.value}</span>
37
- <span style="color: #94a3b8; font-size: 12px; min-width: 48px; text-align: right;">{pct}%</span>
35
+ <span style="flex: 1; color: #1D2129;">{point.label}</span>
36
+ <span style="color: #4E5969; font-weight: 500;">{point.value}</span>
37
+ <span style="color: #86909C; font-size: 12px; min-width: 48px; text-align: right;">{pct}%</span>
38
38
  </div>
39
39
  {/each}
40
40
  {#if data.length === 0}
41
- <p style="color: #94a3b8; font-style: italic; text-align: center;">No data</p>
41
+ <p style="color: #86909C; font-style: italic; text-align: center;">No data</p>
42
42
  {/if}
43
43
  </div>
44
44
  </div>