valtech-components 4.0.941 → 4.0.943

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.
@@ -0,0 +1,52 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export interface CommentThread {
5
+ requestId: string;
6
+ comments: Comment[];
7
+ isLoading?: boolean;
8
+ canComment?: boolean;
9
+ currentUserId?: string;
10
+ }
11
+ export interface Comment {
12
+ commentId: string;
13
+ requestId: string;
14
+ author: {
15
+ userId?: string;
16
+ orgId?: string;
17
+ name: string;
18
+ role?: string;
19
+ };
20
+ body: string;
21
+ createdAt: string;
22
+ }
23
+ export declare class ValCommentThreadComponent implements OnInit {
24
+ private fb;
25
+ title: string;
26
+ canComment: boolean;
27
+ canDelete: boolean;
28
+ set data(value: CommentThread);
29
+ commentAdded: EventEmitter<string>;
30
+ commentDeleted: EventEmitter<string>;
31
+ form: FormGroup;
32
+ maxChars: number;
33
+ private _comments;
34
+ private _isLoading;
35
+ private _isSubmitting;
36
+ private _currentUserId;
37
+ comments: import("@angular/core").Signal<Comment[]>;
38
+ isLoading: import("@angular/core").Signal<boolean>;
39
+ isSubmitting: import("@angular/core").Signal<boolean>;
40
+ commentCount: import("@angular/core").Signal<number>;
41
+ charCount: import("@angular/core").Signal<any>;
42
+ constructor(fb: FormBuilder);
43
+ ngOnInit(): void;
44
+ isOwnComment(comment: Comment): boolean;
45
+ getInitials(name: string): string;
46
+ roleLabel(role: string): string;
47
+ formatTime(isoString: string): string;
48
+ onSubmit(): void;
49
+ onDeleteComment(commentId: string): void;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValCommentThreadComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValCommentThreadComponent, "val-comment-thread", never, { "title": { "alias": "title"; "required": false; }; "canComment": { "alias": "canComment"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "commentAdded": "commentAdded"; "commentDeleted": "commentDeleted"; }, never, never, true, never>;
52
+ }
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.941";
5
+ export declare const VERSION = "4.0.943";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.941",
3
+ "version": "4.0.943",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -285,6 +285,7 @@ export * from './lib/components/organisms/wizard/wizard-footer/wizard-footer.com
285
285
  export * from './lib/components/organisms/wizard/wizard.component';
286
286
  export * from './lib/components/organisms/comment-section/comment-section.component';
287
287
  export * from './lib/components/organisms/comment-section/types';
288
+ export * from './lib/components/organisms/comment-thread/comment-thread.component';
288
289
  export * from './lib/components/organisms/data-table/data-table.component';
289
290
  export * from './lib/components/organisms/data-table/types';
290
291
  export * from './lib/components/organisms/cards-carousel/cards-carousel.component';