@tuki-io/tuki-widgets 0.0.151 → 0.0.153

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuki-io/tuki-widgets",
3
- "version": "0.0.151",
3
+ "version": "0.0.153",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
@@ -5,6 +5,7 @@ export declare class UserInfoComponent {
5
5
  email: string;
6
6
  position: string;
7
7
  cucmid: number;
8
+ readonly ON_PREM_ID = 2542;
8
9
  get webexUUID(): string | null;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<UserInfoComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<UserInfoComponent, "app-user-info", never, { "name": "name"; "active": "active"; "email": "email"; "position": "position"; "cucmid": "cucmid"; }, {}, never, never, false, never>;
@@ -45,6 +45,12 @@ export declare const CUSTOMER_DESTINATION: {
45
45
  MANAGE_ONLY: string;
46
46
  MICROSOFT: string;
47
47
  };
48
+ export declare const USER_TYPES_MAP: {
49
+ CUCM: string;
50
+ WEBEX: string;
51
+ ONPREM: string;
52
+ };
53
+ export type USER_TYPES_TYPE = keyof typeof USER_TYPES_MAP | null;
48
54
  export declare const CUSTOMER_DESTINATION_MIGTATION_TYPE: {
49
55
  MULTI_TENANT_ONLY: string;
50
56
  DEDICATED_INSTANCE_ONLY: string;
@@ -53,3 +59,4 @@ export declare const CUSTOMER_DESTINATION_MIGTATION_TYPE: {
53
59
  MANAGE_ONLY: string;
54
60
  MICROSOFT: string;
55
61
  };
62
+ export declare const ON_PREM_ID = 2542;
@@ -1,10 +1,13 @@
1
1
  import { EventEmitter } from "@angular/core";
2
+ import { USER_TYPES_TYPE } from "../../app.constants";
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class TableToolbarComponent {
4
5
  totalUsersCount: number;
5
6
  readonly searchChange: EventEmitter<string>;
7
+ readonly searchByType: EventEmitter<USER_TYPES_TYPE>;
6
8
  private timerId;
7
9
  onSearchInputChange(event: Event): void;
10
+ onTypeChange(event: Event): void;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<TableToolbarComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "tk-users-table-toolbar", never, { "totalUsersCount": "totalUsersCount"; }, { "searchChange": "searchChange"; }, never, never, false, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "tk-users-table-toolbar", never, { "totalUsersCount": "totalUsersCount"; }, { "searchChange": "searchChange"; "searchByType": "searchByType"; }, never, never, false, never>;
10
13
  }
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { Observable, Subject } from 'rxjs';
3
3
  import { SimplifiedUser } from '../classes/simlified-user';
4
- import { CUSTOMER_DESTINATION } from '../app.constants';
4
+ import { CUSTOMER_DESTINATION, USER_TYPES_TYPE } from '../app.constants';
5
5
  import { APIService } from './api.service';
6
6
  import { ListUser } from '../classes/user-list';
7
7
  import { ApiWebexService } from './api-webex.service';
@@ -17,6 +17,7 @@ export declare class UserService implements OnInit {
17
17
  originUser: SimplifiedUser;
18
18
  moveUserPending: boolean;
19
19
  userMoved$: Subject<any>;
20
+ userTypeSelected$: Subject<USER_TYPES_TYPE>;
20
21
  constructor(apiService: APIService, apiWebexService: ApiWebexService);
21
22
  ngOnInit(): void;
22
23
  fetchUserToken(siteId: number, userId: string): any;
@@ -8,6 +8,7 @@ import { ListUser } from './classes/user-list';
8
8
  import { MatTableDataSource } from '@angular/material/table';
9
9
  import { PageEvent } from '@angular/material/paginator';
10
10
  import { ApiWebexService } from './services/api-webex.service';
11
+ import { USER_TYPES_TYPE } from './app.constants';
11
12
  import { MatDialog } from '@angular/material/dialog';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class UsersListComponent implements OnInit, OnDestroy {
@@ -34,6 +35,7 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
34
35
  showMoveUserWizard: boolean;
35
36
  moveUserPending: boolean;
36
37
  private subscriptions;
38
+ readonly ON_PREM_ID = 2542;
37
39
  totalUsersCount: number;
38
40
  private readonly destroy$;
39
41
  get form(): FormGroup;
@@ -57,7 +59,10 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
57
59
  private getMigratedUsers;
58
60
  onMoveUser(user: ListUser, index: number, type: string, title: string): void;
59
61
  runMoveUserToMT(): void;
60
- searchUsers(token: string): void;
62
+ searchUsers(token: string, type?: USER_TYPES_TYPE): void;
63
+ searchByType(userType: USER_TYPES_TYPE): void;
64
+ private filterByToken;
65
+ private filterByType;
61
66
  onFirmwareUpgradeClicked(user: ListUser): void;
62
67
  onRevertClicked(user: ListUser): void;
63
68
  private setUserPendingStatus;