ComplianceToggleCard

components/compliance/ToggleCard.vue

Framework activation card (c65 "surface semantics"): shield + name + toggle over a completeness bar. Active = raised white card, grape border, purple shield; inactive = sunken dashed card, grey shield. The bar stays neutral grey until 100% then goes grape; an "Enable Required Policies" button shows while gaps remain.

67% · 4 / 6 policies
Scenarios

5 policies mapped · 5 would need enabling

100% · 1 / 1 policies
67% · 4 / 6 policies
38% · 3 / 8 policies

0 policies mapped · 0 would need enabling

components/compliance/ToggleCard.vue

Usage

<ComplianceToggleCard name = "(required)" :active = "false" :percent = "0" :satisfied = "0" :required = "0" :gaps = "0" gapTitle = "—" />

Props

PropTypeDefaultDescription
nameString(required)Framework display name (truncates)
activeBooleanfalseActivation state — drives the whole visual treatment
percentNumber0Completeness 0–100 (shown when active); 100 turns the bar grape
satisfiedNumber0Count of required policies currently on
requiredNumber0Count of policies this framework requires
gapsNumber0Required-but-off count — > 0 shows the enable button (and the inactive-state hint line)
gapTitleString''Tooltip for the enable button (e.g. the gap policy names)

Events

EventDescription
toggleActivation toggled (card title or the switch)
enable-gaps"Enable Required Policies" clicked

Related

Qpoint Brand Style Guide