@tuki-io/tuki-widgets 0.0.158 → 0.0.161
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/contact-center/cc-readiness/cc-readiness.module.mjs +1 -1
- package/esm2020/contact-center/cc-readiness/cc-readiness.service.mjs +1 -1
- package/esm2020/contact-center/cc-readiness/widgets/licences-requirement/licences-requirement.component.mjs +3 -3
- package/esm2020/di2mt/widgets/site-upgrade/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2020/di2mt/widgets/site-upgrade/site-upgrade-data-table/site-upgrade-data-table.component.mjs +2 -2
- package/esm2020/di2mt/widgets/upgrade-overview/cards/pending-activation-users/pending-activation-users.component.mjs +17 -17
- package/esm2020/user-creation/public-api.mjs +13 -0
- package/esm2020/user-creation/src/shared/material.module.mjs +76 -0
- package/esm2020/user-creation/src/shared/services/user-creation-api.service.mjs +10 -0
- package/esm2020/user-creation/src/shared/shared.module.mjs +33 -0
- package/esm2020/user-creation/src/user-creation.module.mjs +58 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +23 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.mjs +19 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +20 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +34 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +192 -0
- package/esm2020/user-creation/tuki-io-tuki-widgets-user-creation.mjs +5 -0
- package/esm2020/user-device-manage/src/app.constants.mjs +1 -1
- package/esm2020/user-device-manage/src/classes/deviceProfile.mjs +1 -1
- package/esm2020/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.mjs +22 -12
- package/esm2020/user-device-manage/src/device-info/device-info.component.mjs +3 -3
- package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +36 -26
- package/esm2020/user-device-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +3 -3
- package/esm2020/user-device-manage/src/pipes/mac-address.pipe.mjs +1 -1
- package/esm2020/user-device-manage/src/services/api.service.mjs +1 -1
- package/esm2020/user-device-manage/src/services/dns.service.mjs +34 -2
- package/esm2020/user-device-manage/src/services/line.service.mjs +4 -4
- package/esm2020/user-device-manage/src/services/user.service.mjs +68 -47
- package/esm2020/user-device-manage/src/shared/tk-page-section/page-section.component.mjs +1 -1
- package/esm2020/user-device-manage/src/utils/app-loader/app-loader.mjs +3 -3
- package/esm2020/user-manage/src/app.constants.mjs +1 -1
- package/esm2020/user-manage/src/classes/line-association-interface.mjs +1 -1
- package/esm2020/user-manage/src/classes/line-directory.mjs +1 -1
- package/esm2020/user-manage/src/classes/line.mjs +1 -1
- package/esm2020/user-manage/src/classes/pagination.mjs +1 -1
- package/esm2020/user-manage/src/classes/simplified-user.mjs +1 -1
- package/esm2020/user-manage/src/device-list/device-list.component.mjs +3 -3
- package/esm2020/user-manage/src/device-list/device-row/device-row.component.mjs +3 -3
- package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +3 -3
- package/esm2020/user-manage/src/services/api.service.mjs +1 -1
- package/esm2020/user-manage/src/services/user.service.mjs +1 -1
- package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +4 -6
- package/esm2020/user-manage/src/user-info/user-info.component.mjs +3 -3
- package/esm2020/user-manage/src/user-manage.module.mjs +1 -1
- package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +3 -3
- package/esm2020/users-list/src/app.constants.mjs +1 -1
- package/esm2020/users-list/src/classes/move-user.mjs +1 -1
- package/esm2020/users-list/src/components/table-toolbar/table-toolbar.component.mjs +9 -3
- package/esm2020/users-list/src/services/dns.service.mjs +2 -2
- package/esm2020/users-list/src/services/user.service.mjs +1 -1
- package/esm2020/users-list/src/users-list.component.mjs +9 -3
- package/esm2020/users-list/src/utils/app-loader/app-loader.mjs +3 -3
- package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs +2 -2
- package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +20 -20
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +429 -0
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +317 -249
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +13 -15
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +19 -7
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs +2 -2
- package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +20 -20
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +440 -0
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +320 -251
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +13 -15
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +19 -7
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/package.json +9 -1
- package/user-creation/index.d.ts +5 -0
- package/user-creation/public-api.d.ts +2 -0
- package/user-creation/src/shared/material.module.d.ts +15 -0
- package/user-creation/src/shared/services/user-creation-api.service.d.ts +5 -0
- package/user-creation/src/shared/shared.module.d.ts +10 -0
- package/user-creation/src/user-creation.module.d.ts +15 -0
- package/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.d.ts +8 -0
- package/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.d.ts +11 -0
- package/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.d.ts +8 -0
- package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.d.ts +11 -0
- package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.d.ts +81 -0
- package/user-device-manage/src/classes/deviceProfile.d.ts +9 -0
- package/user-device-manage/src/device-associated-line/device-associated-line-extension/device-associated-line-extension.component.d.ts +6 -2
- package/user-device-manage/src/device-manage-widget.component.d.ts +7 -3
- package/user-device-manage/src/services/dns.service.d.ts +4 -0
- package/user-device-manage/src/services/user.service.d.ts +20 -18
- package/users-list/src/components/table-toolbar/table-toolbar.component.d.ts +3 -1
- package/users-list/src/users-list.component.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuki-io/tuki-widgets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.161",
|
|
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
|
+
"./user-creation": {
|
|
48
|
+
"types": "./user-creation/index.d.ts",
|
|
49
|
+
"esm2020": "./esm2020/user-creation/tuki-io-tuki-widgets-user-creation.mjs",
|
|
50
|
+
"es2020": "./fesm2020/tuki-io-tuki-widgets-user-creation.mjs",
|
|
51
|
+
"es2015": "./fesm2015/tuki-io-tuki-widgets-user-creation.mjs",
|
|
52
|
+
"node": "./fesm2015/tuki-io-tuki-widgets-user-creation.mjs",
|
|
53
|
+
"default": "./fesm2020/tuki-io-tuki-widgets-user-creation.mjs"
|
|
54
|
+
},
|
|
47
55
|
"./user-device-manage": {
|
|
48
56
|
"types": "./user-device-manage/index.d.ts",
|
|
49
57
|
"esm2020": "./esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/material/progress-bar";
|
|
3
|
+
import * as i2 from "@angular/material/tooltip";
|
|
4
|
+
import * as i3 from "@angular/material/table";
|
|
5
|
+
import * as i4 from "@angular/material/checkbox";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@angular/material/icon";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/input";
|
|
10
|
+
import * as i9 from "@angular/material/select";
|
|
11
|
+
export declare class MaterialModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatProgressBarModule, typeof i2.MatTooltipModule, typeof i3.MatTableModule, typeof i4.MatCheckboxModule, typeof i5.MatButtonModule, typeof i6.MatIconModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatSelectModule], [typeof i1.MatProgressBarModule, typeof i2.MatTooltipModule, typeof i3.MatTableModule, typeof i4.MatCheckboxModule, typeof i5.MatButtonModule, typeof i6.MatIconModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatSelectModule]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./material.module";
|
|
4
|
+
import * as i3 from "ng-apexcharts";
|
|
5
|
+
import * as i4 from "@angular/common/http";
|
|
6
|
+
export declare class SharedModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.CommonModule, typeof i2.MaterialModule, typeof i3.NgApexchartsModule, typeof i4.HttpClientModule], [typeof i2.MaterialModule]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./widgets/user-creation-wizard/user-creation-wizard.component";
|
|
3
|
+
import * as i2 from "./widgets/user-creation-wizard/components/user-template-step/user-template-step.component";
|
|
4
|
+
import * as i3 from "./widgets/user-creation-wizard/components/user-details-step/user-details-step.component";
|
|
5
|
+
import * as i4 from "./widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "./shared/shared.module";
|
|
8
|
+
import * as i7 from "./shared/material.module";
|
|
9
|
+
import * as i8 from "@angular/material/stepper";
|
|
10
|
+
import * as i9 from "@angular/material/expansion";
|
|
11
|
+
export declare class UserCreationModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserCreationModule, [typeof i1.UserCreationWizardComponent, typeof i2.UserTemplateStepComponent, typeof i3.UserDetailsStepComponent, typeof i4.UserOverviewStepComponent], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.MaterialModule, typeof i8.MatStepperModule, typeof i9.MatExpansionModule], [typeof i1.UserCreationWizardComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UserCreationModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserCreationWizardService } from "../../user-creation-wizard.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserDetailsStepComponent {
|
|
4
|
+
userCreationWizardService: UserCreationWizardService;
|
|
5
|
+
constructor(userCreationWizardService: UserCreationWizardService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserDetailsStepComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserDetailsStepComponent, "tk-user-details-step", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserCreationWizardService } from "../../user-creation-wizard.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserOverviewStepComponent {
|
|
4
|
+
userCreationWizardService: UserCreationWizardService;
|
|
5
|
+
readonly USER_DETAILS_COLS: string[];
|
|
6
|
+
readonly LINES_COLS: string[];
|
|
7
|
+
readonly DEVICES_COLS: string[];
|
|
8
|
+
constructor(userCreationWizardService: UserCreationWizardService);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserOverviewStepComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserOverviewStepComponent, "tk-user-overview-step", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserCreationWizardService } from "../../user-creation-wizard.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserTemplateStepComponent {
|
|
4
|
+
userCreationWizardService: UserCreationWizardService;
|
|
5
|
+
constructor(userCreationWizardService: UserCreationWizardService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserTemplateStepComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserTemplateStepComponent, "tk-user-template-step", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserCreationWizardComponent {
|
|
4
|
+
title: string;
|
|
5
|
+
cancel: EventEmitter<void>;
|
|
6
|
+
submit: EventEmitter<void>;
|
|
7
|
+
onCancel(): void;
|
|
8
|
+
onSubmit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationWizardComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserCreationWizardComponent, "tk-user-creation-wizard", never, { "title": "title"; }, { "cancel": "cancel"; "submit": "submit"; }, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface LdapUserRow {
|
|
3
|
+
userId: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
email: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OverviewUserRow extends LdapUserRow {
|
|
9
|
+
userTemplate: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OverviewLineRow {
|
|
12
|
+
number: string;
|
|
13
|
+
did: string;
|
|
14
|
+
routePartitionName: string;
|
|
15
|
+
css: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
18
|
+
export interface OverviewDeviceRow {
|
|
19
|
+
name: string;
|
|
20
|
+
deviceType: string;
|
|
21
|
+
lines: string;
|
|
22
|
+
description: string;
|
|
23
|
+
}
|
|
24
|
+
export type UserCreationType = 'CUCM' | 'MT';
|
|
25
|
+
export interface UserDetailsForm {
|
|
26
|
+
userId: string;
|
|
27
|
+
firstName: string;
|
|
28
|
+
lastName: string;
|
|
29
|
+
email: string;
|
|
30
|
+
}
|
|
31
|
+
export interface LineOption {
|
|
32
|
+
number: string;
|
|
33
|
+
did: string;
|
|
34
|
+
css: string;
|
|
35
|
+
description: string;
|
|
36
|
+
}
|
|
37
|
+
export interface SelectedLineRow {
|
|
38
|
+
lineNumber: string | null;
|
|
39
|
+
routePartitionName: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface DeviceEntry {
|
|
42
|
+
deviceType: string;
|
|
43
|
+
protocol: string;
|
|
44
|
+
buttonTemplate: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class UserCreationWizardService {
|
|
48
|
+
private readonly api;
|
|
49
|
+
readonly ldapTableColumns: string[];
|
|
50
|
+
readonly userCreationTypes: UserCreationType[];
|
|
51
|
+
siteOptions: string[];
|
|
52
|
+
templateOptions: string[];
|
|
53
|
+
lineOptions: LineOption[];
|
|
54
|
+
routePartitionOptions: string[];
|
|
55
|
+
deviceRows: number[];
|
|
56
|
+
ldapUsers: LdapUserRow[];
|
|
57
|
+
overviewUsers: OverviewUserRow[];
|
|
58
|
+
overviewLines: OverviewLineRow[];
|
|
59
|
+
overviewDevices: OverviewDeviceRow[];
|
|
60
|
+
userDetailsForm: UserDetailsForm;
|
|
61
|
+
lineSelections: SelectedLineRow[];
|
|
62
|
+
deviceEntries: DeviceEntry[];
|
|
63
|
+
selectedSite: string | null;
|
|
64
|
+
selectedTemplate: string | null;
|
|
65
|
+
selectedUserCreationType: UserCreationType;
|
|
66
|
+
constructor();
|
|
67
|
+
setSelectedSite(site: string | null): void;
|
|
68
|
+
setSelectedTemplate(template: string | null): void;
|
|
69
|
+
setSelectedUserCreationType(type: UserCreationType): void;
|
|
70
|
+
setUserDetailsField(field: keyof UserDetailsForm, value: string): void;
|
|
71
|
+
setLineSelection(index: number, lineNumber: string | null): void;
|
|
72
|
+
setRoutePartitionSelection(index: number, routePartitionName: string | null): void;
|
|
73
|
+
setDeviceName(index: number, name: string): void;
|
|
74
|
+
loadPlaceholderData(): void;
|
|
75
|
+
private rebuildOverviewUsers;
|
|
76
|
+
private rebuildOverviewLines;
|
|
77
|
+
private rebuildOverviewDevices;
|
|
78
|
+
loadDataFromApi(): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationWizardService, never>;
|
|
80
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserCreationWizardService>;
|
|
81
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FormGroup } from "@angular/forms";
|
|
2
|
+
import { LineAssociationInterface } from "./line-association-interface";
|
|
2
3
|
export declare class DeviceProfile {
|
|
3
4
|
macAddress?: string;
|
|
4
5
|
hoteling?: {
|
|
@@ -13,13 +14,21 @@ export declare class DeviceProfile {
|
|
|
13
14
|
number?: string;
|
|
14
15
|
description?: string;
|
|
15
16
|
routePartitionName: string;
|
|
17
|
+
pkid?: string;
|
|
18
|
+
index?: number;
|
|
19
|
+
position?: number;
|
|
20
|
+
textLabel?: string;
|
|
21
|
+
alertingName?: string;
|
|
22
|
+
callerNumber?: string;
|
|
16
23
|
}>;
|
|
17
24
|
activationState?: boolean;
|
|
18
25
|
model?: string;
|
|
26
|
+
name?: string;
|
|
19
27
|
ipAddress?: string;
|
|
20
28
|
remoteIpAddress?: string;
|
|
21
29
|
softwareVersion?: string;
|
|
22
30
|
softwareChannel?: string;
|
|
31
|
+
lineAssociations?: LineAssociationInterface[];
|
|
23
32
|
tags?: string[];
|
|
24
33
|
form: FormGroup;
|
|
25
34
|
constructor(config: DeviceProfile);
|
|
@@ -7,18 +7,22 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class DeviceAssociatedLineExtensionComponent implements OnInit {
|
|
8
8
|
userService: UserService;
|
|
9
9
|
private dnsService;
|
|
10
|
-
|
|
10
|
+
control: FormControl;
|
|
11
11
|
routePartition: string;
|
|
12
12
|
directoryNumber: string;
|
|
13
13
|
siteId: number;
|
|
14
14
|
onChange: EventEmitter<string>;
|
|
15
15
|
dataPending: boolean;
|
|
16
|
+
filteredAvailableNumbers: any[];
|
|
16
17
|
get user(): SimplifiedUser;
|
|
17
18
|
get availableNumbers(): any;
|
|
18
19
|
constructor(userService: UserService, dnsService: DnsService);
|
|
19
20
|
ngOnInit(): void;
|
|
20
21
|
onChangeField(event: any): void;
|
|
21
22
|
private getData;
|
|
23
|
+
compareFn(a: any, b: any): boolean;
|
|
24
|
+
setFiltereAvailableNumbers(): void;
|
|
25
|
+
filterAvailableNumbers(event: Event): void;
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceAssociatedLineExtensionComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceAssociatedLineExtensionComponent, "app-device-associated-line-extension", never, { "
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeviceAssociatedLineExtensionComponent, "app-device-associated-line-extension", never, { "control": "control"; "routePartition": "routePartition"; "directoryNumber": "directoryNumber"; "siteId": "siteId"; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
24
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { UserService } from './services/user.service';
|
|
5
5
|
import { DeviceService } from './services/device.service';
|
|
@@ -7,6 +7,7 @@ import { APIService } from './services/api.service';
|
|
|
7
7
|
import { LineService } from './services/line.service';
|
|
8
8
|
import { SiteSettingsService } from './services/site-settings.service';
|
|
9
9
|
import { ValidationService } from './services/validation.service';
|
|
10
|
+
import { DnsService } from './services/dns.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class DeviceManageWidgetComponent implements OnDestroy {
|
|
12
13
|
userService: UserService;
|
|
@@ -16,6 +17,7 @@ export declare class DeviceManageWidgetComponent implements OnDestroy {
|
|
|
16
17
|
siteSettingsService: SiteSettingsService;
|
|
17
18
|
private validationService;
|
|
18
19
|
private dialog;
|
|
20
|
+
private readonly dnsService;
|
|
19
21
|
onSave: EventEmitter<string>;
|
|
20
22
|
onChange: EventEmitter<string>;
|
|
21
23
|
discardChanges: EventEmitter<any>;
|
|
@@ -36,11 +38,12 @@ export declare class DeviceManageWidgetComponent implements OnDestroy {
|
|
|
36
38
|
tags: string[];
|
|
37
39
|
isAdding: boolean;
|
|
38
40
|
newTag: string;
|
|
41
|
+
linesControls: FormArray<FormControl<string>>;
|
|
39
42
|
get firstName(): string;
|
|
40
43
|
get lastName(): string;
|
|
41
44
|
get form(): FormGroup | undefined;
|
|
42
45
|
get isWebex(): boolean | "" | null;
|
|
43
|
-
constructor(userService: UserService, deviceService: DeviceService, apiService: APIService, lineService: LineService, siteSettingsService: SiteSettingsService, validationService: ValidationService, dialog: MatDialog);
|
|
46
|
+
constructor(userService: UserService, deviceService: DeviceService, apiService: APIService, lineService: LineService, siteSettingsService: SiteSettingsService, validationService: ValidationService, dialog: MatDialog, dnsService: DnsService);
|
|
44
47
|
ngOnInit(): void;
|
|
45
48
|
showInput(): void;
|
|
46
49
|
onBlur(): void;
|
|
@@ -48,8 +51,9 @@ export declare class DeviceManageWidgetComponent implements OnDestroy {
|
|
|
48
51
|
get hotelingEnabled(): FormControl;
|
|
49
52
|
get guestHoursLimit(): FormControl;
|
|
50
53
|
private getData;
|
|
54
|
+
initFormData(device: any): void;
|
|
51
55
|
onNumberChange(event: Event, index: number): void;
|
|
52
|
-
onExtensionChange(
|
|
56
|
+
onExtensionChange(value: string, index: number): void;
|
|
53
57
|
saveChanges(): void;
|
|
54
58
|
ngOnDestroy(): void;
|
|
55
59
|
onGoBack(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIService } from './api.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const DELIMITER = ", ";
|
|
3
4
|
export declare class DnsService {
|
|
4
5
|
private apiService;
|
|
5
6
|
availableNumbers: {};
|
|
@@ -9,6 +10,9 @@ export declare class DnsService {
|
|
|
9
10
|
setAvailableDidMappedToDn(availableNumber: any): void;
|
|
10
11
|
getUnwrapNumberRange(availableNumber: any): string[];
|
|
11
12
|
unwrapNumberRange(start: string, end: string): string[];
|
|
13
|
+
getDnValue(dnWithDid: string): string;
|
|
14
|
+
getDnValueTrimInUseVM(dnWithDid: string): string;
|
|
15
|
+
getMappedDids(dnWithDid: string, index: string): string;
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DnsService, never>;
|
|
13
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<DnsService>;
|
|
14
18
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { DeviceProfile } from '../classes/deviceProfile';
|
|
4
|
+
import { Device } from './../classes/device';
|
|
5
5
|
import { LineAssociation } from './../classes/line-association';
|
|
6
6
|
import { LineAssociationInterface } from './../classes/line-association-interface';
|
|
7
|
+
import { SimplifiedUser } from './../classes/simplified-user';
|
|
8
|
+
import { APIService } from './api.service';
|
|
7
9
|
import { LineService } from './line.service';
|
|
8
10
|
import { ValidationService } from './validation.service';
|
|
9
|
-
import { Device } from './../classes/device';
|
|
10
|
-
import { DeviceProfile } from '../classes/deviceProfile';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class UserService implements OnInit {
|
|
13
13
|
private apiService;
|
|
@@ -21,6 +21,8 @@ export declare class UserService implements OnInit {
|
|
|
21
21
|
originDevice: any;
|
|
22
22
|
onUserLineSaved$: Subject<any>;
|
|
23
23
|
onFetchUserToken$: Subject<any>;
|
|
24
|
+
private _userToken;
|
|
25
|
+
get userToken(): string;
|
|
24
26
|
private _userName;
|
|
25
27
|
get userName(): string;
|
|
26
28
|
private _userLastName;
|
|
@@ -29,36 +31,36 @@ export declare class UserService implements OnInit {
|
|
|
29
31
|
get cucmId(): string;
|
|
30
32
|
private _userDevice;
|
|
31
33
|
get userDevice(): DeviceProfile | undefined;
|
|
32
|
-
get lineAssociation():
|
|
34
|
+
get lineAssociation(): LineAssociationInterface | undefined;
|
|
33
35
|
get originLineAssociation(): LineAssociation | LineAssociationInterface;
|
|
34
36
|
constructor(apiService: APIService, lineService: LineService);
|
|
35
37
|
ngOnInit(): void;
|
|
36
38
|
resetLineAssociation(deviceIndex: number, lineIndex: number, validationService: ValidationService): void;
|
|
37
39
|
resetDevice(currentDevice: Device, validationService: ValidationService): void;
|
|
38
40
|
fetchUserToken(siteId: number, userId: string, validationService: ValidationService, isSetNewTokenOnly?: boolean): any;
|
|
39
|
-
fetchDIUserDevice(siteId: number, userId: string, deviceType: string): Observable<DeviceProfile | undefined>;
|
|
41
|
+
fetchDIUserDevice(siteId: number, userId: string, deviceType: string): import("rxjs").Observable<DeviceProfile | undefined>;
|
|
40
42
|
private getMacAddress;
|
|
41
|
-
fetchWebexUserDevice(customerId: string, userId: string, deviceType: string): Observable<DeviceProfile | undefined>;
|
|
43
|
+
fetchWebexUserDevice(customerId: string, userId: string, deviceType: string): import("rxjs").Observable<DeviceProfile | undefined>;
|
|
42
44
|
updateUserFields(body: any): any;
|
|
43
|
-
fetchUserById(id: string): Observable<any>;
|
|
44
|
-
fetchLeanUserConversationById(id: string): Observable<any>;
|
|
45
|
-
fetchLeanUserDevicesConversationById(id: string): Observable<any>;
|
|
46
|
-
fetchLeanUserLinesConversationById(id: string, leanUserDevicesToken: string): Observable<any>;
|
|
47
|
-
fetchLeanUserSNRConversationById(id: string): Observable<any>;
|
|
45
|
+
fetchUserById(id: string): import("rxjs").Observable<any>;
|
|
46
|
+
fetchLeanUserConversationById(id: string): import("rxjs").Observable<any>;
|
|
47
|
+
fetchLeanUserDevicesConversationById(id: string): import("rxjs").Observable<any>;
|
|
48
|
+
fetchLeanUserLinesConversationById(id: string, leanUserDevicesToken: string): import("rxjs").Observable<any>;
|
|
49
|
+
fetchLeanUserSNRConversationById(id: string): import("rxjs").Observable<any>;
|
|
48
50
|
persistCacheChanges(): any;
|
|
49
51
|
processUserChangesToCache(): any;
|
|
50
|
-
saveNewLine(
|
|
52
|
+
saveNewLine(line: any): any;
|
|
51
53
|
persistUserCache(): any;
|
|
52
|
-
runNewLineCreation(): void;
|
|
53
|
-
deleteLine(siteId: number, pkid: string, token: string): Observable<Object>;
|
|
54
|
-
disassociateLine(siteId: number, linePkid: string, token: string, deviceName: string): Observable<Object>;
|
|
54
|
+
runNewLineCreation(line: any): void;
|
|
55
|
+
deleteLine(siteId: number, pkid: string, token: string): import("rxjs").Observable<Object>;
|
|
56
|
+
disassociateLine(siteId: number, linePkid: string, token: string, deviceName: string): import("rxjs").Observable<Object>;
|
|
55
57
|
updateLineFields(siteId: number, pkid: string, token: string, alertingName: any): any;
|
|
56
58
|
updateDeviceFields(siteId: number, deviceName: string, token: string): any;
|
|
57
59
|
checkDestinationNumber(siteId: string, directoryNumber: string, routePartitionName: string): any;
|
|
58
60
|
associateLineToUserDevice(siteId: number, deviceName: string, body: any, pkid: any, css: any): any;
|
|
59
61
|
hasUnsavedChanges(): any;
|
|
60
62
|
setSimplifiedUser(user: any, validationService: ValidationService, userToken?: string): void;
|
|
61
|
-
editTranslationPattern(cucmId: string, oldpattern: string, newPattern: string, extension: string, routePartitionName: string, description: string): Observable<Object>;
|
|
63
|
+
editTranslationPattern(cucmId: string, oldpattern: string, newPattern: string, extension: string, routePartitionName: string, description: string): import("rxjs").Observable<Object>;
|
|
62
64
|
lineUpdated(line: any, index: number): boolean;
|
|
63
65
|
getOriginalNumber(line: any): string;
|
|
64
66
|
private handleSaveUserResponse;
|
|
@@ -5,9 +5,11 @@ export declare class TableToolbarComponent {
|
|
|
5
5
|
totalUsersCount: number;
|
|
6
6
|
readonly searchChange: EventEmitter<string>;
|
|
7
7
|
readonly searchByType: EventEmitter<USER_TYPES_TYPE>;
|
|
8
|
+
readonly addUser: EventEmitter<void>;
|
|
8
9
|
private timerId;
|
|
9
10
|
onSearchInputChange(event: Event): void;
|
|
10
11
|
onTypeChange(event: Event): void;
|
|
12
|
+
onAddUser(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableToolbarComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "tk-users-table-toolbar", never, { "totalUsersCount": "totalUsersCount"; }, { "searchChange": "searchChange"; "searchByType": "searchByType"; }, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "tk-users-table-toolbar", never, { "totalUsersCount": "totalUsersCount"; }, { "searchChange": "searchChange"; "searchByType": "searchByType"; "addUser": "addUser"; }, never, never, false, never>;
|
|
13
15
|
}
|
|
@@ -24,6 +24,7 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
openUser: EventEmitter<any>;
|
|
25
25
|
userMoved: EventEmitter<any>;
|
|
26
26
|
switchToWizard: EventEmitter<any>;
|
|
27
|
+
createUserRequested: EventEmitter<void>;
|
|
27
28
|
host: string;
|
|
28
29
|
dataPending: boolean;
|
|
29
30
|
moveInProgressUserId: string;
|
|
@@ -61,6 +62,7 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
|
|
|
61
62
|
runMoveUserToMT(): void;
|
|
62
63
|
searchUsers(token: string, type?: USER_TYPES_TYPE): void;
|
|
63
64
|
searchByType(userType: USER_TYPES_TYPE): void;
|
|
65
|
+
onCreateUserRequested(): void;
|
|
64
66
|
private filterByToken;
|
|
65
67
|
private filterByType;
|
|
66
68
|
onFirmwareUpgradeClicked(user: ListUser): void;
|
|
@@ -68,5 +70,5 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
|
|
|
68
70
|
private setUserPendingStatus;
|
|
69
71
|
private setOriginalUserStatus;
|
|
70
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersListComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UsersListComponent, "app-users-list", never, { "token": "token"; "customerId": "customerId"; "siteId": "siteId"; "host": "host"; }, { "openUser": "openUser"; "userMoved": "userMoved"; "switchToWizard": "switchToWizard"; }, never, never, false, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersListComponent, "app-users-list", never, { "token": "token"; "customerId": "customerId"; "siteId": "siteId"; "host": "host"; }, { "openUser": "openUser"; "userMoved": "userMoved"; "switchToWizard": "switchToWizard"; "createUserRequested": "createUserRequested"; }, never, never, false, never>;
|
|
72
74
|
}
|