CnAuditTrailWidget
The audit-trail widget: a CnAuditTrailCard that finds its object by itself. The card needs register, schema and objectId; the detail render paths supply the current object in different ways, so the widget reads whichever is present: explicit props first, then the injected object context, then content.
The widget registers itself as the audit-trail type (a detail-page widget), so a manifest places it by that key. It is also a named export:
import { CnAuditTrailWidget } from '@conduction/nextcloud-vue'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
register | string | '' | OpenRegister register slug or id. |
schema | string | object | '' | The schema slug, or the schema object (its slug, name or id is used). |
objectId | string | '' | The audited object's id. |
title | string | '' | Card title override. Defaults to the card's translated label. |
maxDisplay | number | 0 | Most audit rows shown. 0 uses the card default. |
excludeActions | Array | [] | Actions left out, such as ["read"] (DqZaaktype history). Also read from content.excludeActions. |
scope | string | '' | object (default) is one object's trail. app lists the app-wide feed, narrowed to register / schema when set, and needs no object. Also read from content.scope. |
source | object | null | Read the trail of something that is not an object, such as { kind: 'flow-task' } for the page's task (see CnAuditTrailCard). Also read from content.source. |
endpoint | string | '' | A trail URL of its own. Also read from content.endpoint. |
content | object | {} | The stored widget content: { title, maxDisplay, scope?, register?, schema?, objectId?, source?, endpoint?, emptyText?, excludeActions?, actionLabels?, footnote? }. footnote is a muted line under the trail, translated and filled from the page record ("Reference {identifier}" reads "Kenmerk ZT-OMV-REG", DqZaaktype); an empty field draws no line. |
Reference (auto-generated)
OpenRegister reliance
medium: this component relies on OpenRegister for part of what it does. 0 direct references, 9 files reached through imports.
Through: CnAuditTrailCard.
See the reliance overview for the filterable list.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
register | string | '' | OpenRegister register slug/id — object context spread as props by CnWidgetGrid (slot path). | |
schema | union | '' | OpenRegister schema — a slug string, or the schema OBJECT the detail-context merge supplies (its slug/name/id is used). | |
objectId | string | '' | The audited object's id — object context spread as props by CnWidgetGrid (slot path). | |
title | string | '' | Optional card title override (defaults to the card's translated label). | |
maxDisplay | number | 0 | Maximum audit rows to render (0 falls back to the card default). | |
scope | string | '' | app lists the app-wide feed (every object the caller may read, narrowed to register / schema when set) and needs no object; object (the default) is one object's trail. Also read from content.scope. | |
source | object | null | Read the trail of something that is not an object ({ kind: 'flow-task', id? }); also read from content.source. | |
endpoint | string | '' | A trail URL of its own; also read from content.endpoint. | |
excludeActions | array | [] | Actions to leave out (['read']); also read from content.excludeActions. | |
content | object | \{\} | Stored widget content blob (CnDashboardPage registry branch): { title, maxDisplay, register?, schema?, objectId?, source?, endpoint?, emptyText?, excludeActions?, actionLabels?, valueLabels?, relatedSources?, excludeActors?, layout?, density? }. |