@sunbird-cb/consumption 0.0.12 → 0.0.13
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/bundles/sunbird-cb-consumption.umd.js +2136 -71
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +147 -0
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +29 -0
- package/esm2015/lib/_common/calender/calender-day/calender-day.component.js +90 -0
- package/esm2015/lib/_common/calender/calender.component.js +275 -9
- package/esm2015/lib/_common/calender/calender.module.js +15 -5
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
- package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +166 -0
- package/esm2015/lib/_common/cards/cards.component.js +2 -2
- package/esm2015/lib/_common/cards/cards.module.js +5 -3
- package/esm2015/lib/_common/common-strip/common-strip.component.js +14 -11
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +22 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +31 -3
- package/esm2015/lib/_common/data-points/data-points.component.js +2 -2
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +197 -0
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.module.js +50 -0
- package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +710 -0
- package/esm2015/lib/_common/user-content-rating/user-content-rating.module.js +35 -0
- package/esm2015/lib/_models/rating.model.js +44 -0
- package/esm2015/lib/_services/insite-data.service.js +10 -2
- package/esm2015/lib/_services/rating.service.js +171 -0
- package/esm2015/public-api.js +2 -1
- package/esm2015/sunbird-cb-consumption.js +28 -20
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +164 -0
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +33 -0
- package/esm5/lib/_common/calender/calender-day/calender-day.component.js +101 -0
- package/esm5/lib/_common/calender/calender.component.js +305 -9
- package/esm5/lib/_common/calender/calender.module.js +15 -5
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +172 -0
- package/esm5/lib/_common/cards/cards.component.js +2 -2
- package/esm5/lib/_common/cards/cards.module.js +5 -3
- package/esm5/lib/_common/common-strip/common-strip.component.js +22 -19
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +26 -3
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +36 -3
- package/esm5/lib/_common/data-points/data-points.component.js +2 -2
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +224 -0
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +67 -0
- package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +726 -0
- package/esm5/lib/_common/user-content-rating/user-content-rating.module.js +39 -0
- package/esm5/lib/_models/rating.model.js +44 -0
- package/esm5/lib/_services/insite-data.service.js +14 -2
- package/esm5/lib/_services/rating.service.js +214 -0
- package/esm5/public-api.js +2 -1
- package/esm5/sunbird-cb-consumption.js +28 -20
- package/fesm2015/sunbird-cb-consumption.js +1969 -88
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +2113 -58
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +19 -0
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +2 -0
- package/lib/_common/calender/calender-day/calender-day.component.d.ts +18 -0
- package/lib/_common/calender/calender.component.d.ts +29 -1
- package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -0
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +1 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -1
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +28 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +34 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +6 -0
- package/lib/_common/user-content-rating/user-content-rating.component.d.ts +167 -0
- package/lib/_common/user-content-rating/user-content-rating.module.d.ts +2 -0
- package/lib/_models/rating.model.d.ts +17 -0
- package/lib/_services/insite-data.service.d.ts +1 -0
- package/lib/_services/rating.service.d.ts +15 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-consumption.d.ts +26 -18
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class AvatarPhotoLibComponent implements OnInit, OnChanges {
|
|
3
|
+
datalen: any;
|
|
4
|
+
photoUrl: string;
|
|
5
|
+
name: string;
|
|
6
|
+
size: string;
|
|
7
|
+
randomColor: boolean;
|
|
8
|
+
initials?: string;
|
|
9
|
+
showBadge: boolean;
|
|
10
|
+
showInitials: boolean;
|
|
11
|
+
circleColor: string;
|
|
12
|
+
random: string;
|
|
13
|
+
private colors;
|
|
14
|
+
private randomcolors;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnChanges(change: SimpleChanges): void;
|
|
17
|
+
readonly userInitials: string;
|
|
18
|
+
private createInititals;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
export declare class CalenderDayComponent implements OnInit {
|
|
4
|
+
private datePipe;
|
|
5
|
+
objectData: any;
|
|
6
|
+
layoutType: any;
|
|
7
|
+
day: any;
|
|
8
|
+
dataLoading: boolean;
|
|
9
|
+
rowId: any;
|
|
10
|
+
eventDate: any;
|
|
11
|
+
webDisplayDate: string;
|
|
12
|
+
mobileDisplayDate: string;
|
|
13
|
+
currentDate: any;
|
|
14
|
+
constructor(datePipe: DatePipe);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
openLink(link: string): void;
|
|
17
|
+
formatDate(date: any, type: string): string;
|
|
18
|
+
}
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
3
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
2
4
|
export declare class CalenderComponent implements OnInit {
|
|
5
|
+
private datePipe;
|
|
6
|
+
insightSvc: InsiteDataService;
|
|
3
7
|
objectData: any;
|
|
4
|
-
|
|
8
|
+
layoutType: any;
|
|
9
|
+
fetchDataFromApi: boolean;
|
|
10
|
+
showHeader: boolean;
|
|
11
|
+
defaultDays: number;
|
|
12
|
+
providerId: any;
|
|
13
|
+
fullCalendor: boolean;
|
|
14
|
+
days: any[];
|
|
15
|
+
trainings: any;
|
|
16
|
+
currentMonthAndYear: any;
|
|
17
|
+
isDataLoading: boolean;
|
|
18
|
+
currentDate: any;
|
|
19
|
+
endDate: any;
|
|
20
|
+
startDate: any;
|
|
21
|
+
allMonths: string[];
|
|
22
|
+
monthsDropdown: any;
|
|
23
|
+
selectedMonth: any;
|
|
24
|
+
constructor(datePipe: DatePipe, insightSvc: InsiteDataService);
|
|
5
25
|
ngOnInit(): void;
|
|
26
|
+
getInsiteData(): void;
|
|
27
|
+
getKeys(obj: any): string[];
|
|
28
|
+
formatDate(date: any): string;
|
|
29
|
+
convertTo12HourFormat(timeString: string): string;
|
|
30
|
+
getDays(cDate: any, counter: number): any;
|
|
31
|
+
getDaysInMonth(year: number, month: number): Date[];
|
|
32
|
+
getMonthsDropdownData(): void;
|
|
33
|
+
selectMonth(event: any): void;
|
|
6
34
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NsCardContent } from '../../../_models/card-content.model';
|
|
3
|
+
import { MatSnackBar } from '@angular/material';
|
|
4
|
+
import { ConfigurationsService, EventService } from '@sunbird-cb/utils-v2';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
|
|
7
|
+
export declare class CardWideComponent implements OnInit {
|
|
8
|
+
private snackBar;
|
|
9
|
+
private events;
|
|
10
|
+
private translate;
|
|
11
|
+
private langtranslations;
|
|
12
|
+
private configSvc;
|
|
13
|
+
widgetData: NsCardContent.ICard;
|
|
14
|
+
isLiveOrMarkForDeletion: any;
|
|
15
|
+
showIntranetContent: any;
|
|
16
|
+
isIntranetAllowedSettings: any;
|
|
17
|
+
isCardLoading: boolean;
|
|
18
|
+
contentData: EventEmitter<any>;
|
|
19
|
+
isCardFlipped: boolean;
|
|
20
|
+
defaultThumbnail: any;
|
|
21
|
+
sourceLogos: any;
|
|
22
|
+
defaultSLogo: any;
|
|
23
|
+
showFlip: boolean;
|
|
24
|
+
widgetType: any;
|
|
25
|
+
widgetSubType: any;
|
|
26
|
+
constructor(snackBar: MatSnackBar, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
getRedirectUrlData(contentData: any): void;
|
|
29
|
+
raiseTelemetry(): void;
|
|
30
|
+
}
|
|
@@ -29,6 +29,7 @@ export declare class CompetencyPassbookComponent implements OnInit {
|
|
|
29
29
|
competencyChange(e: any): void;
|
|
30
30
|
getAllCompetencies(): void;
|
|
31
31
|
getcompetencyTheme(value: any, addFilter?: any): Promise<void>;
|
|
32
|
+
resetViewMore(): void;
|
|
32
33
|
viewMoreChildren(data: any): void;
|
|
33
34
|
displayAllTheme(event: any): void;
|
|
34
35
|
navigateToCompetency(compData: any): void;
|
|
@@ -9,6 +9,7 @@ import { Subscription } from 'rxjs';
|
|
|
9
9
|
import { WidgetUserService } from '../../_services/widget-user.service';
|
|
10
10
|
import { MatTabChangeEvent } from '@angular/material';
|
|
11
11
|
import { TranslateService } from '@ngx-translate/core';
|
|
12
|
+
import { Router } from '@angular/router';
|
|
12
13
|
interface IStripUnitContentData {
|
|
13
14
|
key: string;
|
|
14
15
|
canHideStrip: boolean;
|
|
@@ -52,12 +53,15 @@ export declare class ContentStripWithTabsLibComponent extends WidgetBaseComponen
|
|
|
52
53
|
private eventSvc;
|
|
53
54
|
private configSvc;
|
|
54
55
|
utilitySvc: UtilityService;
|
|
56
|
+
router: Router;
|
|
55
57
|
private userSvc;
|
|
56
58
|
private translate;
|
|
57
59
|
private langtranslations;
|
|
58
60
|
widgetData: NsContentStripWithTabs.IContentStripMultiple;
|
|
59
61
|
emptyResponse: EventEmitter<any>;
|
|
62
|
+
viewAllResponse: EventEmitter<any>;
|
|
60
63
|
providerId: any;
|
|
64
|
+
emitViewAll: boolean;
|
|
61
65
|
id: string;
|
|
62
66
|
stripsResultDataMap: {
|
|
63
67
|
[key: string]: IStripUnitContentData;
|
|
@@ -78,7 +82,7 @@ export declare class ContentStripWithTabsLibComponent extends WidgetBaseComponen
|
|
|
78
82
|
defaultMaxWidgets: number;
|
|
79
83
|
enrollInterval: any;
|
|
80
84
|
todaysEvents: any;
|
|
81
|
-
constructor(environment: any, contentSvc: WidgetContentService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService, utilitySvc: UtilityService, userSvc: WidgetUserService, translate: TranslateService, langtranslations: MultilingualTranslationsService);
|
|
85
|
+
constructor(environment: any, contentSvc: WidgetContentService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService, utilitySvc: UtilityService, router: Router, userSvc: WidgetUserService, translate: TranslateService, langtranslations: MultilingualTranslationsService);
|
|
82
86
|
ngOnInit(): void;
|
|
83
87
|
ngOnDestroy(): void;
|
|
84
88
|
showAccordion(key: string): boolean;
|
|
@@ -176,5 +180,6 @@ export declare class ContentStripWithTabsLibComponent extends WidgetBaseComponen
|
|
|
176
180
|
fetchAllFeaturedContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
177
181
|
postRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise<any>;
|
|
178
182
|
postMethodFilters(filters: any): any;
|
|
183
|
+
redirectViewAll(stripData: any, path: string, queryParamsData: any): void;
|
|
179
184
|
}
|
|
180
185
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver-v2';
|
|
3
|
+
import { ICarousel, ICarouselStyle } from './sliders-ng-content.model';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { EventService, ValueService } from '@sunbird-cb/utils-v2';
|
|
6
|
+
export declare class SlidersNgContentLibComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData<ICarousel[]> {
|
|
7
|
+
private events;
|
|
8
|
+
private valueSvc;
|
|
9
|
+
widgetData: ICarousel[];
|
|
10
|
+
styleData: ICarouselStyle;
|
|
11
|
+
title: any;
|
|
12
|
+
loadNgContentData: boolean;
|
|
13
|
+
currentIndexValue: EventEmitter<any>;
|
|
14
|
+
id: string;
|
|
15
|
+
private defaultMenuSubscribe;
|
|
16
|
+
isLtMedium$: import("rxjs").Observable<boolean>;
|
|
17
|
+
currentIndex: number;
|
|
18
|
+
slideInterval: Subscription | null;
|
|
19
|
+
isMobile: boolean;
|
|
20
|
+
constructor(events: EventService, valueSvc: ValueService);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
reInitiateSlideInterval(): void;
|
|
23
|
+
slideTo(index: number): void;
|
|
24
|
+
readonly isOpenInNewTab: boolean;
|
|
25
|
+
openInNewTab(): void;
|
|
26
|
+
raiseTelemetry(bannerUrl: string | undefined): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ICarousel {
|
|
2
|
+
title?: string;
|
|
3
|
+
redirectUrl?: string;
|
|
4
|
+
openInNewTab?: string;
|
|
5
|
+
banners: IBannerUnit;
|
|
6
|
+
mailTo?: string;
|
|
7
|
+
queryParams?: any;
|
|
8
|
+
}
|
|
9
|
+
export interface ICarouselStyle {
|
|
10
|
+
bannerMetaClass?: "inline-meta";
|
|
11
|
+
bannerMetaAlign?: "right" | "left";
|
|
12
|
+
navigationArrows?: "hidden" | "visible";
|
|
13
|
+
dots?: "hidden" | "visible";
|
|
14
|
+
borderRadius?: string;
|
|
15
|
+
customHeight?: string;
|
|
16
|
+
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
17
|
+
responsive: {
|
|
18
|
+
bannerMetaClass?: "inline-meta";
|
|
19
|
+
bannerMetaAlign?: "right" | "left";
|
|
20
|
+
navigationArrows?: "hidden" | "visible";
|
|
21
|
+
dots?: "hidden" | "visible";
|
|
22
|
+
borderRadius?: string;
|
|
23
|
+
customHeight?: string;
|
|
24
|
+
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface IBannerUnit {
|
|
28
|
+
xs: string;
|
|
29
|
+
s: string;
|
|
30
|
+
m: string;
|
|
31
|
+
l: string;
|
|
32
|
+
xl: string;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { RatingService } from '../../_services/rating.service';
|
|
3
|
+
export declare class UserContentRatingComponent implements OnInit {
|
|
4
|
+
ratingService: RatingService;
|
|
5
|
+
currentIndex: any;
|
|
6
|
+
styleData: {
|
|
7
|
+
"bannerMetaClass": string;
|
|
8
|
+
"bannerMeta": string;
|
|
9
|
+
"bannerMetaAlign": string;
|
|
10
|
+
"navigationArrows": string;
|
|
11
|
+
"borderRadius": string;
|
|
12
|
+
"customHeight": string;
|
|
13
|
+
"arrowsPlacement": string;
|
|
14
|
+
"responsive": {
|
|
15
|
+
"bannerMetaClass": string;
|
|
16
|
+
"customHeight": string;
|
|
17
|
+
"bannerMetaAlign": string;
|
|
18
|
+
"navigationArrows": string;
|
|
19
|
+
"dots": string;
|
|
20
|
+
"arrowsPlacement": string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
sliders: {
|
|
24
|
+
"active": boolean;
|
|
25
|
+
"banners": {
|
|
26
|
+
"l": string;
|
|
27
|
+
"m": string;
|
|
28
|
+
"s": string;
|
|
29
|
+
"xl": string;
|
|
30
|
+
"xs": string;
|
|
31
|
+
"xxl": string;
|
|
32
|
+
};
|
|
33
|
+
"redirectUrl": string;
|
|
34
|
+
"queryParams": {};
|
|
35
|
+
"title": string;
|
|
36
|
+
}[];
|
|
37
|
+
contentCard: {
|
|
38
|
+
"content": {
|
|
39
|
+
"identifier": string;
|
|
40
|
+
"competencies_v5": {
|
|
41
|
+
"competencyArea": string;
|
|
42
|
+
"competencyAreaId": number;
|
|
43
|
+
"competencyAreaDescription": string;
|
|
44
|
+
"competencyTheme": string;
|
|
45
|
+
"competencyThemeId": number;
|
|
46
|
+
"competecnyThemeDescription": string;
|
|
47
|
+
"competencyThemeType": string;
|
|
48
|
+
"competencySubTheme": string;
|
|
49
|
+
"competencySubThemeId": number;
|
|
50
|
+
"competecnySubThemeDescription": string;
|
|
51
|
+
}[];
|
|
52
|
+
"description": string;
|
|
53
|
+
"organisation": string[];
|
|
54
|
+
"creatorLogo": any;
|
|
55
|
+
"posterImage": string;
|
|
56
|
+
"duration": string;
|
|
57
|
+
"additionalTags": any;
|
|
58
|
+
"appIcon": string;
|
|
59
|
+
"primaryCategory": string;
|
|
60
|
+
"name": string;
|
|
61
|
+
"avgRating": any;
|
|
62
|
+
"contentType": string;
|
|
63
|
+
};
|
|
64
|
+
"cardSubType": string;
|
|
65
|
+
"cardCustomeClass": string;
|
|
66
|
+
"context": {
|
|
67
|
+
"pageSection": string;
|
|
68
|
+
"position": number;
|
|
69
|
+
};
|
|
70
|
+
"review": string;
|
|
71
|
+
"rating": number;
|
|
72
|
+
"userDetails": {
|
|
73
|
+
"firstName": string;
|
|
74
|
+
"userId": string;
|
|
75
|
+
"profileImageUrl": any;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
widgetData: {
|
|
79
|
+
cardSubType: string;
|
|
80
|
+
};
|
|
81
|
+
responseData: ({
|
|
82
|
+
"review": string;
|
|
83
|
+
"rating": number;
|
|
84
|
+
"userDetails": {
|
|
85
|
+
"firstName": string;
|
|
86
|
+
"userId": string;
|
|
87
|
+
"profileImageUrl": any;
|
|
88
|
+
};
|
|
89
|
+
"cardSubType": string;
|
|
90
|
+
"cardCustomeClass": string;
|
|
91
|
+
"context": {
|
|
92
|
+
"pageSection": string;
|
|
93
|
+
"position": number;
|
|
94
|
+
};
|
|
95
|
+
"content": {
|
|
96
|
+
"identifier": string;
|
|
97
|
+
"competencies_v5": {
|
|
98
|
+
"competencyArea": string;
|
|
99
|
+
"competencyAreaDescription": string;
|
|
100
|
+
"competencyAreaId": number;
|
|
101
|
+
"competencyTheme": string;
|
|
102
|
+
"competencyThemeDescription": string;
|
|
103
|
+
"competencyThemeId": number;
|
|
104
|
+
"competencyThemeType": string;
|
|
105
|
+
"competencySubTheme": string;
|
|
106
|
+
"competencySubThemeId": number;
|
|
107
|
+
"competencySubThemeDescription": string;
|
|
108
|
+
}[];
|
|
109
|
+
"description": string;
|
|
110
|
+
"organisation": string[];
|
|
111
|
+
"creatorLogo": any;
|
|
112
|
+
"posterImage": string;
|
|
113
|
+
"duration": string;
|
|
114
|
+
"additionalTags": any;
|
|
115
|
+
"appIcon": string;
|
|
116
|
+
"primaryCategory": string;
|
|
117
|
+
"name": string;
|
|
118
|
+
"avgRating": number;
|
|
119
|
+
"contentType": string;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
"review": string;
|
|
123
|
+
"rating": number;
|
|
124
|
+
"userDetails": {
|
|
125
|
+
"firstName": string;
|
|
126
|
+
"userId": string;
|
|
127
|
+
"profileImageUrl": any;
|
|
128
|
+
};
|
|
129
|
+
"cardSubType": string;
|
|
130
|
+
"cardCustomeClass": string;
|
|
131
|
+
"context": {
|
|
132
|
+
"pageSection": string;
|
|
133
|
+
"position": number;
|
|
134
|
+
};
|
|
135
|
+
"content": {
|
|
136
|
+
"identifier": string;
|
|
137
|
+
"competencies_v5": {
|
|
138
|
+
"competencyArea": string;
|
|
139
|
+
"competencyAreaId": number;
|
|
140
|
+
"competencyAreaDescription": string;
|
|
141
|
+
"competencyTheme": string;
|
|
142
|
+
"competencyThemeId": number;
|
|
143
|
+
"competecnyThemeDescription": string;
|
|
144
|
+
"competencyThemeType": string;
|
|
145
|
+
"competencySubTheme": string;
|
|
146
|
+
"competencySubThemeId": number;
|
|
147
|
+
"competecnySubThemeDescription": string;
|
|
148
|
+
}[];
|
|
149
|
+
"description": string;
|
|
150
|
+
"organisation": string[];
|
|
151
|
+
"creatorLogo": any;
|
|
152
|
+
"posterImage": string;
|
|
153
|
+
"duration": string;
|
|
154
|
+
"additionalTags": string[];
|
|
155
|
+
"appIcon": string;
|
|
156
|
+
"primaryCategory": string;
|
|
157
|
+
"name": string;
|
|
158
|
+
"avgRating": number;
|
|
159
|
+
"contentType": string;
|
|
160
|
+
};
|
|
161
|
+
})[];
|
|
162
|
+
constructor(ratingService: RatingService);
|
|
163
|
+
ngOnInit(): void;
|
|
164
|
+
getRatingIcon(ratingIndex: number, avg: number): 'star' | 'star_border' | 'star_half';
|
|
165
|
+
getRatingIconClass(ratingIndex: number, avg: number): boolean;
|
|
166
|
+
getCurrentIndex(indexValue: any): void;
|
|
167
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare namespace NsAppRating {
|
|
2
|
+
interface IRating {
|
|
3
|
+
activityId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
activityType: string;
|
|
6
|
+
rating: number;
|
|
7
|
+
review: string;
|
|
8
|
+
recommended: any;
|
|
9
|
+
}
|
|
10
|
+
interface ILookupRequest {
|
|
11
|
+
activityId: string;
|
|
12
|
+
activityType: string;
|
|
13
|
+
rating?: number;
|
|
14
|
+
limit: number;
|
|
15
|
+
updateOn?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { NsAppRating } from '../_models/rating.model';
|
|
4
|
+
export declare class RatingService {
|
|
5
|
+
http: HttpClient;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
getRating(contentId: string, contentType: string, userId: string): Observable<any>;
|
|
8
|
+
addOrUpdateRating(req: NsAppRating.IRating): Observable<any>;
|
|
9
|
+
getRatingSummary(contentId: string, contentType: string): Observable<any>;
|
|
10
|
+
getRatingLookup(req: NsAppRating.ILookupRequest): Observable<any>;
|
|
11
|
+
getRatingReply(req: any): Observable<any>;
|
|
12
|
+
getRatingIcon(ratingIndex: number, avg: number): 'star' | 'star_border' | 'star_half';
|
|
13
|
+
getRatingIconClass(ratingIndex: number, avg: number): boolean;
|
|
14
|
+
getAuthorReply(contentId: string, userID: string): Observable<any>;
|
|
15
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export * from './lib/_common/data-points/data-points.module';
|
|
|
10
10
|
export * from './lib/_common/cards/cards.module';
|
|
11
11
|
export * from './lib/_common/competency-passbook/competency-passbook.module';
|
|
12
12
|
export * from './lib/_common/calender/calender.module';
|
|
13
|
+
export * from './lib/_common/user-content-rating/user-content-rating.module';
|
|
13
14
|
export * from './lib/_services/common-methods.service';
|
|
@@ -2,38 +2,46 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
+
export { AvatarPhotoLibComponent as ɵbo } from './lib/_common/avatar-photo-lib/avatar-photo-lib.component';
|
|
6
|
+
export { AvatarPhotoLibModule as ɵbn } from './lib/_common/avatar-photo-lib/avatar-photo-lib.module';
|
|
7
|
+
export { CalenderDayComponent as ɵr } from './lib/_common/calender/calender-day/calender-day.component';
|
|
5
8
|
export { CalenderComponent as ɵq } from './lib/_common/calender/calender.component';
|
|
6
|
-
export { CardLandscapeComponent as
|
|
7
|
-
export { CardPortraitComponent as
|
|
8
|
-
export { CardResourceComponent as
|
|
9
|
-
export { CardUserComponent as
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
9
|
+
export { CardLandscapeComponent as ɵx } from './lib/_common/cards/card-landscape/card-landscape.component';
|
|
10
|
+
export { CardPortraitComponent as ɵv } from './lib/_common/cards/card-portrait/card-portrait.component';
|
|
11
|
+
export { CardResourceComponent as ɵt } from './lib/_common/cards/card-resource/card-resource.component';
|
|
12
|
+
export { CardUserComponent as ɵw } from './lib/_common/cards/card-user/card-user.component';
|
|
13
|
+
export { CardWideComponent as ɵy } from './lib/_common/cards/card-wide/card-wide.component';
|
|
14
|
+
export { CardsComponent as ɵu } from './lib/_common/cards/cards.component';
|
|
15
|
+
export { CommonStripComponent as ɵs } from './lib/_common/common-strip/common-strip.component';
|
|
16
|
+
export { CompetencyPassbookComponent as ɵbh } from './lib/_common/competency-passbook/competency-passbook.component';
|
|
17
|
+
export { CompetencyPassbookService as ɵbi } from './lib/_common/competency-passbook/competency-passbook.service';
|
|
14
18
|
export { ContentStripWithTabsLibComponent as ɵa } from './lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component';
|
|
15
19
|
export { DataPointsComponent as ɵm } from './lib/_common/data-points/data-points.component';
|
|
16
|
-
export { DisplayContentTypeLibComponent as
|
|
17
|
-
export { DisplayContentTypeLibModule as
|
|
20
|
+
export { DisplayContentTypeLibComponent as ɵbc } from './lib/_common/display-content-type-lib/display-content-type-lib.component';
|
|
21
|
+
export { DisplayContentTypeLibModule as ɵbb } from './lib/_common/display-content-type-lib/display-content-type-lib.module';
|
|
18
22
|
export { HorizontalScrollerV2Component as ɵg } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component';
|
|
19
23
|
export { HorizontalScrollerV2Module as ɵf } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module';
|
|
20
|
-
export { PillsComponent as
|
|
21
|
-
export { PillsModule as
|
|
24
|
+
export { PillsComponent as ɵbk } from './lib/_common/pills/pills.component';
|
|
25
|
+
export { PillsModule as ɵbj } from './lib/_common/pills/pills.module';
|
|
22
26
|
export { SkeletonLoaderLibComponent as ɵp } from './lib/_common/skeleton-loader-lib/skeleton-loader-lib.component';
|
|
23
27
|
export { SkeletonLoaderLibModule as ɵo } from './lib/_common/skeleton-loader-lib/skeleton-loader-lib.module';
|
|
28
|
+
export { SlidersNgContentLibComponent as ɵbr } from './lib/_common/sliders-ng-content/sliders-ng-content.component';
|
|
29
|
+
export { MyHammerConfig as ɵbp, SlidersNgContentLibModule as ɵbq } from './lib/_common/sliders-ng-content/sliders-ng-content.module';
|
|
24
30
|
export { SlidersLibComponent as ɵh } from './lib/_common/sliders/sliders.component';
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
31
|
+
export { UserContentRatingComponent as ɵbl } from './lib/_common/user-content-rating/user-content-rating.component';
|
|
32
|
+
export { DefaultThumbnailDirective as ɵbe } from './lib/_directives/default-thumbnail/default-thumbnail.directive';
|
|
33
|
+
export { DefaultThumbnailModule as ɵbd } from './lib/_directives/default-thumbnail/default-thumbnail.module';
|
|
27
34
|
export { ImageResponsiveDirective as ɵl } from './lib/_directives/image-responsive/image-responsive.directive';
|
|
28
35
|
export { ImageResponsiveModule as ɵk } from './lib/_directives/image-responsive/image-responsive.module';
|
|
29
36
|
export { NavigationDirective as ɵj } from './lib/_directives/navigation/navigation.directive';
|
|
30
37
|
export { NavigationModule as ɵi } from './lib/_directives/navigation/navigation.module';
|
|
31
|
-
export { PipeDurationTransformModule as
|
|
32
|
-
export { PipeDurationTransformPipe as
|
|
33
|
-
export { PipePublicURLModule as
|
|
34
|
-
export { PipePublicURL as
|
|
38
|
+
export { PipeDurationTransformModule as ɵbf } from './lib/_pipes/pipe-duration-transform/pipe-duration-transform.module';
|
|
39
|
+
export { PipeDurationTransformPipe as ɵbg } from './lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe';
|
|
40
|
+
export { PipePublicURLModule as ɵz } from './lib/_pipes/pipe-public-URL/pipe-public-URL.module';
|
|
41
|
+
export { PipePublicURL as ɵba } from './lib/_pipes/pipe-public-URL/pipe-public-URL.pipe';
|
|
35
42
|
export { ConfigurationsService as ɵe } from './lib/_services/configurations.service';
|
|
36
43
|
export { InsiteDataService as ɵn } from './lib/_services/insite-data.service';
|
|
37
44
|
export { MultilingualTranslationsService as ɵd } from './lib/_services/multilingual-translations.service';
|
|
45
|
+
export { RatingService as ɵbm } from './lib/_services/rating.service';
|
|
38
46
|
export { WidgetContentService as ɵb } from './lib/_services/widget-content.service';
|
|
39
47
|
export { WidgetUserService as ɵc } from './lib/_services/widget-user.service';
|