@rolatech/angular-comment 19.0.0-beta.8 → 19.1.0-beta.3
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/fesm2022/rolatech-angular-comment.mjs +27 -27
- package/fesm2022/rolatech-angular-comment.mjs.map +1 -1
- package/index.d.ts +140 -3
- package/package.json +1 -1
- package/themes/_default.scss +1 -1
- package/lib/components/comment-action/comment-action.component.d.ts +0 -20
- package/lib/components/comment-item/comment-item.component.d.ts +0 -21
- package/lib/components/comment-replies/comment-replies.component.d.ts +0 -18
- package/lib/components/comments/comments.component.d.ts +0 -19
- package/lib/components/comments-header/comments-header.component.d.ts +0 -20
- package/lib/components/index.d.ts +0 -4
- package/lib/components/reply-item/reply-item.component.d.ts +0 -17
- package/lib/interfaces/comment.interface.d.ts +0 -43
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/services/comment.service.d.ts +0 -38
- package/lib/services/index.d.ts +0 -1
package/index.d.ts
CHANGED
|
@@ -1,3 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, OnChanges, SimpleChanges, OnInit } from '@angular/core';
|
|
3
|
+
import { AuthService, AuthUserService } from '@rolatech/angular-auth';
|
|
4
|
+
import { BaseService } from '@rolatech/angular-services';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
interface Comment {
|
|
8
|
+
id: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
content: string;
|
|
11
|
+
itemId: string;
|
|
12
|
+
replies: Reply[];
|
|
13
|
+
createdAt: string;
|
|
14
|
+
user: CommentUser;
|
|
15
|
+
repliesCount: number;
|
|
16
|
+
thumbsUpCount: number;
|
|
17
|
+
thumbsDownCount: number;
|
|
18
|
+
like: boolean;
|
|
19
|
+
dislike: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface Reply {
|
|
22
|
+
id: string;
|
|
23
|
+
commentId: string;
|
|
24
|
+
content: string;
|
|
25
|
+
senderId: string;
|
|
26
|
+
replyId?: string;
|
|
27
|
+
recipientId: string;
|
|
28
|
+
replies?: Reply[];
|
|
29
|
+
createdAt: string;
|
|
30
|
+
user: CommentUser;
|
|
31
|
+
thumbsUpCount: number;
|
|
32
|
+
thumbsDownCount: number;
|
|
33
|
+
like: boolean;
|
|
34
|
+
dislike: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface CommentUser {
|
|
37
|
+
id: string;
|
|
38
|
+
avatar?: string;
|
|
39
|
+
username: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class CommentService extends BaseService {
|
|
43
|
+
authService: AuthService;
|
|
44
|
+
authUserService: AuthUserService;
|
|
45
|
+
onCommentLoading: EventEmitter<boolean>;
|
|
46
|
+
onComment: EventEmitter<boolean>;
|
|
47
|
+
onCommentReply: EventEmitter<Reply>;
|
|
48
|
+
init(): void;
|
|
49
|
+
findComments(options: any): Observable<any>;
|
|
50
|
+
findCommentsByItemId(itemId: any): Observable<any>;
|
|
51
|
+
createComment(data: any): Observable<any>;
|
|
52
|
+
countCommnentsByItemId(itemId: string): Observable<any>;
|
|
53
|
+
countRepliesByCommentId(commentId: string): Observable<any>;
|
|
54
|
+
reply(id: string, data: any): Observable<any>;
|
|
55
|
+
findRepliesByCommentId(commentId: string): Observable<any>;
|
|
56
|
+
commentThumbsUp(commentId: string): Observable<any>;
|
|
57
|
+
commentThumbsDown(commentId: string): Observable<any>;
|
|
58
|
+
deleteCommentThumbsUp(commentId: string): Observable<any>;
|
|
59
|
+
deleteCommentThumbsDown(commentId: string): Observable<any>;
|
|
60
|
+
replyThumbsUp(replyId: string): Observable<any>;
|
|
61
|
+
replyThumbsDown(replyId: string): Observable<any>;
|
|
62
|
+
deleteReplyThumbsUp(replyId: string): Observable<any>;
|
|
63
|
+
deleteReplyThumbsDown(replyId: string): Observable<any>;
|
|
64
|
+
getReplyUserInfo(reply: any): void;
|
|
65
|
+
getUserInfo(comment: any): void;
|
|
66
|
+
findRepliesUser(ids: Array<string>): Observable<any>;
|
|
67
|
+
findCommentsUser(ids: Array<string>): Observable<any>;
|
|
68
|
+
findMyCommentsThumbs(ids: Array<string>): Observable<any>;
|
|
69
|
+
findMyRepliesThumbs(ids: Array<string>): Observable<any>;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentService, never>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CommentService, never, never, {}, {}, never, never, true, never>;
|
|
72
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommentService>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare class CommentsComponent implements OnChanges {
|
|
76
|
+
commentService: CommentService;
|
|
77
|
+
authUserService: AuthUserService;
|
|
78
|
+
itemId: i0.InputSignal<string>;
|
|
79
|
+
comments: Comment[];
|
|
80
|
+
total: number;
|
|
81
|
+
show: boolean;
|
|
82
|
+
content: string;
|
|
83
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
84
|
+
find(itemId: string): void;
|
|
85
|
+
onComment(content: any): void;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsComponent, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentsComponent, "rolatech-comments", never, { "itemId": { "alias": "itemId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class CommentRepliesComponent {
|
|
91
|
+
commentService: CommentService;
|
|
92
|
+
total: i0.ModelSignal<number>;
|
|
93
|
+
replies: i0.ModelSignal<Reply[]>;
|
|
94
|
+
commentId: i0.InputSignal<string>;
|
|
95
|
+
replied: i0.OutputEmitterRef<Reply>;
|
|
96
|
+
fetch: i0.OutputEmitterRef<string>;
|
|
97
|
+
expand: boolean;
|
|
98
|
+
loading: boolean;
|
|
99
|
+
fetched: boolean;
|
|
100
|
+
onFetch(): void;
|
|
101
|
+
onItemReplied(reply: Reply): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentRepliesComponent, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentRepliesComponent, "rolatech-comment-replies", never, { "total": { "alias": "total"; "required": false; "isSignal": true; }; "replies": { "alias": "replies"; "required": false; "isSignal": true; }; "commentId": { "alias": "commentId"; "required": true; "isSignal": true; }; }, { "total": "totalChange"; "replies": "repliesChange"; "replied": "replied"; "fetch": "fetch"; }, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare class CommentItemComponent implements OnInit {
|
|
107
|
+
commentService: CommentService;
|
|
108
|
+
item: i0.InputSignal<Comment>;
|
|
109
|
+
show: boolean;
|
|
110
|
+
loading: boolean;
|
|
111
|
+
comment: Comment;
|
|
112
|
+
constructor();
|
|
113
|
+
ngOnInit(): void;
|
|
114
|
+
onFocus(event: any): void;
|
|
115
|
+
onCommentReply(content: string): void;
|
|
116
|
+
countRepliesByCommentId(commentId: string): void;
|
|
117
|
+
onFetchReplies(commentId: string): void;
|
|
118
|
+
onThumbsUp(): void;
|
|
119
|
+
onThumbsDown(): void;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentItemComponent, never>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentItemComponent, "rolatech-comment-item", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class ReplyItemComponent {
|
|
125
|
+
commentService: CommentService;
|
|
126
|
+
commentId: i0.InputSignal<string>;
|
|
127
|
+
item: i0.InputSignal<Reply>;
|
|
128
|
+
replied: i0.OutputEmitterRef<Reply>;
|
|
129
|
+
reply: Reply;
|
|
130
|
+
constructor();
|
|
131
|
+
show: boolean;
|
|
132
|
+
onReply(content: string): void;
|
|
133
|
+
onThumbsUp(): void;
|
|
134
|
+
onThumbsDown(): void;
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReplyItemComponent, never>;
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReplyItemComponent, "rolatech-reply-item", never, { "commentId": { "alias": "commentId"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; }, { "replied": "replied"; }, never, never, true, never>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export { CommentItemComponent, CommentRepliesComponent, CommentService, CommentsComponent, ReplyItemComponent };
|
|
140
|
+
export type { Comment, CommentUser, Reply };
|
package/package.json
CHANGED
package/themes/_default.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-20{z-index:20}.z-30{z-index:30}.-m-1{margin:-.25rem}.m-3{margin:.75rem}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.-ml-2{margin-left:-.5rem}.-mt-4{margin-top:-1rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-14{margin-left:3.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\[40px\]{margin-left:40px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[6px\]{margin-top:6px}.box-border{box-sizing:border-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-4{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-4{-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[190px\]{height:190px}.h-\[256px\]{height:256px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-32{max-height:8rem}.max-h-8{max-height:2rem}.max-h-9{max-height:2.25rem}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-\[28px\]{min-height:28px}.min-h-\[320px\]{min-height:320px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-9{width:2.25rem}.w-\[190px\]{width:190px}.w-\[256px\]{width:256px}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-9{min-width:2.25rem}.min-w-\[256px\]{min-width:256px}.min-w-\[28px\]{min-width:28px}.min-w-\[320px\]{min-width:320px}.max-w-8{max-width:2rem}.max-w-\[500px\]{max-width:500px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\[--rt-10-percent-layer\]>:not([hidden])~:not([hidden]){border-color:var(--rt-10-percent-layer)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-\[--rt-border-color\]{border-color:var(--rt-border-color)}.bg-\[--rt-10-percent-layer\]{background-color:var(--rt-10-percent-layer)}.bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.bg-\[--rt-brand-color\]{background-color:var(--rt-brand-color)}.bg-\[--rt-raised-background\]{background-color:var(--rt-raised-background)}.bg-fixed{background-attachment:fixed}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-3{line-height:.75rem}.leading-none{line-height:1}.text-\[--rt-brand-color\]{color:var(--rt-brand-color)}.text-\[--rt-text-primary\]{color:var(--rt-text-primary)}.text-\[--rt-text-secondary\]{color:var(--rt-text-secondary)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-4{outline-width:4px}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}html{line-height:normal}.hover\:bg-\[--rt-10-percent-layer\]:hover{background-color:var(--rt-10-percent-layer)}.hover\:bg-\[--rt-base-background\]:hover{background-color:var(--rt-base-background)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:outline-\[--rt-raised-background\]:hover{outline-color:var(--rt-raised-background)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:visible{visibility:visible}@media (min-width:640px){.sm\:w-1\/3{width:33.333333%}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.md\:h-auto{height:auto}.md\:w-1\/4{width:25%}.md\:flex-row{flex-direction:row}.md\:gap-10{gap:2.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:w-1\/6{width:16.666667%}}@media (min-width:1280px){.xl\:max-w-\[1024px\]{max-width:1024px}}@media (min-width:1536px){.\32xl\:max-w-\[1280px\]{max-width:1280px}}
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.left-\[30px\]{left:30px}.right-0{right:0}.top-0{top:0}.top-\[30px\]{top:30px}.z-20{z-index:20}.z-30{z-index:30}.z-\[9999\]{z-index:9999}.-m-1{margin:-.25rem}.m-3{margin:.75rem}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.-ml-2{margin-left:-.5rem}.-mt-4{margin-top:-1rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-14{margin-left:3.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\[40px\]{margin-left:40px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[6px\]{margin-top:6px}.box-border{box-sizing:border-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-4{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-4{-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[190px\]{height:190px}.h-\[256px\]{height:256px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-32{max-height:8rem}.max-h-8{max-height:2rem}.max-h-9{max-height:2.25rem}.max-h-\[320px\]{max-height:320px}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-\[28px\]{min-height:28px}.min-h-\[320px\]{min-height:320px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\/6{width:33.333333%}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-4\/6{width:66.666667%}.w-7{width:1.75rem}.w-9{width:2.25rem}.w-\[190px\]{width:190px}.w-\[256px\]{width:256px}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-9{min-width:2.25rem}.min-w-\[256px\]{min-width:256px}.min-w-\[28px\]{min-width:28px}.min-w-\[320px\]{min-width:320px}.max-w-8{max-width:2rem}.max-w-\[500px\]{max-width:500px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\[--rt-10-percent-layer\]>:not([hidden])~:not([hidden]){border-color:var(--rt-10-percent-layer)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-\[--rt-border-color\]{border-color:var(--rt-border-color)}.bg-\[--rt-10-percent-layer\]{background-color:var(--rt-10-percent-layer)}.bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.bg-\[--rt-brand-color\]{background-color:var(--rt-brand-color)}.bg-\[--rt-raised-background\]{background-color:var(--rt-raised-background)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-fixed{background-attachment:fixed}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pt-3{padding-top:.75rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.italic{font-style:italic}.leading-3{line-height:.75rem}.leading-none{line-height:1}.text-\[--rt-brand-color\]{color:var(--rt-brand-color)}.text-\[--rt-text-primary\]{color:var(--rt-text-primary)}.text-\[--rt-text-secondary\]{color:var(--rt-text-secondary)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-4{outline-width:4px}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}html{line-height:normal}.hover\:bg-\[--rt-10-percent-layer\]:hover{background-color:var(--rt-10-percent-layer)}.hover\:bg-\[--rt-base-background\]:hover{background-color:var(--rt-base-background)}.hover\:bg-\[--rt-raised-background\]:hover{background-color:var(--rt-raised-background)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:outline-\[--rt-raised-background\]:hover{outline-color:var(--rt-raised-background)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}@media (min-width:640px){.sm\:w-1\/3{width:33.333333%}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.md\:h-auto{height:auto}.md\:w-1\/4{width:25%}.md\:flex-row{flex-direction:row}.md\:gap-10{gap:2.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:w-1\/6{width:16.666667%}}@media (min-width:1280px){.xl\:max-w-\[1024px\]{max-width:1024px}}@media (min-width:1536px){.\32xl\:max-w-\[1280px\]{max-width:1280px}}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CommentService } from '../../services';
|
|
2
|
-
import { Comment, Reply } from '../../interfaces';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CommentActionComponent {
|
|
5
|
-
commentService: CommentService;
|
|
6
|
-
placeholder: import("@angular/core").InputSignal<string>;
|
|
7
|
-
data: import("@angular/core").InputSignal<Comment | Reply>;
|
|
8
|
-
reply: import("@angular/core").OutputEmitterRef<string>;
|
|
9
|
-
thumbsUp: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
-
thumbsDown: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
-
show: boolean;
|
|
12
|
-
content: string;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
onCancel(): void;
|
|
15
|
-
onReply(): void;
|
|
16
|
-
onThumbsUp(): void;
|
|
17
|
-
onThumbsDown(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentActionComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentActionComponent, "rolatech-comment-action", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; }, { "reply": "reply"; "thumbsUp": "thumbsUp"; "thumbsDown": "thumbsDown"; }, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Comment } from '../../interfaces';
|
|
3
|
-
import { CommentService } from '../../services';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CommentItemComponent implements OnInit {
|
|
6
|
-
commentService: CommentService;
|
|
7
|
-
item: import("@angular/core").InputSignal<Comment>;
|
|
8
|
-
show: boolean;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
comment: Comment;
|
|
11
|
-
constructor();
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
onFocus(event: any): void;
|
|
14
|
-
onCommentReply(content: string): void;
|
|
15
|
-
countRepliesByCommentId(commentId: string): void;
|
|
16
|
-
onFetchReplies(commentId: string): void;
|
|
17
|
-
onThumbsUp(): void;
|
|
18
|
-
onThumbsDown(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentItemComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentItemComponent, "rolatech-comment-item", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Reply } from '../../interfaces';
|
|
2
|
-
import { CommentService } from '../../services';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CommentRepliesComponent {
|
|
5
|
-
commentService: CommentService;
|
|
6
|
-
total: import("@angular/core").ModelSignal<number>;
|
|
7
|
-
replies: import("@angular/core").ModelSignal<Reply[]>;
|
|
8
|
-
commentId: import("@angular/core").InputSignal<string>;
|
|
9
|
-
replied: import("@angular/core").OutputEmitterRef<Reply>;
|
|
10
|
-
fetch: import("@angular/core").OutputEmitterRef<string>;
|
|
11
|
-
expand: boolean;
|
|
12
|
-
loading: boolean;
|
|
13
|
-
fetched: boolean;
|
|
14
|
-
onFetch(): void;
|
|
15
|
-
onItemReplied(reply: Reply): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentRepliesComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentRepliesComponent, "rolatech-comment-replies", never, { "total": { "alias": "total"; "required": false; "isSignal": true; }; "replies": { "alias": "replies"; "required": false; "isSignal": true; }; "commentId": { "alias": "commentId"; "required": true; "isSignal": true; }; }, { "total": "totalChange"; "replies": "repliesChange"; "replied": "replied"; "fetch": "fetch"; }, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Comment } from '../../interfaces';
|
|
3
|
-
import { CommentService } from '../../services';
|
|
4
|
-
import { AuthUserService } from '@rolatech/angular-auth';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CommentsComponent implements OnChanges {
|
|
7
|
-
commentService: CommentService;
|
|
8
|
-
authUserService: AuthUserService;
|
|
9
|
-
itemId: import("@angular/core").InputSignal<string>;
|
|
10
|
-
comments: Comment[];
|
|
11
|
-
total: number;
|
|
12
|
-
show: boolean;
|
|
13
|
-
content: string;
|
|
14
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
-
find(itemId: string): void;
|
|
16
|
-
onComment(content: any): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentsComponent, "rolatech-comments", never, { "itemId": { "alias": "itemId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { CommentService } from '../../services';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CommentsHeaderComponent implements OnInit {
|
|
5
|
-
commentService: CommentService;
|
|
6
|
-
placeholder: import("@angular/core").InputSignal<string>;
|
|
7
|
-
total: import("@angular/core").ModelSignal<number>;
|
|
8
|
-
comment: import("@angular/core").OutputEmitterRef<string>;
|
|
9
|
-
content: string;
|
|
10
|
-
show: boolean;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
onFocus(event: any): void;
|
|
14
|
-
onCancel(): void;
|
|
15
|
-
onComment(): void;
|
|
16
|
-
fetchByComments(): void;
|
|
17
|
-
fetchByReplies(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsHeaderComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentsHeaderComponent, "rolatech-comments-header", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; }, { "total": "totalChange"; "comment": "comment"; }, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { CommentsComponent } from './comments/comments.component';
|
|
2
|
-
export { CommentRepliesComponent } from './comment-replies/comment-replies.component';
|
|
3
|
-
export { CommentItemComponent } from './comment-item/comment-item.component';
|
|
4
|
-
export { ReplyItemComponent } from './reply-item/reply-item.component';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Reply } from '../../interfaces';
|
|
2
|
-
import { CommentService } from '../../services';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ReplyItemComponent {
|
|
5
|
-
commentService: CommentService;
|
|
6
|
-
commentId: import("@angular/core").InputSignal<string>;
|
|
7
|
-
item: import("@angular/core").InputSignal<Reply>;
|
|
8
|
-
replied: import("@angular/core").OutputEmitterRef<Reply>;
|
|
9
|
-
reply: Reply;
|
|
10
|
-
constructor();
|
|
11
|
-
show: boolean;
|
|
12
|
-
onReply(content: string): void;
|
|
13
|
-
onThumbsUp(): void;
|
|
14
|
-
onThumbsDown(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReplyItemComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReplyItemComponent, "rolatech-reply-item", never, { "commentId": { "alias": "commentId"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; }, { "replied": "replied"; }, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export interface Comment {
|
|
2
|
-
id: string;
|
|
3
|
-
userId: string;
|
|
4
|
-
content: string;
|
|
5
|
-
itemId: string;
|
|
6
|
-
replies: Reply[];
|
|
7
|
-
createdAt: string;
|
|
8
|
-
user: CommentUser;
|
|
9
|
-
repliesCount: number;
|
|
10
|
-
thumbsUpCount: number;
|
|
11
|
-
thumbsDownCount: number;
|
|
12
|
-
like: boolean;
|
|
13
|
-
dislike: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface Reply {
|
|
16
|
-
id: string;
|
|
17
|
-
commentId: string;
|
|
18
|
-
content: string;
|
|
19
|
-
senderId: string;
|
|
20
|
-
replyId?: string;
|
|
21
|
-
recipientId: string;
|
|
22
|
-
replies?: Reply[];
|
|
23
|
-
createdAt: string;
|
|
24
|
-
user: CommentUser;
|
|
25
|
-
thumbsUpCount: number;
|
|
26
|
-
thumbsDownCount: number;
|
|
27
|
-
like: boolean;
|
|
28
|
-
dislike: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface CommentUser {
|
|
31
|
-
id: string;
|
|
32
|
-
avatar?: string;
|
|
33
|
-
username: string;
|
|
34
|
-
}
|
|
35
|
-
export interface Thumb {
|
|
36
|
-
id: string;
|
|
37
|
-
status: ThumbStatus | string;
|
|
38
|
-
userId: string;
|
|
39
|
-
}
|
|
40
|
-
export declare enum ThumbStatus {
|
|
41
|
-
UP,
|
|
42
|
-
DOWN
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Comment, Reply, CommentUser } from './comment.interface';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AuthService, AuthUserService } from '@rolatech/angular-auth';
|
|
3
|
-
import { BaseService } from '@rolatech/angular-services';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { Reply } from '../interfaces';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class CommentService extends BaseService {
|
|
8
|
-
authService: AuthService;
|
|
9
|
-
authUserService: AuthUserService;
|
|
10
|
-
onCommentLoading: EventEmitter<boolean>;
|
|
11
|
-
onComment: EventEmitter<boolean>;
|
|
12
|
-
onCommentReply: EventEmitter<Reply>;
|
|
13
|
-
init(): void;
|
|
14
|
-
findComments(options: any): Observable<any>;
|
|
15
|
-
findCommentsByItemId(itemId: any): Observable<any>;
|
|
16
|
-
createComment(data: any): Observable<any>;
|
|
17
|
-
countCommnentsByItemId(itemId: string): Observable<any>;
|
|
18
|
-
countRepliesByCommentId(commentId: string): Observable<any>;
|
|
19
|
-
reply(id: string, data: any): Observable<any>;
|
|
20
|
-
findRepliesByCommentId(commentId: string): Observable<any>;
|
|
21
|
-
commentThumbsUp(commentId: string): Observable<any>;
|
|
22
|
-
commentThumbsDown(commentId: string): Observable<any>;
|
|
23
|
-
deleteCommentThumbsUp(commentId: string): Observable<any>;
|
|
24
|
-
deleteCommentThumbsDown(commentId: string): Observable<any>;
|
|
25
|
-
replyThumbsUp(replyId: string): Observable<any>;
|
|
26
|
-
replyThumbsDown(replyId: string): Observable<any>;
|
|
27
|
-
deleteReplyThumbsUp(replyId: string): Observable<any>;
|
|
28
|
-
deleteReplyThumbsDown(replyId: string): Observable<any>;
|
|
29
|
-
getReplyUserInfo(reply: any): void;
|
|
30
|
-
getUserInfo(comment: any): void;
|
|
31
|
-
findRepliesUser(ids: Array<string>): Observable<any>;
|
|
32
|
-
findCommentsUser(ids: Array<string>): Observable<any>;
|
|
33
|
-
findMyCommentsThumbs(ids: Array<string>): Observable<any>;
|
|
34
|
-
findMyRepliesThumbs(ids: Array<string>): Observable<any>;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentService, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CommentService, never, never, {}, {}, never, never, true, never>;
|
|
37
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CommentService>;
|
|
38
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CommentService } from './comment.service';
|