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.
- package/esm2022/lib/components/molecules/links-accordion/links-accordion.component.mjs +3 -3
- package/esm2022/lib/components/organisms/comment-thread/comment-thread.component.mjs +280 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components.mjs +278 -4
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/comment-thread/comment-thread.component.d.ts +52 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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
package/package.json
CHANGED
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';
|