@sunbird-cb/utils-v2 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-utils-v2.umd.js +1475 -1254
- package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -1
- package/bundles/sunbird-cb-utils-v2.umd.min.js +1 -15
- package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -1
- package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +26 -4
- package/esm2015/lib/pipes/pipe-coursename/PipeCourseNameModule.js +15 -0
- package/esm2015/lib/pipes/pipe-coursename/pipe-coursename.pipe.js +13 -0
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +4 -1
- package/esm2015/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.js +15 -0
- package/esm2015/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.js +39 -0
- package/esm2015/lib/pipes/pipe-ordinal/pipe-ordinal.module.js +15 -0
- package/esm2015/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.js +17 -0
- package/esm2015/lib/services/configurations.model.js +2 -1
- package/esm2015/lib/services/event.model.js +17 -1
- package/esm2015/public-api.js +9 -1
- package/esm2015/sunbird-cb-utils-v2.js +2 -3
- package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +26 -4
- package/esm5/lib/pipes/pipe-coursename/PipeCourseNameModule.js +19 -0
- package/esm5/lib/pipes/pipe-coursename/pipe-coursename.pipe.js +17 -0
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +4 -1
- package/esm5/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.js +19 -0
- package/esm5/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.js +41 -0
- package/esm5/lib/pipes/pipe-ordinal/pipe-ordinal.module.js +19 -0
- package/esm5/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.js +21 -0
- package/esm5/lib/services/configurations.model.js +2 -1
- package/esm5/lib/services/event.model.js +17 -1
- package/esm5/public-api.js +9 -1
- package/esm5/sunbird-cb-utils-v2.js +2 -3
- package/fesm2015/sunbird-cb-utils-v2.js +2801 -2602
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -1
- package/fesm5/sunbird-cb-utils-v2.js +1461 -1246
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -1
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +6 -1
- package/lib/pipes/pipe-coursename/PipeCourseNameModule.d.ts +2 -0
- package/lib/pipes/pipe-coursename/pipe-coursename.pipe.d.ts +4 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +1 -1
- package/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.d.ts +2 -0
- package/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.d.ts +7 -0
- package/lib/pipes/pipe-ordinal/pipe-ordinal.module.d.ts +2 -0
- package/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.d.ts +4 -0
- package/lib/services/configurations.model.d.ts +1 -0
- package/lib/services/event.model.d.ts +18 -2
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
- package/sunbird-cb-utils-v2.d.ts +0 -1
- package/sunbird-cb-utils-v2.metadata.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef } from '@angular/core';
|
|
2
2
|
import { TFetchStatus } from '../../constants/misc.constants';
|
|
3
|
+
import { EventService } from '../../services/event.service';
|
|
3
4
|
export declare class HorizontalScrollerV2Component implements OnInit, OnChanges, OnDestroy {
|
|
5
|
+
private eventService;
|
|
4
6
|
loadStatus: TFetchStatus;
|
|
5
7
|
onHover: boolean;
|
|
6
8
|
sliderConfig: {
|
|
@@ -12,6 +14,8 @@ export declare class HorizontalScrollerV2Component implements OnInit, OnChanges,
|
|
|
12
14
|
widgetsLength: any;
|
|
13
15
|
defaultMaxWidgets: any;
|
|
14
16
|
stripConfig: any;
|
|
17
|
+
stripsResultDataMap: any;
|
|
18
|
+
subtype: string;
|
|
15
19
|
horizontalScrollElem: ElementRef | null;
|
|
16
20
|
enablePrev: boolean;
|
|
17
21
|
enableNext: boolean;
|
|
@@ -19,12 +23,13 @@ export declare class HorizontalScrollerV2Component implements OnInit, OnChanges,
|
|
|
19
23
|
cardSubType: string;
|
|
20
24
|
bottomDotsArray: any;
|
|
21
25
|
private scrollObserver;
|
|
22
|
-
constructor();
|
|
26
|
+
constructor(eventService: EventService);
|
|
23
27
|
ngOnInit(): void;
|
|
24
28
|
ngOnChanges(): void;
|
|
25
29
|
ngOnDestroy(): void;
|
|
26
30
|
showPrev(): void;
|
|
27
31
|
showNext(): void;
|
|
32
|
+
private raiseNavigationTelemetry;
|
|
28
33
|
private updateNavigationBtnStatus;
|
|
29
34
|
slideTo(ele: any): void;
|
|
30
35
|
getBottomDotsArray(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
export declare class PipeDurationTransformPipe implements PipeTransform {
|
|
3
|
-
transform(data: number, type: 'time24' | 'hms' | 'hour' | 'hms2H' | 'hms2M' | 'day'): any;
|
|
3
|
+
transform(data: number, type: 'time24' | 'hms' | 'hour' | 'hms2H' | 'hms2M' | 'day' | 'DAYS'): any;
|
|
4
4
|
defaultDuration(h: number, m: number, s: number): string;
|
|
5
5
|
hmsCalculation(h: number, m: number, s: number, dur: string, type: string): string;
|
|
6
6
|
}
|
|
@@ -186,7 +186,8 @@ export declare namespace WsEvents {
|
|
|
186
186
|
PLATFORM_RATING = "platformrating"
|
|
187
187
|
}
|
|
188
188
|
enum EnumInteractTypes {
|
|
189
|
-
CLICK = "click"
|
|
189
|
+
CLICK = "click",
|
|
190
|
+
subType = "subType"
|
|
190
191
|
}
|
|
191
192
|
enum EnumInteractSubTypes {
|
|
192
193
|
COURSE_TAB = "course-tab",
|
|
@@ -197,9 +198,24 @@ export declare namespace WsEvents {
|
|
|
197
198
|
DISCUSS_TAB = "discuss-tab",
|
|
198
199
|
EVENTS_TAB = "events-tab",
|
|
199
200
|
SIDE_MENU = "side-menu",
|
|
201
|
+
MY_IGOT = "my-igot",
|
|
202
|
+
MY_LEARNING = "my-learning",
|
|
203
|
+
RECENTLY_ADDED = "recently-added",
|
|
204
|
+
TRENDING_IN_YOUR_DEPARTMENT = "trending-in-your-department",
|
|
205
|
+
TRENDING_ACROSS_YOUR_DEPARTMENTS = "trending-across-your-departments",
|
|
206
|
+
LEARNING_UNDER_30_MINUTES = "learning-under-30-minutes",
|
|
207
|
+
BLENDED_PROGRAM = "blended program",
|
|
208
|
+
RECENT_CONNECTION_REQUEST = "recent-connection-request",
|
|
209
|
+
CERTIFICATIONS_OF_THE_WEEK = "certifications-of-the-week",
|
|
200
210
|
HOME_PAGE_STRIP_TABS = "home-page-strip-tabs",
|
|
201
211
|
HUB_MENU = "hub-menu",
|
|
202
212
|
PORTAL_NUDGE = "portal_nudge",
|
|
203
|
-
CERTIFICATE = "certificate"
|
|
213
|
+
CERTIFICATE = "certificate",
|
|
214
|
+
DEFAULT_SUBTYPE = "default-subtype",
|
|
215
|
+
SUGGESTED_CONNECTIONS = "suggested-connections",
|
|
216
|
+
PROFILE = "profile",
|
|
217
|
+
ADD_POST = "add-post",
|
|
218
|
+
TRENDING_DISCUSSIONS = "trending-discussions",
|
|
219
|
+
MY_DISCUSSIONS = "my-discussions"
|
|
204
220
|
}
|
|
205
221
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export * from './lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module';
|
|
|
26
26
|
export * from './lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe';
|
|
27
27
|
export * from './lib/pipes/pipe-filter/pipe-filter.module';
|
|
28
28
|
export * from './lib/pipes/pipe-filter/pipe-filter.pipe';
|
|
29
|
+
export * from './lib/pipes/pipe-ordinal/pipe-ordinal.module';
|
|
30
|
+
export * from './lib/pipes/pipe-ordinal/pipe-ordinal.pipe';
|
|
29
31
|
export * from './lib/pipes/pipe-email/pipe-email.module';
|
|
30
32
|
export * from './lib/pipes/pipe-email/pipe-email.pipe';
|
|
31
33
|
export * from './lib/pipes/pipe-filter-v2/pipe-filter-v2.module';
|
|
@@ -52,6 +54,10 @@ export * from './lib/pipes/pipe-public-URL/pipe-public-URL.module';
|
|
|
52
54
|
export * from './lib/pipes/pipe-public-URL/pipe-public-URL.pipe';
|
|
53
55
|
export * from './lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module';
|
|
54
56
|
export * from './lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe';
|
|
57
|
+
export * from './lib/pipes/pipe-nic-relative/pipe-nic-relative.module';
|
|
58
|
+
export * from './lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe';
|
|
59
|
+
export * from './lib/pipes/pipe-coursename/PipeCourseNameModule';
|
|
60
|
+
export * from './lib/pipes/pipe-coursename/pipe-coursename.pipe';
|
|
55
61
|
export * from './lib/resolvers/explore-detail.resolver';
|
|
56
62
|
export * from './lib/resolvers/marketing-offering.resolve';
|
|
57
63
|
export * from './lib/resolvers/page.model';
|
|
@@ -74,6 +80,8 @@ export * from './lib/services/user-preference.service';
|
|
|
74
80
|
export * from './lib/services/utility.service';
|
|
75
81
|
export * from './lib/services/value.service';
|
|
76
82
|
export * from './lib/services/multilingual-translations.service';
|
|
83
|
+
export * from './lib/services/nps-grid.service';
|
|
77
84
|
export * from './lib/services/widget-content.service';
|
|
78
85
|
export * from './lib/services/subapplication-respond.service';
|
|
79
86
|
export * from './lib/services/widget-content.model';
|
|
87
|
+
export * from './lib/services/widget-resolver.model';
|
package/sunbird-cb-utils-v2.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export { NavigationDirective as ɵe } from './lib/directives/navigation/navigati
|
|
|
7
7
|
export { PermissionDirective as ɵf } from './lib/directives/permission/permission.directive';
|
|
8
8
|
export { HorizontalScrollerV2Component as ɵh } from './lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component';
|
|
9
9
|
export { HorizontalScrollerComponent as ɵg } from './lib/helpers/horizontal-scroller/horizontal-scroller.component';
|
|
10
|
-
export { NPSGridService as ɵi } from './lib/services/nps-grid.service';
|