@saasicat/ui-vue 0.19.0 → 0.22.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/{catalog-JXdKdIqG.d.cts → catalog-DJcfm5N2.d.cts} +21 -7
- package/dist/{catalog-JXdKdIqG.d.ts → catalog-DJcfm5N2.d.ts} +21 -7
- package/dist/{chunk-DPTIOQXX.js → chunk-F7NRM6KI.js} +56 -28
- package/dist/{chunk-RVG6LQHL.js → chunk-LY52T4N4.js} +21 -2
- package/dist/{chunk-ORX3ZG47.js → chunk-XMMFN2WJ.js} +74 -3
- package/dist/client/index.cjs +134 -29
- package/dist/client/index.d.cts +53 -3
- package/dist/client/index.d.ts +53 -3
- package/dist/client/index.js +14 -2
- package/dist/index.cjs +321 -162
- package/dist/index.d.cts +30 -8
- package/dist/index.d.ts +30 -8
- package/dist/index.js +176 -133
- package/dist/quasar/index.cjs +78 -29
- package/dist/quasar/index.d.cts +2 -2
- package/dist/quasar/index.d.ts +2 -2
- package/dist/quasar/index.js +6 -2
- package/dist/testing-e2e/admin-pages-suite.d.cts +37 -0
- package/dist/testing-e2e/admin-pages-suite.d.ts +37 -0
- package/dist/{use-super-admin-i18n-BlqcD0N7.d.ts → use-super-admin-i18n-CHNdsSlm.d.ts} +34 -7
- package/dist/{use-super-admin-i18n-1nCOkvgi.d.cts → use-super-admin-i18n-CgTuNi8h.d.cts} +34 -7
- package/package.json +18 -8
- package/src/client/i18n/messages/bundles.ts +0 -2
- package/src/client/i18n/messages/common.ts +24 -0
- package/src/client/i18n/messages/discovery.ts +2 -2
- package/src/client/i18n/messages/marketing.ts +2 -4
- package/src/client/i18n/messages/plan-detail.ts +0 -4
- package/src/client/i18n/messages/plans.ts +20 -8
- package/src/client/i18n/messages/tenants.ts +0 -2
- package/src/client/index.ts +1 -0
- package/src/client/manifest-loader.ts +1 -1
- package/src/client/resolve-plans.ts +144 -0
- package/src/components/BundleVersionPublishDialog.vue +6 -6
- package/src/components/KvBlock.vue +4 -4
- package/src/components/MarketingPromotionsTab.vue +34 -48
- package/src/components/MfaPromptDialog.vue +8 -2
- package/src/components/TenantActionConfirmDialog.vue +4 -4
- package/src/components/VersionDiffPreview.vue +7 -7
- package/src/components/admin-page/AdminBody.vue +40 -0
- package/src/components/admin-page/AdminFilters.vue +12 -0
- package/src/components/admin-page/AdminHero.vue +49 -0
- package/src/components/admin-page/AdminKpi.vue +84 -0
- package/src/components/admin-page/AdminPage.vue +16 -0
- package/src/components/admin-page/AdminPaginator.vue +195 -0
- package/src/components/admin-page/AdminRefreshBtn.vue +39 -0
- package/src/components/admin-page/AdminSection.vue +53 -0
- package/src/components/admin-page/AdminStatistics.vue +40 -0
- package/src/components/admin-page/AdminTable.vue +175 -0
- package/src/components/bundle-editor/BundleCreatePanel.vue +23 -23
- package/src/components/bundle-editor/BundleFeaturesEditor.vue +7 -7
- package/src/components/bundle-editor/BundlePlanCompatPicker.vue +9 -9
- package/src/components/bundle-editor/BundleQuotasEditor.vue +11 -11
- package/src/components/bundle-editor/BundleStatusBanner.vue +6 -6
- package/src/components/bundle-editor/BundleVersionInlineEditor.vue +18 -18
- package/src/components/bundle-editor/BundleVersionStrip.vue +12 -12
- package/src/components/dialogs/PilotCreateDialog.vue +12 -12
- package/src/components/dialogs/PilotEditDialog.vue +7 -7
- package/src/components/dialogs/PromoCodeCreateDialog.vue +8 -8
- package/src/components/dialogs/PromoCodeDialogFields.vue +33 -19
- package/src/components/dialogs/PromoCodeEditDialog.vue +10 -10
- package/src/components/plan/PlanGrid.vue +1 -1
- package/src/components/plan-create-dialog/PlanCreateDialog.vue +34 -46
- package/src/components/plan-detail/PlanAuditLog.vue +7 -8
- package/src/components/plan-detail/PlanDetail.vue +95 -292
- package/src/components/plan-detail/PlanDetailKpis.vue +22 -27
- package/src/components/plan-detail/PlanTitleEdit.vue +133 -0
- package/src/components/plan-detail/PlanVersionDiffPanel.vue +5 -8
- package/src/components/plan-detail/PlanVersionsPanel.vue +9 -11
- package/src/components/plan-list/PlanList.vue +206 -457
- package/src/components/plan-matrix/PlanMatrix.vue +66 -183
- package/src/components/plan-review/PlanReview.vue +191 -275
- package/src/components/plan-version-editor/PlanCatalogPreview.vue +7 -5
- package/src/components/plan-version-editor/PlanVersionEditor.vue +200 -295
- package/src/components/plan-version-editor/PlanVersionEditorHeader.vue +23 -55
- package/src/index.ts +1 -0
- package/src/pages-standard/AdminLayout.vue +38 -12
- package/src/pages-standard/AdminManifestErrorPage.vue +79 -9
- package/src/pages-standard/AuditPage.vue +65 -109
- package/src/pages-standard/BundlesPage.vue +146 -179
- package/src/pages-standard/DashboardPage.vue +59 -154
- package/src/pages-standard/DiscoveryPage.vue +172 -227
- package/src/pages-standard/EmailHistoryPage.vue +118 -159
- package/src/pages-standard/MarketingCatalogPage.vue +399 -440
- package/src/pages-standard/PilotsPage.vue +69 -117
- package/src/pages-standard/PlansPage.vue +240 -112
- package/src/pages-standard/PlatformEmailPage.vue +56 -91
- package/src/pages-standard/PromoCodeDetailPage.vue +49 -74
- package/src/pages-standard/PromoCodesPage.vue +95 -128
- package/src/pages-standard/SubscriptionsPage.vue +19 -52
- package/src/pages-standard/SuperAdminLoginPage.vue +12 -12
- package/src/pages-standard/SuperAdminSetupWizard.vue +22 -18
- package/src/pages-standard/TenantDetailPage.vue +100 -191
- package/src/pages-standard/TenantsPage.vue +190 -295
- package/src/pages-standard/UsersPage.vue +89 -157
- package/src/pages-standard/bundles-page/BundleAccordionList.vue +20 -17
- package/src/pages-standard/bundles-page/BundlesKpis.vue +13 -22
- package/src/pages-standard/bundles-page/BundlesToolbar.vue +63 -0
- package/src/pages-standard/discovery-page/CatalogEntryTransPanel.vue +10 -10
- package/src/pages-standard/discovery-page/DiscoveryCapList.vue +5 -5
- package/src/pages-standard/discovery-page/DiscoveryFeatureCard.vue +16 -16
- package/src/pages-standard/discovery-page/DiscoveryKpis.vue +31 -27
- package/src/pages-standard/discovery-page/DiscoveryQuotaCard.vue +7 -7
- package/src/pages-standard/marketing-catalog/MarketingCatalogAdmin.vue +111 -73
- package/src/pages-standard/marketing-catalog/MarketingCatalogHeader.vue +43 -62
- package/src/pages-standard/marketing-catalog/MarketingCatalogPreview.vue +53 -35
- package/src/pages-standard/marketing-catalog/MarketingCatalogToolbar.vue +7 -7
- package/src/pages-standard/plan-versions/PlanDiffCard.vue +6 -6
- package/src/pages-standard/plan-versions/PlanVersionsDiff.vue +6 -6
- package/src/pages-standard/plan-versions/PlanVersionsTimeline.vue +16 -16
- package/src/pages-standard/plans-page/PlanBundleOverview.vue +14 -29
- package/src/pages-standard/plans-page/PlanPublishDialog.vue +1 -1
- package/src/pages-standard/plans-page/PlansPageToast.vue +6 -6
- package/src/pages-standard/sa-theme.css +552 -86
- package/src/pages-standard/tenant-detail/TenantMasterData.vue +28 -0
- package/src/pages-standard/tenant-detail/TenantUsage.vue +31 -0
- package/src/pages-standard/tenant-detail/TenantUsers.vue +15 -0
- package/src/pages-standard/tenant-detail/types.ts +38 -0
- package/src/pages-standard/tenants/StatusPill.vue +2 -2
- package/src/pages-tenant/MySubscriptionBundlesPage.vue +25 -25
- package/src/pages-tenant/OnboardingConfigurator.vue +1 -5
- package/src/pages-tenant/PackageSnapshotPanel.vue +1 -1
- package/src/pages-tenant/TenantPlanSection.vue +12 -20
- package/src/quasar/create-super-admin-app.ts +4 -0
- package/src/vue/entitlement-provider.ts +0 -1
- package/src/vue/feature-router-guard.ts +0 -1
- package/src/vue/super-admin-context.ts +106 -1
- package/src/vue/use-api-list.ts +2 -1
- package/src/vue/use-mfa-prompt.ts +72 -0
- package/src/vue/use-pagination.ts +63 -0
- package/src/vue/use-plans.ts +1 -2
- package/src/vue/use-sign-out.ts +90 -0
- package/src/vue/use-tenant-billing.ts +1 -1
- package/src/vue/use-tenant-manifest.ts +0 -1
- package/src/components/KpiCard.vue +0 -53
- package/src/components/plan-cockpit/PlanCockpit.vue +0 -1012
- package/src/components/plan-cockpit/PlanCockpitAuditLog.vue +0 -72
- package/src/components/plan-cockpit/PlanCockpitDiffPanel.vue +0 -100
- package/src/components/plan-cockpit/PlanCockpitHeader.vue +0 -101
- package/src/components/plan-cockpit/PlanCockpitImpactPanel.vue +0 -112
- package/src/components/plan-cockpit/PlanCockpitKpis.vue +0 -68
- package/src/components/plan-cockpit/PlanCockpitVersions.vue +0 -251
- package/src/components/plan-cockpit/types.ts +0 -72
- package/src/components/plan-detail/PlanDetailHeader.vue +0 -194
- package/src/pages-standard/bundles-page/BundlesHeader.vue +0 -68
- package/src/pages-standard/discovery-page/DiscoveryHeader.vue +0 -34
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sa-table">
|
|
3
|
+
<q-table
|
|
4
|
+
v-model:pagination="pagination"
|
|
5
|
+
v-bind="$attrs"
|
|
6
|
+
flat
|
|
7
|
+
hide-pagination
|
|
8
|
+
:rows="rows"
|
|
9
|
+
:columns="allColumns"
|
|
10
|
+
:row-key="rowKey"
|
|
11
|
+
:loading="loading"
|
|
12
|
+
:rows-number="serverSide ? total : undefined"
|
|
13
|
+
>
|
|
14
|
+
<!-- Cell and header slots stay the page's business; only the
|
|
15
|
+
actions column is ours. -->
|
|
16
|
+
<template v-for="name in passedSlots" #[name]="slotProps" :key="name">
|
|
17
|
+
<slot :name="name" v-bind="slotProps ?? {}" />
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<template v-if="$slots['row-actions']" #body-cell-actions="cell">
|
|
21
|
+
<q-td :props="cell" class="sa-table__actions">
|
|
22
|
+
<slot name="row-actions" :row="cell.row" />
|
|
23
|
+
</q-td>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<template #no-data>
|
|
27
|
+
<slot name="no-data">
|
|
28
|
+
<span class="sa-table__empty">{{ emptyText ?? common.noData }}</span>
|
|
29
|
+
</slot>
|
|
30
|
+
</template>
|
|
31
|
+
</q-table>
|
|
32
|
+
|
|
33
|
+
<div class="sa-table__foot">
|
|
34
|
+
<AdminPaginator
|
|
35
|
+
:page="pagerPage"
|
|
36
|
+
:rows-per-page="pagerRowsPerPage"
|
|
37
|
+
:total="serverSide ? total : rows.length"
|
|
38
|
+
:storage-key="storageKey"
|
|
39
|
+
:page-sizes="offeredPageSizes"
|
|
40
|
+
@update:page="onPageChange"
|
|
41
|
+
@update:rows-per-page="onRowsPerPageChange"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script lang="ts">
|
|
48
|
+
// Attributes and listeners belong on the table, not on the wrapper: a page
|
|
49
|
+
// that binds `@row-click` means the rows, and silently dropping it took the
|
|
50
|
+
// email history's detail view with it.
|
|
51
|
+
export default { inheritAttrs: false };
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<script setup lang="ts">
|
|
55
|
+
import { computed, ref, useSlots, watch } from 'vue';
|
|
56
|
+
import type { QTableColumn } from 'quasar';
|
|
57
|
+
import { useSaMessages } from '../../vue/use-super-admin-i18n.js';
|
|
58
|
+
import {
|
|
59
|
+
ALL_ROWS,
|
|
60
|
+
DEFAULT_ROWS_PER_PAGE,
|
|
61
|
+
PAGE_SIZE_OPTIONS,
|
|
62
|
+
SERVER_PAGE_SIZE_OPTIONS,
|
|
63
|
+
} from '../../vue/use-pagination.js';
|
|
64
|
+
import AdminPaginator from './AdminPaginator.vue';
|
|
65
|
+
|
|
66
|
+
// Every list in the admin. Nine pages used to reach for `q-table` directly and
|
|
67
|
+
// agreed on nothing: what a header looks like, where actions sit, whether
|
|
68
|
+
// there was a pager at all.
|
|
69
|
+
//
|
|
70
|
+
// Sorting and paging live together here on purpose. A page that sliced its own
|
|
71
|
+
// rows and handed the slice to a table would have that table sort the slice —
|
|
72
|
+
// so "sort by name" would order the ten rows that happened to be on screen,
|
|
73
|
+
// not the list. Here QTable holds every row and does both, in that order.
|
|
74
|
+
//
|
|
75
|
+
// The actions column is added by this component rather than declared by the
|
|
76
|
+
// page: it is always last, always right-aligned, and it only exists when a
|
|
77
|
+
// page fills `row-actions`.
|
|
78
|
+
|
|
79
|
+
const ACTIONS_COLUMN = 'actions';
|
|
80
|
+
/** Handled here, so they must not be forwarded to QTable as-is. */
|
|
81
|
+
const OWN_SLOTS = new Set(['row-actions', 'no-data']);
|
|
82
|
+
|
|
83
|
+
const props = withDefaults(
|
|
84
|
+
defineProps<{
|
|
85
|
+
rows: readonly Record<string, unknown>[];
|
|
86
|
+
columns: QTableColumn[];
|
|
87
|
+
rowKey?: string;
|
|
88
|
+
loading?: boolean;
|
|
89
|
+
emptyText?: string;
|
|
90
|
+
/** Remembers the page size per list; omit to keep it for the visit. */
|
|
91
|
+
storageKey?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The rows are one server page already. QTable then renders them as
|
|
94
|
+
* given instead of slicing again, and the page owns page and size.
|
|
95
|
+
*/
|
|
96
|
+
serverSide?: boolean;
|
|
97
|
+
page?: number;
|
|
98
|
+
rowsPerPage?: number;
|
|
99
|
+
/** Rows across all pages. Required with `serverSide`. */
|
|
100
|
+
total?: number;
|
|
101
|
+
}>(),
|
|
102
|
+
{ rowKey: 'id', loading: false, serverSide: false, total: 0 },
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
const emit = defineEmits<{
|
|
106
|
+
(e: 'update:page', page: number): void;
|
|
107
|
+
(e: 'update:rowsPerPage', rows: number): void;
|
|
108
|
+
}>();
|
|
109
|
+
|
|
110
|
+
const slots = useSlots();
|
|
111
|
+
const common = useSaMessages('common');
|
|
112
|
+
|
|
113
|
+
const passedSlots = computed(() => Object.keys(slots).filter((name) => !OWN_SLOTS.has(name)));
|
|
114
|
+
|
|
115
|
+
const allColumns = computed<QTableColumn[]>(() =>
|
|
116
|
+
slots['row-actions']
|
|
117
|
+
? [
|
|
118
|
+
...props.columns,
|
|
119
|
+
{ name: ACTIONS_COLUMN, label: '', field: ACTIONS_COLUMN, align: 'right' },
|
|
120
|
+
]
|
|
121
|
+
: props.columns,
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
// QTable's own pagination object carries the sort as well as the page, which
|
|
125
|
+
// is why it is one ref rather than two props: `sortBy` and `descending` are
|
|
126
|
+
// nobody else's business, while page and size belong to the pager.
|
|
127
|
+
//
|
|
128
|
+
// A server-paged list is handed exactly one page of rows, so QTable must not
|
|
129
|
+
// page on top of that — it would hide rows the server already narrowed to.
|
|
130
|
+
// There, `rowsPerPage: 0` means "render what you were given" and the real size
|
|
131
|
+
// lives with the page.
|
|
132
|
+
const pagination = ref({
|
|
133
|
+
page: props.serverSide ? (props.page ?? 1) : 1,
|
|
134
|
+
rowsPerPage: props.serverSide ? ALL_ROWS : DEFAULT_ROWS_PER_PAGE,
|
|
135
|
+
sortBy: null as string | null,
|
|
136
|
+
descending: false,
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
/** What the pager shows: the server's size, or the one QTable slices by. */
|
|
140
|
+
const pagerRowsPerPage = computed(() =>
|
|
141
|
+
props.serverSide ? (props.rowsPerPage ?? DEFAULT_ROWS_PER_PAGE) : pagination.value.rowsPerPage,
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
const offeredPageSizes = computed(() =>
|
|
145
|
+
props.serverSide ? [...SERVER_PAGE_SIZE_OPTIONS] : [...PAGE_SIZE_OPTIONS],
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
const pagerPage = computed(() => (props.serverSide ? (props.page ?? 1) : pagination.value.page));
|
|
149
|
+
|
|
150
|
+
// Filtering can shrink a list under the current page; without this the table
|
|
151
|
+
// renders an empty slice and looks like it lost its rows.
|
|
152
|
+
const pageCount = computed(() => {
|
|
153
|
+
const size = pagination.value.rowsPerPage;
|
|
154
|
+
if (props.serverSide || size === ALL_ROWS) return 1;
|
|
155
|
+
return Math.max(1, Math.ceil(props.rows.length / size));
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
watch(pageCount, (count) => {
|
|
159
|
+
if (pagination.value.page > count) pagination.value.page = count;
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
function onPageChange(page: number): void {
|
|
163
|
+
if (!props.serverSide) pagination.value.page = page;
|
|
164
|
+
emit('update:page', page);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function onRowsPerPageChange(rows: number): void {
|
|
168
|
+
if (!props.serverSide) {
|
|
169
|
+
pagination.value.rowsPerPage = rows;
|
|
170
|
+
pagination.value.page = 1;
|
|
171
|
+
}
|
|
172
|
+
emit('update:rowsPerPage', rows);
|
|
173
|
+
emit('update:page', 1);
|
|
174
|
+
}
|
|
175
|
+
</script>
|
|
@@ -503,18 +503,18 @@ async function submit(): Promise<void> {
|
|
|
503
503
|
justify-content: space-between;
|
|
504
504
|
gap: 16px;
|
|
505
505
|
padding: 18px 22px 12px;
|
|
506
|
-
border-bottom: 1px solid
|
|
506
|
+
border-bottom: 1px solid var(--sa-border);
|
|
507
507
|
}
|
|
508
508
|
.bcp-title {
|
|
509
509
|
font-size: 18px;
|
|
510
510
|
font-weight: 700;
|
|
511
|
-
color:
|
|
511
|
+
color: var(--sa-heading);
|
|
512
512
|
letter-spacing: -0.01em;
|
|
513
513
|
}
|
|
514
514
|
.bcp-sub {
|
|
515
515
|
margin-top: 4px;
|
|
516
516
|
font-size: 12.5px;
|
|
517
|
-
color:
|
|
517
|
+
color: var(--sa-muted);
|
|
518
518
|
max-width: 580px;
|
|
519
519
|
line-height: 1.5;
|
|
520
520
|
}
|
|
@@ -522,13 +522,13 @@ async function submit(): Promise<void> {
|
|
|
522
522
|
background: transparent;
|
|
523
523
|
border: 0;
|
|
524
524
|
cursor: pointer;
|
|
525
|
-
color:
|
|
525
|
+
color: var(--sa-muted);
|
|
526
526
|
padding: 4px;
|
|
527
527
|
border-radius: 4px;
|
|
528
528
|
}
|
|
529
529
|
.bcp-close:hover {
|
|
530
|
-
background:
|
|
531
|
-
color:
|
|
530
|
+
background: var(--sa-border-soft);
|
|
531
|
+
color: var(--sa-heading);
|
|
532
532
|
}
|
|
533
533
|
.bcp-body {
|
|
534
534
|
padding: 16px 22px;
|
|
@@ -552,7 +552,7 @@ async function submit(): Promise<void> {
|
|
|
552
552
|
width: 24px;
|
|
553
553
|
height: 24px;
|
|
554
554
|
border-radius: 999px;
|
|
555
|
-
background:
|
|
555
|
+
background: var(--sa-primary);
|
|
556
556
|
color: #fff;
|
|
557
557
|
font:
|
|
558
558
|
700 12px 'JetBrains Mono',
|
|
@@ -563,11 +563,11 @@ async function submit(): Promise<void> {
|
|
|
563
563
|
.bcp-section-title {
|
|
564
564
|
font-size: 14px;
|
|
565
565
|
font-weight: 700;
|
|
566
|
-
color:
|
|
566
|
+
color: var(--sa-heading);
|
|
567
567
|
}
|
|
568
568
|
.bcp-section-sub {
|
|
569
569
|
font-size: 12px;
|
|
570
|
-
color:
|
|
570
|
+
color: var(--sa-muted);
|
|
571
571
|
margin-top: 2px;
|
|
572
572
|
line-height: 1.4;
|
|
573
573
|
}
|
|
@@ -587,11 +587,11 @@ async function submit(): Promise<void> {
|
|
|
587
587
|
.bcp-field-label {
|
|
588
588
|
font-size: 11.5px;
|
|
589
589
|
font-weight: 600;
|
|
590
|
-
color:
|
|
590
|
+
color: var(--sa-muted-dark);
|
|
591
591
|
}
|
|
592
592
|
.bcp-field-hint {
|
|
593
593
|
font-size: 10.5px;
|
|
594
|
-
color:
|
|
594
|
+
color: var(--sa-muted-light);
|
|
595
595
|
font-weight: 500;
|
|
596
596
|
}
|
|
597
597
|
.bcp-input {
|
|
@@ -600,7 +600,7 @@ async function submit(): Promise<void> {
|
|
|
600
600
|
border-radius: 6px;
|
|
601
601
|
font-family: inherit;
|
|
602
602
|
font-size: 13px;
|
|
603
|
-
color:
|
|
603
|
+
color: var(--sa-heading);
|
|
604
604
|
background: #fff;
|
|
605
605
|
}
|
|
606
606
|
.bcp-input--mono {
|
|
@@ -628,9 +628,9 @@ async function submit(): Promise<void> {
|
|
|
628
628
|
align-items: center;
|
|
629
629
|
padding: 0 10px;
|
|
630
630
|
font-size: 11.5px;
|
|
631
|
-
color:
|
|
632
|
-
background:
|
|
633
|
-
border-left: 1px solid
|
|
631
|
+
color: var(--sa-muted);
|
|
632
|
+
background: var(--sa-bg-surface-2);
|
|
633
|
+
border-left: 1px solid var(--sa-border);
|
|
634
634
|
border-radius: 0 6px 6px 0;
|
|
635
635
|
}
|
|
636
636
|
.bcp-error-inline {
|
|
@@ -650,8 +650,8 @@ async function submit(): Promise<void> {
|
|
|
650
650
|
align-items: center;
|
|
651
651
|
gap: 10px;
|
|
652
652
|
padding: 12px 22px;
|
|
653
|
-
border-top: 1px solid
|
|
654
|
-
background:
|
|
653
|
+
border-top: 1px solid var(--sa-border);
|
|
654
|
+
background: var(--sa-bg-surface-2);
|
|
655
655
|
border-radius: 0 0 12px 12px;
|
|
656
656
|
}
|
|
657
657
|
.bcp-foot-hint {
|
|
@@ -660,7 +660,7 @@ async function submit(): Promise<void> {
|
|
|
660
660
|
align-items: center;
|
|
661
661
|
gap: 6px;
|
|
662
662
|
font-size: 12px;
|
|
663
|
-
color:
|
|
663
|
+
color: var(--sa-muted-dark);
|
|
664
664
|
}
|
|
665
665
|
.bcp-foot-hint--warn {
|
|
666
666
|
color: #b91c1c;
|
|
@@ -674,21 +674,21 @@ async function submit(): Promise<void> {
|
|
|
674
674
|
cursor: pointer;
|
|
675
675
|
font-size: 12.5px;
|
|
676
676
|
font-family: inherit;
|
|
677
|
-
color:
|
|
677
|
+
color: var(--sa-heading);
|
|
678
678
|
}
|
|
679
679
|
.bcp-btn:hover:not(:disabled) {
|
|
680
|
-
background:
|
|
680
|
+
background: var(--sa-bg-surface-2);
|
|
681
681
|
}
|
|
682
682
|
.bcp-btn:disabled {
|
|
683
683
|
cursor: not-allowed;
|
|
684
684
|
opacity: 0.5;
|
|
685
685
|
}
|
|
686
686
|
.bcp-btn--primary {
|
|
687
|
-
background:
|
|
688
|
-
border-color:
|
|
687
|
+
background: var(--sa-primary);
|
|
688
|
+
border-color: var(--sa-primary);
|
|
689
689
|
color: #fff;
|
|
690
690
|
}
|
|
691
691
|
.bcp-btn--primary:hover:not(:disabled) {
|
|
692
|
-
background:
|
|
692
|
+
background: var(--sa-primary-strong);
|
|
693
693
|
}
|
|
694
694
|
</style>
|
|
@@ -155,7 +155,7 @@ function onToggle(featureKey: string): void {
|
|
|
155
155
|
font-weight: 700;
|
|
156
156
|
text-transform: uppercase;
|
|
157
157
|
letter-spacing: 0.08em;
|
|
158
|
-
color:
|
|
158
|
+
color: var(--sa-muted);
|
|
159
159
|
}
|
|
160
160
|
.bd-features-row {
|
|
161
161
|
display: flex;
|
|
@@ -168,19 +168,19 @@ function onToggle(featureKey: string): void {
|
|
|
168
168
|
gap: 6px;
|
|
169
169
|
padding: 6px 10px;
|
|
170
170
|
background: #fff;
|
|
171
|
-
border: 1px solid
|
|
171
|
+
border: 1px solid var(--sa-border);
|
|
172
172
|
border-radius: 999px;
|
|
173
173
|
cursor: pointer;
|
|
174
174
|
font-family: inherit;
|
|
175
175
|
font-size: 12px;
|
|
176
|
-
color:
|
|
176
|
+
color: var(--sa-heading);
|
|
177
177
|
transition:
|
|
178
178
|
background 0.12s,
|
|
179
179
|
border-color 0.12s,
|
|
180
180
|
color 0.12s;
|
|
181
181
|
}
|
|
182
182
|
.bd-feature-pill:hover:not(:disabled) {
|
|
183
|
-
background:
|
|
183
|
+
background: var(--sa-bg-surface-2);
|
|
184
184
|
border-color: #cbd5e1;
|
|
185
185
|
}
|
|
186
186
|
.bd-feature-pill.on {
|
|
@@ -204,18 +204,18 @@ function onToggle(featureKey: string): void {
|
|
|
204
204
|
600 10px 'JetBrains Mono',
|
|
205
205
|
ui-monospace,
|
|
206
206
|
monospace;
|
|
207
|
-
color:
|
|
207
|
+
color: var(--sa-muted-light);
|
|
208
208
|
margin-left: 4px;
|
|
209
209
|
}
|
|
210
210
|
.bd-feature-pill.on .bd-feature-key {
|
|
211
|
-
color:
|
|
211
|
+
color: var(--sa-primary);
|
|
212
212
|
}
|
|
213
213
|
.bd-feature-pill.overlap .bd-feature-key {
|
|
214
214
|
color: #b91c1c;
|
|
215
215
|
}
|
|
216
216
|
.bd-features-empty {
|
|
217
217
|
padding: 12px;
|
|
218
|
-
color:
|
|
218
|
+
color: var(--sa-muted-light);
|
|
219
219
|
font-style: italic;
|
|
220
220
|
font-size: 12.5px;
|
|
221
221
|
}
|
|
@@ -183,7 +183,7 @@ function onToggle(planKey: string): void {
|
|
|
183
183
|
}
|
|
184
184
|
.bv-compat-hint {
|
|
185
185
|
font-size: 11.5px;
|
|
186
|
-
color:
|
|
186
|
+
color: var(--sa-muted);
|
|
187
187
|
line-height: 1.5;
|
|
188
188
|
}
|
|
189
189
|
.bv-compat-grid {
|
|
@@ -197,22 +197,22 @@ function onToggle(planKey: string): void {
|
|
|
197
197
|
gap: 6px;
|
|
198
198
|
padding: 10px 12px;
|
|
199
199
|
background: #fff;
|
|
200
|
-
border: 1px solid
|
|
200
|
+
border: 1px solid var(--sa-border);
|
|
201
201
|
border-radius: 8px;
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
text-align: left;
|
|
204
204
|
font-family: inherit;
|
|
205
|
-
color:
|
|
205
|
+
color: var(--sa-heading);
|
|
206
206
|
transition:
|
|
207
207
|
background 0.12s,
|
|
208
208
|
border-color 0.12s;
|
|
209
209
|
}
|
|
210
210
|
.bv-compat-card:hover:not(:disabled) {
|
|
211
|
-
background:
|
|
211
|
+
background: var(--sa-bg-surface-2);
|
|
212
212
|
}
|
|
213
213
|
.bv-compat-card.on {
|
|
214
|
-
border-color:
|
|
215
|
-
background:
|
|
214
|
+
border-color: var(--sa-primary);
|
|
215
|
+
background: var(--sa-primary-50);
|
|
216
216
|
}
|
|
217
217
|
.bv-compat-card.warn {
|
|
218
218
|
border-color: #fca5a5;
|
|
@@ -256,10 +256,10 @@ function onToggle(planKey: string): void {
|
|
|
256
256
|
500 11px 'JetBrains Mono',
|
|
257
257
|
ui-monospace,
|
|
258
258
|
monospace;
|
|
259
|
-
color:
|
|
259
|
+
color: var(--sa-muted);
|
|
260
260
|
}
|
|
261
261
|
.bv-compat-check {
|
|
262
|
-
color:
|
|
262
|
+
color: var(--sa-primary);
|
|
263
263
|
display: inline-flex;
|
|
264
264
|
}
|
|
265
265
|
.bv-compat-overlap {
|
|
@@ -298,7 +298,7 @@ function onToggle(planKey: string): void {
|
|
|
298
298
|
}
|
|
299
299
|
.bv-compat-empty {
|
|
300
300
|
padding: 12px;
|
|
301
|
-
color:
|
|
301
|
+
color: var(--sa-muted-light);
|
|
302
302
|
font-style: italic;
|
|
303
303
|
font-size: 12.5px;
|
|
304
304
|
text-align: center;
|
|
@@ -133,7 +133,7 @@ function quotaUnit(q: DiscoveredQuota): string {
|
|
|
133
133
|
gap: 10px;
|
|
134
134
|
padding: 8px 10px;
|
|
135
135
|
background: #fff;
|
|
136
|
-
border: 1px solid
|
|
136
|
+
border: 1px solid var(--sa-border);
|
|
137
137
|
border-radius: 8px;
|
|
138
138
|
transition:
|
|
139
139
|
background 0.12s,
|
|
@@ -157,11 +157,11 @@ function quotaUnit(q: DiscoveredQuota): string {
|
|
|
157
157
|
border: 1px solid #cbd5e1;
|
|
158
158
|
border-radius: 6px;
|
|
159
159
|
cursor: pointer;
|
|
160
|
-
color:
|
|
160
|
+
color: var(--sa-muted-dark);
|
|
161
161
|
}
|
|
162
162
|
.bd-quota-row.on .bd-quota-toggle {
|
|
163
|
-
background:
|
|
164
|
-
border-color:
|
|
163
|
+
background: var(--sa-primary);
|
|
164
|
+
border-color: var(--sa-primary);
|
|
165
165
|
color: #fff;
|
|
166
166
|
}
|
|
167
167
|
.bd-quota-toggle:disabled {
|
|
@@ -176,14 +176,14 @@ function quotaUnit(q: DiscoveredQuota): string {
|
|
|
176
176
|
.bd-quota-label {
|
|
177
177
|
font-size: 13px;
|
|
178
178
|
font-weight: 600;
|
|
179
|
-
color:
|
|
179
|
+
color: var(--sa-heading);
|
|
180
180
|
}
|
|
181
181
|
.bd-quota-key {
|
|
182
182
|
font:
|
|
183
183
|
500 10.5px 'JetBrains Mono',
|
|
184
184
|
ui-monospace,
|
|
185
185
|
monospace;
|
|
186
|
-
color:
|
|
186
|
+
color: var(--sa-muted-light);
|
|
187
187
|
}
|
|
188
188
|
.bd-quota-valwrap {
|
|
189
189
|
display: inline-flex;
|
|
@@ -201,21 +201,21 @@ function quotaUnit(q: DiscoveredQuota): string {
|
|
|
201
201
|
monospace;
|
|
202
202
|
text-align: right;
|
|
203
203
|
background: #fff;
|
|
204
|
-
color:
|
|
204
|
+
color: var(--sa-heading);
|
|
205
205
|
}
|
|
206
206
|
.bd-quota-val:disabled {
|
|
207
|
-
background:
|
|
208
|
-
color:
|
|
207
|
+
background: var(--sa-border-soft);
|
|
208
|
+
color: var(--sa-muted-light);
|
|
209
209
|
cursor: not-allowed;
|
|
210
210
|
}
|
|
211
211
|
.bd-quota-unit {
|
|
212
212
|
font-size: 11.5px;
|
|
213
|
-
color:
|
|
213
|
+
color: var(--sa-muted);
|
|
214
214
|
min-width: 32px;
|
|
215
215
|
}
|
|
216
216
|
.bd-quotas-empty {
|
|
217
217
|
padding: 12px;
|
|
218
|
-
color:
|
|
218
|
+
color: var(--sa-muted-light);
|
|
219
219
|
font-style: italic;
|
|
220
220
|
font-size: 12.5px;
|
|
221
221
|
}
|
|
@@ -151,22 +151,22 @@ const supersededTail = computed(() =>
|
|
|
151
151
|
line-height: 1.4;
|
|
152
152
|
}
|
|
153
153
|
.bv-status-live {
|
|
154
|
-
background:
|
|
154
|
+
background: var(--sa-positive-bg);
|
|
155
155
|
border-color: #a7f3d0;
|
|
156
156
|
color: #065f46;
|
|
157
157
|
}
|
|
158
158
|
.bv-status-scheduled {
|
|
159
|
-
background:
|
|
159
|
+
background: var(--sa-warning-bg);
|
|
160
160
|
border-color: #fde68a;
|
|
161
161
|
color: #92400e;
|
|
162
162
|
}
|
|
163
163
|
.bv-status-superseded {
|
|
164
|
-
background:
|
|
164
|
+
background: var(--sa-border-soft);
|
|
165
165
|
border-color: #cbd5e1;
|
|
166
|
-
color:
|
|
166
|
+
color: var(--sa-muted-dark);
|
|
167
167
|
}
|
|
168
168
|
.bv-status-draft {
|
|
169
|
-
background:
|
|
169
|
+
background: var(--sa-primary-50);
|
|
170
170
|
border-color: #bfdbfe;
|
|
171
171
|
color: #1e40af;
|
|
172
172
|
}
|
|
@@ -192,7 +192,7 @@ const supersededTail = computed(() =>
|
|
|
192
192
|
gap: 5px;
|
|
193
193
|
padding: 6px 10px;
|
|
194
194
|
background: #fff;
|
|
195
|
-
border: 1px solid
|
|
195
|
+
border: 1px solid var(--sa-border);
|
|
196
196
|
border-radius: 6px;
|
|
197
197
|
cursor: pointer;
|
|
198
198
|
font-size: 12px;
|
|
@@ -525,7 +525,7 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
525
525
|
font-weight: 700;
|
|
526
526
|
text-transform: uppercase;
|
|
527
527
|
letter-spacing: 0.08em;
|
|
528
|
-
color:
|
|
528
|
+
color: var(--sa-muted-dark);
|
|
529
529
|
padding-top: 2px;
|
|
530
530
|
}
|
|
531
531
|
.bve-section-label--top {
|
|
@@ -534,7 +534,7 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
534
534
|
.bve-section-count {
|
|
535
535
|
font-size: 10.5px;
|
|
536
536
|
font-weight: 600;
|
|
537
|
-
color:
|
|
537
|
+
color: var(--sa-muted-light);
|
|
538
538
|
text-transform: none;
|
|
539
539
|
letter-spacing: 0;
|
|
540
540
|
}
|
|
@@ -556,12 +556,12 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
556
556
|
}
|
|
557
557
|
.bve-field-label {
|
|
558
558
|
font-size: 11px;
|
|
559
|
-
color:
|
|
559
|
+
color: var(--sa-muted-dark);
|
|
560
560
|
font-weight: 600;
|
|
561
561
|
}
|
|
562
562
|
.bve-field-hint {
|
|
563
563
|
font-size: 10.5px;
|
|
564
|
-
color:
|
|
564
|
+
color: var(--sa-muted-light);
|
|
565
565
|
}
|
|
566
566
|
.bve-input-grp {
|
|
567
567
|
display: inline-flex;
|
|
@@ -579,9 +579,9 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
579
579
|
align-items: center;
|
|
580
580
|
padding: 0 8px;
|
|
581
581
|
font-size: 11.5px;
|
|
582
|
-
color:
|
|
583
|
-
background:
|
|
584
|
-
border-left: 1px solid
|
|
582
|
+
color: var(--sa-muted);
|
|
583
|
+
background: var(--sa-bg-surface-2);
|
|
584
|
+
border-left: 1px solid var(--sa-border);
|
|
585
585
|
border-radius: 0 6px 6px 0;
|
|
586
586
|
}
|
|
587
587
|
.bve-input {
|
|
@@ -590,16 +590,16 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
590
590
|
border-radius: 6px;
|
|
591
591
|
font-size: 13px;
|
|
592
592
|
font-family: inherit;
|
|
593
|
-
color:
|
|
593
|
+
color: var(--sa-heading);
|
|
594
594
|
background: #fff;
|
|
595
595
|
}
|
|
596
596
|
.bve-input--readonly {
|
|
597
|
-
color:
|
|
598
|
-
background:
|
|
597
|
+
color: var(--sa-muted-light);
|
|
598
|
+
background: var(--sa-bg-surface-2);
|
|
599
599
|
}
|
|
600
600
|
.bve-savings {
|
|
601
601
|
font-size: 11.5px;
|
|
602
|
-
color:
|
|
602
|
+
color: var(--sa-muted-dark);
|
|
603
603
|
display: inline-flex;
|
|
604
604
|
align-items: center;
|
|
605
605
|
gap: 8px;
|
|
@@ -622,7 +622,7 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
622
622
|
font-size: 13px;
|
|
623
623
|
}
|
|
624
624
|
.bve-toggle-label {
|
|
625
|
-
color:
|
|
625
|
+
color: var(--sa-heading);
|
|
626
626
|
}
|
|
627
627
|
.bve-textarea {
|
|
628
628
|
padding: 8px 10px;
|
|
@@ -630,7 +630,7 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
630
630
|
border-radius: 6px;
|
|
631
631
|
font-size: 13px;
|
|
632
632
|
font-family: inherit;
|
|
633
|
-
color:
|
|
633
|
+
color: var(--sa-heading);
|
|
634
634
|
background: #fff;
|
|
635
635
|
resize: vertical;
|
|
636
636
|
}
|
|
@@ -647,22 +647,22 @@ function recordsEqual(a: Record<string, number>, b: Record<string, number>): boo
|
|
|
647
647
|
cursor: pointer;
|
|
648
648
|
font-size: 12.5px;
|
|
649
649
|
font-family: inherit;
|
|
650
|
-
color:
|
|
650
|
+
color: var(--sa-heading);
|
|
651
651
|
}
|
|
652
652
|
.bve-btn:hover:not(:disabled) {
|
|
653
|
-
background:
|
|
653
|
+
background: var(--sa-bg-surface-2);
|
|
654
654
|
}
|
|
655
655
|
.bve-btn:disabled {
|
|
656
656
|
cursor: not-allowed;
|
|
657
657
|
opacity: 0.5;
|
|
658
658
|
}
|
|
659
659
|
.bve-btn--primary {
|
|
660
|
-
background:
|
|
661
|
-
border-color:
|
|
660
|
+
background: var(--sa-primary);
|
|
661
|
+
border-color: var(--sa-primary);
|
|
662
662
|
color: #fff;
|
|
663
663
|
}
|
|
664
664
|
.bve-btn--primary:hover:not(:disabled) {
|
|
665
|
-
background:
|
|
665
|
+
background: var(--sa-primary-strong);
|
|
666
666
|
}
|
|
667
667
|
.bve-error {
|
|
668
668
|
padding: 8px 12px;
|