@maro-tech/card 0.2.0 → 0.2.2

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.2",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.2.0",
@@ -377,6 +377,7 @@ declare class DocumentsComponent {
377
377
  interface AuditFieldChange {
378
378
  label: string;
379
379
  type?: string;
380
+ summary?: string;
380
381
  from: {
381
382
  value: unknown;
382
383
  display: string;
@@ -418,6 +419,8 @@ interface HistoryConfig {
418
419
  }
419
420
  interface AuditChange {
420
421
  action: string;
422
+ entityLabel?: string;
423
+ fieldMetadata?: Record<string, HistoryFieldConfig>;
421
424
  entityId: string;
422
425
  entityType: string;
423
426
  changedFields: Record<string, AuditFieldChange>;
@@ -429,6 +432,7 @@ interface AuditOperation {
429
432
  actionCode: string;
430
433
  createdAt: string;
431
434
  changes: AuditChange[];
435
+ primaryEntity?: string;
432
436
  }
433
437
  declare class HistoryTabComponent {
434
438
  readonly entity: _angular_core.InputSignal<string>;
@@ -459,7 +463,7 @@ declare class HistoryTabComponent {
459
463
  private toStructuredItems;
460
464
  toggleOperation(id: string): void;
461
465
  isExpanded(id: string): boolean;
462
- getEntityLabel(entityType: string): string;
466
+ getEntityLabel(entityType: string, providedLabel?: string): string;
463
467
  getActionLabel(action: string): string;
464
468
  isImageField(field: AuditFieldChange): boolean;
465
469
  isStructuredField(field: AuditFieldChange): boolean;