@jeraldj/discussions-ui 8.0.3-v16
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 +24 -0
- package/assets/images/Buffer-512.webp +0 -0
- package/assets/images/announcement.svg +25 -0
- package/assets/images/back-img.png +0 -0
- package/assets/images/bookmarks.png +0 -0
- package/assets/images/card-icon.png +0 -0
- package/assets/images/close.png +0 -0
- package/assets/images/delete.svg +13 -0
- package/assets/images/down-arrow.png +0 -0
- package/assets/images/down-chevron.png +0 -0
- package/assets/images/down.svg +12 -0
- package/assets/images/edit.svg +11 -0
- package/assets/images/empty.svg +37 -0
- package/assets/images/eye-icon.png +0 -0
- package/assets/images/general discussion.svg +15 -0
- package/assets/images/import-export-arrows.png +0 -0
- package/assets/images/loader-icon.svg +6 -0
- package/assets/images/profits.png +0 -0
- package/assets/images/search-icon.png +0 -0
- package/assets/images/select-bookmarks.png +0 -0
- package/assets/images/select-down-arrow.png +0 -0
- package/assets/images/select-profits.png +0 -0
- package/assets/images/select-up-arrow.png +0 -0
- package/assets/images/up-arrow.png +0 -0
- package/assets/images/up-chevron.png +0 -0
- package/assets/images/up.svg +12 -0
- package/assets/images/views.svg +9 -0
- package/assets/images/votes.svg +14 -0
- package/assets/styles/global.scss +283 -0
- package/esm2022/jeraldj-discussions-ui.mjs +5 -0
- package/esm2022/lib/common/constants.json +630 -0
- package/esm2022/lib/components/components.module.mjs +105 -0
- package/esm2022/lib/components/discuss-all/discuss-all.component.mjs +269 -0
- package/esm2022/lib/components/discuss-category/discuss-category.component.mjs +152 -0
- package/esm2022/lib/components/discuss-home/discuss-home.component.mjs +142 -0
- package/esm2022/lib/components/discuss-start/discuss-start.component.mjs +199 -0
- package/esm2022/lib/components/discuss-tags/discuss-tags.component.mjs +93 -0
- package/esm2022/lib/components/discussion-details/discussion-details.component.mjs +459 -0
- package/esm2022/lib/components/lib-entry/lib-entry.component.mjs +96 -0
- package/esm2022/lib/components/my-discussion/my-discussion.component.mjs +234 -0
- package/esm2022/lib/components/side-pannel/side-pannel.component.mjs +79 -0
- package/esm2022/lib/components/tag-all-discussion/tag-all-discussion.component.mjs +151 -0
- package/esm2022/lib/components/trending-tags/trending-tags.component.mjs +62 -0
- package/esm2022/lib/config/url.config.mjs +32 -0
- package/esm2022/lib/discussion-events.service.mjs +27 -0
- package/esm2022/lib/discussion-routing/discussion-routing.module.mjs +80 -0
- package/esm2022/lib/discussion-ui.module.mjs +41 -0
- package/esm2022/lib/elements/app-loader/app-loader.component.mjs +36 -0
- package/esm2022/lib/elements/avatar-photo/avatar-photo.component.mjs +81 -0
- package/esm2022/lib/elements/category-card/category-card.component.mjs +17 -0
- package/esm2022/lib/elements/discuss-card/discuss-card.component.mjs +45 -0
- package/esm2022/lib/elements/elements.module.mjs +69 -0
- package/esm2022/lib/elements/load-alert/load-alert.component.mjs +34 -0
- package/esm2022/lib/elements/post-reply/post-reply.component.mjs +69 -0
- package/esm2022/lib/elements/related-discussion/related-discussion.component.mjs +61 -0
- package/esm2022/lib/elements/sliders/sliders.component.mjs +76 -0
- package/esm2022/lib/events.service.mjs +31 -0
- package/esm2022/lib/models/discuss.model.mjs +16 -0
- package/esm2022/lib/models/discussion-config.model.mjs +2 -0
- package/esm2022/lib/navigation-service.service.mjs +39 -0
- package/esm2022/lib/pipes/pipe-filter/pipe-filter.pipe.mjs +20 -0
- package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.mjs +22 -0
- package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.mjs +41 -0
- package/esm2022/lib/pipes/pipes.module.mjs +24 -0
- package/esm2022/lib/pipes/sort-by/sort-by.pipe.mjs +34 -0
- package/esm2022/lib/pipes/split-initials/split-initials.pipe.mjs +23 -0
- package/esm2022/lib/router-service.service.mjs +21 -0
- package/esm2022/lib/services/abstract-config.service.mjs +3 -0
- package/esm2022/lib/services/config.service.mjs +76 -0
- package/esm2022/lib/services/discuss-utils.service.mjs +36 -0
- package/esm2022/lib/services/discussion.service.mjs +254 -0
- package/esm2022/lib/telemetry-utils.service.mjs +103 -0
- package/esm2022/lib/wrapper/base-wrapper/base-wrapper.component.mjs +41 -0
- package/esm2022/lib/wrapper/category-widget/category-widget.component.mjs +37 -0
- package/esm2022/lib/wrapper/tags-widget/tags-widget.component.mjs +33 -0
- package/esm2022/lib/wrapper-navigate.service.mjs +23 -0
- package/esm2022/public-api.mjs +29 -0
- package/fesm2022/jeraldj-discussions-ui.mjs +3929 -0
- package/fesm2022/jeraldj-discussions-ui.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/jeraldj-discussions-ui.d.ts.map +1 -0
- package/lib/components/components.module.d.ts +24 -0
- package/lib/components/components.module.d.ts.map +1 -0
- package/lib/components/discuss-all/discuss-all.component.d.ts +61 -0
- package/lib/components/discuss-all/discuss-all.component.d.ts.map +1 -0
- package/lib/components/discuss-category/discuss-category.component.d.ts +45 -0
- package/lib/components/discuss-category/discuss-category.component.d.ts.map +1 -0
- package/lib/components/discuss-home/discuss-home.component.d.ts +59 -0
- package/lib/components/discuss-home/discuss-home.component.d.ts.map +1 -0
- package/lib/components/discuss-start/discuss-start.component.d.ts +50 -0
- package/lib/components/discuss-start/discuss-start.component.d.ts.map +1 -0
- package/lib/components/discuss-tags/discuss-tags.component.d.ts +41 -0
- package/lib/components/discuss-tags/discuss-tags.component.d.ts.map +1 -0
- package/lib/components/discussion-details/discussion-details.component.d.ts +112 -0
- package/lib/components/discussion-details/discussion-details.component.d.ts.map +1 -0
- package/lib/components/lib-entry/lib-entry.component.d.ts +42 -0
- package/lib/components/lib-entry/lib-entry.component.d.ts.map +1 -0
- package/lib/components/my-discussion/my-discussion.component.d.ts +54 -0
- package/lib/components/my-discussion/my-discussion.component.d.ts.map +1 -0
- package/lib/components/side-pannel/side-pannel.component.d.ts +34 -0
- package/lib/components/side-pannel/side-pannel.component.d.ts.map +1 -0
- package/lib/components/tag-all-discussion/tag-all-discussion.component.d.ts +53 -0
- package/lib/components/tag-all-discussion/tag-all-discussion.component.d.ts.map +1 -0
- package/lib/components/trending-tags/trending-tags.component.d.ts +26 -0
- package/lib/components/trending-tags/trending-tags.component.d.ts.map +1 -0
- package/lib/config/url.config.d.ts +29 -0
- package/lib/config/url.config.d.ts.map +1 -0
- package/lib/discussion-events.service.d.ts +12 -0
- package/lib/discussion-events.service.d.ts.map +1 -0
- package/lib/discussion-routing/discussion-routing.module.d.ts +9 -0
- package/lib/discussion-routing/discussion-routing.module.d.ts.map +1 -0
- package/lib/discussion-ui.module.d.ts +16 -0
- package/lib/discussion-ui.module.d.ts.map +1 -0
- package/lib/elements/app-loader/app-loader.component.d.ts +17 -0
- package/lib/elements/app-loader/app-loader.component.d.ts.map +1 -0
- package/lib/elements/avatar-photo/avatar-photo.component.d.ts +19 -0
- package/lib/elements/avatar-photo/avatar-photo.component.d.ts.map +1 -0
- package/lib/elements/category-card/category-card.component.d.ts +10 -0
- package/lib/elements/category-card/category-card.component.d.ts.map +1 -0
- package/lib/elements/discuss-card/discuss-card.component.d.ts +17 -0
- package/lib/elements/discuss-card/discuss-card.component.d.ts.map +1 -0
- package/lib/elements/elements.module.d.ts +18 -0
- package/lib/elements/elements.module.d.ts.map +1 -0
- package/lib/elements/load-alert/load-alert.component.d.ts +15 -0
- package/lib/elements/load-alert/load-alert.component.d.ts.map +1 -0
- package/lib/elements/post-reply/post-reply.component.d.ts +22 -0
- package/lib/elements/post-reply/post-reply.component.d.ts.map +1 -0
- package/lib/elements/related-discussion/related-discussion.component.d.ts +26 -0
- package/lib/elements/related-discussion/related-discussion.component.d.ts.map +1 -0
- package/lib/elements/sliders/sliders.component.d.ts +18 -0
- package/lib/elements/sliders/sliders.component.d.ts.map +1 -0
- package/lib/events.service.d.ts +18 -0
- package/lib/events.service.d.ts.map +1 -0
- package/lib/models/discuss.model.d.ts +298 -0
- package/lib/models/discuss.model.d.ts.map +1 -0
- package/lib/models/discussion-config.model.d.ts +42 -0
- package/lib/models/discussion-config.model.d.ts.map +1 -0
- package/lib/navigation-service.service.d.ts +22 -0
- package/lib/navigation-service.service.d.ts.map +1 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +8 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts.map +1 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +8 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts.map +1 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +8 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts.map +1 -0
- package/lib/pipes/pipes.module.d.ts +13 -0
- package/lib/pipes/pipes.module.d.ts.map +1 -0
- package/lib/pipes/sort-by/sort-by.pipe.d.ts +8 -0
- package/lib/pipes/sort-by/sort-by.pipe.d.ts.map +1 -0
- package/lib/pipes/split-initials/split-initials.pipe.d.ts +8 -0
- package/lib/pipes/split-initials/split-initials.pipe.d.ts.map +1 -0
- package/lib/router-service.service.d.ts +10 -0
- package/lib/router-service.service.d.ts.map +1 -0
- package/lib/services/abstract-config.service.d.ts +4 -0
- package/lib/services/abstract-config.service.d.ts.map +1 -0
- package/lib/services/config.service.d.ts +36 -0
- package/lib/services/config.service.d.ts.map +1 -0
- package/lib/services/discuss-utils.service.d.ts +14 -0
- package/lib/services/discuss-utils.service.d.ts.map +1 -0
- package/lib/services/discussion.service.d.ts +76 -0
- package/lib/services/discussion.service.d.ts.map +1 -0
- package/lib/telemetry-utils.service.d.ts +20 -0
- package/lib/telemetry-utils.service.d.ts.map +1 -0
- package/lib/wrapper/base-wrapper/base-wrapper.component.d.ts +22 -0
- package/lib/wrapper/base-wrapper/base-wrapper.component.d.ts.map +1 -0
- package/lib/wrapper/category-widget/category-widget.component.d.ts +23 -0
- package/lib/wrapper/category-widget/category-widget.component.d.ts.map +1 -0
- package/lib/wrapper/tags-widget/tags-widget.component.d.ts +17 -0
- package/lib/wrapper/tags-widget/tags-widget.component.d.ts.map +1 -0
- package/lib/wrapper-navigate.service.d.ts +11 -0
- package/lib/wrapper-navigate.service.d.ts.map +1 -0
- package/package.json +44 -0
- package/public-api.d.ts +26 -0
- package/public-api.d.ts.map +1 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jeraldj-discussions-ui.d.ts","sourceRoot":"","sources":["../../projects/discussion-ui/src/jeraldj-discussions-ui.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./side-pannel/side-pannel.component";
|
|
3
|
+
import * as i2 from "./discuss-home/discuss-home.component";
|
|
4
|
+
import * as i3 from "./discuss-category/discuss-category.component";
|
|
5
|
+
import * as i4 from "./discuss-tags/discuss-tags.component";
|
|
6
|
+
import * as i5 from "./my-discussion/my-discussion.component";
|
|
7
|
+
import * as i6 from "./discussion-details/discussion-details.component";
|
|
8
|
+
import * as i7 from "./discuss-start/discuss-start.component";
|
|
9
|
+
import * as i8 from "./discuss-all/discuss-all.component";
|
|
10
|
+
import * as i9 from "./tag-all-discussion/tag-all-discussion.component";
|
|
11
|
+
import * as i10 from "./trending-tags/trending-tags.component";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "@angular/common/http";
|
|
14
|
+
import * as i13 from "../elements/elements.module";
|
|
15
|
+
import * as i14 from "@angular/forms";
|
|
16
|
+
import * as i15 from "ngx-chips";
|
|
17
|
+
import * as i16 from "../pipes/pipes.module";
|
|
18
|
+
import * as i17 from "ngx-infinite-scroll";
|
|
19
|
+
export declare class ComponentsModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.SidePannelComponent, typeof i2.DiscussHomeComponent, typeof i3.DiscussCategoryComponent, typeof i4.DiscussTagsComponent, typeof i5.MyDiscussionComponent, typeof i6.DiscussionDetailsComponent, typeof i7.DiscussStartComponent, typeof i8.DiscussAllComponent, typeof i9.TagAllDiscussionComponent, typeof i10.TrendingTagsComponent], [typeof i11.CommonModule, typeof i12.HttpClientModule, typeof i13.ElementsModule, typeof i14.FormsModule, typeof i14.ReactiveFormsModule, typeof i15.TagInputModule, typeof i16.PipesModule, typeof i17.InfiniteScrollModule], [typeof i1.SidePannelComponent, typeof i2.DiscussHomeComponent, typeof i3.DiscussCategoryComponent, typeof i4.DiscussTagsComponent, typeof i5.MyDiscussionComponent, typeof i6.DiscussionDetailsComponent, typeof i7.DiscussStartComponent, typeof i8.DiscussAllComponent, typeof i9.TagAllDiscussionComponent, typeof i10.TrendingTagsComponent]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=components.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.module.d.ts","sourceRoot":"","sources":["../../../../projects/discussion-ui/src/lib/components/components.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,qBAwCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAI"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { DiscussionService } from '../../services/discussion.service';
|
|
4
|
+
import { ConfigService } from '../../services/config.service';
|
|
5
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
6
|
+
import { NSDiscussData } from '../../models/discuss.model';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { NavigationServiceService } from '../../navigation-service.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class DiscussAllComponent implements OnInit {
|
|
11
|
+
router: Router;
|
|
12
|
+
private route;
|
|
13
|
+
private discussionService;
|
|
14
|
+
private configService;
|
|
15
|
+
activatedRoute: ActivatedRoute;
|
|
16
|
+
private telemetryUtils;
|
|
17
|
+
private navigationService;
|
|
18
|
+
context: any;
|
|
19
|
+
categoryAction: any;
|
|
20
|
+
stateChange: EventEmitter<any>;
|
|
21
|
+
discussionList: any[];
|
|
22
|
+
routeParams: any;
|
|
23
|
+
showStartDiscussionModal: boolean;
|
|
24
|
+
categoryId: string;
|
|
25
|
+
isTopicCreator: boolean;
|
|
26
|
+
showLoader: boolean;
|
|
27
|
+
currentFilter: string;
|
|
28
|
+
currentActivePage: number;
|
|
29
|
+
fetchNewData: false;
|
|
30
|
+
paramsSubscription: Subscription;
|
|
31
|
+
getParams: any;
|
|
32
|
+
cIds: any;
|
|
33
|
+
allTopics: any;
|
|
34
|
+
trendingTags: NSDiscussData.ITag[];
|
|
35
|
+
sticky: boolean;
|
|
36
|
+
data: any;
|
|
37
|
+
startDiscussionCategoryId: any;
|
|
38
|
+
isWidget: boolean;
|
|
39
|
+
constructor(router: Router, route: ActivatedRoute, discussionService: DiscussionService, configService: ConfigService, activatedRoute: ActivatedRoute, telemetryUtils: TelemetryUtilsService, navigationService: NavigationServiceService);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
getForumIds(): Promise<void>;
|
|
42
|
+
loadDiscussionData(): void;
|
|
43
|
+
navigateToDiscussionDetails(discussionData: any): void;
|
|
44
|
+
acceptData(singleTagDetails: any): void;
|
|
45
|
+
getDiscussionList(slug: string): void;
|
|
46
|
+
filter(key: string | 'recent' | 'popular'): void;
|
|
47
|
+
fillrecent(_page?: any): void;
|
|
48
|
+
fillPopular(page?: any): Subscription;
|
|
49
|
+
getContextBasedDiscussion(cid: any): void;
|
|
50
|
+
refreshData(page?: any): void;
|
|
51
|
+
getRecentData(): Subscription;
|
|
52
|
+
getContextData(cid: any): Subscription;
|
|
53
|
+
fetchAllTags(): void;
|
|
54
|
+
getContextBasedTags(cid: any): void;
|
|
55
|
+
startDiscussion(): void;
|
|
56
|
+
logTelemetry(event: any): void;
|
|
57
|
+
closeModal(event: any): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussAllComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscussAllComponent, "lib-discuss-all", never, { "context": { "alias": "context"; "required": false; }; "categoryAction": { "alias": "categoryAction"; "required": false; }; }, { "stateChange": "stateChange"; }, never, never, false, never>;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=discuss-all.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discuss-all.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/discuss-all/discuss-all.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAuB,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAIxE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;;AAK5E,qBAKa,mBAAoB,YAAW,MAAM;IA4BvC,MAAM,EAAE,MAAM;IACrB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,aAAa;IACd,cAAc,EAAE,cAAc;IACrC,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,iBAAiB;IAhClB,OAAO,EAAE,GAAG,CAAA;IACZ,cAAc,MAAC;IAEd,WAAW,EAAE,YAAY,CAAC,GA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KAAA;IAIlB,UAAU,CAAC,KAAK,KAAA;yCA9QL,mBAAmB;2CAAnB,mBAAmB;CAyR/B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Subscription } from 'rxjs';
|
|
2
|
+
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
|
+
import { DiscussionService } from '../../services/discussion.service';
|
|
4
|
+
import { NSDiscussData } from './../../models/discuss.model';
|
|
5
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
6
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
7
|
+
import { ConfigService } from '../../services/config.service';
|
|
8
|
+
import { NavigationServiceService } from '../../navigation-service.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class DiscussCategoryComponent implements OnInit, OnDestroy {
|
|
11
|
+
discussService: DiscussionService;
|
|
12
|
+
configService: ConfigService;
|
|
13
|
+
router: Router;
|
|
14
|
+
activatedRoute: ActivatedRoute;
|
|
15
|
+
private telemetryUtils;
|
|
16
|
+
private navigationService;
|
|
17
|
+
categories: NSDiscussData.ICategorie[];
|
|
18
|
+
forumIds: any;
|
|
19
|
+
categoryIds: any;
|
|
20
|
+
categoryAction: any;
|
|
21
|
+
stateChange: EventEmitter<any>;
|
|
22
|
+
pageId: number;
|
|
23
|
+
isTopicCreator: boolean;
|
|
24
|
+
showStartDiscussionModal: boolean;
|
|
25
|
+
categoryId: any;
|
|
26
|
+
paramsSubscription: Subscription;
|
|
27
|
+
showLoader: boolean;
|
|
28
|
+
constructor(discussService: DiscussionService, configService: ConfigService, router: Router, activatedRoute: ActivatedRoute, telemetryUtils: TelemetryUtilsService, navigationService: NavigationServiceService);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
fetchAllAvailableCategories(ids: any): void;
|
|
31
|
+
fetchAllCategories(): void;
|
|
32
|
+
fetchCategory(cid: any): import("rxjs").Observable<any>;
|
|
33
|
+
/**
|
|
34
|
+
* It will fetch the children for each category click.
|
|
35
|
+
* if there is no children available the it will redirect to the topic list page
|
|
36
|
+
*/
|
|
37
|
+
navigateToDiscussionPage(cid: any, slug?: any): void;
|
|
38
|
+
startDiscussion(): void;
|
|
39
|
+
closeModal(event: any): void;
|
|
40
|
+
logTelemetry(event: any): void;
|
|
41
|
+
ngOnDestroy(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussCategoryComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscussCategoryComponent, "lib-discuss-category", never, { "categoryIds": { "alias": "categoryIds"; "required": false; }; "categoryAction": { "alias": "categoryAction"; "required": false; }; }, { "stateChange": "stateChange"; }, never, never, false, never>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=discuss-category.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discuss-category.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/discuss-category/discuss-category.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAa,MAAM,EAAE,SAAS,EAAiB,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAiB,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAKxE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;;AAG5E,qBAKa,wBAAyB,YAAW,MAAM,EAAE,SAAS;IAsBvD,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,aAAa;IAC5B,MAAM,EAAE,MAAM;IACd,cAAc,EAAE,cAAc;IACrC,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,iBAAiB;IAzB3B,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,CAAM;IAE5C,QAAQ,EAAE,GAAG,CAAC;IACL,WAAW,MAAC;IACZ,cAAc,MAAC;IACd,WAAW,EAAE,YAAY,CAAC,GAAG,CAAC,CAAsB;IAE9D,MAAM,SAAK;IAEX,cAAc,UAAS;IAEvB,wBAAwB,UAAS;IAEjC,UAAU,EAAE,GAAG,CAAC;IAEhB,kBAAkB,EAAE,YAAY,CAAC;IAEjC,UAAU,UAAS;gBAGV,cAAc,EAAE,iBAAiB,EACjC,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,EAC7B,cAAc,EAAE,qBAAqB,EACrC,iBAAiB,EAAE,wBAAwB;IAGrD,QAAQ;IAsBR,2BAA2B,CAAC,GAAG,KAAA;IAgB/B,kBAAkB;IAclB,aAAa,CAAC,GAAG,KAAA;IAIjB;;;OAGG;IACH,wBAAwB,CAAC,GAAG,KAAA,EAAE,IAAI,CAAC,KAAA;IAoCnC,eAAe;IAIf,UAAU,CAAC,KAAK,KAAA;IAIhB,YAAY,CAAC,KAAK,KAAA;IAIlB,WAAW;yCA1IA,wBAAwB;2CAAxB,wBAAwB;CA+IpC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { DiscussionService } from '../../services/discussion.service';
|
|
4
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
5
|
+
import { ConfigService } from '../../services/config.service';
|
|
6
|
+
import { NavigationServiceService } from '../../navigation-service.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DiscussHomeComponent implements OnInit {
|
|
9
|
+
router: Router;
|
|
10
|
+
private route;
|
|
11
|
+
private discussionService;
|
|
12
|
+
private configService;
|
|
13
|
+
private telemetryUtils;
|
|
14
|
+
private navigationService;
|
|
15
|
+
categoryId: any;
|
|
16
|
+
categoryHomeAction: any;
|
|
17
|
+
stateChange: EventEmitter<any>;
|
|
18
|
+
elementView: ElementRef;
|
|
19
|
+
discussionList: any[];
|
|
20
|
+
routeParams: any;
|
|
21
|
+
showStartDiscussionModal: boolean;
|
|
22
|
+
isTopicCreator: boolean;
|
|
23
|
+
showLoader: boolean;
|
|
24
|
+
currentActivePage: number;
|
|
25
|
+
pagination: any;
|
|
26
|
+
InfiniteScrollConfig: {
|
|
27
|
+
modalScrollDistance: number;
|
|
28
|
+
modalScrollThrottle: number;
|
|
29
|
+
};
|
|
30
|
+
modalScrollDistance: number;
|
|
31
|
+
modalScrollThrottle: number;
|
|
32
|
+
scrollUpDistance: number;
|
|
33
|
+
currentPage: number;
|
|
34
|
+
pageSize: number;
|
|
35
|
+
totalTopics: number;
|
|
36
|
+
title: any;
|
|
37
|
+
constructor(router: Router, route: ActivatedRoute, discussionService: DiscussionService, configService: ConfigService, telemetryUtils: TelemetryUtilsService, navigationService: NavigationServiceService);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
/**
|
|
40
|
+
* @description - set the scroll container height
|
|
41
|
+
*/
|
|
42
|
+
ngAfterViewChecked(): void;
|
|
43
|
+
navigateToDiscussionDetails(discussionData: any): void;
|
|
44
|
+
/**
|
|
45
|
+
* @description - To get all the topics
|
|
46
|
+
* @param - required cid as a slug
|
|
47
|
+
*/
|
|
48
|
+
getDiscussionList(slug: string): void;
|
|
49
|
+
startDiscussion(): void;
|
|
50
|
+
logTelemetry(event: any): void;
|
|
51
|
+
closeModal(event: any): void;
|
|
52
|
+
/**
|
|
53
|
+
* @description - call the topic get api when scrolled down
|
|
54
|
+
*/
|
|
55
|
+
onModalScrollDown(): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussHomeComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscussHomeComponent, "lib-discuss-home", never, { "categoryId": { "alias": "categoryId"; "required": false; }; "categoryHomeAction": { "alias": "categoryHomeAction"; "required": false; }; }, { "stateChange": "stateChange"; }, never, never, false, never>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=discuss-home.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discuss-home.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/discuss-home/discuss-home.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,YAAY,EAAS,MAAM,EAAqB,MAAM,eAAe,CAAC;AACtG,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAKxE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;;AAG5E,qBAKa,oBAAqB,YAAW,MAAM;IAgCxC,MAAM,EAAE,MAAM;IACrB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,iBAAiB;IApClB,UAAU,MAAC;IACX,kBAAkB,MAAC;IAClB,WAAW,EAAE,YAAY,CAAC,GAAG,CAAC,CAAsB;IAE1B,WAAW,EAAE,UAAU,CAAC;IAC5D,cAAc,QAAM;IACpB,WAAW,EAAE,GAAG,CAAC;IACjB,wBAAwB,UAAS;IAEjC,cAAc,UAAS;IACvB,UAAU,UAAS;IACnB,iBAAiB,EAAE,MAAM,CAAK;IAC9B,UAAU,MAAqB;IAG/B,oBAAoB;;;MAGlB;IAGF,mBAAmB,SAAO;IAC1B,mBAAmB,SAAO;IAC1B,gBAAgB,SAAK;IAErB,WAAW,SAAK;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,GAAG,CAAC;gBAGF,MAAM,EAAE,MAAM,EACb,KAAK,EAAE,cAAc,EACrB,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,qBAAqB,EACrC,iBAAiB,EAAE,wBAAwB;IAErD,QAAQ;IAeR;;MAEE;IACF,kBAAkB;IAOlB,2BAA2B,CAAC,cAAc,KAAA;IAe1C;;;OAGG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM;IAiB9B,eAAe;IAIf,YAAY,CAAC,KAAK,KAAA;IAIlB,UAAU,CAAC,KAAK,KAAA;IAShB;;OAEG;IACH,iBAAiB;yCAxHN,oBAAoB;2CAApB,oBAAoB;CA8HhC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
2
|
+
import { DiscussionService } from './../../services/discussion.service';
|
|
3
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
4
|
+
import { NSDiscussData } from './../../models/discuss.model';
|
|
5
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
6
|
+
import { DiscussUtilsService } from '../../services/discuss-utils.service';
|
|
7
|
+
import { ConfigService } from '../../services/config.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DiscussStartComponent implements OnInit {
|
|
10
|
+
private discussService;
|
|
11
|
+
private formBuilder;
|
|
12
|
+
private telemetryUtils;
|
|
13
|
+
private configService;
|
|
14
|
+
private discussUtils;
|
|
15
|
+
categoryId: string;
|
|
16
|
+
topicData: any;
|
|
17
|
+
mode: string;
|
|
18
|
+
close: EventEmitter<any>;
|
|
19
|
+
startForm: UntypedFormGroup;
|
|
20
|
+
editable: boolean;
|
|
21
|
+
allCategories: NSDiscussData.ICategorie[];
|
|
22
|
+
allTags: NSDiscussData.ITag[];
|
|
23
|
+
postTagsArray: string[];
|
|
24
|
+
uploadSaveData: boolean;
|
|
25
|
+
showErrorMsg: boolean;
|
|
26
|
+
showSelectCategory: boolean;
|
|
27
|
+
createErrorMsg: string;
|
|
28
|
+
defaultError: string;
|
|
29
|
+
enableSubmitButton: boolean;
|
|
30
|
+
cIds: any;
|
|
31
|
+
constructor(discussService: DiscussionService, formBuilder: UntypedFormBuilder, telemetryUtils: TelemetryUtilsService, configService: ConfigService, discussUtils: DiscussUtilsService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
initializeFormFields(topicData: any): void;
|
|
34
|
+
isFieldValid(field: any): boolean;
|
|
35
|
+
validateForm(): void;
|
|
36
|
+
initializeData(): void;
|
|
37
|
+
showError(meta: string): boolean;
|
|
38
|
+
submitPost(form: any): void;
|
|
39
|
+
/**
|
|
40
|
+
* @param {any} form
|
|
41
|
+
* @description - It will emit an event when popup is opened in edit topic/thread mode
|
|
42
|
+
* Here, as 'tid', we are passing the main topic pid from the post array
|
|
43
|
+
*/
|
|
44
|
+
updatePost(form: any): void;
|
|
45
|
+
closeModal(eventMessage: string): void;
|
|
46
|
+
logTelemetry(event: any): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussStartComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscussStartComponent, "lib-discuss-start", never, { "categoryId": { "alias": "categoryId"; "required": false; }; "topicData": { "alias": "topicData"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=discuss-start.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discuss-start.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/discuss-start/discuss-start.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAc,MAAM,gBAAgB,CAAC;A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AE,GAAG;IAiC3B;;;;OAIG;IACH,UAAU,CAAC,IAAI,EAAE,GAAG;IAcpB,UAAU,CAAC,YAAY,EAAE,MAAM;IAI/B,YAAY,CAAC,KAAK,KAAA;yCA5LP,qBAAqB;2CAArB,qBAAqB;CA+LjC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DiscussionService } from '../../services/discussion.service';
|
|
3
|
+
import { NSDiscussData } from '../../models/discuss.model';
|
|
4
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
+
import { Subscription } from 'rxjs';
|
|
7
|
+
import { ConfigService } from '../../services/config.service';
|
|
8
|
+
import { DiscussUtilsService } from '../../services/discuss-utils.service';
|
|
9
|
+
import { NavigationServiceService } from '../../navigation-service.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class DiscussTagsComponent implements OnInit {
|
|
12
|
+
private discussionService;
|
|
13
|
+
private telemetryUtils;
|
|
14
|
+
private router;
|
|
15
|
+
activatedRoute: ActivatedRoute;
|
|
16
|
+
private configService;
|
|
17
|
+
private discussUtils;
|
|
18
|
+
private navigationService;
|
|
19
|
+
stateChange: EventEmitter<any>;
|
|
20
|
+
query: string;
|
|
21
|
+
filteredTags: NSDiscussData.ITag[];
|
|
22
|
+
showLoader: boolean;
|
|
23
|
+
queryParam: any;
|
|
24
|
+
paramsSubscription: Subscription;
|
|
25
|
+
getParams: any;
|
|
26
|
+
cIds: any;
|
|
27
|
+
constructor(discussionService: DiscussionService, telemetryUtils: TelemetryUtilsService, router: Router, activatedRoute: ActivatedRoute, configService: ConfigService, discussUtils: DiscussUtilsService, navigationService: NavigationServiceService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
fetchAllTags(): void;
|
|
30
|
+
getContextBasedTags(cid: any): void;
|
|
31
|
+
getBgColor(tagTitle: any): {
|
|
32
|
+
color: string;
|
|
33
|
+
'background-color': string;
|
|
34
|
+
};
|
|
35
|
+
getAllDiscussions(tag: {
|
|
36
|
+
value: any;
|
|
37
|
+
}): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussTagsComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscussTagsComponent, "lib-discuss-tags", never, {}, { "stateChange": "stateChange"; }, never, never, false, never>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=discuss-tags.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discuss-tags.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/discuss-tags/discuss-tags.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,YAAY,EAAU,MAAM,eAAe,CAAC;AAIxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;;AAG5E,qBAKa,oBAAqB,YAAW,MAAM;IAW/C,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,MAAM;IACP,cAAc,EAAE,cAAc;IACrC,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,iBAAiB;IAfjB,WAAW,EAAE,YAAY,CAAC,GAAG,CAAC,CAAsB;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IACnC,UAAU,UAAS;IACnB,UAAU,EAAE,GAAG,CAAC;IAChB,kBAAkB,EAAE,YAAY,CAAC;IACjC,SAAS,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;gBAEA,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,qBAAqB,EACrC,MAAM,EAAE,MAAM,EACf,cAAc,EAAE,cAAc,EAC7B,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,wBAAwB;IAGrD,QAAQ;IAaR,YAAY;IAYZ,mBAAmB,CAAC,GAAG,EAAE,GAAG;IAerB,UAAU,CAAC,QAAQ,EAAE,GAAG;;;;IAM/B,iBAAiB,CAAC,GAAG,EAAE;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE;yCAlE1B,oBAAoB;2CAApB,oBAAoB;CAmFhC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
2
|
+
import { DiscussionService } from './../../services/discussion.service';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { OnInit, OnDestroy, Renderer2, EventEmitter } from '@angular/core';
|
|
5
|
+
import { NSDiscussData } from './../../models/discuss.model';
|
|
6
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { ConfigService } from '../../services/config.service';
|
|
9
|
+
import { Location } from '@angular/common';
|
|
10
|
+
import { NavigationServiceService } from '../../navigation-service.service';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class DiscussionDetailsComponent implements OnInit, OnDestroy {
|
|
13
|
+
private route;
|
|
14
|
+
private discussionService;
|
|
15
|
+
private configService;
|
|
16
|
+
private formBuilder;
|
|
17
|
+
router: Router;
|
|
18
|
+
private telemetryUtils;
|
|
19
|
+
private renderer;
|
|
20
|
+
private location;
|
|
21
|
+
private navigationService;
|
|
22
|
+
topicId: any;
|
|
23
|
+
slug: string;
|
|
24
|
+
widget: boolean;
|
|
25
|
+
stateChange: EventEmitter<any>;
|
|
26
|
+
routeParams: any;
|
|
27
|
+
currentActivePage: number;
|
|
28
|
+
currentFilter: string;
|
|
29
|
+
data: any;
|
|
30
|
+
paginationData: any;
|
|
31
|
+
pager: {};
|
|
32
|
+
postAnswerForm: UntypedFormGroup;
|
|
33
|
+
UpdatePostAnswerForm: UntypedFormGroup;
|
|
34
|
+
replyForm: UntypedFormGroup;
|
|
35
|
+
fetchSingleCategoryLoader: boolean;
|
|
36
|
+
paramsSubscription: Subscription;
|
|
37
|
+
editMode: boolean;
|
|
38
|
+
updatedPost: boolean;
|
|
39
|
+
contentPost: any;
|
|
40
|
+
editContentIndex: any;
|
|
41
|
+
mainUid: number;
|
|
42
|
+
similarPosts: any[];
|
|
43
|
+
showEditTopicModal: boolean;
|
|
44
|
+
editableTopicDetails: any;
|
|
45
|
+
dropdownContent: boolean;
|
|
46
|
+
categoryId: any;
|
|
47
|
+
showLoader: boolean;
|
|
48
|
+
constructor(route: ActivatedRoute, discussionService: DiscussionService, configService: ConfigService, formBuilder: UntypedFormBuilder, router: Router, telemetryUtils: TelemetryUtilsService, renderer: Renderer2, location: Location, navigationService: NavigationServiceService);
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
ngOnChanges(): void;
|
|
51
|
+
acceptData(discuss: any): void;
|
|
52
|
+
initializeFormFiled(): void;
|
|
53
|
+
refreshPostData(page?: any): Promise<void>;
|
|
54
|
+
appendResponse(data: any): void;
|
|
55
|
+
setPagination(): void;
|
|
56
|
+
upvote(discuss: NSDiscussData.IDiscussionData): void;
|
|
57
|
+
downvote(discuss: NSDiscussData.IDiscussionData): void;
|
|
58
|
+
private processVote;
|
|
59
|
+
bookmark(discuss: any): void;
|
|
60
|
+
unBookMark(discuss: any): void;
|
|
61
|
+
deleteVote(discuss: any): void;
|
|
62
|
+
postReply(replyContent: string, post: NSDiscussData.IDiscussionData): void;
|
|
63
|
+
postCommentsReply(replyContent: string, post: NSDiscussData.IPosts): void;
|
|
64
|
+
confirmDelete(pid: any): void;
|
|
65
|
+
filter(key: string | 'timestamp' | 'upvotes'): void;
|
|
66
|
+
navigateWithPage(page: any): void;
|
|
67
|
+
showError(meta: string): boolean;
|
|
68
|
+
getBgColor(tagTitle: any): {
|
|
69
|
+
color: string;
|
|
70
|
+
'background-color': string;
|
|
71
|
+
};
|
|
72
|
+
stringToColor(title: any): string;
|
|
73
|
+
getContrast(): string;
|
|
74
|
+
logTelemetry(event: any, data?: any): void;
|
|
75
|
+
onEditMode(UpdatePostStatus: boolean): void;
|
|
76
|
+
getRealtimePost(post: any, index: any): void;
|
|
77
|
+
updatePost(updatedPostContent: any, pid: number): void;
|
|
78
|
+
deletePost(postId: number): void;
|
|
79
|
+
editReplyHandler(event: any, post: any): void;
|
|
80
|
+
commentReplyHandler(event: any, post: any): void;
|
|
81
|
+
postReplyHandler(event: any, post: any): void;
|
|
82
|
+
togglePost(post: any): void;
|
|
83
|
+
/**
|
|
84
|
+
* @description - It will trigger the event handlers and close the update thread popup.
|
|
85
|
+
*/
|
|
86
|
+
closeModal(event: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* @description - It will open update thread popup.
|
|
89
|
+
*/
|
|
90
|
+
editTopic(event: any, topicData: any): void;
|
|
91
|
+
/**
|
|
92
|
+
* @description - It will all the update topic api. If success, then will refresh the data.
|
|
93
|
+
*/
|
|
94
|
+
editTopicHandler(event: any, tid: any, updateTopicRequest: any): void;
|
|
95
|
+
/**
|
|
96
|
+
* @description - It will open the confirmation popup before deleting the topic,
|
|
97
|
+
* If clicked yes, then will call the delete topic handler.
|
|
98
|
+
*/
|
|
99
|
+
deleteTopic(event: any, topicData: any): void;
|
|
100
|
+
/**
|
|
101
|
+
* @description - It will all the delete topic api. If success, then will navigate back to the previous page.
|
|
102
|
+
*/
|
|
103
|
+
deleteTopicHandler(topicId: any): void;
|
|
104
|
+
/**
|
|
105
|
+
* @description - It will toggle the kebab menu click
|
|
106
|
+
*/
|
|
107
|
+
onMenuClick(): void;
|
|
108
|
+
ngOnDestroy(): void;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DiscussionDetailsComponent, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiscussionDetailsComponent, "lib-discussion-details", never, { "topicId": { "alias": "topicId"; "required": false; }; "slug": { "alias": "slug"; "required": false; }; "widget": { "alias": "widget"; "required": false; }; }, { "stateChange": "stateChange"; }, never, never, false, never>;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=discussion-details.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discussion-details.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/discussion-details/discussion-details.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAa,MAAM,EAAE,SAAS,EAAS,SAAS,EAAU,YAAY,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAc,MAAM,gBAAgB,CAAC;AAIlF,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;;AAO5E,qBAKa,0BAA2B,YAAW,MAA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AAC,KAAK,EAAE,GAAG;IAQrB;;OAEG;IACF,SAAS,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA;IAK3B;;OAEG;IACH,gBAAgB,CAAC,KAAK,KAAA,EAAE,GAAG,KAAA,EAAE,kBAAkB,KAAA;IAY/C;;;OAGG;IACH,WAAW,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA;IAO5B;;OAEG;IACH,kBAAkB,CAAC,OAAO,KAAA;IAS1B;;OAEG;IACH,WAAW;IAIX,WAAW;yCAreA,0BAA0B;2CAA1B,0BAA0B;CA2etC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DiscussionService } from './../../services/discussion.service';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
4
|
+
import { Location } from '@angular/common';
|
|
5
|
+
import { DiscussionEventsService } from './../../discussion-events.service';
|
|
6
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
7
|
+
import { IdiscussionConfig } from '../../models/discussion-config.model';
|
|
8
|
+
import { ConfigService } from '../../services/config.service';
|
|
9
|
+
import { NavigationServiceService } from '../../navigation-service.service';
|
|
10
|
+
import { Subscription } from 'rxjs';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class LibEntryComponent implements OnInit, OnDestroy {
|
|
13
|
+
activatedRoute: ActivatedRoute;
|
|
14
|
+
private discussionService;
|
|
15
|
+
private configService;
|
|
16
|
+
private location;
|
|
17
|
+
private navigationServiceService;
|
|
18
|
+
private discussionEventService;
|
|
19
|
+
private telemetryUtils;
|
|
20
|
+
data: IdiscussionConfig;
|
|
21
|
+
headerOption: boolean;
|
|
22
|
+
banner: any;
|
|
23
|
+
private bannerSubscription;
|
|
24
|
+
bannerOption: boolean;
|
|
25
|
+
currentRoute: string;
|
|
26
|
+
pageKey: string;
|
|
27
|
+
config: any;
|
|
28
|
+
histtoryStartIndex: number;
|
|
29
|
+
showLoaderAlert: boolean;
|
|
30
|
+
subscription: Subscription;
|
|
31
|
+
constructor(activatedRoute: ActivatedRoute, discussionService: DiscussionService, configService: ConfigService, location: Location, navigationServiceService: NavigationServiceService, discussionEventService: DiscussionEventsService, telemetryUtils: TelemetryUtilsService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
handleLoaderAlert(): void;
|
|
34
|
+
goBack(): void;
|
|
35
|
+
close(event: any): void;
|
|
36
|
+
closeLoadAlert(): void;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
onScrollTopActive(event: any): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibEntryComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibEntryComponent, "lib-lib-entry", never, {}, {}, never, never, false, never>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=lib-entry.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib-entry.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/lib-entry/lib-entry.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAKxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;;AAEpC,qBAQa,iBAAkB,YAAW,MAAM,EAAE,SAAS;IAehD,cAAc,EAAE,cAAc;IACrC,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,wBAAwB;IAChC,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,cAAc;IAnBxB,IAAI,EAAE,iBAAiB,CAAC;IACxB,YAAY,UAAQ;IACpB,MAAM,EAAE,GAAG,CAAA;IACX,OAAO,CAAC,kBAAkB,CAAK;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,SAAoB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,UAAS;IACxB,YAAY,EAAE,YAAY,CAAA;gBAGjB,cAAc,EAAE,cAAc,EAC7B,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,EAClB,wBAAwB,EAAE,wBAAwB,EAClD,sBAAsB,EAAE,uBAAuB,EAC/C,cAAc,EAAE,qBAAqB;IAW/C,QAAQ;IAsBR,iBAAiB;IAOjB,MAAM;IAQN,KAAK,CAAC,KAAK,KAAA;IAUX,cAAc;IAId,WAAW;IAIX,iBAAiB,CAAC,KAAK,KAAA;yCAvFZ,iBAAiB;2CAAjB,iBAAiB;CA+F7B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DiscussionService } from './../../services/discussion.service';
|
|
2
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
3
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { ConfigService } from '../../services/config.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MyDiscussionComponent implements OnInit {
|
|
8
|
+
private discussService;
|
|
9
|
+
private configService;
|
|
10
|
+
router: Router;
|
|
11
|
+
private telemetryUtils;
|
|
12
|
+
elementView: ElementRef;
|
|
13
|
+
data: any;
|
|
14
|
+
discussionList: any[];
|
|
15
|
+
currentFilter: string;
|
|
16
|
+
department: string | null;
|
|
17
|
+
location: string | null;
|
|
18
|
+
profilePhoto: string;
|
|
19
|
+
userInitial: string;
|
|
20
|
+
showLoader: boolean;
|
|
21
|
+
pagination: any;
|
|
22
|
+
recentFilter: any;
|
|
23
|
+
InfiniteScrollConfig: {
|
|
24
|
+
modalScrollDistance: number;
|
|
25
|
+
modalScrollThrottle: number;
|
|
26
|
+
};
|
|
27
|
+
constructor(discussService: DiscussionService, configService: ConfigService, router: Router, telemetryUtils: TelemetryUtilsService);
|
|
28
|
+
/** To fetch user details */
|
|
29
|
+
fetchUserProfile(userName: any): void;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
/**
|
|
32
|
+
* @description - set the scroll container height
|
|
33
|
+
*/
|
|
34
|
+
ngAfterViewChecked(): void;
|
|
35
|
+
/**
|
|
36
|
+
* @param {string|'timestamp'|'best'|'saved'|'watched'|'upvoted'|'downvoted'} key
|
|
37
|
+
* @param {boolean} resetpagination - its used to reset the pagination value based on the filter data
|
|
38
|
+
*/
|
|
39
|
+
filter(key: string | 'timestamp' | 'best' | 'saved' | 'watched' | 'upvoted' | 'downvoted', resetpagination: boolean): void;
|
|
40
|
+
navigateToDiscussionDetails(discussionData: any): void;
|
|
41
|
+
logTelemetry(event: any): void;
|
|
42
|
+
/**
|
|
43
|
+
* @description - getting the recent post data
|
|
44
|
+
* @param {number} scrollIndex
|
|
45
|
+
*/
|
|
46
|
+
getRecentTopics(scrollIndex: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* @description - call the topic get api when scrolled down and setting the limit of API Call
|
|
49
|
+
*/
|
|
50
|
+
onModalScrollDown(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MyDiscussionComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MyDiscussionComponent, "lib-my-discussion", never, {}, {}, never, never, false, never>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=my-discussion.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"my-discussion.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/my-discussion/my-discussion.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAa,UAAU,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAIzC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;;AAI9D,qBAKa,qBAAsB,YAAW,MAAM;IAqBhD,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,aAAa;IACd,MAAM,EAAE,MAAM;IACrB,OAAO,CAAC,cAAc;IAtBY,WAAW,EAAE,UAAU,CAAC;IAC5D,IAAI,MAAC;IACL,cAAc,QAAM;IACpB,aAAa,SAAe;IAC5B,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAG,MAAM,CAAC;IACtB,WAAW,SAAM;IACjB,UAAU,UAAS;IACnB,UAAU,MAAqB;IAC/B,YAAY,MAAC;IAGb,oBAAoB;;;MAGlB;gBAGQ,cAAc,EAAE,iBAAiB,EACjC,aAAa,EAAE,aAAa,EAC7B,MAAM,EAAE,MAAM,EACb,cAAc,EAAE,qBAAqB;IAE/C,4BAA4B;IAC5B,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,QAAQ;IAMR;;OAEG;IACH,kBAAkB;IAOlB;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,EAAE,eAAe,EAAE,OAAO;IAyGnH,2BAA2B,CAAC,cAAc,KAAA;IAM1C,YAAY,CAAC,KAAK,KAAA;IAIlB;;;OAGG;IACH,eAAe,CAAC,WAAW,EAAE,MAAM;IAmBnC;;OAEG;IACH,iBAAiB;yCAhNN,qBAAqB;2CAArB,qBAAqB;CA2NjC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TelemetryUtilsService } from './../../telemetry-utils.service';
|
|
2
|
+
import { DiscussionService } from './../../services/discussion.service';
|
|
3
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { ConfigService } from '../../services/config.service';
|
|
7
|
+
import { IdiscussionConfig, IMenuOptions } from '../../models/discussion-config.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SidePannelComponent implements OnInit, OnDestroy {
|
|
10
|
+
router: Router;
|
|
11
|
+
discussService: DiscussionService;
|
|
12
|
+
activatedRoute: ActivatedRoute;
|
|
13
|
+
private telemetryUtils;
|
|
14
|
+
private configService;
|
|
15
|
+
paramsSubscription: Subscription;
|
|
16
|
+
userName: string;
|
|
17
|
+
defaultPage: string;
|
|
18
|
+
data: IdiscussionConfig;
|
|
19
|
+
hideSidePanel: boolean;
|
|
20
|
+
menu: Array<IMenuOptions>;
|
|
21
|
+
selectedTab: string;
|
|
22
|
+
showSideMenu: Boolean;
|
|
23
|
+
landingPage: string;
|
|
24
|
+
constructor(router: Router, discussService: DiscussionService, activatedRoute: ActivatedRoute, telemetryUtils: TelemetryUtilsService, configService: ConfigService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
isActive(selectedItem: any): boolean;
|
|
27
|
+
navigate(pageName: string, event?: any): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
showMenuButton(): void;
|
|
30
|
+
closeNav(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidePannelComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidePannelComponent, "lib-side-pannel", never, {}, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=side-pannel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-pannel.component.d.ts","sourceRoot":"","sources":["../../../../../projects/discussion-ui/src/lib/components/side-pannel/side-pannel.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAMpC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;;AAGvF,qBAKa,mBAAoB,YAAW,MAAM,EAAE,SAAS;IAgBlD,MAAM,EAAE,MAAM;IACd,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,cAAc;IACrC,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,aAAa;IAlBvB,kBAAkB,EAAE,YAAY,CAAC;IAEjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,SAAgB;IAE3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAM;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAQ;IAC7B,WAAW,EAAE,MAAM,CAAA;gBAGV,MAAM,EAAE,MA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