cax-design-system 2.7.9 → 2.7.11

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cax Design System
2
2
 
3
- You can access all the modules available in cax design system in the [storybook](https://673d43a5032fb6c56edd4107-skxykluxxg.chromatic.com/)
3
+ You can access all the modules available in cax design system in the [storybook](https://673d43a5032fb6c56edd4107-gfcbnaadvi.chromatic.com/)
4
4
 
5
5
  ### Installation
6
6
 
@@ -1,4 +1,4 @@
1
- import { EventEmitter, ElementRef } from '@angular/core';
1
+ import { EventEmitter, ElementRef, NgZone } from '@angular/core';
2
2
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
3
  import * as i0 from "@angular/core";
4
4
  interface Comment {
@@ -17,11 +17,15 @@ interface GroupedComments {
17
17
  }
18
18
  export declare class CommentboxComponent {
19
19
  private sanitizer;
20
- comments: Comment[];
20
+ private ngZone;
21
+ private _comments;
22
+ set comments(value: Comment[]);
23
+ get comments(): Comment[];
21
24
  mentionSuggestions: any[];
22
25
  hashtagSuggestions: any[];
23
26
  sidebarHeader: string;
24
27
  isAdmin: boolean;
28
+ placeholder: string;
25
29
  commentAdded: EventEmitter<any>;
26
30
  fileSelected: EventEmitter<File>;
27
31
  fileDownload: EventEmitter<{
@@ -29,6 +33,7 @@ export declare class CommentboxComponent {
29
33
  size: string;
30
34
  }>;
31
35
  visibleChange: EventEmitter<boolean>;
36
+ onSidebarHide: EventEmitter<void>;
32
37
  newComment: string;
33
38
  isMentioning: boolean;
34
39
  isHashtagging: boolean;
@@ -52,6 +57,7 @@ export declare class CommentboxComponent {
52
57
  size: string;
53
58
  }>;
54
59
  today: Date;
60
+ groupedCommentsCache: GroupedComments[];
55
61
  overlayVisible: boolean;
56
62
  filesOverlayVisible: boolean;
57
63
  overlayPosition: {
@@ -62,7 +68,8 @@ export declare class CommentboxComponent {
62
68
  private shouldAutoScroll;
63
69
  private isUserScrolling;
64
70
  private observer;
65
- constructor(sanitizer: DomSanitizer);
71
+ private scrollQueued;
72
+ constructor(sanitizer: DomSanitizer, ngZone: NgZone);
66
73
  ngAfterViewInit(): void;
67
74
  ngOnDestroy(): void;
68
75
  private updateCurrentDate;
@@ -75,7 +82,9 @@ export declare class CommentboxComponent {
75
82
  get visible(): boolean;
76
83
  private _visible;
77
84
  toggleComments(): void;
78
- onSidebarHide(): void;
85
+ showComments(): void;
86
+ hideComments(): void;
87
+ handleSidebarHide(): void;
79
88
  onDocumentClick(event: MouseEvent): void;
80
89
  handleKeyUp(event: any): void;
81
90
  getTokenAtCursor(text: string, cursorPos: number): string | null;
@@ -103,9 +112,9 @@ export declare class CommentboxComponent {
103
112
  name: string;
104
113
  size: string;
105
114
  }): void;
106
- get groupedComments(): GroupedComments[];
115
+ private recomputeGroupedComments;
107
116
  getShortFileName(filename: string): string;
108
117
  static ɵfac: i0.ɵɵFactoryDeclaration<CommentboxComponent, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentboxComponent, "cax-comments", never, { "comments": { "alias": "comments"; "required": false; }; "mentionSuggestions": { "alias": "mentionSuggestions"; "required": false; }; "hashtagSuggestions": { "alias": "hashtagSuggestions"; "required": false; }; "sidebarHeader": { "alias": "sidebarHeader"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "commentAdded": "commentAdded"; "fileSelected": "fileSelected"; "fileDownload": "fileDownload"; "visibleChange": "visibleChange"; }, never, never, false, never>;
118
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommentboxComponent, "cax-comments", never, { "comments": { "alias": "comments"; "required": false; }; "mentionSuggestions": { "alias": "mentionSuggestions"; "required": false; }; "hashtagSuggestions": { "alias": "hashtagSuggestions"; "required": false; }; "sidebarHeader": { "alias": "sidebarHeader"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "commentAdded": "commentAdded"; "fileSelected": "fileSelected"; "fileDownload": "fileDownload"; "visibleChange": "visibleChange"; "onSidebarHide": "onSidebarHide"; }, never, never, false, never>;
110
119
  }
111
120
  export {};