cat-documents-ng 0.2.39 → 0.2.40

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.
@@ -1,4 +1,3 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { DocumentHistoryItem, DocumentHistorySection } from '../../models/document-history.model';
3
2
  import { DocumentHistoryStyleService } from '../../services/document-history-style.service';
4
3
  import * as i0 from "@angular/core";
@@ -17,7 +16,7 @@ interface ProcessedDocumentHistorySection extends DocumentHistorySection {
17
16
  /**
18
17
  * Component for displaying document history in a timeline format.
19
18
  */
20
- export declare class DocumentHistoryComponent implements OnInit {
19
+ export declare class DocumentHistoryComponent {
21
20
  private documentHistoryStyleService;
22
21
  /**
23
22
  * Input data for document history sections
@@ -28,7 +27,7 @@ export declare class DocumentHistoryComponent implements OnInit {
28
27
  */
29
28
  showHistory: boolean;
30
29
  /**
31
- * Active accordion index for expansion control
30
+ * Active accordion index for controlling expand/collapse
32
31
  */
33
32
  activeAccordionIndex: number;
34
33
  /**
@@ -36,15 +35,26 @@ export declare class DocumentHistoryComponent implements OnInit {
36
35
  */
37
36
  isAccordionExpanded: boolean;
38
37
  constructor(documentHistoryStyleService: DocumentHistoryStyleService);
39
- ngOnInit(): void;
40
38
  /**
41
- * Toggle accordion expansion state
39
+ * Handle accordion open event
40
+ */
41
+ onAccordionOpen(): void;
42
+ /**
43
+ * Handle accordion close event
44
+ */
45
+ onAccordionClose(): void;
46
+ /**
47
+ * Toggle accordion state
42
48
  */
43
49
  toggleAccordion(): void;
44
50
  /**
45
51
  * Get the CSS class for accordion styling based on the section's label
46
52
  */
47
- getAccordionClass(section: ProcessedDocumentHistorySection): string;
53
+ private getAccordionClass;
54
+ /**
55
+ * Check if a section has valid content to display
56
+ */
57
+ private checkValidContent;
48
58
  /**
49
59
  * Process history data to add computed properties
50
60
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.39",
3
+ "version": "0.2.40",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"