@sunbird-cb/collection 1.0.7 → 1.0.8
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-collection.umd.js +40 -4
- package/bundles/sunbird-cb-collection.umd.js.map +1 -1
- package/bundles/sunbird-cb-collection.umd.min.js +1 -1
- package/bundles/sunbird-cb-collection.umd.min.js.map +1 -1
- package/esm2015/lib/left-menu/left-menu.component.js +16 -6
- package/esm2015/lib/left-menu/left-menu.module.js +3 -1
- package/esm2015/lib/left-menu/left-menu.service.js +27 -0
- package/esm2015/public-api.js +2 -1
- package/esm2015/sunbird-cb-collection.js +2 -2
- package/esm5/lib/left-menu/left-menu.component.js +16 -6
- package/esm5/lib/left-menu/left-menu.module.js +3 -1
- package/esm5/lib/left-menu/left-menu.service.js +29 -0
- package/esm5/public-api.js +2 -1
- package/esm5/sunbird-cb-collection.js +2 -2
- package/fesm2015/sunbird-cb-collection.js +39 -5
- package/fesm2015/sunbird-cb-collection.js.map +1 -1
- package/fesm5/sunbird-cb-collection.js +40 -5
- package/fesm5/sunbird-cb-collection.js.map +1 -1
- package/lib/left-menu/left-menu.component.d.ts +6 -2
- package/lib/left-menu/left-menu.service.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-collection.metadata.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
}
|
package/package.json
CHANGED
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';
|