@sunbird-cb/consumption 0.0.1 → 0.0.3
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 +416 -96
- 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/competency-passbook/competency-passbook.component.js +2 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +165 -3
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +62 -5
- package/esm2015/lib/_common/data-points/data-points.module.js +6 -2
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +1 -2
- package/esm2015/lib/_services/insite-data.service.js +45 -0
- package/esm2015/lib/_services/widget-content.service.js +12 -1
- package/esm2015/sunbird-cb-consumption.js +21 -20
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +2 -2
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +205 -3
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_common/data-points/data-points.component.js +63 -5
- package/esm5/lib/_common/data-points/data-points.module.js +6 -2
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +1 -2
- package/esm5/lib/_services/insite-data.service.js +48 -0
- package/esm5/lib/_services/widget-content.service.js +17 -1
- package/esm5/sunbird-cb-consumption.js +21 -20
- package/fesm2015/sunbird-cb-consumption.js +343 -72
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +398 -79
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +7 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +3 -0
- package/lib/_common/data-points/data-points.component.d.ts +7 -1
- package/lib/_services/insite-data.service.d.ts +7 -0
- package/lib/_services/widget-content.service.d.ts +1 -0
- package/package.json +3 -2
- package/sunbird-cb-consumption.d.ts +20 -19
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
2
|
import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
|
|
3
3
|
import { NsContentStripWithTabs } from './content-strip-with-tabs-lib.model';
|
|
4
4
|
import { WidgetContentService } from '../../_services/widget-content.service';
|
|
@@ -56,6 +56,8 @@ export declare class ContentStripWithTabsLibComponent extends WidgetBaseComponen
|
|
|
56
56
|
private translate;
|
|
57
57
|
private langtranslations;
|
|
58
58
|
widgetData: NsContentStripWithTabs.IContentStripMultiple;
|
|
59
|
+
emptyResponse: EventEmitter<any>;
|
|
60
|
+
providerId: any;
|
|
59
61
|
id: string;
|
|
60
62
|
stripsResultDataMap: {
|
|
61
63
|
[key: string]: IStripUnitContentData;
|
|
@@ -170,5 +172,9 @@ export declare class ContentStripWithTabsLibComponent extends WidgetBaseComponen
|
|
|
170
172
|
translateLabels(label: string, type: any): any;
|
|
171
173
|
identify(index: number, item: any): any;
|
|
172
174
|
tracker(index: number, item: any): any;
|
|
175
|
+
fetchAllTopContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
176
|
+
fetchAllFeaturedContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise<void>;
|
|
177
|
+
postRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise<any>;
|
|
178
|
+
postMethodFilters(filters: any): any;
|
|
173
179
|
}
|
|
174
180
|
export {};
|
|
@@ -44,8 +44,11 @@ export declare namespace NsContentStripWithTabs {
|
|
|
44
44
|
request?: {
|
|
45
45
|
search?: NSSearch.ISearchRequest;
|
|
46
46
|
searchV6?: NSSearch.ISearchV6Request;
|
|
47
|
+
topContent?: any;
|
|
48
|
+
featureContent?: any;
|
|
47
49
|
enrollmentList?: any;
|
|
48
50
|
cbpList?: any;
|
|
51
|
+
apiUrl: string;
|
|
49
52
|
searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
|
|
50
53
|
api?: IStripRequestApi;
|
|
51
54
|
networkApi?: INetworkRequestApi;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
2
3
|
export declare class DataPointsComponent implements OnInit {
|
|
4
|
+
insightSvc: InsiteDataService;
|
|
3
5
|
objectData: any;
|
|
4
6
|
layoutType: string;
|
|
7
|
+
fetchDataFromApi: boolean;
|
|
8
|
+
providerId: any;
|
|
5
9
|
customArray: any[][];
|
|
6
|
-
|
|
10
|
+
isDataLoading: boolean;
|
|
11
|
+
constructor(insightSvc: InsiteDataService);
|
|
7
12
|
ngOnInit(): void;
|
|
8
13
|
createCustomArray(arr: any[]): any[][];
|
|
14
|
+
getInsiteData(): void;
|
|
9
15
|
}
|
|
@@ -79,4 +79,5 @@ export declare class WidgetContentService {
|
|
|
79
79
|
getResourseDataWithData(content: any, resourseId: any, mimeType: any): any;
|
|
80
80
|
gotoTocPage(content: any): any;
|
|
81
81
|
isBatchInProgress(batchData: any): boolean;
|
|
82
|
+
postApiMethod(apiUrl: any, req: any): Observable<NsContent.IContent>;
|
|
82
83
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunbird-cb/consumption",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^8.2.14",
|
|
6
6
|
"@angular/core": "^8.2.14",
|
|
7
7
|
"@sunbird-cb/design-system": "0.0.2",
|
|
8
|
-
"@sunbird-cb/utils": "^1.0.16"
|
|
8
|
+
"@sunbird-cb/utils": "^1.0.16",
|
|
9
|
+
"@sunbird-cb/resolver": "^1.0.0"
|
|
9
10
|
},
|
|
10
11
|
"main": "bundles/sunbird-cb-consumption.umd.js",
|
|
11
12
|
"module": "fesm5/sunbird-cb-consumption.js",
|
|
@@ -2,35 +2,36 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export { CardLandscapeComponent as
|
|
6
|
-
export { CardPortraitComponent as
|
|
7
|
-
export { CardResourceComponent as
|
|
8
|
-
export { CardUserComponent as
|
|
9
|
-
export { CardsComponent as
|
|
10
|
-
export { CompetencyPassbookComponent as
|
|
11
|
-
export { CompetencyPassbookService as
|
|
5
|
+
export { CardLandscapeComponent as ɵu } from './lib/_common/cards/card-landscape/card-landscape.component';
|
|
6
|
+
export { CardPortraitComponent as ɵs } from './lib/_common/cards/card-portrait/card-portrait.component';
|
|
7
|
+
export { CardResourceComponent as ɵq } from './lib/_common/cards/card-resource/card-resource.component';
|
|
8
|
+
export { CardUserComponent as ɵt } from './lib/_common/cards/card-user/card-user.component';
|
|
9
|
+
export { CardsComponent as ɵr } from './lib/_common/cards/cards.component';
|
|
10
|
+
export { CompetencyPassbookComponent as ɵbd } from './lib/_common/competency-passbook/competency-passbook.component';
|
|
11
|
+
export { CompetencyPassbookService as ɵbe } from './lib/_common/competency-passbook/competency-passbook.service';
|
|
12
12
|
export { ContentStripWithTabsLibComponent as ɵa } from './lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component';
|
|
13
13
|
export { DataPointsComponent as ɵm } from './lib/_common/data-points/data-points.component';
|
|
14
|
-
export { DisplayContentTypeLibComponent as
|
|
15
|
-
export { DisplayContentTypeLibModule as
|
|
14
|
+
export { DisplayContentTypeLibComponent as ɵy } from './lib/_common/display-content-type-lib/display-content-type-lib.component';
|
|
15
|
+
export { DisplayContentTypeLibModule as ɵx } from './lib/_common/display-content-type-lib/display-content-type-lib.module';
|
|
16
16
|
export { HorizontalScrollerV2Component as ɵg } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component';
|
|
17
17
|
export { HorizontalScrollerV2Module as ɵf } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module';
|
|
18
|
-
export { PillsComponent as
|
|
19
|
-
export { PillsModule as
|
|
20
|
-
export { SkeletonLoaderLibComponent as
|
|
21
|
-
export { SkeletonLoaderLibModule as
|
|
18
|
+
export { PillsComponent as ɵbg } from './lib/_common/pills/pills.component';
|
|
19
|
+
export { PillsModule as ɵbf } from './lib/_common/pills/pills.module';
|
|
20
|
+
export { SkeletonLoaderLibComponent as ɵp } from './lib/_common/skeleton-loader-lib/skeleton-loader-lib.component';
|
|
21
|
+
export { SkeletonLoaderLibModule as ɵo } from './lib/_common/skeleton-loader-lib/skeleton-loader-lib.module';
|
|
22
22
|
export { SlidersLibComponent as ɵh } from './lib/_common/sliders/sliders.component';
|
|
23
|
-
export { DefaultThumbnailDirective as
|
|
24
|
-
export { DefaultThumbnailModule as
|
|
23
|
+
export { DefaultThumbnailDirective as ɵba } from './lib/_directives/default-thumbnail/default-thumbnail.directive';
|
|
24
|
+
export { DefaultThumbnailModule as ɵz } from './lib/_directives/default-thumbnail/default-thumbnail.module';
|
|
25
25
|
export { ImageResponsiveDirective as ɵl } from './lib/_directives/image-responsive/image-responsive.directive';
|
|
26
26
|
export { ImageResponsiveModule as ɵk } from './lib/_directives/image-responsive/image-responsive.module';
|
|
27
27
|
export { NavigationDirective as ɵj } from './lib/_directives/navigation/navigation.directive';
|
|
28
28
|
export { NavigationModule as ɵi } from './lib/_directives/navigation/navigation.module';
|
|
29
|
-
export { PipeDurationTransformModule as
|
|
30
|
-
export { PipeDurationTransformPipe as
|
|
31
|
-
export { PipePublicURLModule as
|
|
32
|
-
export { PipePublicURL as
|
|
29
|
+
export { PipeDurationTransformModule as ɵbb } from './lib/_pipes/pipe-duration-transform/pipe-duration-transform.module';
|
|
30
|
+
export { PipeDurationTransformPipe as ɵbc } from './lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe';
|
|
31
|
+
export { PipePublicURLModule as ɵv } from './lib/_pipes/pipe-public-URL/pipe-public-URL.module';
|
|
32
|
+
export { PipePublicURL as ɵw } from './lib/_pipes/pipe-public-URL/pipe-public-URL.pipe';
|
|
33
33
|
export { ConfigurationsService as ɵe } from './lib/_services/configurations.service';
|
|
34
|
+
export { InsiteDataService as ɵn } from './lib/_services/insite-data.service';
|
|
34
35
|
export { MultilingualTranslationsService as ɵd } from './lib/_services/multilingual-translations.service';
|
|
35
36
|
export { WidgetContentService as ɵb } from './lib/_services/widget-content.service';
|
|
36
37
|
export { WidgetUserService as ɵc } from './lib/_services/widget-user.service';
|