@tuki-io/tuki-widgets 0.0.219-dev.23 → 0.0.219-dev.25
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/esm2020/meetings/public-api.mjs +8 -0
- package/esm2020/meetings/src/components/live-meetings/live-meetings.component.mjs +61 -0
- package/esm2020/meetings/src/components/meeting-spaces/meeting-spaces.component.mjs +40 -0
- package/esm2020/meetings/src/material.module.mjs +62 -0
- package/esm2020/meetings/src/meetings.component.mjs +35 -0
- package/esm2020/meetings/src/meetings.module.mjs +42 -0
- package/esm2020/meetings/src/services/api.service.mjs +67 -0
- package/esm2020/meetings/src/services/live-meetings.service.mjs +85 -0
- package/esm2020/meetings/src/services/meeting-spaces.service.mjs +29 -0
- package/esm2020/meetings/src/types/live-meeting.mjs +2 -0
- package/esm2020/meetings/src/types/meeting-space.mjs +2 -0
- package/esm2020/meetings/tuki-io-tuki-widgets-meetings.mjs +5 -0
- package/esm2020/user-manage/src/services/dcp-api.service.mjs +79 -0
- package/esm2020/user-manage/src/services/user.service.mjs +9 -7
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +45 -19
- package/esm2020/user-manage/src/user-manage.module.mjs +4 -1
- package/fesm2015/tuki-io-tuki-widgets-meetings.mjs +405 -0
- package/fesm2015/tuki-io-tuki-widgets-meetings.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +124 -21
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-meetings.mjs +405 -0
- package/fesm2020/tuki-io-tuki-widgets-meetings.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +123 -21
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/meetings/index.d.ts +5 -0
- package/meetings/public-api.d.ts +2 -0
- package/meetings/src/components/live-meetings/live-meetings.component.d.ts +27 -0
- package/meetings/src/components/meeting-spaces/meeting-spaces.component.d.ts +16 -0
- package/meetings/src/material.module.d.ts +13 -0
- package/meetings/src/meetings.component.d.ts +16 -0
- package/meetings/src/meetings.module.d.ts +13 -0
- package/meetings/src/services/api.service.d.ts +18 -0
- package/meetings/src/services/live-meetings.service.d.ts +8 -0
- package/meetings/src/services/meeting-spaces.service.d.ts +8 -0
- package/meetings/src/types/live-meeting.d.ts +33 -0
- package/meetings/src/types/meeting-space.d.ts +8 -0
- package/package.json +9 -1
- package/user-manage/src/services/dcp-api.service.d.ts +21 -0
- package/user-manage/src/services/user.service.d.ts +3 -1
- package/user-manage/src/user-manage-widget.component.d.ts +7 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { LiveMeetingsService } from '../../services/live-meetings.service';
|
|
3
|
+
import { LiveMeeting, LiveMeetingsSummary } from '../../types/live-meeting';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface LiveMeetingsStatCard {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class LiveMeetingsComponent implements OnInit {
|
|
11
|
+
private liveMeetingsService;
|
|
12
|
+
meetings: LiveMeeting[];
|
|
13
|
+
summary: LiveMeetingsSummary | null;
|
|
14
|
+
searchTerm: string;
|
|
15
|
+
isAutoRefreshOn: boolean;
|
|
16
|
+
lastUpdatedLabel: string;
|
|
17
|
+
constructor(liveMeetingsService: LiveMeetingsService);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
get statCards(): LiveMeetingsStatCard[];
|
|
20
|
+
get filteredMeetings(): LiveMeeting[];
|
|
21
|
+
toggleAutoRefresh(): void;
|
|
22
|
+
refresh(): void;
|
|
23
|
+
private load;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LiveMeetingsComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LiveMeetingsComponent, "tk-live-meetings", never, {}, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MeetingSpacesService } from '../../services/meeting-spaces.service';
|
|
3
|
+
import { MeetingSpace } from '../../types/meeting-space';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MeetingSpacesComponent implements OnInit {
|
|
6
|
+
private meetingSpacesService;
|
|
7
|
+
createMeetingSpace: EventEmitter<void>;
|
|
8
|
+
meetingSpaces: MeetingSpace[];
|
|
9
|
+
searchTerm: string;
|
|
10
|
+
constructor(meetingSpacesService: MeetingSpacesService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
get filteredMeetingSpaces(): MeetingSpace[];
|
|
13
|
+
onCreateMeetingSpace(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MeetingSpacesComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MeetingSpacesComponent, "tk-meeting-spaces", never, {}, { "createMeetingSpace": "createMeetingSpace"; }, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/material/button";
|
|
3
|
+
import * as i2 from "@angular/material/icon";
|
|
4
|
+
import * as i3 from "@angular/material/table";
|
|
5
|
+
import * as i4 from "@angular/material/progress-spinner";
|
|
6
|
+
import * as i5 from "@angular/material/form-field";
|
|
7
|
+
import * as i6 from "@angular/material/input";
|
|
8
|
+
import * as i7 from "@angular/material/tabs";
|
|
9
|
+
export declare class MaterialModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatButtonModule, typeof i2.MatIconModule, typeof i3.MatTableModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.MatTabsModule], [typeof i1.MatButtonModule, typeof i2.MatIconModule, typeof i3.MatTableModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.MatTabsModule]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { APIService } from './services/api.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type MeetingEnvironmentStatus = 'healthy' | 'warning' | 'critical';
|
|
5
|
+
export declare class MeetingsComponent implements OnInit {
|
|
6
|
+
private apiService;
|
|
7
|
+
host: string;
|
|
8
|
+
token: string;
|
|
9
|
+
environmentStatusLabel: string;
|
|
10
|
+
environmentStatusState: MeetingEnvironmentStatus;
|
|
11
|
+
liveCount: number;
|
|
12
|
+
constructor(apiService: APIService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MeetingsComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MeetingsComponent, "tk-meetings", never, { "host": "host"; "token": "token"; "environmentStatusLabel": "environmentStatusLabel"; "environmentStatusState": "environmentStatusState"; "liveCount": "liveCount"; }, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./meetings.component";
|
|
3
|
+
import * as i2 from "./components/meeting-spaces/meeting-spaces.component";
|
|
4
|
+
import * as i3 from "./components/live-meetings/live-meetings.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/common/http";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "./material.module";
|
|
9
|
+
export declare class MeetingsModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MeetingsModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MeetingsModule, [typeof i1.MeetingsComponent, typeof i2.MeetingSpacesComponent, typeof i3.LiveMeetingsComponent], [typeof i4.CommonModule, typeof i5.HttpClientModule, typeof i6.FormsModule, typeof i7.MaterialModule], [typeof i1.MeetingsComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MeetingsModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class APIService {
|
|
5
|
+
private httpClient;
|
|
6
|
+
token: string;
|
|
7
|
+
apiUrl: string;
|
|
8
|
+
constructor(httpClient: HttpClient);
|
|
9
|
+
fetch(url: string, params?: any, cache?: boolean): Observable<any>;
|
|
10
|
+
post(url: string, body: any, params?: {}): Observable<any>;
|
|
11
|
+
put(url: string, body?: null, params?: {}): Observable<Object>;
|
|
12
|
+
delete(url: string, params?: {}): Observable<Object>;
|
|
13
|
+
private prepareEncodedParams;
|
|
14
|
+
private getHeaders;
|
|
15
|
+
private getParameterByName;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<APIService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<APIService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { LiveMeetingsSnapshot } from '../types/live-meeting';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LiveMeetingsService {
|
|
5
|
+
fetchLiveMeetings(): Observable<LiveMeetingsSnapshot>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LiveMeetingsService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LiveMeetingsService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { MeetingSpace } from '../types/meeting-space';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MeetingSpacesService {
|
|
5
|
+
fetchMeetingSpaces(): Observable<MeetingSpace[]>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MeetingSpacesService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MeetingSpacesService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type LiveMeetingLockState = 'locked' | 'unlocked';
|
|
2
|
+
export type LiveMeetingQuality = 'good' | 'fair' | 'poor';
|
|
3
|
+
export interface LiveMeetingActivity {
|
|
4
|
+
recording: boolean;
|
|
5
|
+
streaming: boolean;
|
|
6
|
+
presenting: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface LiveMeeting {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
ownerName: string;
|
|
12
|
+
ownerEmail: string;
|
|
13
|
+
participants: number;
|
|
14
|
+
lobbyCount: number;
|
|
15
|
+
lockState: LiveMeetingLockState;
|
|
16
|
+
activity: LiveMeetingActivity;
|
|
17
|
+
startTime: string;
|
|
18
|
+
duration: string;
|
|
19
|
+
quality: LiveMeetingQuality;
|
|
20
|
+
cluster: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LiveMeetingsSummary {
|
|
23
|
+
activeMeetings: number;
|
|
24
|
+
connectedParticipants: number;
|
|
25
|
+
waitingInLobby: number;
|
|
26
|
+
recording: number;
|
|
27
|
+
streaming: number;
|
|
28
|
+
qualityWarnings: number;
|
|
29
|
+
}
|
|
30
|
+
export interface LiveMeetingsSnapshot {
|
|
31
|
+
summary: LiveMeetingsSummary;
|
|
32
|
+
meetings: LiveMeeting[];
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuki-io/tuki-widgets",
|
|
3
|
-
"version": "0.0.219-dev.
|
|
3
|
+
"version": "0.0.219-dev.25",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.2.0",
|
|
6
6
|
"@angular/core": "^15.2.0",
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
"node": "./fesm2015/tuki-io-tuki-widgets-di2mt.mjs",
|
|
45
45
|
"default": "./fesm2020/tuki-io-tuki-widgets-di2mt.mjs"
|
|
46
46
|
},
|
|
47
|
+
"./meetings": {
|
|
48
|
+
"types": "./meetings/index.d.ts",
|
|
49
|
+
"esm2020": "./esm2020/meetings/tuki-io-tuki-widgets-meetings.mjs",
|
|
50
|
+
"es2020": "./fesm2020/tuki-io-tuki-widgets-meetings.mjs",
|
|
51
|
+
"es2015": "./fesm2015/tuki-io-tuki-widgets-meetings.mjs",
|
|
52
|
+
"node": "./fesm2015/tuki-io-tuki-widgets-meetings.mjs",
|
|
53
|
+
"default": "./fesm2020/tuki-io-tuki-widgets-meetings.mjs"
|
|
54
|
+
},
|
|
47
55
|
"./shared": {
|
|
48
56
|
"types": "./shared/index.d.ts",
|
|
49
57
|
"esm2020": "./esm2020/shared/tuki-io-tuki-widgets-shared.mjs",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { TableDataInterface } from '../classes/table-data';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DcpApiService {
|
|
6
|
+
private httpClient;
|
|
7
|
+
token: any;
|
|
8
|
+
apiUrl: string;
|
|
9
|
+
constructor(httpClient: HttpClient);
|
|
10
|
+
fetch(url: string, params?: any, cache?: boolean): Observable<Object>;
|
|
11
|
+
post(url: string, body: any, params?: {}): any;
|
|
12
|
+
postExtended(url: string, body?: null, params?: {}, headers?: {}): Observable<import("@angular/common/http").HttpResponse<Object>>;
|
|
13
|
+
put(url: string, body?: any, params?: {}): Observable<Object>;
|
|
14
|
+
delete(url: string, params?: {}): Observable<Object>;
|
|
15
|
+
fetchPagination(url: string, pageSize: number, pageNumber: number, additionalParams?: {}, cache?: boolean): Observable<TableDataInterface>;
|
|
16
|
+
private prepareEncodedParams;
|
|
17
|
+
private getHeaders;
|
|
18
|
+
private getParameterByName;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DcpApiService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DcpApiService>;
|
|
21
|
+
}
|
|
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { SimplifiedUser } from '../classes/simplified-user';
|
|
4
4
|
import { APIService } from './api.service';
|
|
5
|
+
import { DcpApiService } from './dcp-api.service';
|
|
5
6
|
import { LineAssociation } from '../classes/line-association';
|
|
6
7
|
import { LineAssociationInterface } from '../classes/line-association-interface';
|
|
7
8
|
import { LineService } from './line.service';
|
|
@@ -9,6 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class UserService implements OnInit {
|
|
10
11
|
private apiService;
|
|
11
12
|
private lineService;
|
|
13
|
+
private dcpApiService;
|
|
12
14
|
siteId: number;
|
|
13
15
|
userId: string;
|
|
14
16
|
dataPending: boolean;
|
|
@@ -20,7 +22,7 @@ export declare class UserService implements OnInit {
|
|
|
20
22
|
onUserLineSaved$: Subject<any>;
|
|
21
23
|
get lineAssociation(): LineAssociation | LineAssociationInterface;
|
|
22
24
|
get originLineAssociation(): LineAssociation | LineAssociationInterface;
|
|
23
|
-
constructor(apiService: APIService, lineService: LineService);
|
|
25
|
+
constructor(apiService: APIService, lineService: LineService, dcpApiService: DcpApiService);
|
|
24
26
|
ngOnInit(): void;
|
|
25
27
|
fetchUserToken(siteId: number, userId: string, isLdap?: boolean, isSetNewTokenOnly?: boolean): any;
|
|
26
28
|
fetchWebexUserToken(customerId: string, userId: string): any;
|
|
@@ -5,10 +5,12 @@ import { APIService } from "./services/api.service";
|
|
|
5
5
|
import { LineAssociation } from './classes/line-association';
|
|
6
6
|
import { LineAssociationInterface } from './classes/line-association-interface';
|
|
7
7
|
import { Device } from './classes/device';
|
|
8
|
+
import { DcpApiService } from './services/dcp-api.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class UserManageWidgetComponent implements OnInit {
|
|
10
11
|
userService: UserService;
|
|
11
12
|
private apiService;
|
|
13
|
+
private dcpApiService;
|
|
12
14
|
dataPending: boolean;
|
|
13
15
|
onSave: EventEmitter<string>;
|
|
14
16
|
onChange: EventEmitter<string>;
|
|
@@ -16,6 +18,7 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
16
18
|
goBack: EventEmitter<any>;
|
|
17
19
|
token: string;
|
|
18
20
|
host: string;
|
|
21
|
+
dcpHost: string;
|
|
19
22
|
siteId: number;
|
|
20
23
|
userId: string;
|
|
21
24
|
deviceName: string;
|
|
@@ -27,8 +30,9 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
27
30
|
get primaryLineReference(): string | undefined;
|
|
28
31
|
get webexUUID(): string | null;
|
|
29
32
|
private readonly router;
|
|
33
|
+
private readonly location;
|
|
30
34
|
readonly ON_PREM_ID = 2542;
|
|
31
|
-
constructor(userService: UserService, apiService: APIService);
|
|
35
|
+
constructor(userService: UserService, apiService: APIService, dcpApiService: DcpApiService);
|
|
32
36
|
ngOnInit(): void;
|
|
33
37
|
onDeviceSelect(device: Device): void;
|
|
34
38
|
onGoBack(): void;
|
|
@@ -41,8 +45,9 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
41
45
|
private digestCredentialsHandler;
|
|
42
46
|
private getData;
|
|
43
47
|
private setCookie;
|
|
48
|
+
private updateUrlIfUserIdChanged;
|
|
44
49
|
private validateUserId;
|
|
45
50
|
save(): void;
|
|
46
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserManageWidgetComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserManageWidgetComponent, "app-user-manage-widget", never, { "token": "token"; "host": "host"; "siteId": "siteId"; "userId": "userId"; "deviceName": "deviceName"; "isLdap": "isLdap"; }, { "onSave": "onSave"; "onChange": "onChange"; "selectDevice": "selectDevice"; "goBack": "goBack"; }, never, never, false, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserManageWidgetComponent, "app-user-manage-widget", never, { "token": "token"; "host": "host"; "dcpHost": "dcpHost"; "siteId": "siteId"; "userId": "userId"; "deviceName": "deviceName"; "isLdap": "isLdap"; }, { "onSave": "onSave"; "onChange": "onChange"; "selectDevice": "selectDevice"; "goBack": "goBack"; }, never, never, false, never>;
|
|
48
53
|
}
|