← All Components
<mth-audit-log>
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
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>import '@methane-ui/admin/audit-log';
import '@methane-ui/react';
export function Example() {
return <mth-audit-log severity="all" row-height="56"></mth-audit-log>;
}<script setup lang="ts">
import '@methane-ui/admin/audit-log';
</script>
<template>
<mth-audit-log severity="all" row-height="56"></mth-audit-log>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/admin/audit-log';
import { MthAuditLogDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthAuditLogDirective],
template: `<mth-audit-log severity="all" row-height="56"></mth-audit-log>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/admin/audit-log';
import MthAuditLog from '@methane-ui/svelte/MthAuditLog.svelte';
</script>
<MthAuditLog severity="all" row-height="56"></MthAuditLog>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
entries | — | ReadonlyArray<unknown> | — | Static array of audit log entries. |
dataSource | — | unknown | null | — | Async DataSource<AuditLogEntry, AuditLogFilter> adapter. |
severity | severity | 'all' | 'info' | 'warning' | 'critical' | "all" | Severity filter (all, info, warning, critical). |
search | search | string | "" | Actor/action/resource search string. |
rowHeight | row-height | number | 56 | Estimated row height in pixels for VirtualizerController. |
Events
| Event | Detail Type | Description |
|---|---|---|
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
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(loading), :state(empty), :state(error). | Conformance suite |
| i18n | Routes 11 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |