Ga naar hoofdinhoud

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​

PropTypeDefaultDescription
registerstring''OpenRegister register slug or id.
schemastring | object''The schema slug, or the schema object (its slug, name or id is used).
objectIdstring''The audited object's id.
titlestring''Card title override. Defaults to the card's translated label.
maxDisplaynumber0Most audit rows shown. 0 uses the card default.
excludeActionsArray[]Actions left out, such as ["read"] (DqZaaktype history). Also read from content.excludeActions.
scopestring''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.
sourceobjectnullRead 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.
endpointstring''A trail URL of its own. Also read from content.endpoint.
contentobject{}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​

NameTypeRequiredDefaultDescription
registerstring''OpenRegister register slug/id — object context spread as props by CnWidgetGrid (slot path).
schemaunion''OpenRegister schema — a slug string, or the schema OBJECT the detail-context merge supplies (its slug/name/id is used).
objectIdstring''The audited object's id — object context spread as props by CnWidgetGrid (slot path).
titlestring''Optional card title override (defaults to the card's translated label).
maxDisplaynumber0Maximum audit rows to render (0 falls back to the card default).
scopestring''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.
sourceobjectnullRead the trail of something that is not an object ({ kind: 'flow-task', id? }); also read from content.source.
endpointstring''A trail URL of its own; also read from content.endpoint.
excludeActionsarray[]Actions to leave out (['read']); also read from content.excludeActions.
contentobject\{\}Stored widget content blob (CnDashboardPage registry branch): { title, maxDisplay, register?, schema?, objectId?, source?, endpoint?, emptyText?, excludeActions?, actionLabels?, valueLabels?, relatedSources?, excludeActors?, layout?, density? }.