@sunbird-cb/collection 1.0.7 → 1.0.10

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 (76) hide show
  1. package/bundles/sunbird-cb-collection.umd.js +41 -215
  2. package/bundles/sunbird-cb-collection.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-collection.umd.min.js +2 -2
  4. package/bundles/sunbird-cb-collection.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +3 -10
  6. package/esm2015/lib/_services/search-serv.service.js +2 -17
  7. package/esm2015/lib/btn-call/btn-call-dialog/btn-call-dialog.component.js +3 -12
  8. package/esm2015/lib/btn-call/btn-call.component.js +3 -10
  9. package/esm2015/lib/btn-content-download/btn-content-download.component.js +3 -15
  10. package/esm2015/lib/btn-content-like/btn-content-like.component.js +2 -5
  11. package/esm2015/lib/btn-content-mail-me/btn-content-mail-me.component.js +3 -10
  12. package/esm2015/lib/btn-content-share/btn-content-share-dialog/btn-content-share-dialog.component.js +3 -13
  13. package/esm2015/lib/btn-feature/btn-feature.component.js +3 -9
  14. package/esm2015/lib/btn-follow/btn-follow.service.js +4 -29
  15. package/esm2015/lib/btn-goals/btn-goals-selection/btn-goals-selection.component.js +4 -12
  16. package/esm2015/lib/btn-mail-user/btn-mail-user-dialog/btn-mail-user-dialog.component.js +2 -10
  17. package/esm2015/lib/btn-mail-user/btn-mail-user.component.js +3 -10
  18. package/esm2015/lib/btn-playlist/btn-playlist-selection/btn-playlist-selection.component.js +4 -12
  19. package/esm2015/lib/btn-profile/btn-profile.component.js +2 -2
  20. package/esm2015/lib/card-breadcrumb/card-breadcrumb.component.js +4 -13
  21. package/esm2015/lib/card-content/card-content.component.js +3 -11
  22. package/esm2015/lib/card-knowledge/card-knowledge.component.js +3 -10
  23. package/esm2015/lib/left-menu/base64.json +1 -1
  24. package/esm2015/lib/left-menu/left-menu.component.js +2 -2
  25. package/esm2015/lib/player-pdf/player-pdf.component.js +3 -7
  26. package/esm2015/lib/sliders/sliders.component.js +4 -15
  27. package/esm2015/lib/sliders-mob/sliders-mob.component.js +4 -15
  28. package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +3 -10
  29. package/esm5/lib/_services/search-serv.service.js +2 -17
  30. package/esm5/lib/btn-call/btn-call-dialog/btn-call-dialog.component.js +3 -12
  31. package/esm5/lib/btn-call/btn-call.component.js +3 -10
  32. package/esm5/lib/btn-content-download/btn-content-download.component.js +3 -15
  33. package/esm5/lib/btn-content-like/btn-content-like.component.js +2 -5
  34. package/esm5/lib/btn-content-mail-me/btn-content-mail-me.component.js +3 -10
  35. package/esm5/lib/btn-content-share/btn-content-share-dialog/btn-content-share-dialog.component.js +3 -13
  36. package/esm5/lib/btn-feature/btn-feature.component.js +3 -9
  37. package/esm5/lib/btn-follow/btn-follow.service.js +4 -29
  38. package/esm5/lib/btn-goals/btn-goals-selection/btn-goals-selection.component.js +4 -12
  39. package/esm5/lib/btn-mail-user/btn-mail-user-dialog/btn-mail-user-dialog.component.js +2 -10
  40. package/esm5/lib/btn-mail-user/btn-mail-user.component.js +3 -10
  41. package/esm5/lib/btn-playlist/btn-playlist-selection/btn-playlist-selection.component.js +4 -12
  42. package/esm5/lib/btn-profile/btn-profile.component.js +2 -2
  43. package/esm5/lib/card-breadcrumb/card-breadcrumb.component.js +5 -15
  44. package/esm5/lib/card-content/card-content.component.js +3 -11
  45. package/esm5/lib/card-knowledge/card-knowledge.component.js +3 -10
  46. package/esm5/lib/left-menu/base64.json +1 -1
  47. package/esm5/lib/left-menu/left-menu.component.js +2 -2
  48. package/esm5/lib/player-pdf/player-pdf.component.js +3 -7
  49. package/esm5/lib/sliders/sliders.component.js +4 -15
  50. package/esm5/lib/sliders-mob/sliders-mob.component.js +4 -15
  51. package/fesm2015/sunbird-cb-collection.js +38 -211
  52. package/fesm2015/sunbird-cb-collection.js.map +1 -1
  53. package/fesm5/sunbird-cb-collection.js +39 -213
  54. package/fesm5/sunbird-cb-collection.js.map +1 -1
  55. package/lib/_common/user-content-rating/user-content-rating.component.d.ts +2 -3
  56. package/lib/_services/search-serv.service.d.ts +1 -1
  57. package/lib/btn-call/btn-call-dialog/btn-call-dialog.component.d.ts +2 -4
  58. package/lib/btn-call/btn-call.component.d.ts +2 -3
  59. package/lib/btn-content-download/btn-content-download.component.d.ts +2 -5
  60. package/lib/btn-content-like/btn-content-like.component.d.ts +1 -1
  61. package/lib/btn-content-mail-me/btn-content-mail-me.component.d.ts +2 -3
  62. package/lib/btn-content-share/btn-content-share-dialog/btn-content-share-dialog.component.d.ts +2 -4
  63. package/lib/btn-feature/btn-feature.component.d.ts +2 -3
  64. package/lib/btn-follow/btn-follow.service.d.ts +2 -4
  65. package/lib/btn-goals/btn-goals-selection/btn-goals-selection.component.d.ts +3 -4
  66. package/lib/btn-mail-user/btn-mail-user-dialog/btn-mail-user-dialog.component.d.ts +1 -3
  67. package/lib/btn-mail-user/btn-mail-user.component.d.ts +2 -3
  68. package/lib/btn-playlist/btn-playlist-selection/btn-playlist-selection.component.d.ts +3 -4
  69. package/lib/card-breadcrumb/card-breadcrumb.component.d.ts +2 -4
  70. package/lib/card-content/card-content.component.d.ts +2 -3
  71. package/lib/card-knowledge/card-knowledge.component.d.ts +2 -3
  72. package/lib/player-pdf/player-pdf.component.d.ts +1 -1
  73. package/lib/sliders/sliders.component.d.ts +2 -4
  74. package/lib/sliders-mob/sliders-mob.component.d.ts +2 -4
  75. package/package.json +1 -1
  76. package/sunbird-cb-collection.metadata.json +1 -1
@@ -1,8 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { ConfigurationsService, EventService } from '@sunbird-cb/utils';
2
+ import { ConfigurationsService } from '@sunbird-cb/utils';
3
3
  import { WidgetContentService } from '../../_services/widget-content.service';
4
4
  export declare class UserContentRatingComponent implements OnInit {
5
- private events;
6
5
  private contentSvc;
7
6
  private configSvc;
8
7
  contentId: string;
@@ -11,7 +10,7 @@ export declare class UserContentRatingComponent implements OnInit {
11
10
  userRating: number;
12
11
  forPreview: boolean;
13
12
  averageRatings: number;
14
- constructor(events: EventService, contentSvc: WidgetContentService, configSvc: ConfigurationsService);
13
+ constructor(contentSvc: WidgetContentService, configSvc: ConfigurationsService);
15
14
  ngOnInit(): void;
16
15
  addRating(index: number): void;
17
16
  readonly enableFeature: boolean;
@@ -51,7 +51,7 @@ export declare class SearchServService {
51
51
  }): string;
52
52
  getDisplayName(type: string): string;
53
53
  getLanguageSearchIndex(lang: string): string;
54
- raiseSearchEvent(query: string, filters: any, locale: any): void;
54
+ raiseSearchEvent(_query: string, _filters: any, _locale: any): void;
55
55
  raiseSearchResponseEvent(query: string, filters: any, totalHits: number, locale: any): void;
56
56
  translateSearchFilters(lang: string): Promise<any>;
57
57
  }
@@ -1,16 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatSnackBar } from '@angular/material';
3
- import { EventService } from '@sunbird-cb/utils';
4
3
  export interface IWidgetBtnCallDialogData {
5
4
  name: string;
6
5
  phone: string;
7
6
  }
8
7
  export declare class BtnCallDialogComponent implements OnInit {
9
8
  private snackBar;
10
- private events;
11
9
  data: IWidgetBtnCallDialogData;
12
- constructor(snackBar: MatSnackBar, events: EventService, data: IWidgetBtnCallDialogData);
10
+ constructor(snackBar: MatSnackBar, data: IWidgetBtnCallDialogData);
13
11
  ngOnInit(): void;
14
12
  copyToClipboard(successMsg: string): void;
15
- raiseTelemetry(subType: 'copyToClipboard' | 'callSME'): void;
13
+ raiseTelemetry(_subType: 'copyToClipboard' | 'callSME'): void;
16
14
  }
@@ -1,19 +1,18 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
3
3
  import { MatDialog } from '@angular/material';
4
- import { EventService, ConfigurationsService } from '@sunbird-cb/utils';
4
+ import { ConfigurationsService } from '@sunbird-cb/utils';
5
5
  export interface IWidgetBtnCall {
6
6
  userName: string;
7
7
  userPhone: string;
8
8
  replaceIconWithLabel?: boolean;
9
9
  }
10
10
  export declare class BtnCallComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<IWidgetBtnCall> {
11
- private events;
12
11
  private dialog;
13
12
  private configSvc;
14
13
  widgetData: IWidgetBtnCall;
15
14
  isCallEnabled: boolean;
16
- constructor(events: EventService, dialog: MatDialog, configSvc: ConfigurationsService);
15
+ constructor(dialog: MatDialog, configSvc: ConfigurationsService);
17
16
  ngOnInit(): void;
18
17
  showCallDialog(): void;
19
18
  raiseTelemetry(): void;
@@ -1,7 +1,6 @@
1
- import { Platform } from '@angular/cdk/platform';
2
1
  import { OnInit } from '@angular/core';
3
2
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
4
- import { ConfigurationsService, EventService } from '@sunbird-cb/utils';
3
+ import { ConfigurationsService } from '@sunbird-cb/utils';
5
4
  import { NsContent } from '../_services/widget-content.model';
6
5
  export interface IWidgetBtnDownload {
7
6
  identifier: string;
@@ -14,14 +13,12 @@ export interface IWidgetBtnDownload {
14
13
  status?: string;
15
14
  }
16
15
  export declare class BtnContentDownloadComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<IWidgetBtnDownload> {
17
- private platform;
18
- private events;
19
16
  private configSvc;
20
17
  widgetData: IWidgetBtnDownload;
21
18
  forPreview: boolean;
22
19
  id: string;
23
20
  downloadable: boolean;
24
- constructor(platform: Platform, events: EventService, configSvc: ConfigurationsService);
21
+ constructor(configSvc: ConfigurationsService);
25
22
  ngOnInit(): void;
26
23
  private readonly isContentDownloadable;
27
24
  download(event: Event): void;
@@ -32,5 +32,5 @@ export declare class BtnContentLikeComponent extends WidgetBaseComponent impleme
32
32
  ngOnDestroy(): void;
33
33
  like(event: Event): void;
34
34
  unlike(event: Event): void;
35
- raiseTelemetry(action: 'like' | 'unlike'): void;
35
+ raiseTelemetry(_action: 'like' | 'unlike'): void;
36
36
  }
@@ -1,18 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDialog, MatSnackBar } from '@angular/material';
3
3
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
4
- import { ConfigurationsService, EventService } from '@sunbird-cb/utils';
4
+ import { ConfigurationsService } from '@sunbird-cb/utils';
5
5
  import { NsContent } from '../_services/widget-content.model';
6
6
  import { WidgetContentShareService } from '../_services/widget-content-share.service';
7
7
  export declare class BtnContentMailMeComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<NsContent.IContent> {
8
- private events;
9
8
  private dialog;
10
9
  private snackBar;
11
10
  private shareSvc;
12
11
  private configSvc;
13
12
  widgetData: NsContent.IContent;
14
13
  enabled: boolean;
15
- constructor(events: EventService, dialog: MatDialog, snackBar: MatSnackBar, shareSvc: WidgetContentShareService, configSvc: ConfigurationsService);
14
+ constructor(dialog: MatDialog, snackBar: MatSnackBar, shareSvc: WidgetContentShareService, configSvc: ConfigurationsService);
16
15
  ngOnInit(): void;
17
16
  checkAccessibility(): void;
18
17
  confirm(): void;
@@ -1,6 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDialogRef, MatSnackBar } from '@angular/material';
3
- import { ConfigurationsService, EventService } from '@sunbird-cb/utils';
3
+ import { ConfigurationsService } from '@sunbird-cb/utils';
4
4
  import { NsAutoComplete } from '../../_common/user-autocomplete/user-autocomplete.model';
5
5
  import { WidgetContentShareService } from '../../_services/widget-content-share.service';
6
6
  import { NsContent } from '../../_services/widget-content.model';
@@ -8,7 +8,6 @@ export interface IContentShareData {
8
8
  content: NsContent.IContent;
9
9
  }
10
10
  export declare class BtnContentShareDialogComponent implements OnInit {
11
- private events;
12
11
  private snackBar;
13
12
  dialogRef: MatDialogRef<BtnContentShareDialogComponent>;
14
13
  data: IContentShareData;
@@ -21,11 +20,10 @@ export declare class BtnContentShareDialogComponent implements OnInit {
21
20
  message: string;
22
21
  isSocialMediaShareEnabled: boolean;
23
22
  sendStatus: 'INVALID_IDS_ALL' | 'SUCCESS' | 'INVALID_ID_SOME' | 'ANY' | 'NONE';
24
- constructor(events: EventService, snackBar: MatSnackBar, dialogRef: MatDialogRef<BtnContentShareDialogComponent>, data: IContentShareData, shareSvc: WidgetContentShareService, configSvc: ConfigurationsService);
23
+ constructor(snackBar: MatSnackBar, dialogRef: MatDialogRef<BtnContentShareDialogComponent>, data: IContentShareData, shareSvc: WidgetContentShareService, configSvc: ConfigurationsService);
25
24
  ngOnInit(): void;
26
25
  updateUsers(users: NsAutoComplete.IUserAutoComplete[]): void;
27
26
  share(txtBody: string, successToast: string): void;
28
27
  contentShare(txtBody: string, successToast: string): void;
29
28
  readonly detailUrl: string;
30
- raiseTelemetry(): void;
31
29
  }
@@ -1,7 +1,7 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
4
- import { ConfigurationsService, EventService, NsPage } from '@sunbird-cb/utils';
4
+ import { ConfigurationsService, NsPage } from '@sunbird-cb/utils';
5
5
  import { MobileAppsService } from './mobile-apps.service';
6
6
  import { CustomTourService } from '../_common/tour-guide/tour-guide.service';
7
7
  import { BtnFeatureService } from './btn-feature.service';
@@ -21,7 +21,6 @@ export declare const typeMap: {
21
21
  externalLinkButton: string;
22
22
  };
23
23
  export declare class BtnFeatureComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData<NsPage.INavLink> {
24
- private events;
25
24
  private configurationsSvc;
26
25
  private btnFeatureSvc;
27
26
  private router;
@@ -53,7 +52,7 @@ export declare class BtnFeatureComponent extends WidgetBaseComponent implements
53
52
  isPinFeatureAvailable: boolean;
54
53
  private pinnedAppsChangeSubs?;
55
54
  private navigationSubs?;
56
- constructor(events: EventService, configurationsSvc: ConfigurationsService, btnFeatureSvc: BtnFeatureService, router: Router, mobileSvc: MobileAppsService, configSvc: ConfigurationsService, tour: CustomTourService);
55
+ constructor(configurationsSvc: ConfigurationsService, btnFeatureSvc: BtnFeatureService, router: Router, mobileSvc: MobileAppsService, configSvc: ConfigurationsService, tour: CustomTourService);
57
56
  updateBadge(): void;
58
57
  ngOnInit(): void;
59
58
  ngOnDestroy(): void;
@@ -1,12 +1,11 @@
1
- import { ConfigurationsService, EventService, TFetchStatus } from '@sunbird-cb/utils';
1
+ import { ConfigurationsService, TFetchStatus } from '@sunbird-cb/utils';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { Observable, ReplaySubject } from 'rxjs';
4
4
  import { IFollowing } from './btn-follow.model';
5
5
  export declare class BtnFollowService {
6
6
  private http;
7
- private events;
8
7
  private configSvc;
9
- constructor(http: HttpClient, events: EventService, configSvc: ConfigurationsService);
8
+ constructor(http: HttpClient, configSvc: ConfigurationsService);
10
9
  fetchStatus: TFetchStatus;
11
10
  fetchingFollowing: boolean;
12
11
  followingItemList: IFollowing[];
@@ -19,5 +18,4 @@ export declare class BtnFollowService {
19
18
  follow(targetId: string, type?: string): Observable<Object>;
20
19
  unfollow(targetId: string, type?: string): Observable<Object>;
21
20
  getFollowing(type?: string): Observable<any>;
22
- raiseTelemetry(targetId: string, type: string, action: string): void;
23
21
  }
@@ -1,12 +1,11 @@
1
1
  import { OnInit, ElementRef, EventEmitter } from '@angular/core';
2
- import { TFetchStatus, EventService } from '@sunbird-cb/utils';
2
+ import { TFetchStatus } from '@sunbird-cb/utils';
3
3
  import { NsGoal } from '../btn-goals.model';
4
4
  import { BtnGoalsService } from '../btn-goals.service';
5
5
  import { MatSnackBar, MatListOption } from '@angular/material';
6
6
  export declare class BtnGoalsSelectionComponent implements OnInit {
7
7
  private snackBar;
8
8
  private goalsSvc;
9
- private eventSvc;
10
9
  contentId: string;
11
10
  contentName: string;
12
11
  contentAddMessage: ElementRef<any>;
@@ -16,8 +15,8 @@ export declare class BtnGoalsSelectionComponent implements OnInit {
16
15
  fetchGoalStatus: TFetchStatus;
17
16
  goals: NsGoal.IGoal[] | null;
18
17
  selectedGoals: Set<string>;
19
- constructor(snackBar: MatSnackBar, goalsSvc: BtnGoalsService, eventSvc: EventService);
18
+ constructor(snackBar: MatSnackBar, goalsSvc: BtnGoalsService);
20
19
  ngOnInit(): void;
21
20
  selectionChange(option: MatListOption): void;
22
- raiseTelemetry(action: 'add' | 'remove', goalId: string, contentId: string): void;
21
+ raiseTelemetry(_action: 'add' | 'remove', _goalId: string, _contentId: string): void;
23
22
  }
@@ -2,16 +2,14 @@ import { OnInit } from '@angular/core';
2
2
  import { MatSnackBar, MatDialogRef } from '@angular/material';
3
3
  import { WidgetContentShareService } from '../../_services/widget-content-share.service';
4
4
  import { IBtnMailUser } from '../btn-mail-user.component';
5
- import { EventService } from '@sunbird-cb/utils';
6
5
  export declare class BtnMailUserDialogComponent implements OnInit {
7
6
  snackBar: MatSnackBar;
8
- private events;
9
7
  private shareSvc;
10
8
  dialogRef: MatDialogRef<BtnMailUserDialogComponent>;
11
9
  data: IBtnMailUser;
12
10
  mailSendInProgress: boolean;
13
11
  sendStatus: 'SUCCESS' | 'INVALID_ID' | undefined;
14
- constructor(snackBar: MatSnackBar, events: EventService, shareSvc: WidgetContentShareService, dialogRef: MatDialogRef<BtnMailUserDialogComponent>, data: IBtnMailUser);
12
+ constructor(snackBar: MatSnackBar, shareSvc: WidgetContentShareService, dialogRef: MatDialogRef<BtnMailUserDialogComponent>, data: IBtnMailUser);
15
13
  ngOnInit(): void;
16
14
  send(txtBody: string, successMsg: string, errorToast: string, invalidIdToast: string): void;
17
15
  raiseTelemetry(): void;
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
3
3
  import { NsContent } from '../_services/widget-content.model';
4
4
  import { MatDialog } from '@angular/material';
5
- import { EventService, ConfigurationsService } from '@sunbird-cb/utils';
5
+ import { ConfigurationsService } from '@sunbird-cb/utils';
6
6
  export interface IBtnMailUser {
7
7
  content: NsContent.IContent;
8
8
  emails: string[];
@@ -10,12 +10,11 @@ export interface IBtnMailUser {
10
10
  labelled?: boolean;
11
11
  }
12
12
  export declare class BtnMailUserComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<IBtnMailUser> {
13
- private events;
14
13
  private dialog;
15
14
  private configSvc;
16
15
  widgetData: IBtnMailUser;
17
16
  isShareEnabled: boolean;
18
- constructor(events: EventService, dialog: MatDialog, configSvc: ConfigurationsService);
17
+ constructor(dialog: MatDialog, configSvc: ConfigurationsService);
19
18
  ngOnInit(): void;
20
19
  openQueryMailDialog(event: Event): void;
21
20
  raiseTelemetry(): void;
@@ -1,13 +1,12 @@
1
1
  import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { MatListOption, MatSnackBar } from '@angular/material';
4
- import { EventService, TFetchStatus } from '@sunbird-cb/utils';
4
+ import { TFetchStatus } from '@sunbird-cb/utils';
5
5
  import { NsPlaylist } from '../btn-playlist.model';
6
6
  import { BtnPlaylistService } from '../btn-playlist.service';
7
7
  export declare class BtnPlaylistSelectionComponent implements OnInit {
8
8
  private snackBar;
9
9
  private playlistSvc;
10
- private eventSvc;
11
10
  contentAddMessage: ElementRef<any>;
12
11
  contentRemoveMessage: ElementRef<any>;
13
12
  playlistCreate: ElementRef<any>;
@@ -19,10 +18,10 @@ export declare class BtnPlaylistSelectionComponent implements OnInit {
19
18
  createPlaylistMode: boolean;
20
19
  selectedPlaylists: Set<string>;
21
20
  playlistNameFormControl: FormControl;
22
- constructor(snackBar: MatSnackBar, playlistSvc: BtnPlaylistService, eventSvc: EventService);
21
+ constructor(snackBar: MatSnackBar, playlistSvc: BtnPlaylistService);
23
22
  ngOnInit(): void;
24
23
  selectionChange(option: MatListOption): void;
25
24
  isDoneDisabled(): boolean;
26
25
  createPlaylist(playlistName: string, successToast: string, errorToast: string): void;
27
- raiseTelemetry(action: 'add' | 'remove', playlistId: string, contentId: string): void;
26
+ raiseTelemetry(_action: 'add' | 'remove', _playlistId: string, _contentId: string): void;
28
27
  }
@@ -1,12 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
3
3
  import { IWidgetCardBreadcrumb, IBreadcrumbPath } from './card-breadcrumb.model';
4
- import { EventService } from '@sunbird-cb/utils';
5
4
  export declare class CardBreadcrumbComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<IWidgetCardBreadcrumb> {
6
- private events;
7
5
  widgetData: IWidgetCardBreadcrumb;
8
- constructor(events: EventService);
6
+ constructor();
9
7
  ngOnInit(): void;
10
8
  encodeUrl(clickUrl: string): string | null;
11
- raiseTelemetry(clickedItem: IBreadcrumbPath): void;
9
+ raiseTelemetry(_clickedItem: IBreadcrumbPath): void;
12
10
  }
@@ -1,13 +1,12 @@
1
1
  import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatSnackBar } from '@angular/material';
3
3
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
4
- import { ConfigurationsService, EventService, UtilityService, NsInstanceConfig } from '@sunbird-cb/utils';
4
+ import { ConfigurationsService, UtilityService, NsInstanceConfig } from '@sunbird-cb/utils';
5
5
  import { Subscription } from 'rxjs';
6
6
  import { NsGoal } from '../btn-goals/btn-goals.model';
7
7
  import { NsPlaylist } from '../btn-playlist/btn-playlist.model';
8
8
  import { NsCardContent } from './card-content.model';
9
9
  export declare class CardContentComponent extends WidgetBaseComponent implements OnInit, OnDestroy, AfterViewInit, NsWidgetResolver.IWidgetData<NsCardContent.ICard> {
10
- private events;
11
10
  private configSvc;
12
11
  private utilitySvc;
13
12
  private snackBar;
@@ -24,7 +23,7 @@ export declare class CardContentComponent extends WidgetBaseComponent implements
24
23
  prefChangeSubscription: Subscription | null;
25
24
  sourceLogos: NsInstanceConfig.ISourceLogo[] | undefined;
26
25
  isIntranetAllowedSettings: boolean;
27
- constructor(events: EventService, configSvc: ConfigurationsService, utilitySvc: UtilityService, snackBar: MatSnackBar);
26
+ constructor(configSvc: ConfigurationsService, utilitySvc: UtilityService, snackBar: MatSnackBar);
28
27
  ngOnInit(): void;
29
28
  checkContentTypeCriteria(): boolean;
30
29
  checkMimeTypeCriteria(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
- import { ConfigurationsService, EventService, UtilityService } from '@sunbird-cb/utils';
3
+ import { ConfigurationsService, UtilityService } from '@sunbird-cb/utils';
4
4
  import { IKBContentCard } from './card-knowledge.model';
5
5
  interface IKbCardData {
6
6
  content: IKBContentCard;
@@ -10,7 +10,6 @@ interface IKbCardData {
10
10
  };
11
11
  }
12
12
  export declare class CardKnowledgeComponent implements OnInit, OnDestroy {
13
- private events;
14
13
  private configSvc;
15
14
  private utilitySvc;
16
15
  widgetData: IKbCardData;
@@ -19,7 +18,7 @@ export declare class CardKnowledgeComponent implements OnInit, OnDestroy {
19
18
  defaultThumbnail: string | undefined;
20
19
  prefChangeSubscription: Subscription | null;
21
20
  isIntranetAllowedSettings: boolean;
22
- constructor(events: EventService, configSvc: ConfigurationsService, utilitySvc: UtilityService);
21
+ constructor(configSvc: ConfigurationsService, utilitySvc: UtilityService);
23
22
  ngOnInit(): void;
24
23
  ngOnDestroy(): void;
25
24
  follow(id: string): void;
@@ -51,7 +51,7 @@ export declare class PlayerPdfComponent extends WidgetBaseComponent implements O
51
51
  ngAfterViewInit(): void;
52
52
  ngOnDestroy(): void;
53
53
  loadPageNum(pageNum: number): void;
54
- raiseTelemetry(action: string): void;
54
+ raiseTelemetry(_action: string): void;
55
55
  saveContinueLearning(id: string): void;
56
56
  fireRealTimeProgress(id: string): void;
57
57
  private render;
@@ -2,18 +2,16 @@ import { OnInit } from '@angular/core';
2
2
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
3
3
  import { ICarousel } from './sliders.model';
4
4
  import { Subscription } from 'rxjs';
5
- import { EventService } from '@sunbird-cb/utils';
6
5
  export declare class SlidersComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<ICarousel[]> {
7
- private events;
8
6
  widgetData: ICarousel[];
9
7
  id: string;
10
8
  currentIndex: number;
11
9
  slideInterval: Subscription | null;
12
- constructor(events: EventService);
10
+ constructor();
13
11
  ngOnInit(): void;
14
12
  reInitiateSlideInterval(): void;
15
13
  slideTo(index: number): void;
16
14
  readonly isOpenInNewTab: boolean;
17
15
  openInNewTab(): void;
18
- raiseTelemetry(bannerUrl: string | undefined): void;
16
+ raiseTelemetry(_bannerUrl: string | undefined): void;
19
17
  }
@@ -1,18 +1,16 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
3
3
  import { Subscription } from 'rxjs';
4
- import { EventService } from '@sunbird-cb/utils';
5
4
  import { ICarousel } from '../sliders/sliders.model';
6
5
  export declare class SlidersMobComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData<ICarousel[]> {
7
- private events;
8
6
  widgetData: ICarousel[];
9
7
  currentIndex: number;
10
8
  slideInterval: Subscription | null;
11
- constructor(events: EventService);
9
+ constructor();
12
10
  ngOnInit(): void;
13
11
  reInitiateSlideInterval(): void;
14
12
  slideTo(index: number): void;
15
13
  readonly isOpenInNewTab: boolean;
16
14
  openInNewTab(): void;
17
- raiseTelemetry(bannerUrl: string | undefined): void;
15
+ raiseTelemetry(_bannerUrl: string | undefined): void;
18
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunbird-cb/collection",
3
- "version": "1.0.7",
3
+ "version": "1.0.10",
4
4
  "main": "bundles/sunbird-cb-collection.umd.js",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~8.2.1",