@sunbird-cb/collection 1.0.10 → 1.0.13

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 (44) hide show
  1. package/bundles/sunbird-cb-collection.umd.js +72 -35
  2. package/bundles/sunbird-cb-collection.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-collection.umd.min.js +1 -1
  4. package/bundles/sunbird-cb-collection.umd.min.js.map +1 -1
  5. package/esm2015/lib/btn-page-back-admin/btn-page-back.component.js +3 -3
  6. package/esm2015/lib/btn-profile/btn-profile.component.js +2 -7
  7. package/esm2015/lib/card-network/card-network.service.js +4 -4
  8. package/esm2015/lib/left-menu/left-menu.component.js +16 -6
  9. package/esm2015/lib/left-menu/left-menu.module.js +3 -1
  10. package/esm2015/lib/left-menu/left-menu.service.js +27 -0
  11. package/esm2015/lib/player-video/player-video.component.js +2 -2
  12. package/esm2015/lib/ui-admin-table/create-department.services.js +66 -0
  13. package/esm2015/lib/ui-admin-table/user-list/ui-admin-user-table.component.js +8 -8
  14. package/esm2015/lib/ui-org-table/user-list/org-user-table.component.js +8 -2
  15. package/esm2015/public-api.js +2 -1
  16. package/esm2015/sunbird-cb-collection.js +3 -3
  17. package/esm5/lib/btn-page-back-admin/btn-page-back.component.js +3 -3
  18. package/esm5/lib/btn-profile/btn-profile.component.js +2 -7
  19. package/esm5/lib/card-network/card-network.service.js +4 -4
  20. package/esm5/lib/left-menu/left-menu.component.js +16 -6
  21. package/esm5/lib/left-menu/left-menu.module.js +3 -1
  22. package/esm5/lib/left-menu/left-menu.service.js +29 -0
  23. package/esm5/lib/player-video/player-video.component.js +2 -2
  24. package/esm5/lib/ui-admin-table/create-department.services.js +68 -0
  25. package/esm5/lib/ui-admin-table/user-list/ui-admin-user-table.component.js +8 -8
  26. package/esm5/lib/ui-org-table/user-list/org-user-table.component.js +8 -2
  27. package/esm5/public-api.js +2 -1
  28. package/esm5/sunbird-cb-collection.js +3 -3
  29. package/fesm2015/sunbird-cb-collection.js +64 -29
  30. package/fesm2015/sunbird-cb-collection.js.map +1 -1
  31. package/fesm5/sunbird-cb-collection.js +71 -35
  32. package/fesm5/sunbird-cb-collection.js.map +1 -1
  33. package/lib/card-network/card-network.service.d.ts +1 -1
  34. package/lib/left-menu/left-menu.component.d.ts +6 -2
  35. package/lib/left-menu/left-menu.service.d.ts +7 -0
  36. package/lib/ui-admin-table/{create-mdo.services.d.ts → create-department.services.d.ts} +1 -1
  37. package/lib/ui-admin-table/user-list/ui-admin-user-table.component.d.ts +3 -3
  38. package/lib/ui-org-table/user-list/org-user-table.component.d.ts +2 -0
  39. package/package.json +1 -1
  40. package/public-api.d.ts +1 -0
  41. package/sunbird-cb-collection.d.ts +1 -1
  42. package/sunbird-cb-collection.metadata.json +1 -1
  43. package/esm2015/lib/ui-admin-table/create-mdo.services.js +0 -66
  44. package/esm5/lib/ui-admin-table/create-mdo.services.js +0 -68
@@ -6,5 +6,5 @@ export declare class CardNetWorkService {
6
6
  constructor(http: HttpClient, configSvc: ConfigurationsService);
7
7
  fetchLatestUserInfo(data: any): import("rxjs").Observable<any>;
8
8
  fetchSearchUserInfo(searchKey: string): import("rxjs").Observable<any>;
9
- fetchMyMdoUsers(): void;
9
+ fetchMyDepartmentUsers(): void;
10
10
  }
@@ -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
+ }
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- export declare class CreateMDOService {
3
+ export declare class CreateDepartmentService {
4
4
  private http;
5
5
  constructor(http: HttpClient);
6
6
  getAllSubDepartments(deptName: string): Observable<any>;
@@ -4,12 +4,12 @@ import { MatDialog, MatPaginator, MatSnackBar } from '@angular/material';
4
4
  import { MatSort } from '@angular/material/sort';
5
5
  import { ITableData, IColums } from '../interface/interfaces';
6
6
  import { Router, ActivatedRoute } from '@angular/router';
7
- import { CreateMDOService } from '../create-mdo.services';
7
+ import { CreateDepartmentService } from '../create-department.services';
8
8
  export declare class UIAdminUserTableComponent implements OnInit, AfterViewInit, OnChanges {
9
9
  private router;
10
10
  dialog: MatDialog;
11
11
  private activatedRoute;
12
- private createMDOService;
12
+ private departmentService;
13
13
  private snackBar;
14
14
  tableData: ITableData | undefined;
15
15
  data?: [];
@@ -34,7 +34,7 @@ export declare class UIAdminUserTableComponent implements OnInit, AfterViewInit,
34
34
  paginator: MatPaginator;
35
35
  sort?: MatSort;
36
36
  selection: SelectionModel<any>;
37
- constructor(router: Router, dialog: MatDialog, activatedRoute: ActivatedRoute, createMDOService: CreateMDOService, snackBar: MatSnackBar);
37
+ constructor(router: Router, dialog: MatDialog, activatedRoute: ActivatedRoute, departmentService: CreateDepartmentService, snackBar: MatSnackBar);
38
38
  ngOnInit(): void;
39
39
  ngOnChanges(data: SimpleChanges): void;
40
40
  ngAfterViewInit(): void;
@@ -12,6 +12,7 @@ export declare class OrgUserTableComponent implements OnInit, AfterViewInit, OnC
12
12
  actionsClick?: EventEmitter<any>;
13
13
  eOnRowClick: EventEmitter<any>;
14
14
  eOnCreateClick: EventEmitter<any>;
15
+ searchByEnterKey: EventEmitter<any>;
15
16
  bodyHeight: number;
16
17
  displayedColumns: IColums[] | undefined;
17
18
  dataSource: any;
@@ -35,4 +36,5 @@ export declare class OrgUserTableComponent implements OnInit, AfterViewInit, OnC
35
36
  checkboxLabel(row?: any): string;
36
37
  onRowClick(e: any): void;
37
38
  onCreateClick(): void;
39
+ onSearchEnter(event: any): void;
38
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunbird-cb/collection",
3
- "version": "1.0.10",
3
+ "version": "1.0.13",
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';
@@ -191,7 +191,7 @@ export { TreeCatalogMenuComponent as ɵg } from './lib/tree-catalog/tree-catalog
191
191
  export { TreeCatalogRoutePipe as ɵh } from './lib/tree-catalog/tree-catalog-route.pipe';
192
192
  export { TreeCatalogComponent as ɵf } from './lib/tree-catalog/tree-catalog.component';
193
193
  export { TreeComponent as ɵi } from './lib/tree/tree.component';
194
- export { CreateMDOService as ɵgw } from './lib/ui-admin-table/create-mdo.services';
194
+ export { CreateDepartmentService as ɵgw } from './lib/ui-admin-table/create-department.services';
195
195
  export { UIDirectoryTableComponent as ɵgx } from './lib/ui-admin-table/directory-list/directory-table.component';
196
196
  export { UIUserTablePopUpComponent as ɵgz } from './lib/ui-admin-table/user-list-popup/ui-user-table-pop-up.component';
197
197
  export { UserViewPopUpService as ɵha } from './lib/ui-admin-table/user-list-popup/ui-user-table-pop-up.services';