@sunbird-cb/consumption 0.0.82 → 0.0.84
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 +1412 -15
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +37 -5
- package/esm2015/lib/_common/events/event-card/event-card.component.js +82 -0
- package/esm2015/lib/_common/events/events.component.js +167 -0
- package/esm2015/lib/_common/events/events.module.js +24 -0
- package/esm2015/lib/_common/highlights-of-week/highlights-of-week.component.js +76 -0
- package/esm2015/lib/_common/highlights-of-week/highlights-of-week.module.js +28 -0
- package/esm2015/lib/_common/key-highlights/key-highlights.component.js +65 -0
- package/esm2015/lib/_common/key-highlights/key-highlights.module.js +28 -0
- package/esm2015/lib/_common/mdo-leaderboard/mdo-leaderboard.component.js +193 -0
- package/esm2015/lib/_common/mdo-leaderboard/mdo-leaderboard.module.js +30 -0
- package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +131 -0
- package/esm2015/lib/_common/microsites/national-learning-week/national-learning.module.js +50 -0
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +7 -3
- package/esm2015/lib/_common/speakers/speakers.component.js +105 -0
- package/esm2015/lib/_common/speakers/speakers.module.js +28 -0
- package/esm2015/lib/_common/user-progress/user-progress.component.js +173 -0
- package/esm2015/lib/_common/user-progress/user-progress.module.js +28 -0
- package/esm2015/lib/_services/insite-data.service.js +41 -2
- package/esm2015/lib/consumption.module.js +1 -1
- package/esm2015/public-api.js +8 -1
- package/esm2015/sunbird-cb-consumption.js +10 -2
- package/esm5/lib/_common/data-points/data-points.component.js +41 -5
- package/esm5/lib/_common/events/event-card/event-card.component.js +92 -0
- package/esm5/lib/_common/events/events.component.js +181 -0
- package/esm5/lib/_common/events/events.module.js +28 -0
- package/esm5/lib/_common/highlights-of-week/highlights-of-week.component.js +89 -0
- package/esm5/lib/_common/highlights-of-week/highlights-of-week.module.js +32 -0
- package/esm5/lib/_common/key-highlights/key-highlights.component.js +74 -0
- package/esm5/lib/_common/key-highlights/key-highlights.module.js +32 -0
- package/esm5/lib/_common/mdo-leaderboard/mdo-leaderboard.component.js +221 -0
- package/esm5/lib/_common/mdo-leaderboard/mdo-leaderboard.module.js +34 -0
- package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +155 -0
- package/esm5/lib/_common/microsites/national-learning-week/national-learning.module.js +54 -0
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +7 -3
- package/esm5/lib/_common/speakers/speakers.component.js +122 -0
- package/esm5/lib/_common/speakers/speakers.module.js +32 -0
- package/esm5/lib/_common/user-progress/user-progress.component.js +198 -0
- package/esm5/lib/_common/user-progress/user-progress.module.js +32 -0
- package/esm5/lib/_services/insite-data.service.js +58 -2
- package/esm5/lib/consumption.module.js +1 -1
- package/esm5/public-api.js +8 -1
- package/esm5/sunbird-cb-consumption.js +10 -2
- package/fesm2015/sunbird-cb-consumption.js +1221 -11
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1393 -11
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/data-points/data-points.component.d.ts +3 -0
- package/lib/_common/events/event-card/event-card.component.d.ts +13 -0
- package/lib/_common/events/events.component.d.ts +17 -0
- package/lib/_common/events/events.module.d.ts +2 -0
- package/lib/_common/highlights-of-week/highlights-of-week.component.d.ts +14 -0
- package/lib/_common/highlights-of-week/highlights-of-week.module.d.ts +2 -0
- package/lib/_common/key-highlights/key-highlights.component.d.ts +15 -0
- package/lib/_common/key-highlights/key-highlights.module.d.ts +2 -0
- package/lib/_common/mdo-leaderboard/mdo-leaderboard.component.d.ts +20 -0
- package/lib/_common/mdo-leaderboard/mdo-leaderboard.module.d.ts +2 -0
- package/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.d.ts +20 -0
- package/lib/_common/microsites/national-learning-week/national-learning.module.d.ts +2 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +1 -0
- package/lib/_common/speakers/speakers.component.d.ts +15 -0
- package/lib/_common/speakers/speakers.module.d.ts +2 -0
- package/lib/_common/user-progress/user-progress.component.d.ts +24 -0
- package/lib/_common/user-progress/user-progress.module.d.ts +2 -0
- package/lib/_services/insite-data.service.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/sunbird-cb-consumption.d.ts +8 -0
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -7,11 +7,14 @@ export declare class DataPointsComponent implements OnInit {
|
|
|
7
7
|
fetchDataFromApi: boolean;
|
|
8
8
|
providerId: any;
|
|
9
9
|
pageLayout: any;
|
|
10
|
+
title: any;
|
|
10
11
|
customArray: any[][];
|
|
11
12
|
isDataLoading: boolean;
|
|
13
|
+
apiResults: any;
|
|
12
14
|
constructor(insightSvc: InsiteDataService);
|
|
13
15
|
ngOnInit(): void;
|
|
14
16
|
createCustomArray(arr: any[]): any[][];
|
|
15
17
|
getInsiteData(): void;
|
|
18
|
+
getStats(): void;
|
|
16
19
|
converToIndianSystem(value: any): any;
|
|
17
20
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
export declare class EventCardComponent {
|
|
3
|
+
private router;
|
|
4
|
+
objectData: any;
|
|
5
|
+
eventDetails: any;
|
|
6
|
+
environment: any;
|
|
7
|
+
loader: any;
|
|
8
|
+
descriptionMaxLength: number;
|
|
9
|
+
constructor(environment: any, router: Router);
|
|
10
|
+
getEventDate(event: any): string;
|
|
11
|
+
getPublicUrl(url: string): string;
|
|
12
|
+
redirectTo(event: any): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
3
|
+
export declare class EventsComponent implements OnInit {
|
|
4
|
+
insightSvc: InsiteDataService;
|
|
5
|
+
object: any;
|
|
6
|
+
nwlEventsConfig: any;
|
|
7
|
+
daysBetween: any;
|
|
8
|
+
events: any;
|
|
9
|
+
requestBody: any;
|
|
10
|
+
currentDay: any;
|
|
11
|
+
loader: boolean;
|
|
12
|
+
constructor(insightSvc: InsiteDataService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
getDaysBetweenDates(): void;
|
|
15
|
+
getEvents(slectedDate: any): void;
|
|
16
|
+
getEventsList(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { ScrollableItemDirective } from '../../_directives/scrollable-item/scrollable-item.directive';
|
|
3
|
+
export declare class HighlightsOfWeekComponent implements OnInit {
|
|
4
|
+
objectData: any;
|
|
5
|
+
currentIndex: number;
|
|
6
|
+
contentdata: any;
|
|
7
|
+
styleData: any;
|
|
8
|
+
expand: boolean;
|
|
9
|
+
scrollableItems: QueryList<ScrollableItemDirective>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
toggleWeekHightlits(): void;
|
|
13
|
+
getCurrentIndex(indexValue: any): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { ScrollableItemDirective } from '../../_directives/scrollable-item/scrollable-item.directive';
|
|
3
|
+
export declare class KeyHighlightsComponent implements OnInit {
|
|
4
|
+
currentIndex: any;
|
|
5
|
+
providerId: any;
|
|
6
|
+
formData: any;
|
|
7
|
+
mode: any;
|
|
8
|
+
emptyResponse: EventEmitter<any>;
|
|
9
|
+
styleData: any;
|
|
10
|
+
contentdata: any;
|
|
11
|
+
scrollableItems: QueryList<ScrollableItemDirective>;
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
getCurrentIndex(indexValue: any): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
3
|
+
export declare class MdoLeaderboardComponent implements OnInit {
|
|
4
|
+
private insiteDataService;
|
|
5
|
+
currentTab: any;
|
|
6
|
+
result: any;
|
|
7
|
+
filteredData: any;
|
|
8
|
+
searchTerm: string;
|
|
9
|
+
expand: boolean;
|
|
10
|
+
object: any;
|
|
11
|
+
tabClicked: EventEmitter<any>;
|
|
12
|
+
constructor(insiteDataService: InsiteDataService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
getData(): void;
|
|
15
|
+
getTabData(name: any): void;
|
|
16
|
+
getRank(rank: number): string;
|
|
17
|
+
getMedal(rank: number): "assets/images/national-learning/Medal1.svg" | "assets/images/national-learning/Medal2.svg" | "assets/images/national-learning/Medal3.svg";
|
|
18
|
+
handleSearchQuery(e: any): void;
|
|
19
|
+
toggleWeekHightlits(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { EventService } from '@sunbird-cb/utils-v2';
|
|
4
|
+
export declare class NationalLearningComponent implements OnInit {
|
|
5
|
+
router: Router;
|
|
6
|
+
private events;
|
|
7
|
+
sectionList: any;
|
|
8
|
+
configDetails: any;
|
|
9
|
+
nwlConfiguration: any;
|
|
10
|
+
providerId: string;
|
|
11
|
+
providerName: '';
|
|
12
|
+
descriptionMaxLength: number;
|
|
13
|
+
constructor(router: Router, events: EventService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
hideKeyHightlight(event: any, learnerReview: any): void;
|
|
16
|
+
showAllContent(_stripData: any, columnData: any): void;
|
|
17
|
+
hideContentStrip(event: any, contentStripData: any): void;
|
|
18
|
+
raiseTabClick(event: any): void;
|
|
19
|
+
raiseTelemetryInteratEvent(event: any): void;
|
|
20
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class SlidersNgContentLibComponent extends WidgetBaseComponent im
|
|
|
11
11
|
title: any;
|
|
12
12
|
loadNgContentData: boolean;
|
|
13
13
|
autoScroll: boolean;
|
|
14
|
+
customBanner: boolean;
|
|
14
15
|
currentIndexValue: EventEmitter<any>;
|
|
15
16
|
id: string;
|
|
16
17
|
private defaultMenuSubscribe;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { ScrollableItemDirective } from '../../_directives/scrollable-item/scrollable-item.directive';
|
|
3
|
+
export declare class SpeakersComponent implements OnInit {
|
|
4
|
+
objectData: any;
|
|
5
|
+
currentIndex: number;
|
|
6
|
+
contentdata: any;
|
|
7
|
+
styleData: any;
|
|
8
|
+
expand: boolean;
|
|
9
|
+
scrollableItems: QueryList<ScrollableItemDirective>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
createInititals(name: string): string;
|
|
13
|
+
getCurrentIndex(indexValue: any): void;
|
|
14
|
+
toggleWeekHightlits(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
3
|
+
import { ScrollableItemDirective } from '../../_directives/scrollable-item/scrollable-item.directive';
|
|
4
|
+
import { ConfigurationsService } from '@sunbird-cb/utils-v2';
|
|
5
|
+
export declare class UserProgressComponent implements OnInit {
|
|
6
|
+
insightSvc: InsiteDataService;
|
|
7
|
+
private configSvc;
|
|
8
|
+
objectData: any;
|
|
9
|
+
rootOrgId: any;
|
|
10
|
+
insitesData: any[];
|
|
11
|
+
currentIndex: number;
|
|
12
|
+
styleData: any;
|
|
13
|
+
userProgress: any;
|
|
14
|
+
expand: boolean;
|
|
15
|
+
scrollableItems: QueryList<ScrollableItemDirective>;
|
|
16
|
+
constructor(insightSvc: InsiteDataService, configSvc: ConfigurationsService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
getUserProgress(): void;
|
|
19
|
+
getInsightsData(): void;
|
|
20
|
+
roundTo(number: any): number;
|
|
21
|
+
getCurrentIndex(indexValue: any): void;
|
|
22
|
+
createInititals(name: string): string;
|
|
23
|
+
toggleWeekHightlits(): void;
|
|
24
|
+
}
|
|
@@ -7,4 +7,9 @@ export declare class InsiteDataService {
|
|
|
7
7
|
fetchAnnouncementsData(request: any): Observable<any>;
|
|
8
8
|
fetchTrainingDetails(request: any): Observable<any>;
|
|
9
9
|
fetchLearner(channelId: any): Observable<any>;
|
|
10
|
+
fetchLeaderboard(): Observable<Object>;
|
|
11
|
+
fetchMdoUsers(orgId: any): Observable<any>;
|
|
12
|
+
fetchNwlStats(): Observable<Object>;
|
|
13
|
+
fetchInsightsData(payload: any): Observable<Object>;
|
|
14
|
+
fetchUserProgress(): Observable<Object>;
|
|
10
15
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -17,8 +17,15 @@ export * from './lib/_common/announcements/announcements.module';
|
|
|
17
17
|
export * from './lib/_common/content-progress/content-progress.module';
|
|
18
18
|
export * from './lib/_common/microsites/mdo-channels/mdo-channel.module';
|
|
19
19
|
export * from './lib/_common/microsites/providers/providers.module';
|
|
20
|
+
export * from './lib/_common/microsites/national-learning-week/national-learning.module';
|
|
20
21
|
export * from './lib/_services/widget-content.service';
|
|
21
22
|
export * from './lib/_services/common-methods.service';
|
|
22
23
|
export * from './lib/_common/top-learners/top-learners.module';
|
|
23
24
|
export * from './lib/_common/cbp-plan/cbp-plan.module';
|
|
25
|
+
export * from './lib/_common/mdo-leaderboard/mdo-leaderboard.module';
|
|
26
|
+
export * from './lib/_common/highlights-of-week/highlights-of-week.module';
|
|
27
|
+
export * from './lib/_common/speakers/speakers.module';
|
|
28
|
+
export * from './lib/_common/user-progress/user-progress.module';
|
|
24
29
|
export * from './lib/_common/dialog-components/dialog-components.module';
|
|
30
|
+
export * from './lib/_common/key-highlights/key-highlights.module';
|
|
31
|
+
export * from './lib/_common/events/events.module';
|
|
@@ -34,10 +34,16 @@ export { DataPointsComponent as ɵl } from './lib/_common/data-points/data-point
|
|
|
34
34
|
export { CertificateDialogComponent as ɵcb } from './lib/_common/dialog-components/certificate-dialog/certificate-dialog.component';
|
|
35
35
|
export { DisplayContentTypeLibComponent as ɵbv } from './lib/_common/display-content-type-lib/display-content-type-lib.component';
|
|
36
36
|
export { DisplayContentTypeLibModule as ɵbu } from './lib/_common/display-content-type-lib/display-content-type-lib.module';
|
|
37
|
+
export { EventCardComponent as ɵcu } from './lib/_common/events/event-card/event-card.component';
|
|
38
|
+
export { EventsComponent as ɵct } from './lib/_common/events/events.component';
|
|
39
|
+
export { HighlightsOfWeekComponent as ɵcw } from './lib/_common/highlights-of-week/highlights-of-week.component';
|
|
37
40
|
export { HorizontalScrollerV2Component as ɵf } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component';
|
|
38
41
|
export { HorizontalScrollerV2Module as ɵe } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module';
|
|
42
|
+
export { KeyHighlightsComponent as ɵcs } from './lib/_common/key-highlights/key-highlights.component';
|
|
43
|
+
export { MdoLeaderboardComponent as ɵcv } from './lib/_common/mdo-leaderboard/mdo-leaderboard.component';
|
|
39
44
|
export { MdoChannelV1Component as ɵco } from './lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component';
|
|
40
45
|
export { MdoChannelV2Component as ɵcp } from './lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component';
|
|
46
|
+
export { NationalLearningComponent as ɵcr } from './lib/_common/microsites/national-learning-week/national-learning/national-learning.component';
|
|
41
47
|
export { ProvidersV2Component as ɵcq } from './lib/_common/microsites/providers/providers-v2/providers-v2.component';
|
|
42
48
|
export { PillsComponent as ɵci } from './lib/_common/pills/pills.component';
|
|
43
49
|
export { PillsModule as ɵch } from './lib/_common/pills/pills.module';
|
|
@@ -46,10 +52,12 @@ export { SkeletonLoaderLibModule as ɵn } from './lib/_common/skeleton-loader-li
|
|
|
46
52
|
export { SlidersNgContentLibComponent as ɵz } from './lib/_common/sliders-ng-content/sliders-ng-content.component';
|
|
47
53
|
export { MyHammerConfig as ɵx, SlidersNgContentLibModule as ɵy } from './lib/_common/sliders-ng-content/sliders-ng-content.module';
|
|
48
54
|
export { SlidersLibComponent as ɵg } from './lib/_common/sliders/sliders.component';
|
|
55
|
+
export { SpeakersComponent as ɵcx } from './lib/_common/speakers/speakers.component';
|
|
49
56
|
export { ContentStripWithTabsPillsComponent as ɵce } from './lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component';
|
|
50
57
|
export { TopLearnersComponent as ɵt } from './lib/_common/top-learners/top-learners.component';
|
|
51
58
|
export { UserContentRatingLibComponent as ɵcl } from './lib/_common/user-content-rating/user-content-rating-lib.component';
|
|
52
59
|
export { UserContentRatingLibService as ɵcn } from './lib/_common/user-content-rating/user-content-rating-lib.service';
|
|
60
|
+
export { UserProgressComponent as ɵcy } from './lib/_common/user-progress/user-progress.component';
|
|
53
61
|
export { DefaultThumbnailDirective as ɵbx } from './lib/_directives/default-thumbnail/default-thumbnail.directive';
|
|
54
62
|
export { DefaultThumbnailModule as ɵbw } from './lib/_directives/default-thumbnail/default-thumbnail.module';
|
|
55
63
|
export { ImageResponsiveDirective as ɵk } from './lib/_directives/image-responsive/image-responsive.directive';
|