@sunbird-cb/consumption 0.0.11 → 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 +4435 -1462
- 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/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 +300 -0
- package/esm2015/lib/_common/calender/calender.module.js +31 -0
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +5 -5
- 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 +646 -0
- package/esm2015/lib/_common/common-strip/common-strip.model.js +216 -0
- package/esm2015/lib/_common/common-strip/common-strip.module.js +62 -0
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +24 -4
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +36 -6
- 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 +2 -2
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +63 -12
- package/esm2015/lib/_common/pills/pills.component.js +2 -2
- package/esm2015/lib/_common/sliders/sliders.component.js +3 -3
- 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/card-users.model.js +7 -5
- package/esm2015/lib/_models/rating.model.js +44 -0
- package/esm2015/lib/_services/common-methods.service.js +1 -1
- package/esm2015/lib/_services/insite-data.service.js +10 -2
- package/esm2015/lib/_services/rating.service.js +171 -0
- package/esm2015/lib/consumption.module.js +6 -2
- package/esm2015/public-api.js +4 -1
- package/esm2015/sunbird-cb-consumption.js +29 -19
- 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 +335 -0
- package/esm5/lib/_common/calender/calender.module.js +35 -0
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
- package/esm5/lib/_common/cards/card-user/card-user.component.js +5 -5
- 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 +760 -0
- package/esm5/lib/_common/common-strip/common-strip.model.js +216 -0
- package/esm5/lib/_common/common-strip/common-strip.module.js +66 -0
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +28 -5
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +41 -6
- 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 +2 -2
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +60 -12
- package/esm5/lib/_common/pills/pills.component.js +2 -2
- package/esm5/lib/_common/sliders/sliders.component.js +3 -3
- 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/card-users.model.js +7 -5
- package/esm5/lib/_models/rating.model.js +44 -0
- package/esm5/lib/_services/common-methods.service.js +1 -1
- package/esm5/lib/_services/insite-data.service.js +14 -2
- package/esm5/lib/_services/rating.service.js +214 -0
- package/esm5/lib/consumption.module.js +6 -2
- package/esm5/public-api.js +4 -1
- package/esm5/sunbird-cb-consumption.js +29 -19
- package/fesm2015/sunbird-cb-consumption.js +3945 -1280
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +4406 -1447
- 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 +34 -0
- package/lib/_common/calender/calender.module.d.ts +2 -0
- package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -0
- package/lib/_common/common-strip/common-strip.component.d.ts +104 -0
- package/lib/_common/common-strip/common-strip.model.d.ts +141 -0
- package/lib/_common/common-strip/common-strip.module.d.ts +2 -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/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +8 -0
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +8 -6
- 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/card-users.model.d.ts +5 -4
- package/lib/_models/rating.model.d.ts +17 -0
- package/lib/_services/common-methods.service.d.ts +3 -2
- 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 +3 -0
- package/sunbird-cb-consumption.d.ts +27 -17
- 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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { InsiteDataService } from '../../_services/insite-data.service';
|
|
4
|
+
export declare class CalenderComponent implements OnInit {
|
|
5
|
+
private datePipe;
|
|
6
|
+
insightSvc: InsiteDataService;
|
|
7
|
+
objectData: any;
|
|
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);
|
|
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;
|
|
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
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver-v2';
|
|
3
|
+
import { NsCommonStrip } from './common-strip.model';
|
|
4
|
+
import { WidgetContentService } from '../../_services/widget-content.service';
|
|
5
|
+
import { MultilingualTranslationsService } from '../../_services/multilingual-translations.service';
|
|
6
|
+
import { LoggerService, EventService, ConfigurationsService, UtilityService } from '@sunbird-cb/utils-v2';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { WidgetUserService } from '../../_services/widget-user.service';
|
|
9
|
+
import { MatTabChangeEvent } from '@angular/material';
|
|
10
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
11
|
+
import { CommonMethodsService } from '../../_services/common-methods.service';
|
|
12
|
+
interface IStripUnitCommonData {
|
|
13
|
+
key: string;
|
|
14
|
+
canHideStrip: boolean;
|
|
15
|
+
mode?: string;
|
|
16
|
+
showStrip: boolean;
|
|
17
|
+
disableTranslate: boolean;
|
|
18
|
+
widgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
19
|
+
stripTitle: string;
|
|
20
|
+
stripTitleLink?: {
|
|
21
|
+
link: {
|
|
22
|
+
queryParams: string;
|
|
23
|
+
};
|
|
24
|
+
icon: string;
|
|
25
|
+
queryParams: string;
|
|
26
|
+
};
|
|
27
|
+
sliderConfig?: {
|
|
28
|
+
showNavs: boolean;
|
|
29
|
+
showDots: boolean;
|
|
30
|
+
maxWidgets?: number;
|
|
31
|
+
cerificateCardMargin?: boolean;
|
|
32
|
+
};
|
|
33
|
+
stripConfig: any;
|
|
34
|
+
tabs?: NsCommonStrip.ICommonStripTab[] | undefined;
|
|
35
|
+
stripName?: string;
|
|
36
|
+
stripLogo?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
stripInfo?: NsCommonStrip.IStripInfo;
|
|
39
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
40
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
41
|
+
showOnNoData: boolean;
|
|
42
|
+
showOnLoader: boolean;
|
|
43
|
+
showOnError: boolean;
|
|
44
|
+
loaderWidgets?: any;
|
|
45
|
+
stripBackground?: string;
|
|
46
|
+
secondaryHeading?: any;
|
|
47
|
+
viewMoreUrl: any;
|
|
48
|
+
}
|
|
49
|
+
export declare class CommonStripComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData<NsCommonStrip.ICommonStrip> {
|
|
50
|
+
private contentSvc;
|
|
51
|
+
private loggerSvc;
|
|
52
|
+
private eventSvc;
|
|
53
|
+
private configSvc;
|
|
54
|
+
utilitySvc: UtilityService;
|
|
55
|
+
private userSvc;
|
|
56
|
+
private translate;
|
|
57
|
+
private langtranslations;
|
|
58
|
+
private commonMethodsSvc;
|
|
59
|
+
widgetData: NsCommonStrip.ICommonStrip;
|
|
60
|
+
id: string;
|
|
61
|
+
stripsResultDataMap: {
|
|
62
|
+
[key: string]: IStripUnitCommonData;
|
|
63
|
+
};
|
|
64
|
+
stripsKeyOrder: string[];
|
|
65
|
+
showAccordionData: boolean;
|
|
66
|
+
showParentLoader: boolean;
|
|
67
|
+
showParentError: boolean;
|
|
68
|
+
showParentNoData: boolean;
|
|
69
|
+
errorDataCount: number;
|
|
70
|
+
noDataCount: number;
|
|
71
|
+
successDataCount: number;
|
|
72
|
+
contentAvailable: boolean;
|
|
73
|
+
baseUrl: string;
|
|
74
|
+
veifiedKarmayogi: boolean;
|
|
75
|
+
environment: any;
|
|
76
|
+
changeEventSubscription: Subscription | null;
|
|
77
|
+
defaultMaxWidgets: number;
|
|
78
|
+
enrollInterval: any;
|
|
79
|
+
todaysEvents: any;
|
|
80
|
+
constructor(environment: any, contentSvc: WidgetContentService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService, utilitySvc: UtilityService, userSvc: WidgetUserService, translate: TranslateService, langtranslations: MultilingualTranslationsService, commonMethodsSvc: CommonMethodsService);
|
|
81
|
+
ngOnInit(): void;
|
|
82
|
+
ngOnDestroy(): void;
|
|
83
|
+
showAccordion(key: string): boolean;
|
|
84
|
+
setHiddenForStrip(key: string): void;
|
|
85
|
+
private getIfStripHidden;
|
|
86
|
+
private initData;
|
|
87
|
+
private fetchStripFromKey;
|
|
88
|
+
isStripShowing(data: any): any;
|
|
89
|
+
readonly isMobile: boolean;
|
|
90
|
+
getdata(data: IStripUnitCommonData): {};
|
|
91
|
+
checkCondition(wData: NsCommonStrip.ICommonStrip, data: IStripUnitCommonData): boolean;
|
|
92
|
+
checkVisible(data: IStripUnitCommonData): boolean;
|
|
93
|
+
getContineuLearningLenth(data: IStripUnitCommonData): number;
|
|
94
|
+
getLength(data: IStripUnitCommonData): number;
|
|
95
|
+
private processStrip;
|
|
96
|
+
getSelectedIndex(stripsResultDataMap: any, key: any): number;
|
|
97
|
+
private checkParentStatus;
|
|
98
|
+
checkForEmptyWidget(strip: NsCommonStrip.ICommonStripUnit): boolean;
|
|
99
|
+
tabClicked(tabEvent: MatTabChangeEvent, stripMap: IStripUnitCommonData, stripKey: string): void;
|
|
100
|
+
translateLabels(label: string, type: any): any;
|
|
101
|
+
identify(index: number, item: any): any;
|
|
102
|
+
tracker(index: number, item: any): any;
|
|
103
|
+
}
|
|
104
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { NsWidgetResolver } from '@sunbird-cb/resolver-v2';
|
|
2
|
+
import { NSSearch } from '../../_models/widget-search.model';
|
|
3
|
+
import { NsContent } from '../../_models/widget-content.model';
|
|
4
|
+
import { NsCardContent } from '../../_models/card-content.model';
|
|
5
|
+
export declare namespace NsCommonStrip {
|
|
6
|
+
interface ICommonStrip {
|
|
7
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
8
|
+
loader?: boolean;
|
|
9
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
10
|
+
strips: ICommonStripUnit[];
|
|
11
|
+
isChannelStrip?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface ICommonStripUnit {
|
|
14
|
+
disableTranslate?: any;
|
|
15
|
+
key: string;
|
|
16
|
+
title: string;
|
|
17
|
+
dataType?: "in-hand" | "";
|
|
18
|
+
dataKey?: string;
|
|
19
|
+
customeClass?: string;
|
|
20
|
+
nodataMsg?: string;
|
|
21
|
+
stripTitleLink?: {
|
|
22
|
+
link: {
|
|
23
|
+
queryParams: string;
|
|
24
|
+
};
|
|
25
|
+
icon: string;
|
|
26
|
+
queryParams: string;
|
|
27
|
+
};
|
|
28
|
+
sliderConfig?: {
|
|
29
|
+
showNavs: boolean;
|
|
30
|
+
showDots: boolean;
|
|
31
|
+
maxWidgets?: number;
|
|
32
|
+
cerificateCardMargin?: boolean;
|
|
33
|
+
dotsAlign?: "right" | "left";
|
|
34
|
+
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
35
|
+
responsive?: {
|
|
36
|
+
showNavs: boolean;
|
|
37
|
+
showDots: boolean;
|
|
38
|
+
dotsAlign?: "right" | "left";
|
|
39
|
+
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
tabs?: NsCommonStrip.ICommonStripTab[] | undefined;
|
|
43
|
+
titleDescription?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
mode?: 'accordion';
|
|
46
|
+
info?: IStripInfo;
|
|
47
|
+
logo?: string;
|
|
48
|
+
preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
49
|
+
postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
50
|
+
stripConfig?: IStripConfig;
|
|
51
|
+
canHideStrip?: boolean;
|
|
52
|
+
filters?: any[];
|
|
53
|
+
selectAll?: boolean | null;
|
|
54
|
+
request?: {
|
|
55
|
+
search?: NSSearch.ISearchRequest;
|
|
56
|
+
searchV6?: NSSearch.ISearchV6Request;
|
|
57
|
+
enrollmentList?: any;
|
|
58
|
+
cbpList?: any;
|
|
59
|
+
searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
|
|
60
|
+
api?: IStripRequestApi;
|
|
61
|
+
networkApi?: INetworkRequestApi;
|
|
62
|
+
ids?: string[];
|
|
63
|
+
recommendedCourses?: any;
|
|
64
|
+
masterCompetency?: any;
|
|
65
|
+
trendingSearch?: any;
|
|
66
|
+
};
|
|
67
|
+
searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
|
|
68
|
+
stripBackground?: string;
|
|
69
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
70
|
+
loader?: boolean;
|
|
71
|
+
loaderWidgets?: any;
|
|
72
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
73
|
+
refreshEvent?: Record<'eventType' | 'from', string>;
|
|
74
|
+
fetchLikes?: boolean;
|
|
75
|
+
secondaryHeading?: any;
|
|
76
|
+
viewMoreUrl?: {
|
|
77
|
+
queryParams?: any;
|
|
78
|
+
viewMoreText: string;
|
|
79
|
+
path: string;
|
|
80
|
+
};
|
|
81
|
+
data?: [];
|
|
82
|
+
}
|
|
83
|
+
interface IStripRequestApi {
|
|
84
|
+
path: string;
|
|
85
|
+
queryParams?: {
|
|
86
|
+
pageNo?: number;
|
|
87
|
+
pageSize?: number;
|
|
88
|
+
pageState?: string;
|
|
89
|
+
sourceFields?: string;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
interface INetworkRequestApi {
|
|
93
|
+
path: string;
|
|
94
|
+
data?: any;
|
|
95
|
+
}
|
|
96
|
+
interface IStripInfo {
|
|
97
|
+
mode: 'below' | 'popup' | 'modal';
|
|
98
|
+
visibilityMode?: 'hidden' | 'visible';
|
|
99
|
+
icon: {
|
|
100
|
+
icon: string;
|
|
101
|
+
scale: number;
|
|
102
|
+
style?: any;
|
|
103
|
+
};
|
|
104
|
+
widget: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
105
|
+
}
|
|
106
|
+
interface IStripConfig {
|
|
107
|
+
cardSubType: NsCardContent.TCardSubType;
|
|
108
|
+
postCardForSearch?: boolean;
|
|
109
|
+
intranetMode?: 'greyOut' | 'hide';
|
|
110
|
+
deletedMode?: 'greyOut' | 'hide';
|
|
111
|
+
contentTags?: IContentTags;
|
|
112
|
+
hideShowAll?: boolean;
|
|
113
|
+
}
|
|
114
|
+
interface IContentTags {
|
|
115
|
+
daysSpan?: number;
|
|
116
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
117
|
+
excludeMimeType?: string[];
|
|
118
|
+
tag: string;
|
|
119
|
+
criteriaField: string;
|
|
120
|
+
}
|
|
121
|
+
interface IContentStripResponseApi {
|
|
122
|
+
contents: NsContent.IContent[];
|
|
123
|
+
hasMore?: boolean;
|
|
124
|
+
pageState?: string;
|
|
125
|
+
totalHits?: number;
|
|
126
|
+
}
|
|
127
|
+
interface ICommonStripTab {
|
|
128
|
+
label: string;
|
|
129
|
+
value: string;
|
|
130
|
+
showTabDataCount: boolean;
|
|
131
|
+
requestRequired?: boolean;
|
|
132
|
+
computeDataOnClick?: boolean;
|
|
133
|
+
computeDataOnClickKey?: string;
|
|
134
|
+
request?: any;
|
|
135
|
+
widgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
136
|
+
maxWidgets?: number;
|
|
137
|
+
fetchTabStatus?: string;
|
|
138
|
+
nodataMsg?: string;
|
|
139
|
+
tabLoading?: boolean;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -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 {};
|
|
@@ -28,6 +28,14 @@ export declare namespace NsContentStripWithTabs {
|
|
|
28
28
|
showDots: boolean;
|
|
29
29
|
maxWidgets?: number;
|
|
30
30
|
cerificateCardMargin?: boolean;
|
|
31
|
+
dotsAlign?: "right" | "left";
|
|
32
|
+
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
33
|
+
responsive?: {
|
|
34
|
+
showNavs: boolean;
|
|
35
|
+
showDots: boolean;
|
|
36
|
+
dotsAlign?: "right" | "left";
|
|
37
|
+
arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline";
|
|
38
|
+
};
|
|
31
39
|
};
|
|
32
40
|
tabs?: NsContentStripWithTabs.IContentStripTab[] | undefined;
|
|
33
41
|
titleDescription?: string;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef } from '@angular/core';
|
|
2
2
|
import { TFetchStatus } from '../../_constants/misc.constants';
|
|
3
|
+
import { ValueService } from '@sunbird-cb/utils-v2';
|
|
3
4
|
export declare class HorizontalScrollerV2Component implements OnInit, OnChanges, OnDestroy {
|
|
5
|
+
private valueSvc;
|
|
4
6
|
loadStatus: TFetchStatus;
|
|
7
|
+
id: string;
|
|
5
8
|
onHover: boolean;
|
|
6
|
-
sliderConfig:
|
|
7
|
-
showNavs: boolean;
|
|
8
|
-
showDots: boolean;
|
|
9
|
-
cerificateCardMargin: boolean;
|
|
10
|
-
};
|
|
9
|
+
sliderConfig: any;
|
|
11
10
|
loadNext: EventEmitter<any>;
|
|
12
11
|
widgetsLength: any;
|
|
13
12
|
defaultMaxWidgets: any;
|
|
@@ -19,7 +18,10 @@ export declare class HorizontalScrollerV2Component implements OnInit, OnChanges,
|
|
|
19
18
|
cardSubType: string;
|
|
20
19
|
bottomDotsArray: any;
|
|
21
20
|
private scrollObserver;
|
|
22
|
-
|
|
21
|
+
isMobile: boolean;
|
|
22
|
+
private defaultMenuSubscribe;
|
|
23
|
+
isLtMedium$: import("rxjs").Observable<boolean>;
|
|
24
|
+
constructor(valueSvc: ValueService);
|
|
23
25
|
ngOnInit(): void;
|
|
24
26
|
ngOnChanges(): void;
|
|
25
27
|
ngOnDestroy(): void;
|
|
@@ -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 {};
|