@tuki-io/tuki-widgets 0.0.219-dev.39 → 0.0.219-dev.41

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 (26) hide show
  1. package/esm2020/locations/src/locations.component.mjs +2 -2
  2. package/esm2020/workspaces/src/app.constants.mjs +10 -2
  3. package/esm2020/workspaces/src/components/workspace-confirm-dialog/workspace-confirm-dialog.component.mjs +32 -0
  4. package/esm2020/workspaces/src/components/workspaces-table/workspaces-table.component.mjs +38 -10
  5. package/esm2020/workspaces/src/material.module.mjs +12 -5
  6. package/esm2020/workspaces/src/services/api-webex.service.mjs +14 -0
  7. package/esm2020/workspaces/src/services/workspaces-migration.service.mjs +59 -0
  8. package/esm2020/workspaces/src/workspaces.component.mjs +189 -18
  9. package/esm2020/workspaces/src/workspaces.module.mjs +4 -1
  10. package/fesm2015/tuki-io-tuki-widgets-locations.mjs +2 -2
  11. package/fesm2015/tuki-io-tuki-widgets-locations.mjs.map +1 -1
  12. package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs +338 -31
  13. package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs.map +1 -1
  14. package/fesm2020/tuki-io-tuki-widgets-locations.mjs +2 -2
  15. package/fesm2020/tuki-io-tuki-widgets-locations.mjs.map +1 -1
  16. package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs +335 -31
  17. package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/workspaces/src/app.constants.d.ts +8 -0
  20. package/workspaces/src/components/workspace-confirm-dialog/workspace-confirm-dialog.component.d.ts +20 -0
  21. package/workspaces/src/components/workspaces-table/workspaces-table.component.d.ts +10 -3
  22. package/workspaces/src/material.module.d.ts +2 -1
  23. package/workspaces/src/services/api-webex.service.d.ts +6 -0
  24. package/workspaces/src/services/workspaces-migration.service.d.ts +18 -0
  25. package/workspaces/src/workspaces.component.d.ts +20 -6
  26. package/workspaces/src/workspaces.module.d.ts +7 -6
@@ -1,6 +1,9 @@
1
1
  import { Location } from '@angular/common';
2
- import { EventEmitter, OnInit } from '@angular/core';
2
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
3
+ import { MatDialog } from '@angular/material/dialog';
3
4
  import { APIService } from './services/api.service';
5
+ import { ApiWebexService } from './services/api-webex.service';
6
+ import { WorkspacesMigrationService } from './services/workspaces-migration.service';
4
7
  import { WorkspacesService } from './services/workspaces.service';
5
8
  import { Workspace } from './types/workspace';
6
9
  import * as i0 from "@angular/core";
@@ -11,17 +14,18 @@ interface WorkspacesTabDefinition {
11
14
  label: string;
12
15
  icon: string;
13
16
  }
14
- export declare class WorkspacesComponent implements OnInit {
17
+ export declare class WorkspacesComponent implements OnInit, OnDestroy {
15
18
  private apiService;
19
+ private apiWebexService;
16
20
  private workspacesService;
21
+ private migrationService;
22
+ private dialog;
17
23
  private location;
18
24
  host: string;
19
25
  token: string;
20
26
  customerId: string;
21
27
  addWorkspace: EventEmitter<void>;
22
28
  openWorkspace: EventEmitter<string>;
23
- editWorkspace: EventEmitter<string>;
24
- deleteWorkspace: EventEmitter<string>;
25
29
  addDevice: EventEmitter<string>;
26
30
  readonly tabs: WorkspacesTabDefinition[];
27
31
  activeTab: WorkspacesTab;
@@ -35,8 +39,11 @@ export declare class WorkspacesComponent implements OnInit {
35
39
  searchTerm: string;
36
40
  typeFilter: string;
37
41
  locationFilter: string;
38
- constructor(apiService: APIService, workspacesService: WorkspacesService, location: Location);
42
+ pendingWorkspaceIds: Set<string>;
43
+ private readonly subscriptions;
44
+ constructor(apiService: APIService, apiWebexService: ApiWebexService, workspacesService: WorkspacesService, migrationService: WorkspacesMigrationService, dialog: MatDialog, location: Location);
39
45
  ngOnInit(): void;
46
+ ngOnDestroy(): void;
40
47
  get typeOptions(): string[];
41
48
  get locationOptions(): string[];
42
49
  get filteredWorkspaces(): Workspace[];
@@ -50,8 +57,15 @@ export declare class WorkspacesComponent implements OnInit {
50
57
  pageIndex: number;
51
58
  pageSize: number;
52
59
  }): void;
60
+ onMoveToMT(workspace: Workspace): void;
61
+ onEnableWebexCalling(workspace: Workspace): void;
62
+ onMigrateToUCM(workspace: Workspace): void;
63
+ private pollMigrationFormStatus;
64
+ private buildFirmwareDeviceMap;
65
+ private normalizeMigrationStatus;
66
+ private isTerminalMigrationStatus;
53
67
  private fetchWorkspaces;
54
68
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkspacesComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkspacesComponent, "tk-workspaces", never, { "host": "host"; "token": "token"; "customerId": "customerId"; }, { "addWorkspace": "addWorkspace"; "openWorkspace": "openWorkspace"; "editWorkspace": "editWorkspace"; "deleteWorkspace": "deleteWorkspace"; "addDevice": "addDevice"; }, never, never, false, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkspacesComponent, "tk-workspaces", never, { "host": "host"; "token": "token"; "customerId": "customerId"; }, { "addWorkspace": "addWorkspace"; "openWorkspace": "openWorkspace"; "addDevice": "addDevice"; }, never, never, false, never>;
56
70
  }
57
71
  export {};
@@ -3,13 +3,14 @@ import * as i1 from "./workspaces.component";
3
3
  import * as i2 from "./components/workspaces-filters/workspaces-filters.component";
4
4
  import * as i3 from "./components/workspaces-table/workspaces-table.component";
5
5
  import * as i4 from "./components/workspace-detail/workspace-detail.component";
6
- import * as i5 from "./utils/app-loader/app-loader";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/common/http";
9
- import * as i8 from "@angular/forms";
10
- import * as i9 from "./material.module";
6
+ import * as i5 from "./components/workspace-confirm-dialog/workspace-confirm-dialog.component";
7
+ import * as i6 from "./utils/app-loader/app-loader";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@angular/common/http";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "./material.module";
11
12
  export declare class WorkspacesModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkspacesModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<WorkspacesModule, [typeof i1.WorkspacesComponent, typeof i2.WorkspacesFiltersComponent, typeof i3.WorkspacesTableComponent, typeof i4.WorkspaceDetailComponent, typeof i5.AppLoaderComponent], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.FormsModule, typeof i9.MaterialModule], [typeof i1.WorkspacesComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WorkspacesModule, [typeof i1.WorkspacesComponent, typeof i2.WorkspacesFiltersComponent, typeof i3.WorkspacesTableComponent, typeof i4.WorkspaceDetailComponent, typeof i5.WorkspaceConfirmDialogComponent, typeof i6.AppLoaderComponent], [typeof i7.CommonModule, typeof i8.HttpClientModule, typeof i9.FormsModule, typeof i10.MaterialModule], [typeof i1.WorkspacesComponent]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<WorkspacesModule>;
15
16
  }