cat-documents-ng 0.2.38 → 0.2.39

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.
@@ -11,6 +11,8 @@ interface ProcessedDocumentHistoryItem extends DocumentHistoryItem {
11
11
  }
12
12
  interface ProcessedDocumentHistorySection extends DocumentHistorySection {
13
13
  list: ProcessedDocumentHistoryItem[];
14
+ accordionClass?: string;
15
+ hasValidContent?: boolean;
14
16
  }
15
17
  /**
16
18
  * Component for displaying document history in a timeline format.
@@ -25,8 +27,24 @@ export declare class DocumentHistoryComponent implements OnInit {
25
27
  * Whether to show the history component
26
28
  */
27
29
  showHistory: boolean;
30
+ /**
31
+ * Active accordion index for expansion control
32
+ */
33
+ activeAccordionIndex: number;
34
+ /**
35
+ * Whether the accordion is expanded
36
+ */
37
+ isAccordionExpanded: boolean;
28
38
  constructor(documentHistoryStyleService: DocumentHistoryStyleService);
29
39
  ngOnInit(): void;
40
+ /**
41
+ * Toggle accordion expansion state
42
+ */
43
+ toggleAccordion(): void;
44
+ /**
45
+ * Get the CSS class for accordion styling based on the section's label
46
+ */
47
+ getAccordionClass(section: ProcessedDocumentHistorySection): string;
30
48
  /**
31
49
  * Process history data to add computed properties
32
50
  */
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Constants for Document History labels and styling
3
+ */
4
+ export declare const DOCUMENT_HISTORY: {
5
+ LABELS: {
6
+ DOCUMENT_REQUESTED: string;
7
+ DOCUMENT_UPLOADED: string;
8
+ DOCUMENT_REJECTED: string;
9
+ DOCUMENT_ACCEPTED: string;
10
+ };
11
+ ICONS: {
12
+ DOCUMENT_REQUESTED: string;
13
+ DOCUMENT_UPLOADED: string;
14
+ DOCUMENT_REJECTED: string;
15
+ DOCUMENT_ACCEPTED: string;
16
+ };
17
+ TEXT_COLORS: {
18
+ DOCUMENT_REQUESTED: string;
19
+ DOCUMENT_UPLOADED: string;
20
+ DOCUMENT_REJECTED: string;
21
+ DOCUMENT_ACCEPTED: string;
22
+ };
23
+ BG_COLORS: {
24
+ DOCUMENT_REQUESTED: string;
25
+ DOCUMENT_UPLOADED: string;
26
+ DOCUMENT_REJECTED: string;
27
+ DOCUMENT_ACCEPTED: string;
28
+ };
29
+ BORDER_COLORS: {
30
+ DOCUMENT_REQUESTED: string;
31
+ DOCUMENT_UPLOADED: string;
32
+ DOCUMENT_REJECTED: string;
33
+ DOCUMENT_ACCEPTED: string;
34
+ };
35
+ ICON_BG_COLORS: {
36
+ DOCUMENT_REQUESTED: string;
37
+ DOCUMENT_UPLOADED: string;
38
+ DOCUMENT_REJECTED: string;
39
+ DOCUMENT_ACCEPTED: string;
40
+ };
41
+ };
@@ -24,6 +24,11 @@ export declare class DocumentHistoryStyleService {
24
24
  * Get the appropriate icon background color class based on the action label
25
25
  */
26
26
  getActionIconBgColor(label: string): string;
27
+ /**
28
+ * Check if a section has valid content to display
29
+ */
30
+ checkValidContent(section: any): boolean;
31
+ getAccordionClass(section: any): string;
27
32
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryStyleService, never>;
28
33
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentHistoryStyleService>;
29
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"