@maro-tech/card 0.1.18 → 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,23 +1,23 @@
1
1
  {
2
2
  "name": "@maro-tech/card",
3
- "version": "0.1.18",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
- "@panzoom/panzoom": "^4.6.2",
7
6
  "@angular/cdk": "^21.2.0",
8
7
  "@angular/common": "^21.2.0",
9
8
  "@angular/core": "^21.2.0",
10
9
  "@angular/forms": "^21.2.0",
11
10
  "@angular/router": "^21.2.0",
11
+ "@lucide/angular": "^1.48.0",
12
12
  "@maro-tech/core": "*",
13
13
  "@maro-tech/form": "*",
14
14
  "@maro-tech/table": "*",
15
- "lucide-angular": "^0.577.0",
15
+ "@panzoom/panzoom": "^4.6.2",
16
16
  "rxjs": "~7.8.0"
17
17
  },
18
18
  "dependencies": {
19
19
  "jsbarcode": "^3.12.3",
20
- "tslib": "^2.3.0"
20
+ "tslib": "^2.8.1"
21
21
  },
22
22
  "module": "fesm2022/maro-tech-card.mjs",
23
23
  "typings": "types/maro-tech-card.d.ts",
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
2
2
  import { InjectionToken, Type, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { HttpParams } from '@angular/common/http';
5
- import * as lucide_angular from 'lucide-angular';
5
+ import { LucideDownload, LucideEye, LucideFileText, LucidePlus, LucideSparkles, LucideTrash } from '@lucide/angular';
6
6
  import { UiSelectOption } from '@maro-tech/form';
7
7
  import { UiTableColumnConfig, UiTableResponse, UiTableFilter, UiTableRowAction } from '@maro-tech/table';
8
8
 
@@ -228,7 +228,7 @@ declare class CardSectionHeaderComponent {
228
228
  }
229
229
 
230
230
  declare class ImagesViewerComponent {
231
- readonly downloadIcon: lucide_angular.LucideIconData;
231
+ readonly downloadIcon: typeof LucideDownload;
232
232
  readonly urls: _angular_core.InputSignal<string[]>;
233
233
  readonly initialIndex: _angular_core.InputSignal<number>;
234
234
  readonly currentIndex: _angular_core.WritableSignal<number>;
@@ -330,11 +330,11 @@ declare class DocumentsComponent {
330
330
  readonly textTarget: _angular_core.WritableSignal<UiEntityDocumentFile | null>;
331
331
  readonly imagePreviewTarget: _angular_core.WritableSignal<UiEntityDocumentFile | null>;
332
332
  readonly deletingDocumentId: _angular_core.WritableSignal<string | null>;
333
- readonly eyeIcon: lucide_angular.LucideIconData;
334
- readonly fileIcon: lucide_angular.LucideIconData;
335
- readonly plusIcon: lucide_angular.LucideIconData;
336
- readonly sparkleIcon: lucide_angular.LucideIconData;
337
- readonly deleteIcon: lucide_angular.LucideIconData;
333
+ readonly eyeIcon: typeof LucideEye;
334
+ readonly fileIcon: typeof LucideFileText;
335
+ readonly plusIcon: typeof LucidePlus;
336
+ readonly sparkleIcon: typeof LucideSparkles;
337
+ readonly deleteIcon: typeof LucideTrash;
338
338
  readonly isAdmin: _angular_core.Signal<boolean>;
339
339
  private readonly documentsService;
340
340
  private readonly dictionaryService;
@@ -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;