@sunbird-cb/collection 1.0.6 → 1.0.9

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 (32) hide show
  1. package/bundles/sunbird-cb-collection.umd.js +58 -8
  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/avatar-photo/avatar-photo.component.js +15 -3
  6. package/esm2015/lib/_common/avatar-photo/avatar-photo.module.js +1 -1
  7. package/esm2015/lib/btn-profile/btn-profile.component.js +4 -2
  8. package/esm2015/lib/left-menu/base64.json +1 -1
  9. package/esm2015/lib/left-menu/left-menu.component.js +16 -6
  10. package/esm2015/lib/left-menu/left-menu.module.js +3 -1
  11. package/esm2015/lib/left-menu/left-menu.service.js +27 -0
  12. package/esm2015/public-api.js +2 -1
  13. package/esm2015/sunbird-cb-collection.js +2 -2
  14. package/esm5/lib/_common/avatar-photo/avatar-photo.component.js +15 -3
  15. package/esm5/lib/_common/avatar-photo/avatar-photo.module.js +1 -1
  16. package/esm5/lib/btn-profile/btn-profile.component.js +4 -2
  17. package/esm5/lib/left-menu/base64.json +1 -1
  18. package/esm5/lib/left-menu/left-menu.component.js +16 -6
  19. package/esm5/lib/left-menu/left-menu.module.js +3 -1
  20. package/esm5/lib/left-menu/left-menu.service.js +29 -0
  21. package/esm5/public-api.js +2 -1
  22. package/esm5/sunbird-cb-collection.js +2 -2
  23. package/fesm2015/sunbird-cb-collection.js +57 -9
  24. package/fesm2015/sunbird-cb-collection.js.map +1 -1
  25. package/fesm5/sunbird-cb-collection.js +58 -9
  26. package/fesm5/sunbird-cb-collection.js.map +1 -1
  27. package/lib/_common/avatar-photo/avatar-photo.component.d.ts +1 -0
  28. package/lib/left-menu/left-menu.component.d.ts +6 -2
  29. package/lib/left-menu/left-menu.service.d.ts +7 -0
  30. package/package.json +1 -1
  31. package/public-api.d.ts +1 -0
  32. package/sunbird-cb-collection.metadata.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  export declare class AvatarPhotoComponent implements OnInit {
3
+ datalen: any;
3
4
  photoUrl: string;
4
5
  name: string;
5
6
  size: string;
@@ -1,12 +1,15 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
1
+ import { LeftMenuService } from './left-menu.service';
2
+ import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
3
  import { ActivatedRoute, Router } from '@angular/router';
3
4
  import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver';
4
5
  import { ILeftMenu, IMenu } from './left-menu.model';
5
6
  export declare class LeftMenuComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData<ILeftMenu> {
6
7
  private activatedRoute;
7
8
  private router;
9
+ private leftMenuService;
8
10
  widgetData: ILeftMenu;
9
- constructor(activatedRoute: ActivatedRoute, router: Router);
11
+ clickedTab: EventEmitter<any>;
12
+ constructor(activatedRoute: ActivatedRoute, router: Router, leftMenuService: LeftMenuService);
10
13
  ngOnDestroy(): void;
11
14
  ngOnInit(): void;
12
15
  readonly defaultImage: string;
@@ -15,4 +18,5 @@ export declare class LeftMenuComponent extends WidgetBaseComponent implements On
15
18
  isLinkActive2(url?: string): boolean;
16
19
  getLink(tab: IMenu): string | undefined;
17
20
  isAllowed(tab: IMenu): boolean;
21
+ menuClick(tab: any): void;
18
22
  }
@@ -0,0 +1,7 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class LeftMenuService {
3
+ private subject;
4
+ sendMessage(message: string): void;
5
+ clearMessages(): void;
6
+ onMessage(): Observable<any>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunbird-cb/collection",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "main": "bundles/sunbird-cb-collection.umd.js",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~8.2.1",
package/public-api.d.ts CHANGED
@@ -170,6 +170,7 @@ export * from './lib/_services/widget-search.model';
170
170
  export * from './lib/graph-general/graph-general.service';
171
171
  export * from './lib/left-menu/left-menu.model';
172
172
  export * from './lib/left-menu/left-menu.module';
173
+ export * from './lib/left-menu/left-menu.service';
173
174
  export * from './lib/left-menu-without-logo/left-menu-without-logo.module';
174
175
  export * from './lib/left-menu-without-logo/left-menu-without-logo.model';
175
176
  export * from './lib/group-checkbox/group-checkbox.module';