Methane@methane-ui/*
CSS LayoutsComponentsSkillsTheme BuilderGitHub
← All Components

<mth-audit-log>

@methane-ui/admin~9.0 KB brotli (kit + Lit)~2.6 KB marginal

Chronological virtualized audit log (<mth-audit-log>) powered by DataController and VirtualizerController with actor/action/resource/severity filtering.

When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.

Live Interactive Preview

Interactive StageLive Custom Element · <mth-audit-log> (@methane-ui/admin)
Ready · interact with <mth-audit-log>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/admin/audit-log"></script>
<mth-audit-log severity="all" row-height="56"></mth-audit-log>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
entries—ReadonlyArray<unknown>—Static array of audit log entries.
dataSource—unknown | null—Async DataSource<AuditLogEntry, AuditLogFilter> adapter.
severityseverity'all' | 'info' | 'warning' | 'critical'"all"Severity filter (all, info, warning, critical).
searchsearchstring""Actor/action/resource search string.
rowHeightrow-heightnumber56Estimated row height in pixels for VirtualizerController.

Events

EventDetail TypeDescription
mth-entry-select{ entry: unknown }Emitted when an audit entry is activated.
mth-filter-change{ search: string; severity: unknown }Emitted when search or severity filter changes.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusdelegatesFocus: true with zero host internals.role (ADR-014).lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
statesExposes ElementInternals CustomStateSet flags: :state(loading), :state(empty), :state(error).Conformance suite
i18nRoutes 11 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test