@maro-tech/card 0.2.2 → 0.2.4
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
|
@@ -420,6 +420,10 @@ interface HistoryConfig {
|
|
|
420
420
|
interface AuditChange {
|
|
421
421
|
action: string;
|
|
422
422
|
entityLabel?: string;
|
|
423
|
+
context?: {
|
|
424
|
+
label?: string;
|
|
425
|
+
path?: string[];
|
|
426
|
+
};
|
|
423
427
|
fieldMetadata?: Record<string, HistoryFieldConfig>;
|
|
424
428
|
entityId: string;
|
|
425
429
|
entityType: string;
|
|
@@ -439,6 +443,27 @@ declare class HistoryTabComponent {
|
|
|
439
443
|
readonly id: _angular_core.InputSignal<string>;
|
|
440
444
|
readonly config: _angular_core.InputSignal<HistoryConfig>;
|
|
441
445
|
readonly operations: _angular_core.WritableSignal<AuditOperation[]>;
|
|
446
|
+
readonly page: _angular_core.WritableSignal<number>;
|
|
447
|
+
readonly pageSize: _angular_core.WritableSignal<number>;
|
|
448
|
+
readonly total: _angular_core.WritableSignal<number>;
|
|
449
|
+
readonly pageSizeOptions: _angular_core.WritableSignal<number[]>;
|
|
450
|
+
readonly availableActions: _angular_core.WritableSignal<string[]>;
|
|
451
|
+
readonly availableActionOptions: _angular_core.Signal<{
|
|
452
|
+
label: string;
|
|
453
|
+
value: string;
|
|
454
|
+
}[]>;
|
|
455
|
+
readonly availableChangeTypes: _angular_core.WritableSignal<{
|
|
456
|
+
key: string;
|
|
457
|
+
label: string;
|
|
458
|
+
}[]>;
|
|
459
|
+
readonly availableChangeTypeOptions: _angular_core.Signal<{
|
|
460
|
+
label: string;
|
|
461
|
+
value: string;
|
|
462
|
+
}[]>;
|
|
463
|
+
readonly fromDate: _angular_core.WritableSignal<string>;
|
|
464
|
+
readonly toDate: _angular_core.WritableSignal<string>;
|
|
465
|
+
readonly actionFilter: _angular_core.WritableSignal<string>;
|
|
466
|
+
readonly changeTypeFilter: _angular_core.WritableSignal<string>;
|
|
442
467
|
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
443
468
|
readonly hasError: _angular_core.WritableSignal<boolean>;
|
|
444
469
|
readonly expandedOperationIds: _angular_core.WritableSignal<Set<string>>;
|
|
@@ -454,6 +479,12 @@ declare class HistoryTabComponent {
|
|
|
454
479
|
private readonly dictionaryCache;
|
|
455
480
|
constructor();
|
|
456
481
|
private readonly loadEffect;
|
|
482
|
+
onDateFilterChange(field: 'from' | 'to', rawValue: string | number | null): void;
|
|
483
|
+
onActionFilterChange(value: string | number | null): void;
|
|
484
|
+
onChangeTypeFilterChange(value: string | number | null): void;
|
|
485
|
+
clearFilters(): void;
|
|
486
|
+
onPageChange(page: number): void;
|
|
487
|
+
onPageSizeChange(size: number): void;
|
|
457
488
|
private prepareOperations;
|
|
458
489
|
private extractRawFields;
|
|
459
490
|
private getFieldConfig;
|
|
@@ -464,6 +495,7 @@ declare class HistoryTabComponent {
|
|
|
464
495
|
toggleOperation(id: string): void;
|
|
465
496
|
isExpanded(id: string): boolean;
|
|
466
497
|
getEntityLabel(entityType: string, providedLabel?: string): string;
|
|
498
|
+
getChangeContextLabel(change: AuditChange): string;
|
|
467
499
|
getActionLabel(action: string): string;
|
|
468
500
|
isImageField(field: AuditFieldChange): boolean;
|
|
469
501
|
isStructuredField(field: AuditFieldChange): boolean;
|