@sunbird-cb/consumption 0.0.46 → 0.0.48
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 +287 -2511
- 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/cards/card-assessment/card-assessment/card-assessment.component.js +25 -25
- package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +2 -2
- package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +7 -3
- package/esm2015/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +7 -3
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +2 -2
- package/esm2015/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +2 -2
- package/esm2015/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +2 -2
- package/esm2015/lib/_common/cards/cards.component.js +2 -2
- package/esm2015/lib/_common/cards/provider-card/provider-card.component.js +49 -136
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +97 -9
- package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +42 -1223
- package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.js +12 -12
- package/esm5/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +27 -30
- package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +2 -2
- package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +7 -3
- package/esm5/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +7 -3
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +2 -2
- package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +2 -2
- package/esm5/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +2 -2
- package/esm5/lib/_common/cards/cards.component.js +2 -2
- package/esm5/lib/_common/cards/provider-card/provider-card.component.js +50 -137
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +97 -10
- package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +111 -2338
- package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.js +12 -12
- package/fesm2015/sunbird-cb-consumption.js +288 -1462
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +287 -2511
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.d.ts +4 -1
- package/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.d.ts +1 -0
- package/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.d.ts +1 -0
- package/lib/_common/cards/provider-card/provider-card.component.d.ts +9 -7
- package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.d.ts +17 -58
- package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.d.ts +2 -2
- package/package.json +1 -1
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -19,10 +19,13 @@ export declare class CardAssessmentComponent implements OnInit {
|
|
|
19
19
|
daysPending: boolean;
|
|
20
20
|
daysFinish: boolean;
|
|
21
21
|
private intervalId;
|
|
22
|
+
days: number;
|
|
23
|
+
hours: number;
|
|
24
|
+
minutes: number;
|
|
22
25
|
constructor(configSvc: ConfigurationsService, contSvc: WidgetContentService);
|
|
23
26
|
ngOnInit(): void;
|
|
24
27
|
startCountdown(data: any): void;
|
|
25
|
-
updateCountdown(startDate: any,
|
|
28
|
+
updateCountdown(startDate: any, startTime: any): void;
|
|
26
29
|
clearTimer(): void;
|
|
27
30
|
ngOnDestroy(): void;
|
|
28
31
|
getRedirectUrlData(contentData: any): void;
|
|
@@ -13,6 +13,7 @@ export declare class CardMDOChannelComponent implements OnInit {
|
|
|
13
13
|
widgetData: NsContent.IContent;
|
|
14
14
|
channelData: EventEmitter<any>;
|
|
15
15
|
emitTelemetry: EventEmitter<any>;
|
|
16
|
+
isCardLoading: boolean;
|
|
16
17
|
defaultThumbnail: any;
|
|
17
18
|
sourceLogos: any;
|
|
18
19
|
defaultSLogo: any;
|
|
@@ -13,6 +13,7 @@ export declare class CardMdoChannelV1Component implements OnInit {
|
|
|
13
13
|
widgetData: NsContent.IContent;
|
|
14
14
|
channelData: EventEmitter<any>;
|
|
15
15
|
emitTelemetry: EventEmitter<any>;
|
|
16
|
+
isCardLoading: boolean;
|
|
16
17
|
defaultThumbnail: any;
|
|
17
18
|
sourceLogos: any;
|
|
18
19
|
defaultSLogo: any;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { NsCardContent } from '../../../_models/card-content.model';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
2
4
|
export declare class ProviderCardComponent implements OnInit {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}[];
|
|
5
|
+
private router;
|
|
6
|
+
widgetData: NsCardContent.ICard;
|
|
7
|
+
randomColorApply: boolean;
|
|
8
|
+
isCardLoading: boolean;
|
|
8
9
|
colors: string[];
|
|
9
|
-
constructor();
|
|
10
|
+
constructor(router: Router);
|
|
10
11
|
ngOnInit(): void;
|
|
11
|
-
|
|
12
|
+
setRandomColor(): void;
|
|
13
|
+
redirectTo(content: any): void;
|
|
12
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
2
|
import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver-v2';
|
|
3
|
-
import {
|
|
3
|
+
import { NsContentStripWithTabsAndPills } from './content-strip-with-tabs-pills.model';
|
|
4
4
|
import { WidgetContentService } from '../../../_services/widget-content.service';
|
|
5
5
|
import { NsContent } from '../../../_models/widget-content.model';
|
|
6
6
|
import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
|
|
@@ -32,11 +32,11 @@ interface IStripUnitContentData {
|
|
|
32
32
|
cerificateCardMargin?: boolean;
|
|
33
33
|
};
|
|
34
34
|
stripConfig: any;
|
|
35
|
-
tabs?:
|
|
35
|
+
tabs?: NsContentStripWithTabsAndPills.IContentStripTab[] | undefined;
|
|
36
36
|
stripName?: string;
|
|
37
37
|
stripLogo?: string;
|
|
38
38
|
description?: string;
|
|
39
|
-
stripInfo?:
|
|
39
|
+
stripInfo?: NsContentStripWithTabsAndPills.IStripInfo;
|
|
40
40
|
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
41
41
|
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
42
42
|
showOnNoData: boolean;
|
|
@@ -48,7 +48,7 @@ interface IStripUnitContentData {
|
|
|
48
48
|
viewMoreUrl: any;
|
|
49
49
|
request?: any;
|
|
50
50
|
}
|
|
51
|
-
export declare class ContentStripWithTabsPillsComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData<
|
|
51
|
+
export declare class ContentStripWithTabsPillsComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData<NsContentStripWithTabsAndPills.IContentStripMultiple> {
|
|
52
52
|
private contentSvc;
|
|
53
53
|
private loggerSvc;
|
|
54
54
|
private eventSvc;
|
|
@@ -58,7 +58,7 @@ export declare class ContentStripWithTabsPillsComponent extends WidgetBaseCompon
|
|
|
58
58
|
private userSvc;
|
|
59
59
|
private translate;
|
|
60
60
|
private langtranslations;
|
|
61
|
-
widgetData:
|
|
61
|
+
widgetData: NsContentStripWithTabsAndPills.IContentStripMultiple;
|
|
62
62
|
emptyResponse: EventEmitter<any>;
|
|
63
63
|
viewAllResponse: EventEmitter<any>;
|
|
64
64
|
telemtryResponse: EventEmitter<any>;
|
|
@@ -97,7 +97,7 @@ export declare class ContentStripWithTabsPillsComponent extends WidgetBaseCompon
|
|
|
97
97
|
isStripShowing(data: any): any;
|
|
98
98
|
readonly isMobile: boolean;
|
|
99
99
|
getdata(data: IStripUnitContentData): {};
|
|
100
|
-
checkCondition(wData:
|
|
100
|
+
checkCondition(wData: NsContentStripWithTabsAndPills.IContentStripMultiple, data: IStripUnitContentData): boolean;
|
|
101
101
|
checkVisible(data: IStripUnitContentData): boolean;
|
|
102
102
|
getContineuLearningLenth(data: IStripUnitContentData): number;
|
|
103
103
|
getLength(data: IStripUnitContentData): any;
|
|
@@ -105,73 +105,32 @@ export declare class ContentStripWithTabsPillsComponent extends WidgetBaseCompon
|
|
|
105
105
|
private transformSearchV6FiltersV2;
|
|
106
106
|
checkForDateFilters(filters: any): any;
|
|
107
107
|
private fetchStripFromRequestData;
|
|
108
|
-
fetchFromEnrollmentList(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): void;
|
|
109
|
-
splitEnrollmentTabsData(contentNew: NsContent.IContent[], strip: NsContentStripWithTabs.IContentStripUnit): any[];
|
|
110
|
-
getInprogressAndCompleted(array: NsContent.IContent[], customFilter: any, strip: NsContentStripWithTabs.IContentStripUnit): {
|
|
111
|
-
value: string;
|
|
112
|
-
widgets: ({
|
|
113
|
-
widgetType: string;
|
|
114
|
-
widgetSubType: string;
|
|
115
|
-
widgetHostClass: string;
|
|
116
|
-
widgetData: {
|
|
117
|
-
cardSubType: "" | "standard" | "minimal" | "space-saving" | "card-user-details" | "basic-info" | "basic-details" | "card-description-back" | "network-card" | "user-card";
|
|
118
|
-
cardCustomeClass: string;
|
|
119
|
-
context: {
|
|
120
|
-
pageSection: string;
|
|
121
|
-
position: number;
|
|
122
|
-
};
|
|
123
|
-
intranetMode: "" | "hide" | "greyOut";
|
|
124
|
-
deletedMode: "" | "hide" | "greyOut";
|
|
125
|
-
contentTags: NsContentStripWithTabs.IContentTags;
|
|
126
|
-
batch: any;
|
|
127
|
-
content: NsContent.IContent;
|
|
128
|
-
};
|
|
129
|
-
} | {
|
|
130
|
-
widgetType: string;
|
|
131
|
-
widgetSubType: string;
|
|
132
|
-
widgetHostClass: string;
|
|
133
|
-
widgetData: {};
|
|
134
|
-
})[];
|
|
135
|
-
}[];
|
|
136
|
-
checkInvitOnlyAssessments(content: any, strip: any, calculateParentStatus: any, viewMoreUrl: any): void;
|
|
137
|
-
fetchFromTrendingContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
138
108
|
toggleInfo(data: IStripUnitContentData): void;
|
|
139
109
|
private transformContentsToWidgets;
|
|
140
110
|
private transformEventsToWidgets;
|
|
141
111
|
private transformSkeletonToWidgets;
|
|
142
112
|
private processStrip;
|
|
143
113
|
private checkParentStatus;
|
|
144
|
-
checkForEmptyWidget(strip:
|
|
145
|
-
getTabDataByfilter(strip:
|
|
114
|
+
checkForEmptyWidget(strip: NsContentStripWithTabsAndPills.IContentStripUnit): boolean;
|
|
115
|
+
getTabDataByfilter(strip: NsContentStripWithTabsAndPills.IContentStripUnit, currentTab: NsContentStripWithTabsAndPills.IContentStripTab, calculateParentStatus: boolean): void;
|
|
146
116
|
getSelectedIndex(stripsResultDataMap: any, key: any): number;
|
|
147
117
|
translateLabels(label: string, type: any): any;
|
|
148
118
|
identify(index: number, item: any): any;
|
|
149
119
|
tracker(index: number, item: any): any;
|
|
150
|
-
fetchAllTopContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
151
|
-
fetchAllFeaturedContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
152
120
|
raiseTelemetry(stripData: any): void;
|
|
153
|
-
postRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise<any>;
|
|
154
|
-
getRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise<any>;
|
|
155
|
-
postMethodFilters(filters: any): any;
|
|
156
|
-
getFullUrl(apiUrl: any, id: string): string;
|
|
157
121
|
redirectViewAll(stripData: any, path: string, queryParamsData: any): void;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
fetchForYouData(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): void;
|
|
164
|
-
fetchFromSearchV6(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
165
|
-
getTabDataByNewReqTrending(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise<void>;
|
|
166
|
-
getTabDataByNewReqSearchV6(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise<void>;
|
|
167
|
-
trendingSearchRequest(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], calculateParentStatus: boolean): Promise<any>;
|
|
122
|
+
fetchForYouData(strip: NsContentStripWithTabsAndPills.IContentStripUnit, calculateParentStatus?: boolean): void;
|
|
123
|
+
fetchFromSearchV6(strip: NsContentStripWithTabsAndPills.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
124
|
+
getTabDataByNewReqTrending(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabsAndPills.IContentStripTab, calculateParentStatus: boolean): Promise<void>;
|
|
125
|
+
getTabDataByNewReqSearchV6(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabsAndPills.IContentStripTab, calculateParentStatus: boolean): Promise<void>;
|
|
126
|
+
trendingSearchRequest(strip: NsContentStripWithTabsAndPills.IContentStripUnit, request: NsContentStripWithTabsAndPills.IContentStripUnit['request'], calculateParentStatus: boolean): Promise<any>;
|
|
168
127
|
tabClicked(tabEvent: MatTabChangeEvent, pillIndex: any, stripMap: IStripUnitContentData, stripKey: string): void;
|
|
169
128
|
pillClicked(event: any, stripMap: IStripUnitContentData, stripKey: any, pillIndex: any, tabIndex: any): void;
|
|
170
|
-
searchV6Request(strip:
|
|
129
|
+
searchV6Request(strip: NsContentStripWithTabsAndPills.IContentStripUnit, request: NsContentStripWithTabsAndPills.IContentStripUnit['request'], calculateParentStatus: boolean): Promise<any>;
|
|
171
130
|
getSelectedPillIndex(tabdata: any, tabIndex: any): any;
|
|
172
131
|
fetchAllCbpPlans(strip: any, calculateParentStatus?: boolean): Promise<void>;
|
|
173
|
-
splitCbpTabsData(contentNew: NsContent.IContent[], strip:
|
|
174
|
-
getTabsList(array: NsContent.IContent[], strip:
|
|
132
|
+
splitCbpTabsData(contentNew: NsContent.IContent[], strip: NsContentStripWithTabsAndPills.IContentStripUnit): NsContentStripWithTabsAndPills.IContentStripTab[];
|
|
133
|
+
getTabsList(array: NsContent.IContent[], strip: NsContentStripWithTabsAndPills.IContentStripUnit): {
|
|
175
134
|
value: string;
|
|
176
135
|
widgets: ({
|
|
177
136
|
widgetType: string;
|
|
@@ -186,7 +145,7 @@ export declare class ContentStripWithTabsPillsComponent extends WidgetBaseCompon
|
|
|
186
145
|
};
|
|
187
146
|
intranetMode: "" | "hide" | "greyOut";
|
|
188
147
|
deletedMode: "" | "hide" | "greyOut";
|
|
189
|
-
contentTags:
|
|
148
|
+
contentTags: NsContentStripWithTabsAndPills.IContentTags;
|
|
190
149
|
batch: any;
|
|
191
150
|
content: NsContent.IContent;
|
|
192
151
|
};
|
package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.model.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { NsWidgetResolver } from '@sunbird-cb/resolver-v2';
|
|
|
2
2
|
import { NSSearch } from '../../../_models/widget-search.model';
|
|
3
3
|
import { NsContent } from '../../../_models/widget-content.model';
|
|
4
4
|
import { NsCardContent } from '../../../_models/card-content.model';
|
|
5
|
-
export declare namespace
|
|
5
|
+
export declare namespace NsContentStripWithTabsAndPills {
|
|
6
6
|
interface IContentStripMultiple {
|
|
7
7
|
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
8
8
|
loader?: boolean;
|
|
@@ -38,7 +38,7 @@ export declare namespace NsContentStripWithTabs {
|
|
|
38
38
|
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
tabs?:
|
|
41
|
+
tabs?: NsContentStripWithTabsAndPills.IContentStripTab[] | undefined;
|
|
42
42
|
titleDescription?: string;
|
|
43
43
|
name?: string;
|
|
44
44
|
mode?: string | 'accordion';
|