@tuki-io/tuki-widgets 0.0.6 → 0.0.8
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/README.md +9 -10
- package/esm2020/lib/widgets.component.mjs +22 -0
- package/esm2020/lib/widgets.module.mjs +21 -0
- package/esm2020/lib/widgets.service.mjs +14 -0
- package/esm2020/public-api.mjs +7 -0
- package/esm2020/tuki-io-tuki-widgets.mjs +5 -0
- package/esm2020/user-manage/public-api.mjs +7 -0
- package/esm2020/user-manage/src/app.constants.mjs +38 -0
- package/esm2020/user-manage/src/classes/device.mjs +7 -0
- package/esm2020/user-manage/src/classes/line.mjs +9 -0
- package/esm2020/user-manage/src/classes/notification.mjs +32 -0
- package/esm2020/user-manage/src/classes/pagination.mjs +8 -0
- package/esm2020/user-manage/src/classes/simplified-user.mjs +82 -0
- package/esm2020/user-manage/src/classes/table-data.mjs +2 -0
- package/esm2020/user-manage/src/classes/user-list.mjs +10 -0
- package/esm2020/user-manage/src/common-functions.mjs +19 -0
- package/esm2020/user-manage/src/environments/environment.mjs +11 -0
- package/esm2020/user-manage/src/interseptors/auth.interceptor.mjs +37 -0
- package/esm2020/user-manage/src/lazy-loading-select/lazy-loading-select.component.mjs +74 -0
- package/esm2020/user-manage/src/material.module.mjs +188 -0
- package/esm2020/user-manage/src/notifications/notification.component.mjs +35 -0
- package/esm2020/user-manage/src/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/user-manage/src/services/api.service.mjs +79 -0
- package/esm2020/user-manage/src/services/notification.service.mjs +62 -0
- package/esm2020/user-manage/src/services/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/user-manage/src/services/site-settings.service.mjs +36 -0
- package/esm2020/user-manage/src/services/user.service.mjs +108 -0
- package/esm2020/user-manage/src/services/users-search.service.mjs +49 -0
- package/esm2020/user-manage/src/services/utils.service.mjs +73 -0
- package/esm2020/user-manage/src/user-info/user-info.component.mjs +20 -0
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +162 -0
- package/esm2020/user-manage/src/user-manage.module.mjs +84 -0
- package/esm2020/user-manage/src/utils/app-loader/app-loader.mjs +14 -0
- package/esm2020/user-manage/src/utils/pagination/pagination.component.mjs +43 -0
- package/esm2020/user-manage/tuki-io-tuki-widgets-user-manage.mjs +5 -0
- package/esm2020/users-list/public-api.mjs +9 -0
- package/esm2020/users-list/src/app.constants.mjs +35 -0
- package/esm2020/users-list/src/classes/device.mjs +7 -0
- package/esm2020/users-list/src/classes/line.mjs +9 -0
- package/esm2020/users-list/src/classes/notification.mjs +31 -0
- package/esm2020/users-list/src/classes/pagination.mjs +8 -0
- package/esm2020/users-list/src/classes/simlified-user.mjs +50 -0
- package/esm2020/users-list/src/classes/table-data.mjs +2 -0
- package/esm2020/users-list/src/classes/user-list.mjs +10 -0
- package/esm2020/users-list/src/material.module.mjs +188 -0
- package/esm2020/users-list/src/services/api.service.mjs +78 -0
- package/esm2020/users-list/src/services/events-communication.service.mjs +14 -0
- package/esm2020/users-list/src/services/notification.service.mjs +62 -0
- package/esm2020/users-list/src/services/removeKynFromIBM.service.mjs +25 -0
- package/esm2020/users-list/src/services/user.service.mjs +105 -0
- package/esm2020/users-list/src/services/users-search.service.mjs +49 -0
- package/esm2020/users-list/src/users-list.component.mjs +78 -0
- package/esm2020/users-list/src/users-list.module.mjs +58 -0
- package/esm2020/users-list/src/utils/common-functions.mjs +19 -0
- package/esm2020/users-list/src/utils/pagination/pagination.component.mjs +43 -0
- package/esm2020/users-list/src/utils/utils.service.mjs +73 -0
- package/esm2020/users-list/tuki-io-tuki-widgets-users-list.mjs +5 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +1235 -0
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +872 -0
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets.mjs +63 -0
- package/fesm2015/tuki-io-tuki-widgets.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +1222 -0
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +869 -0
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets.mjs +63 -0
- package/fesm2020/tuki-io-tuki-widgets.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/widgets.component.d.ts +8 -0
- package/lib/widgets.module.d.ts +7 -0
- package/lib/widgets.service.d.ts +6 -0
- package/package.json +44 -36
- package/{projects/tuki/widgets/src/public-api.ts → public-api.d.ts} +0 -4
- package/user-manage/index.d.ts +5 -0
- package/user-manage/src/app.constants.d.ts +20 -0
- package/user-manage/src/classes/device.d.ts +224 -0
- package/user-manage/src/classes/line.d.ts +116 -0
- package/user-manage/src/classes/notification.d.ts +18 -0
- package/user-manage/src/classes/pagination.d.ts +13 -0
- package/user-manage/src/classes/simplified-user.d.ts +41 -0
- package/user-manage/src/classes/table-data.d.ts +5 -0
- package/user-manage/src/classes/user-list.d.ts +32 -0
- package/user-manage/src/common-functions.d.ts +1 -0
- package/user-manage/src/environments/environment.d.ts +9 -0
- package/user-manage/src/interseptors/auth.interceptor.d.ts +9 -0
- package/user-manage/src/lazy-loading-select/lazy-loading-select.component.d.ts +35 -0
- package/user-manage/src/material.module.d.ts +28 -0
- package/user-manage/src/notifications/notification.component.d.ts +19 -0
- package/user-manage/src/removeKynFromIBM.service.d.ts +8 -0
- package/user-manage/src/services/api.service.d.ts +21 -0
- package/user-manage/src/services/notification.service.d.ts +18 -0
- package/user-manage/src/services/removeKynFromIBM.service.d.ts +8 -0
- package/user-manage/src/services/site-settings.service.d.ts +9 -0
- package/user-manage/src/services/user.service.d.ts +26 -0
- package/user-manage/src/services/users-search.service.d.ts +25 -0
- package/user-manage/src/services/utils.service.d.ts +9 -0
- package/user-manage/src/user-info/user-info.component.d.ts +9 -0
- package/user-manage/src/user-manage-widget.component.d.ts +32 -0
- package/user-manage/src/user-manage.module.d.ts +18 -0
- package/user-manage/src/utils/app-loader/app-loader.d.ts +6 -0
- package/user-manage/src/utils/pagination/pagination.component.d.ts +18 -0
- package/users-list/index.d.ts +5 -0
- package/users-list/src/app.constants.d.ts +17 -0
- package/users-list/src/classes/device.d.ts +224 -0
- package/users-list/src/classes/line.d.ts +116 -0
- package/users-list/src/classes/notification.d.ts +18 -0
- package/users-list/src/classes/pagination.d.ts +13 -0
- package/users-list/src/classes/simlified-user.d.ts +25 -0
- package/users-list/src/classes/table-data.d.ts +5 -0
- package/users-list/src/classes/user-list.d.ts +32 -0
- package/users-list/src/material.module.d.ts +28 -0
- package/users-list/src/services/api.service.d.ts +21 -0
- package/users-list/src/services/events-communication.service.d.ts +8 -0
- package/users-list/src/services/notification.service.d.ts +18 -0
- package/users-list/src/services/removeKynFromIBM.service.d.ts +8 -0
- package/users-list/src/services/user.service.d.ts +26 -0
- package/users-list/src/services/users-search.service.d.ts +25 -0
- package/users-list/src/users-list.component.d.ts +35 -0
- package/users-list/src/users-list.module.d.ts +12 -0
- package/users-list/src/utils/common-functions.d.ts +1 -0
- package/users-list/src/utils/pagination/pagination.component.d.ts +18 -0
- package/users-list/src/utils/utils.service.d.ts +9 -0
- package/.editorconfig +0 -16
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -41
- package/projects/tuki/widgets/README.md +0 -24
- package/projects/tuki/widgets/karma.conf.js +0 -44
- package/projects/tuki/widgets/ng-package.json +0 -7
- package/projects/tuki/widgets/package.json +0 -13
- package/projects/tuki/widgets/src/lib/widgets.component.spec.ts +0 -23
- package/projects/tuki/widgets/src/lib/widgets.component.ts +0 -20
- package/projects/tuki/widgets/src/lib/widgets.module.ts +0 -16
- package/projects/tuki/widgets/src/lib/widgets.service.spec.ts +0 -16
- package/projects/tuki/widgets/src/lib/widgets.service.ts +0 -9
- package/projects/tuki/widgets/src/test.ts +0 -27
- package/projects/tuki/widgets/styles/_variables.scss +0 -90
- package/projects/tuki/widgets/styles/form.scss +0 -231
- package/projects/tuki/widgets/styles/icons.scss +0 -32
- package/projects/tuki/widgets/styles/styles.scss +0 -110
- package/projects/tuki/widgets/styles/tables.scss +0 -30
- package/projects/tuki/widgets/tsconfig.lib.json +0 -36
- package/projects/tuki/widgets/tsconfig.lib.prod.json +0 -10
- package/projects/tuki/widgets/tsconfig.spec.json +0 -17
- package/projects/tuki/widgets/user-manage/ng-package.json +0 -7
- package/projects/tuki/widgets/user-manage/src/app.constants.ts +0 -38
- package/projects/tuki/widgets/user-manage/src/classes/device.ts +0 -225
- package/projects/tuki/widgets/user-manage/src/classes/line.ts +0 -117
- package/projects/tuki/widgets/user-manage/src/classes/notification.ts +0 -39
- package/projects/tuki/widgets/user-manage/src/classes/pagination.ts +0 -18
- package/projects/tuki/widgets/user-manage/src/classes/simplified-user.ts +0 -128
- package/projects/tuki/widgets/user-manage/src/classes/table-data.ts +0 -6
- package/projects/tuki/widgets/user-manage/src/classes/user-interface.ts +0 -225
- package/projects/tuki/widgets/user-manage/src/classes/user-list.ts +0 -40
- package/projects/tuki/widgets/user-manage/src/classes/user.ts +0 -8
- package/projects/tuki/widgets/user-manage/src/common-functions.ts +0 -16
- package/projects/tuki/widgets/user-manage/src/environments/environment.prod.ts +0 -9
- package/projects/tuki/widgets/user-manage/src/environments/environment.ts +0 -10
- package/projects/tuki/widgets/user-manage/src/interseptors/auth.interceptor.ts +0 -36
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.html +0 -50
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.scss +0 -3
- package/projects/tuki/widgets/user-manage/src/lazy-loading-select/lazy-loading-select.component.ts +0 -81
- package/projects/tuki/widgets/user-manage/src/material.module.ts +0 -85
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.html +0 -33
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.scss +0 -84
- package/projects/tuki/widgets/user-manage/src/notifications/notification.component.ts +0 -46
- package/projects/tuki/widgets/user-manage/src/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/user-manage/src/services/api.service.ts +0 -89
- package/projects/tuki/widgets/user-manage/src/services/notification.service.ts +0 -68
- package/projects/tuki/widgets/user-manage/src/services/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/user-manage/src/services/site-settings.service.ts +0 -35
- package/projects/tuki/widgets/user-manage/src/services/user.service.ts +0 -120
- package/projects/tuki/widgets/user-manage/src/services/users-search.service.ts +0 -58
- package/projects/tuki/widgets/user-manage/src/services/utils.service.ts +0 -71
- package/projects/tuki/widgets/user-manage/src/styles/_variables.scss +0 -90
- package/projects/tuki/widgets/user-manage/src/styles/form.scss +0 -231
- package/projects/tuki/widgets/user-manage/src/styles/icons.scss +0 -32
- package/projects/tuki/widgets/user-manage/src/styles/styles.scss +0 -110
- package/projects/tuki/widgets/user-manage/src/styles/tables.scss +0 -30
- package/projects/tuki/widgets/user-manage/src/user-details/notification.service.ts +0 -68
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.html +0 -32
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.scss +0 -53
- package/projects/tuki/widgets/user-manage/src/user-info/user-info.component.ts +0 -19
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.html +0 -291
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.scss +0 -461
- package/projects/tuki/widgets/user-manage/src/user-manage-widget.component.ts +0 -163
- package/projects/tuki/widgets/user-manage/src/user-manage.module.ts +0 -53
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.html +0 -6
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.component.scss +0 -11
- package/projects/tuki/widgets/user-manage/src/utils/app-loader/app-loader.ts +0 -13
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.html +0 -26
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.scss +0 -41
- package/projects/tuki/widgets/user-manage/src/utils/pagination/pagination.component.ts +0 -41
- package/projects/tuki/widgets/users-list/ng-package.json +0 -6
- package/projects/tuki/widgets/users-list/src/app.constants.ts +0 -35
- package/projects/tuki/widgets/users-list/src/classes/device.ts +0 -225
- package/projects/tuki/widgets/users-list/src/classes/line.ts +0 -117
- package/projects/tuki/widgets/users-list/src/classes/notification.ts +0 -38
- package/projects/tuki/widgets/users-list/src/classes/pagination.ts +0 -18
- package/projects/tuki/widgets/users-list/src/classes/simlified-user.ts +0 -74
- package/projects/tuki/widgets/users-list/src/classes/table-data.ts +0 -6
- package/projects/tuki/widgets/users-list/src/classes/user-interface.ts +0 -225
- package/projects/tuki/widgets/users-list/src/classes/user-list.ts +0 -40
- package/projects/tuki/widgets/users-list/src/classes/user.ts +0 -8
- package/projects/tuki/widgets/users-list/src/material.module.ts +0 -84
- package/projects/tuki/widgets/users-list/src/services/api.service.ts +0 -87
- package/projects/tuki/widgets/users-list/src/services/events-communication.service.ts +0 -11
- package/projects/tuki/widgets/users-list/src/services/notification.service.ts +0 -68
- package/projects/tuki/widgets/users-list/src/services/removeKynFromIBM.service.ts +0 -25
- package/projects/tuki/widgets/users-list/src/services/user.service.ts +0 -117
- package/projects/tuki/widgets/users-list/src/services/users-search.service.ts +0 -58
- package/projects/tuki/widgets/users-list/src/users-list.component.css +0 -4
- package/projects/tuki/widgets/users-list/src/users-list.component.css.map +0 -1
- package/projects/tuki/widgets/users-list/src/users-list.component.html +0 -39
- package/projects/tuki/widgets/users-list/src/users-list.component.scss +0 -9
- package/projects/tuki/widgets/users-list/src/users-list.component.ts +0 -85
- package/projects/tuki/widgets/users-list/src/users-list.module.ts +0 -36
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css +0 -11
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.css.map +0 -1
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.html +0 -6
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.component.scss +0 -11
- package/projects/tuki/widgets/users-list/src/utils/app-loader/app-loader.ts +0 -13
- package/projects/tuki/widgets/users-list/src/utils/common-functions.ts +0 -16
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.html +0 -33
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.scss +0 -84
- package/projects/tuki/widgets/users-list/src/utils/notifications/notification.component.ts +0 -46
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css +0 -45
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.css.map +0 -1
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.html +0 -26
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.scss +0 -41
- package/projects/tuki/widgets/users-list/src/utils/pagination/pagination.component.ts +0 -41
- package/projects/tuki/widgets/users-list/src/utils/utils.service.ts +0 -71
- package/tsconfig.json +0 -46
- /package/{projects/tuki/widgets/user-manage/public-api.ts → user-manage/public-api.d.ts} +0 -0
- /package/{projects/tuki/widgets/users-list/public-api.ts → users-list/public-api.d.ts} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<div class="flex-box pagination">
|
|
2
|
-
<div class="page-indexes-box">
|
|
3
|
-
<mat-paginator
|
|
4
|
-
[id]="'commonPagination'"
|
|
5
|
-
[hidePageSize]="true"
|
|
6
|
-
[length]="pagination.total"
|
|
7
|
-
[pageIndex]="pagination.pageIndex"
|
|
8
|
-
[pageSize]="pagination.pageSize"
|
|
9
|
-
[pageSizeOptions]="pagination.pageSizeOptions"
|
|
10
|
-
(page)="pageEvent($event)">
|
|
11
|
-
</mat-paginator>
|
|
12
|
-
<mat-spinner class="length-spinner" [diameter]="20" mode="indeterminate" *ngIf="lengthPending">
|
|
13
|
-
</mat-spinner>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="flex-box per-page-block" *ngIf="showPageSizeOptions">
|
|
17
|
-
<div class="item_per_page">Items per page:</div>
|
|
18
|
-
<div class="select-box select-page-size">
|
|
19
|
-
<mat-select [(ngModel)]="pagination.pageSize" (selectionChange)="changePerPageNumber($event)" #page
|
|
20
|
-
[id]="'commonPaginationSelect'">
|
|
21
|
-
<mat-option *ngFor="let option of pageSizeOptions; let i = index;" [id]="'paginationSelectOpt_' + i" [value]="option">{{option}}</mat-option>
|
|
22
|
-
</mat-select>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.search-header-refresh-icon {
|
|
2
|
-
align-items: center;
|
|
3
|
-
line-height: 54px;
|
|
4
|
-
margin-left: 10px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
button[mat-icon-button] {
|
|
8
|
-
i {
|
|
9
|
-
font-size: 18px;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
mat-spinner.length-spinner {
|
|
14
|
-
position: absolute;
|
|
15
|
-
right: 120px;
|
|
16
|
-
}
|
|
17
|
-
h3, .search-header-refresh-icon {
|
|
18
|
-
float: left;
|
|
19
|
-
}
|
|
20
|
-
.page-options, .mat-paginator {
|
|
21
|
-
float: right;
|
|
22
|
-
}
|
|
23
|
-
.per-page-block mat-form-field {
|
|
24
|
-
width: 70px !important;
|
|
25
|
-
}
|
|
26
|
-
.per-page-block span {
|
|
27
|
-
margin-right: 20px;
|
|
28
|
-
}
|
|
29
|
-
.pagination {
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: flex-end;
|
|
32
|
-
}
|
|
33
|
-
.select-page-size {
|
|
34
|
-
width: 60px;
|
|
35
|
-
margin: 0 0 0 15px;
|
|
36
|
-
padding: 0 10px;
|
|
37
|
-
}
|
|
38
|
-
.item_per_page {
|
|
39
|
-
line-height: 35px;
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
-
import { PaginationDataDto } from '../../classes/pagination';
|
|
3
|
-
import { PAGINATION_SIZE_OPTIONS } from '../../app.constants';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'app-pagination',
|
|
8
|
-
templateUrl: './pagination.component.html',
|
|
9
|
-
styleUrls: ['./pagination.component.scss'],
|
|
10
|
-
})
|
|
11
|
-
export class PaginationComponent implements OnInit{
|
|
12
|
-
@Input()
|
|
13
|
-
public pagination!: PaginationDataDto;
|
|
14
|
-
@Input()
|
|
15
|
-
public showPageSizeOptions!: boolean;
|
|
16
|
-
@Input()
|
|
17
|
-
public showRefreshButton!: boolean;
|
|
18
|
-
@Input()
|
|
19
|
-
public lengthPending!: boolean;
|
|
20
|
-
@Output()
|
|
21
|
-
public pageEmitter = new EventEmitter();
|
|
22
|
-
@Output()
|
|
23
|
-
public pageNumberChangeEmitter = new EventEmitter<any>();
|
|
24
|
-
public pageSizeOptions: number[] = PAGINATION_SIZE_OPTIONS;
|
|
25
|
-
|
|
26
|
-
constructor(
|
|
27
|
-
) {
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ngOnInit(): void {
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
public pageEvent(event: any) {
|
|
34
|
-
this.pageEmitter.emit(event);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
public changePerPageNumber(event: any) {
|
|
38
|
-
this.pageNumberChangeEmitter.emit(event.value);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export const API = {
|
|
2
|
-
USER_TOKEN: '/api/provision/:siteId/users/:userId/token',
|
|
3
|
-
UPDATE_USER_FIELDS: '/api/provision/:siteId/userFields/:token',
|
|
4
|
-
PERSIST_USER_CACHE: '/api/provision/:siteId/saveUser/:token',
|
|
5
|
-
USER_BY_ID: '/api/provision/:siteId/users/:userId',
|
|
6
|
-
QUICK_USERS_SEARCH: "/api/search/quickusers"
|
|
7
|
-
};
|
|
8
|
-
export const REGEX_PATTERN = {
|
|
9
|
-
EMAIL: '^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))' +
|
|
10
|
-
'@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])' +
|
|
11
|
-
'?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,62}[a-zA-Z0-9])?)*$'
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const PAGINATION_DEFAULTS = {
|
|
15
|
-
SIZE: 10,
|
|
16
|
-
INDEX: 0
|
|
17
|
-
}
|
|
18
|
-
export const PAGINATION_SIZE_OPTIONS = [
|
|
19
|
-
10,
|
|
20
|
-
50,
|
|
21
|
-
100,
|
|
22
|
-
500
|
|
23
|
-
];
|
|
24
|
-
export const CUCS_TO_IGNORE = [
|
|
25
|
-
189,
|
|
26
|
-
194,
|
|
27
|
-
191,
|
|
28
|
-
190
|
|
29
|
-
];
|
|
30
|
-
export const CUCMS_TO_IGNORE = [
|
|
31
|
-
249,
|
|
32
|
-
255,
|
|
33
|
-
251,
|
|
34
|
-
250
|
|
35
|
-
];
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { EntityChangeType } from './line';
|
|
2
|
-
|
|
3
|
-
export interface DeviceInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
newName: string;
|
|
6
|
-
pkid: string;
|
|
7
|
-
entityChangeType: EntityChangeType;
|
|
8
|
-
deviceType: string;
|
|
9
|
-
protocol: string;
|
|
10
|
-
description: string;
|
|
11
|
-
buttonTemplate: string;
|
|
12
|
-
softkeyTemplate: string;
|
|
13
|
-
devicePoolName: string;
|
|
14
|
-
location: string;
|
|
15
|
-
userLocale: string;
|
|
16
|
-
enabledExtensionMobility: boolean;
|
|
17
|
-
callingSearchSpaceName: string;
|
|
18
|
-
services: string[];
|
|
19
|
-
networkLocale: string;
|
|
20
|
-
securityProfile: string;
|
|
21
|
-
lineAssociations: LineAssociationInterface[];
|
|
22
|
-
speedDials: SpeedDialInterface[];
|
|
23
|
-
sipProfile: string;
|
|
24
|
-
subscribeCallingSearchSpaceName: string;
|
|
25
|
-
commonPhoneConfigName: string;
|
|
26
|
-
ctiRemoteDevice: boolean;
|
|
27
|
-
firstExpansionModule: string;
|
|
28
|
-
secondExpansionModule: string;
|
|
29
|
-
thirdExpansionModule: string;
|
|
30
|
-
builtInBridge: string;
|
|
31
|
-
extraOptions?: DeviceExtraOptionsInterface;
|
|
32
|
-
formDisabledControls?: string[];
|
|
33
|
-
sharedUsers: string[];
|
|
34
|
-
busyLampFields: BusyLampFieldsInterface[];
|
|
35
|
-
meetMeEnabled: boolean;
|
|
36
|
-
deviceKind?: any;
|
|
37
|
-
isCtiRoutePoint?: boolean;
|
|
38
|
-
cucmId: string;
|
|
39
|
-
plarDevice?: boolean;
|
|
40
|
-
firmwareVersion?: any;
|
|
41
|
-
certificateOperation: string;
|
|
42
|
-
authenticationMode: string;
|
|
43
|
-
authenticationString?: string;
|
|
44
|
-
rsaKeySize?: string;
|
|
45
|
-
operationCompletesBy: string;
|
|
46
|
-
certificateStatus: string;
|
|
47
|
-
day?: string;
|
|
48
|
-
month?: string;
|
|
49
|
-
year?: string;
|
|
50
|
-
hour?: string;
|
|
51
|
-
securityProfileUuid?: string;
|
|
52
|
-
excludeDeviceExtraOptions?: boolean;
|
|
53
|
-
webexUUID?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface LineAssociationInterface {
|
|
56
|
-
index: number;
|
|
57
|
-
position?: number;
|
|
58
|
-
e164Mask: string;
|
|
59
|
-
textLabel: string;
|
|
60
|
-
displayLabel: string;
|
|
61
|
-
displayLabelAscii: string;
|
|
62
|
-
directoryNumber: LineDirectoryInterface;
|
|
63
|
-
didPattern: TranslationPatternInterface;
|
|
64
|
-
mappedDids: Array<string>;
|
|
65
|
-
linePkid: string;
|
|
66
|
-
maxNumberOfCalls: number;
|
|
67
|
-
busyTrigger: number;
|
|
68
|
-
recordingOption: RecordingOptions;
|
|
69
|
-
recordingProfile: string;
|
|
70
|
-
recordingMediaSource: string;
|
|
71
|
-
visualMWI: string;
|
|
72
|
-
audibleMWI: string;
|
|
73
|
-
ringSetting_idle: string;
|
|
74
|
-
ringSetting_active: string;
|
|
75
|
-
pickupAAS_idle: string;
|
|
76
|
-
pickupAAS_active: string;
|
|
77
|
-
monitorCSS: string;
|
|
78
|
-
logMissedCall: string;
|
|
79
|
-
callInfoDisplay: LineCallInfoDisplayInterface;
|
|
80
|
-
lineLocalId: string;
|
|
81
|
-
sharedUsers: string[];
|
|
82
|
-
sharedDevices: string[];
|
|
83
|
-
ownerUserId: Array<string>;
|
|
84
|
-
associated: boolean;
|
|
85
|
-
populateWithDid: boolean;
|
|
86
|
-
}
|
|
87
|
-
export interface SpeedDialInterface {
|
|
88
|
-
index: number;
|
|
89
|
-
position: number;
|
|
90
|
-
destination: string;
|
|
91
|
-
label: string;
|
|
92
|
-
editMode?: boolean;
|
|
93
|
-
}
|
|
94
|
-
export interface LineDirectoryInterface {
|
|
95
|
-
directoryNumber: string;
|
|
96
|
-
routePartitionName: string;
|
|
97
|
-
pkid: string;
|
|
98
|
-
dnType: string;
|
|
99
|
-
subType?: string;
|
|
100
|
-
templateDirectoryNumber?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface TranslationPatternInterface {
|
|
103
|
-
pattern: string;
|
|
104
|
-
calledPartyTransformationMask: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
site?: SiteShortDataInterface;
|
|
107
|
-
hasMultipleSites?: boolean;
|
|
108
|
-
multipleSitesId?: string;
|
|
109
|
-
}
|
|
110
|
-
export enum RecordingOptions {
|
|
111
|
-
disabled = 'Call Recording Disabled',
|
|
112
|
-
auto_enabled = 'Automatic Call Recording Enabled',
|
|
113
|
-
selective_enabled = 'Selective Call Recording Enabled'
|
|
114
|
-
}
|
|
115
|
-
export interface LineCallInfoDisplayInterface {
|
|
116
|
-
callerName: string;
|
|
117
|
-
callerNumber: string;
|
|
118
|
-
redirectedNumber: string;
|
|
119
|
-
dialedNumber: string;
|
|
120
|
-
}
|
|
121
|
-
export interface SiteShortDataInterface {
|
|
122
|
-
id: number;
|
|
123
|
-
name: string;
|
|
124
|
-
}
|
|
125
|
-
export interface DeviceExtraOptionsInterface {
|
|
126
|
-
mediaResourceGroupList: string;
|
|
127
|
-
userHoldMOHAudioSourceId: number;
|
|
128
|
-
userHoldMOHAudioSourceName: string;
|
|
129
|
-
networkMOHAudioSourceId: number;
|
|
130
|
-
networkMOHAudioSourceName: string;
|
|
131
|
-
aarCss: string;
|
|
132
|
-
aarGroup: string;
|
|
133
|
-
privacy: string;
|
|
134
|
-
deviceMobilityMode: string;
|
|
135
|
-
mobilityUserId: string;
|
|
136
|
-
phonePersonalization: string;
|
|
137
|
-
servicesProvisioning: string;
|
|
138
|
-
phoneLoadName: string;
|
|
139
|
-
phoneIdleBLFAlertSetting: string;
|
|
140
|
-
phoneBusyBLFAlertSetting: string;
|
|
141
|
-
useTrustedRelayPoint: string;
|
|
142
|
-
alwaysUsePrimeLine: string;
|
|
143
|
-
alwaysUsePrimeLineForVoiceMessage: string;
|
|
144
|
-
geolocation: string;
|
|
145
|
-
emergencyLocation: string;
|
|
146
|
-
ignorePresentationIndicators: boolean;
|
|
147
|
-
loggedIntoHuntGroup: boolean;
|
|
148
|
-
enabledExtensionMobility: boolean;
|
|
149
|
-
remoteDevice: boolean;
|
|
150
|
-
protectedDevice: boolean;
|
|
151
|
-
hotlineDevice: boolean;
|
|
152
|
-
useDevicePoolCgpnIngressDN: boolean;
|
|
153
|
-
cgpnIngressDN: string;
|
|
154
|
-
useDevicePoolCgpnTransformCss: boolean;
|
|
155
|
-
cgpnTransformationCss: string;
|
|
156
|
-
packetCaptureMode: string;
|
|
157
|
-
packetCaptureDuration: number;
|
|
158
|
-
blfPresenceGroup: string;
|
|
159
|
-
sipDialRules: string;
|
|
160
|
-
mtpPreferredOriginatingCodec: string;
|
|
161
|
-
rerouteCss: string;
|
|
162
|
-
subscribeCss: string;
|
|
163
|
-
mtpRequired: boolean;
|
|
164
|
-
unattendedPort: boolean;
|
|
165
|
-
requireDtmfReception: boolean;
|
|
166
|
-
informationUrl: string;
|
|
167
|
-
directoryUrl: string;
|
|
168
|
-
messagesUrl: string;
|
|
169
|
-
servicesUrl: string;
|
|
170
|
-
authenticationUrl: string;
|
|
171
|
-
proxyServerUrl: string;
|
|
172
|
-
idleUrl: string;
|
|
173
|
-
idleTimeout: string;
|
|
174
|
-
secureAuthenticationUrl: string;
|
|
175
|
-
secureDirectoryUrl: string;
|
|
176
|
-
secureIdleUrl: string;
|
|
177
|
-
secureInformationUrl: string;
|
|
178
|
-
secureMessageUrl: string;
|
|
179
|
-
secureServicesUrl: string;
|
|
180
|
-
mlppDomain: string;
|
|
181
|
-
mlppIndication: string;
|
|
182
|
-
mlppPreemption: string;
|
|
183
|
-
confidentialAccessMode: string;
|
|
184
|
-
confidentialAccessLevel: string;
|
|
185
|
-
confidentialAccessLevelName: string;
|
|
186
|
-
doNotDisturb: boolean;
|
|
187
|
-
dndOption: string;
|
|
188
|
-
dndIncomingCallAlert: string;
|
|
189
|
-
disableSpeakerphone: boolean;
|
|
190
|
-
disableSpeakerphoneAndHeadset: boolean;
|
|
191
|
-
forwardingDelay: boolean;
|
|
192
|
-
pcPort: boolean;
|
|
193
|
-
settingsAccess: string;
|
|
194
|
-
gratuitousARP: boolean;
|
|
195
|
-
pcVoiceVlanAccess: boolean;
|
|
196
|
-
videoCapabilities: boolean;
|
|
197
|
-
webAccess: boolean;
|
|
198
|
-
daysDisplayNotActive: string[];
|
|
199
|
-
displayOnTime: string;
|
|
200
|
-
displayOnDuration: string;
|
|
201
|
-
displayIdleTimeout: string;
|
|
202
|
-
wirelessHeadsetHookswitchControl: boolean;
|
|
203
|
-
minRingVolume: string;
|
|
204
|
-
showAllCallsOnPL: boolean;
|
|
205
|
-
lineMode: string;
|
|
206
|
-
latentCapabilityRegistration: string;
|
|
207
|
-
analogGatewayPortInformation: AnalogGatewayPortInformationInterFace;
|
|
208
|
-
}
|
|
209
|
-
export interface AnalogGatewayPortInformationInterFace {
|
|
210
|
-
portDirection: string;
|
|
211
|
-
prefixDn: string;
|
|
212
|
-
numDigits: number;
|
|
213
|
-
expectedDigits: number;
|
|
214
|
-
smdiPortNumber: number;
|
|
215
|
-
trunk: string;
|
|
216
|
-
unattendedPort: string;
|
|
217
|
-
}
|
|
218
|
-
export interface BusyLampFieldsInterface {
|
|
219
|
-
index: number;
|
|
220
|
-
position: number;
|
|
221
|
-
destination: string;
|
|
222
|
-
dnWithRoutePartition: string;
|
|
223
|
-
label: string;
|
|
224
|
-
callPickup: boolean;
|
|
225
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
export interface LineInterface {
|
|
2
|
-
description: string;
|
|
3
|
-
pkid: string;
|
|
4
|
-
entityChangeType: EntityChangeType;
|
|
5
|
-
alertingName: string;
|
|
6
|
-
asciiAlertingName: string;
|
|
7
|
-
callingSearchSpace: string;
|
|
8
|
-
voiceMailProfile: string;
|
|
9
|
-
noAnswerRingDuration: number;
|
|
10
|
-
autoAnswer: string;
|
|
11
|
-
directoryNumber: LineDirectoryInterface;
|
|
12
|
-
didPatterns: Array<TranslationPatternInterface>;
|
|
13
|
-
mappedDids: Array<string>;
|
|
14
|
-
aarSettings: LineAarInterface;
|
|
15
|
-
callForwardAll: CallInterface;
|
|
16
|
-
callForwardAllSecondaryCSS: CallInterface;
|
|
17
|
-
callForwardBusyInternal: CallInterface;
|
|
18
|
-
callForwardBusyExternal: CallInterface;
|
|
19
|
-
callForwardNoAnswerInternal: CallInterface;
|
|
20
|
-
callForwardNoAnswerExternal: CallInterface;
|
|
21
|
-
callForwardNoCoverageInternal: CallInterface;
|
|
22
|
-
callForwardNoCoverageExternal: CallInterface;
|
|
23
|
-
callForwardOnCTIFailure: CallInterface;
|
|
24
|
-
callForwardUnregisteredInternal: CallInterface;
|
|
25
|
-
callForwardUnregisteredExternal: CallInterface;
|
|
26
|
-
parkMonitoringExternal: LineParkMonitoringInterface;
|
|
27
|
-
parkMonitoringInternal: LineParkMonitoringInterface;
|
|
28
|
-
callPickupGroup: string;
|
|
29
|
-
localId: string;
|
|
30
|
-
urgentPriority: boolean;
|
|
31
|
-
blfPresenceGroup: string;
|
|
32
|
-
userHoldMOHAudioSourceId: string;
|
|
33
|
-
userHoldMOHAudioSourceName: string;
|
|
34
|
-
networkMOHAudioSourceId: string;
|
|
35
|
-
networkMOHAudioSourceName: string;
|
|
36
|
-
rejectAnonymousCall: boolean;
|
|
37
|
-
enterpriseAltNum: AlternateNumberInterface;
|
|
38
|
-
e164AltNum: AlternateNumberInterface;
|
|
39
|
-
directoryUris: Array<DirectoryUriInterface>;
|
|
40
|
-
callForwardAlternateParty: ParkMonitoringInterface;
|
|
41
|
-
mlppNoAnswerRingDuration: number;
|
|
42
|
-
confidentialAccessMode: string;
|
|
43
|
-
confidentialAccessLevel: string;
|
|
44
|
-
confidentialAccessLevelName: string;
|
|
45
|
-
callControlAgentProfile: string;
|
|
46
|
-
holdReversionRingDuration: number;
|
|
47
|
-
holdReversionNotificationInterval: number;
|
|
48
|
-
partyEntranceTone: string;
|
|
49
|
-
pstnFailover: string;
|
|
50
|
-
isExistingLine?: boolean;
|
|
51
|
-
plarDestinationNumber: string;
|
|
52
|
-
prefixDigits: string;
|
|
53
|
-
plarDescription: string;
|
|
54
|
-
plarEnabled: boolean;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export enum EntityChangeType {
|
|
58
|
-
added = 'added',
|
|
59
|
-
updated = 'updated',
|
|
60
|
-
existing = 'existing',
|
|
61
|
-
removed = 'removed',
|
|
62
|
-
unassociated = 'unassociated'
|
|
63
|
-
}
|
|
64
|
-
export interface LineDirectoryInterface {
|
|
65
|
-
directoryNumber: string;
|
|
66
|
-
routePartitionName: string;
|
|
67
|
-
pkid: string;
|
|
68
|
-
dnType: string;
|
|
69
|
-
subType?: string;
|
|
70
|
-
templateDirectoryNumber?: string;
|
|
71
|
-
}
|
|
72
|
-
export interface TranslationPatternInterface {
|
|
73
|
-
pattern: string;
|
|
74
|
-
calledPartyTransformationMask: string;
|
|
75
|
-
description?: string;
|
|
76
|
-
site?: SiteShortDataInterface;
|
|
77
|
-
hasMultipleSites?: boolean;
|
|
78
|
-
multipleSitesId?: string;
|
|
79
|
-
}
|
|
80
|
-
export interface SiteShortDataInterface {
|
|
81
|
-
id: number;
|
|
82
|
-
name: string;
|
|
83
|
-
}
|
|
84
|
-
export interface LineAarInterface {
|
|
85
|
-
aarDestinationMask: string;
|
|
86
|
-
aarGroup: string;
|
|
87
|
-
aarVoiceMailEnabled: boolean;
|
|
88
|
-
aarKeepCallHistory: boolean;
|
|
89
|
-
}
|
|
90
|
-
export interface CallInterface {
|
|
91
|
-
forwardToVoiceMail: boolean;
|
|
92
|
-
destination: string;
|
|
93
|
-
callingSearchSpace: string;
|
|
94
|
-
}
|
|
95
|
-
export interface LineParkMonitoringInterface {
|
|
96
|
-
voiceMail: boolean;
|
|
97
|
-
destination: string;
|
|
98
|
-
callingSearchSpace: string;
|
|
99
|
-
}
|
|
100
|
-
export interface AlternateNumberInterface {
|
|
101
|
-
numberMask: string;
|
|
102
|
-
addLocalRoutePartition: boolean;
|
|
103
|
-
routePartition: string;
|
|
104
|
-
isUrgent: boolean;
|
|
105
|
-
advertiseGloballyIls: boolean;
|
|
106
|
-
}
|
|
107
|
-
export interface DirectoryUriInterface {
|
|
108
|
-
primary: boolean;
|
|
109
|
-
uri: string;
|
|
110
|
-
routePartition: string;
|
|
111
|
-
advertiseGloballyIls: boolean;
|
|
112
|
-
}
|
|
113
|
-
export interface ParkMonitoringInterface {
|
|
114
|
-
destination: string;
|
|
115
|
-
callingSearchSpace: string;
|
|
116
|
-
voiceMail: boolean;
|
|
117
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const TTL_DEFAULT = 30000;
|
|
2
|
-
const TTL_LONG_DEFAULT = 45000;
|
|
3
|
-
|
|
4
|
-
export enum NotificationType {
|
|
5
|
-
info = 'info',
|
|
6
|
-
error = 'error',
|
|
7
|
-
success = 'success',
|
|
8
|
-
warning = 'warning'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class Notification {
|
|
12
|
-
id?: number;
|
|
13
|
-
type?: NotificationType;
|
|
14
|
-
message?: string;
|
|
15
|
-
ttl: number = TTL_DEFAULT;
|
|
16
|
-
timerId?: any;
|
|
17
|
-
|
|
18
|
-
constructor(data: any) {
|
|
19
|
-
Object.assign(this, data || {});
|
|
20
|
-
|
|
21
|
-
if(this.ttl === undefined) {
|
|
22
|
-
this.ttl = this.message && this.message.length && this.message.length < 80 ? TTL_DEFAULT : TTL_LONG_DEFAULT;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
isInfo(): boolean {
|
|
27
|
-
return this.type === NotificationType.info;
|
|
28
|
-
}
|
|
29
|
-
isError(): boolean {
|
|
30
|
-
return this.type === NotificationType.error;
|
|
31
|
-
}
|
|
32
|
-
isSuccess(): boolean {
|
|
33
|
-
return this.type === NotificationType.success;
|
|
34
|
-
}
|
|
35
|
-
isWarning(): boolean {
|
|
36
|
-
return this.type === NotificationType.warning;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface PaginationDataDtoInterface {
|
|
2
|
-
total: number;
|
|
3
|
-
pageSizeOptions?: number[];
|
|
4
|
-
pageSize: number;
|
|
5
|
-
pageIndex: number;
|
|
6
|
-
}
|
|
7
|
-
export class PaginationDataDto {
|
|
8
|
-
total?: number;
|
|
9
|
-
pageSizeOptions?: number[];
|
|
10
|
-
pageSize?: number;
|
|
11
|
-
pageIndex?: number;
|
|
12
|
-
|
|
13
|
-
constructor(pagination: PaginationDataDtoInterface) {
|
|
14
|
-
if (pagination) {
|
|
15
|
-
Object.assign(this, pagination);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { getSavableData } from '../utils/common-functions';
|
|
4
|
-
import { REGEX_PATTERN } from '../app.constants';
|
|
5
|
-
|
|
6
|
-
export class SimplifiedUser {
|
|
7
|
-
userid!: string;
|
|
8
|
-
email!: string;
|
|
9
|
-
firstName!: string;
|
|
10
|
-
lastName!: string;
|
|
11
|
-
token!: string;
|
|
12
|
-
viewMode!: string;
|
|
13
|
-
hasModifiedCache!: boolean;
|
|
14
|
-
newUserId?: string;
|
|
15
|
-
editMode!: boolean;
|
|
16
|
-
form!: FormGroup;
|
|
17
|
-
|
|
18
|
-
constructor(user?: any) {
|
|
19
|
-
if (user) {
|
|
20
|
-
this.userid = user.userid;
|
|
21
|
-
this.email = user.email;
|
|
22
|
-
this.firstName = user.firstName;
|
|
23
|
-
this.lastName = user.lastName;
|
|
24
|
-
this.token = user.token;
|
|
25
|
-
}
|
|
26
|
-
this.initForm()
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
initForm() {
|
|
30
|
-
const formBuilder = new FormBuilder();
|
|
31
|
-
const formSettings = {
|
|
32
|
-
userid: [{value: this.userid || '', disabled: true}, [Validators.required, Validators.maxLength(128)]],
|
|
33
|
-
email: [{value: this.email || '', disabled: true}, [
|
|
34
|
-
Validators.pattern(REGEX_PATTERN.EMAIL),
|
|
35
|
-
Validators.required
|
|
36
|
-
]],
|
|
37
|
-
firstName: [{value: this.firstName || '', disabled: true}],
|
|
38
|
-
lastName: [{value: this.lastName || '', disabled: true}, Validators.required],
|
|
39
|
-
};
|
|
40
|
-
this.form = formBuilder.group(formSettings);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
toggleEditMode() {
|
|
44
|
-
this.editMode = !this.editMode;
|
|
45
|
-
['userid', 'email', 'firstName', 'lastName'].forEach(token => {
|
|
46
|
-
if (this.editMode) {
|
|
47
|
-
this.form.get(token)?.enable();
|
|
48
|
-
} else {
|
|
49
|
-
this.form.get(token)?.disable();
|
|
50
|
-
}
|
|
51
|
-
})
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
getSavableData() {
|
|
55
|
-
const excludedFields: string[] = ['form', 'editMode', 'viewMode', 'token', 'hasModifiedCache'];
|
|
56
|
-
return getSavableData(this, excludedFields);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
equal(userToCompare?: SimplifiedUser): boolean {
|
|
60
|
-
if (!userToCompare) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
return JSON.stringify(this.getSavableData()) === JSON.stringify(userToCompare.getSavableData());
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface SimplifiedUserInterface {
|
|
69
|
-
userid: string;
|
|
70
|
-
email: string;
|
|
71
|
-
firstName: string;
|
|
72
|
-
lastName: string;
|
|
73
|
-
form?: FormGroup;
|
|
74
|
-
}
|