@maro-tech/card 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maro-tech/card",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.2.0",
@@ -418,6 +418,8 @@ interface HistoryConfig {
418
418
  }
419
419
  interface AuditChange {
420
420
  action: string;
421
+ entityLabel?: string;
422
+ fieldMetadata?: Record<string, HistoryFieldConfig>;
421
423
  entityId: string;
422
424
  entityType: string;
423
425
  changedFields: Record<string, AuditFieldChange>;
@@ -429,6 +431,7 @@ interface AuditOperation {
429
431
  actionCode: string;
430
432
  createdAt: string;
431
433
  changes: AuditChange[];
434
+ primaryEntity?: string;
432
435
  }
433
436
  declare class HistoryTabComponent {
434
437
  readonly entity: _angular_core.InputSignal<string>;
@@ -459,7 +462,7 @@ declare class HistoryTabComponent {
459
462
  private toStructuredItems;
460
463
  toggleOperation(id: string): void;
461
464
  isExpanded(id: string): boolean;
462
- getEntityLabel(entityType: string): string;
465
+ getEntityLabel(entityType: string, providedLabel?: string): string;
463
466
  getActionLabel(action: string): string;
464
467
  isImageField(field: AuditFieldChange): boolean;
465
468
  isStructuredField(field: AuditFieldChange): boolean;