@sunbird-cb/utils-v2 0.0.1 → 0.0.2

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.
Files changed (28) hide show
  1. package/bundles/sunbird-cb-utils-v2.umd.js +1397 -1268
  2. package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-utils-v2.umd.min.js +1 -15
  4. package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -1
  5. package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +26 -4
  6. package/esm2015/lib/pipes/pipe-ordinal/pipe-ordinal.module.js +15 -0
  7. package/esm2015/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.js +17 -0
  8. package/esm2015/lib/services/event.model.js +17 -1
  9. package/esm2015/public-api.js +5 -1
  10. package/esm2015/sunbird-cb-utils-v2.js +2 -3
  11. package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +26 -4
  12. package/esm5/lib/pipes/pipe-ordinal/pipe-ordinal.module.js +19 -0
  13. package/esm5/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.js +21 -0
  14. package/esm5/lib/services/event.model.js +17 -1
  15. package/esm5/public-api.js +5 -1
  16. package/esm5/sunbird-cb-utils-v2.js +2 -3
  17. package/fesm2015/sunbird-cb-utils-v2.js +2727 -2606
  18. package/fesm2015/sunbird-cb-utils-v2.js.map +1 -1
  19. package/fesm5/sunbird-cb-utils-v2.js +1387 -1260
  20. package/fesm5/sunbird-cb-utils-v2.js.map +1 -1
  21. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +6 -1
  22. package/lib/pipes/pipe-ordinal/pipe-ordinal.module.d.ts +2 -0
  23. package/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.d.ts +4 -0
  24. package/lib/services/event.model.d.ts +18 -2
  25. package/package.json +1 -1
  26. package/public-api.d.ts +4 -0
  27. package/sunbird-cb-utils-v2.d.ts +0 -1
  28. 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;
@@ -0,0 +1,2 @@
1
+ export declare class PipeOrdinalModule {
2
+ }
@@ -0,0 +1,4 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ export declare class PipeOrdinalPipe implements PipeTransform {
3
+ transform(value: number): string;
4
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunbird-cb/utils-v2",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "bundles/sunbird-cb-utils-v2.umd.js",
5
5
  "dependencies": {
6
6
  "tslib": "^1.9.0"
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';
@@ -74,6 +76,8 @@ export * from './lib/services/user-preference.service';
74
76
  export * from './lib/services/utility.service';
75
77
  export * from './lib/services/value.service';
76
78
  export * from './lib/services/multilingual-translations.service';
79
+ export * from './lib/services/nps-grid.service';
77
80
  export * from './lib/services/widget-content.service';
78
81
  export * from './lib/services/subapplication-respond.service';
79
82
  export * from './lib/services/widget-content.model';
83
+ export * from './lib/services/widget-resolver.model';
@@ -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';