@sunbird-cb/consumption 0.0.25 → 0.0.27
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 +566 -144
- 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/announcements/announcements.component.js +77 -9
- package/esm2015/lib/_common/calender/calender.component.js +1 -2
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +2 -3
- package/esm2015/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +167 -0
- package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +48 -26
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +7 -2
- package/esm2015/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +11 -23
- package/esm2015/lib/_common/cards/cards.component.js +15 -4
- package/esm2015/lib/_common/cards/cards.module.js +5 -4
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +8 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +172 -68
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +1 -2
- package/esm2015/lib/_services/insite-data.service.js +10 -2
- package/esm2015/lib/_services/widget-content.service.js +9 -1
- package/esm2015/sunbird-cb-consumption.js +2 -2
- package/esm5/lib/_common/announcements/announcements.component.js +77 -9
- package/esm5/lib/_common/calender/calender.component.js +1 -2
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +2 -3
- package/esm5/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +177 -0
- package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +55 -26
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +7 -2
- package/esm5/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +12 -23
- package/esm5/lib/_common/cards/cards.component.js +19 -4
- package/esm5/lib/_common/cards/cards.module.js +5 -4
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +8 -2
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +215 -71
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +1 -2
- package/esm5/lib/_services/insite-data.service.js +14 -2
- package/esm5/lib/_services/widget-content.service.js +13 -1
- package/esm5/sunbird-cb-consumption.js +2 -2
- package/fesm2015/sunbird-cb-consumption.js +497 -139
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +566 -144
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/announcements/announcements.component.d.ts +7 -1
- package/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.d.ts +23 -0
- package/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.d.ts +10 -3
- package/lib/_common/cards/card-wide-v2/card-wide-v2.component.d.ts +2 -1
- package/lib/_common/cards/cards.component.d.ts +3 -1
- 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 -2
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +3 -1
- package/lib/_services/insite-data.service.d.ts +1 -0
- package/lib/_services/widget-content.service.d.ts +1 -0
- package/package.json +1 -1
- package/sunbird-cb-consumption.d.ts +1 -1
- package/sunbird-cb-consumption.metadata.json +1 -1
- package/esm2015/lib/_common/cards/card-karma-program-v2/card-karma-program-v2.component.js +0 -23
- package/esm5/lib/_common/cards/card-karma-program-v2/card-karma-program-v2.component.js +0 -29
- package/lib/_common/cards/card-karma-program-v2/card-karma-program-v2.component.d.ts +0 -5
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
2
3
|
export declare class AnnouncementsComponent implements OnInit {
|
|
4
|
+
insightSvc: InsiteDataService;
|
|
3
5
|
objectData: any;
|
|
4
6
|
layoutType: any;
|
|
5
7
|
mobileHeight: boolean;
|
|
8
|
+
fetchDataFromApi: boolean;
|
|
9
|
+
channelId: any;
|
|
6
10
|
openDialog: EventEmitter<any>;
|
|
7
11
|
isLoading: boolean;
|
|
8
|
-
|
|
12
|
+
announcements: any;
|
|
13
|
+
constructor(insightSvc: InsiteDataService);
|
|
9
14
|
ngOnInit(): void;
|
|
15
|
+
fetchData(): void;
|
|
10
16
|
viewMoreOrLess(item: any): void;
|
|
11
17
|
openAnnouncements(): void;
|
|
12
18
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { ConfigurationsService, EventService, MultilingualTranslationsService, NsContent } from '@sunbird-cb/utils-v2';
|
|
4
|
+
export declare class CardKarmaProgramsV2Component implements OnInit {
|
|
5
|
+
private events;
|
|
6
|
+
private translate;
|
|
7
|
+
private langtranslations;
|
|
8
|
+
private configSvc;
|
|
9
|
+
widgetData: NsContent.IContent;
|
|
10
|
+
randomColorApply: boolean;
|
|
11
|
+
userData: EventEmitter<any>;
|
|
12
|
+
defaultThumbnail: any;
|
|
13
|
+
sourceLogos: any;
|
|
14
|
+
defaultSLogo: any;
|
|
15
|
+
widgetType: any;
|
|
16
|
+
widgetSubType: any;
|
|
17
|
+
randomColors: any;
|
|
18
|
+
constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
setRandomColor(): void;
|
|
21
|
+
raiseTelemetry(): void;
|
|
22
|
+
readonly getRandomColors: any;
|
|
23
|
+
}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { ConfigurationsService, EventService, MultilingualTranslationsService, NsContent } from '@sunbird-cb/utils-v2';
|
|
4
|
+
import { WidgetContentService } from '../../../_services/widget-content.service';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
4
6
|
export declare class CardMDOChannelComponent implements OnInit {
|
|
5
7
|
private events;
|
|
6
8
|
private translate;
|
|
7
9
|
private langtranslations;
|
|
8
10
|
private configSvc;
|
|
11
|
+
private contSvc;
|
|
12
|
+
router: Router;
|
|
9
13
|
widgetData: NsContent.IContent;
|
|
10
|
-
|
|
14
|
+
channelData: EventEmitter<any>;
|
|
15
|
+
emitTelemetry: EventEmitter<any>;
|
|
11
16
|
defaultThumbnail: any;
|
|
12
17
|
sourceLogos: any;
|
|
13
18
|
defaultSLogo: any;
|
|
14
19
|
widgetType: any;
|
|
15
20
|
widgetSubType: any;
|
|
16
|
-
constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService);
|
|
21
|
+
constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService, contSvc: WidgetContentService, router: Router);
|
|
17
22
|
ngOnInit(): void;
|
|
18
|
-
raiseTelemetry(): void;
|
|
23
|
+
raiseTelemetry(contentData: any): void;
|
|
24
|
+
channelClick(channeldata: any): void;
|
|
25
|
+
redirectTo(content: any): void;
|
|
19
26
|
}
|
|
@@ -17,6 +17,7 @@ export declare class CardWideV2Component implements OnInit {
|
|
|
17
17
|
cbPlanMapData: any;
|
|
18
18
|
isCardLoading: boolean;
|
|
19
19
|
contentData: EventEmitter<any>;
|
|
20
|
+
triggerTelemetry: EventEmitter<any>;
|
|
20
21
|
isCardFlipped: boolean;
|
|
21
22
|
acbpConstants: typeof NsCardContent.ACBPConst;
|
|
22
23
|
defaultThumbnail: any;
|
|
@@ -29,5 +30,5 @@ export declare class CardWideV2Component implements OnInit {
|
|
|
29
30
|
ngOnInit(): void;
|
|
30
31
|
showSnackbar(): void;
|
|
31
32
|
getRedirectUrlData(contentData: any): void;
|
|
32
|
-
raiseTelemetry(): void;
|
|
33
|
+
raiseTelemetry(contentData: any): void;
|
|
33
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { WidgetBaseComponent, NsWidgetResolver } from '@sunbird-cb/resolver-v2';
|
|
3
3
|
import { NsCardContent } from '../../_models/card-content.model';
|
|
4
4
|
import { UtilityService } from '@sunbird-cb/utils-v2';
|
|
@@ -11,6 +11,7 @@ export declare class CardsComponent extends WidgetBaseComponent implements OnIni
|
|
|
11
11
|
private contSvc;
|
|
12
12
|
router: Router;
|
|
13
13
|
widgetData: NsCardContent.ICard;
|
|
14
|
+
triggerTelemetry: EventEmitter<any>;
|
|
14
15
|
isIntranetAllowedSettings: boolean;
|
|
15
16
|
cbPlanMapData: any;
|
|
16
17
|
cbPlanInterval: any;
|
|
@@ -20,4 +21,5 @@ export declare class CardsComponent extends WidgetBaseComponent implements OnIni
|
|
|
20
21
|
readonly showIntranetContent: boolean;
|
|
21
22
|
getRedirectUrlData(content: any): Promise<void>;
|
|
22
23
|
getCbPlanData(): void;
|
|
24
|
+
raiseCardClick(data: any): void;
|
|
23
25
|
}
|
|
@@ -15,6 +15,7 @@ export declare class CompetencyPassbookComponent implements OnInit {
|
|
|
15
15
|
dynamicColor: any;
|
|
16
16
|
dynamicAlignPills: any;
|
|
17
17
|
emptyResponse: EventEmitter<any>;
|
|
18
|
+
temeletryResponse: EventEmitter<any>;
|
|
18
19
|
loadCometency: boolean;
|
|
19
20
|
loadCompetencyArea: boolean;
|
|
20
21
|
originalCompetencyArray: any;
|
|
@@ -180,11 +180,15 @@ export declare class ContentStripWithTabsLibComponent extends WidgetBaseComponen
|
|
|
180
180
|
tracker(index: number, item: any): any;
|
|
181
181
|
fetchAllTopContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
182
182
|
fetchAllFeaturedContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
183
|
+
raiseTelemetry(stripData: any): void;
|
|
183
184
|
postRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise<any>;
|
|
185
|
+
getRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise<any>;
|
|
184
186
|
postMethodFilters(filters: any): any;
|
|
187
|
+
getFullUrl(apiUrl: any, id: string): string;
|
|
185
188
|
redirectViewAll(stripData: any, path: string, queryParamsData: any): void;
|
|
186
|
-
|
|
189
|
+
fetchAllBookMarkData(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
187
190
|
private transformAllContentsToWidgets;
|
|
188
|
-
|
|
191
|
+
fetchAllPlaylistSearch(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
192
|
+
fetchPlaylistReadData(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
189
193
|
}
|
|
190
194
|
export {};
|
|
@@ -50,11 +50,13 @@ export declare namespace NsContentStripWithTabs {
|
|
|
50
50
|
filters?: any[];
|
|
51
51
|
selectAll?: boolean | null;
|
|
52
52
|
request?: {
|
|
53
|
+
playlistRead: any;
|
|
54
|
+
playlistSearch?: any;
|
|
53
55
|
search?: NSSearch.ISearchRequest;
|
|
54
56
|
searchV6?: NSSearch.ISearchV6Request;
|
|
55
57
|
topContent?: any;
|
|
56
58
|
featureContent?: any;
|
|
57
|
-
|
|
59
|
+
bookmarkRead?: any;
|
|
58
60
|
enrollmentList?: any;
|
|
59
61
|
cbpList?: any;
|
|
60
62
|
apiUrl: string;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export { AvatarPhotoLibComponent as ɵbu } from './lib/_common/avatar-photo-lib/
|
|
|
7
7
|
export { AvatarPhotoLibModule as ɵbt } from './lib/_common/avatar-photo-lib/avatar-photo-lib.module';
|
|
8
8
|
export { CalenderDayComponent as ɵq } from './lib/_common/calender/calender-day/calender-day.component';
|
|
9
9
|
export { CalenderComponent as ɵp } from './lib/_common/calender/calender.component';
|
|
10
|
-
export {
|
|
10
|
+
export { CardKarmaProgramsV2Component as ɵbc } from './lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component';
|
|
11
11
|
export { CardKarmaProgramsComponent as ɵbb } from './lib/_common/cards/card-karma-programs/card-karma-programs.component';
|
|
12
12
|
export { CardLandscapeComponent as ɵx } from './lib/_common/cards/card-landscape/card-landscape.component';
|
|
13
13
|
export { CardMDOChannelComponent as ɵz } from './lib/_common/cards/card-mdo-channel/card-mdo-channel.component';
|