tango-app-ui-manage-users 3.7.0-alpha.2 → 3.7.0-alpha.4
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/esm2022/lib/components/tango-manage-users/assign-store-popup/assign-store-popup.component.mjs +9 -7
- package/esm2022/lib/components/tango-manage-users/brand-user/brand-user.component.mjs +24 -18
- package/esm2022/lib/components/tango-manage-users/user-table/alert-popup/alert-popup.component.mjs +23 -12
- package/esm2022/lib/components-v2/add-users/add-users.component.mjs +3 -3
- package/esm2022/lib/components-v2/chip-select/chip-select.component.mjs +178 -0
- package/esm2022/lib/components-v2/teams-creation/teams-creation.component.mjs +21 -9
- package/esm2022/lib/components-v2/teams-list/teams-list.component.mjs +36 -25
- package/esm2022/lib/components-v2/users-manage/users-manage.component.mjs +12 -9
- package/esm2022/lib/services-v2/manage-users.service.mjs +5 -1
- package/esm2022/lib/tango-manage-users.module.mjs +6 -3
- package/fesm2022/tango-app-ui-manage-users.mjs +301 -82
- package/fesm2022/tango-app-ui-manage-users.mjs.map +1 -1
- package/lib/components/tango-manage-users/brand-user/brand-user.component.d.ts +4 -1
- package/lib/components/tango-manage-users/user-table/alert-popup/alert-popup.component.d.ts +8 -4
- package/lib/components-v2/chip-select/chip-select.component.d.ts +36 -0
- package/lib/components-v2/teams-creation/teams-creation.component.d.ts +3 -0
- package/lib/components-v2/teams-list/teams-list.component.d.ts +2 -0
- package/lib/components-v2/users-manage/users-manage.component.d.ts +3 -1
- package/lib/services-v2/manage-users.service.d.ts +2 -0
- package/lib/tango-manage-users.module.d.ts +8 -7
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { ExcelService } from "../../../services/excel.service";
|
|
|
5
5
|
import { ToastService } from "tango-app-ui-shared";
|
|
6
6
|
import { GlobalStateService, PageInfoService } from "tango-app-ui-global";
|
|
7
7
|
import { FormControl } from "@angular/forms";
|
|
8
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class BrandUserComponent implements OnInit, OnDestroy {
|
|
10
11
|
modalService: NgbModal;
|
|
@@ -14,6 +15,8 @@ export declare class BrandUserComponent implements OnInit, OnDestroy {
|
|
|
14
15
|
gs: GlobalStateService;
|
|
15
16
|
private toastService;
|
|
16
17
|
private userService;
|
|
18
|
+
private router;
|
|
19
|
+
private route;
|
|
17
20
|
dataToParent: EventEmitter<string>;
|
|
18
21
|
bulkUpload: any;
|
|
19
22
|
inputFile1: ElementRef;
|
|
@@ -41,7 +44,7 @@ export declare class BrandUserComponent implements OnInit, OnDestroy {
|
|
|
41
44
|
filterByRoles: any;
|
|
42
45
|
filterByStatus: any;
|
|
43
46
|
userInfo: any;
|
|
44
|
-
constructor(modalService: NgbModal, pageInfo: PageInfoService, changeDetector: ChangeDetectorRef, excelService: ExcelService, gs: GlobalStateService, toastService: ToastService, userService: UserService);
|
|
47
|
+
constructor(modalService: NgbModal, pageInfo: PageInfoService, changeDetector: ChangeDetectorRef, excelService: ExcelService, gs: GlobalStateService, toastService: ToastService, userService: UserService, router: Router, route: ActivatedRoute);
|
|
45
48
|
setPageData(): void;
|
|
46
49
|
ngOnInit(): void;
|
|
47
50
|
getMaskedValue(value: string, role: string): string;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { ManageUsersService } from '../../../../services-v2/manage-users.service';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class AlertPopupComponent {
|
|
5
7
|
private activeModal;
|
|
8
|
+
private service;
|
|
6
9
|
private cd;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
private router;
|
|
11
|
+
private route;
|
|
12
|
+
user: any;
|
|
13
|
+
constructor(activeModal: NgbActiveModal, service: ManageUsersService, cd: ChangeDetectorRef, router: Router, route: ActivatedRoute);
|
|
10
14
|
cancel(): void;
|
|
11
15
|
onSubmit(): void;
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertPopupComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertPopupComponent, "lib-alert-popup", never, { "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertPopupComponent, "lib-alert-popup", never, { "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
18
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ManageUsersService } from '../../services-v2/manage-users.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChipSelectComponent implements OnInit, OnChanges {
|
|
5
|
+
private cd;
|
|
6
|
+
private authService;
|
|
7
|
+
onClick(event: MouseEvent): void;
|
|
8
|
+
items: any;
|
|
9
|
+
searchField: any[];
|
|
10
|
+
multi: boolean;
|
|
11
|
+
idField: string;
|
|
12
|
+
selectedValues: any;
|
|
13
|
+
disabled: boolean | undefined;
|
|
14
|
+
label: string;
|
|
15
|
+
badgeValue: string;
|
|
16
|
+
searchKey: any;
|
|
17
|
+
selected: EventEmitter<any>;
|
|
18
|
+
filteredValues: any;
|
|
19
|
+
showDropdown: boolean;
|
|
20
|
+
searchValue: string;
|
|
21
|
+
instanceId: any;
|
|
22
|
+
constructor(cd: ChangeDetectorRef, authService: ManageUsersService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
25
|
+
initializeItems(): void;
|
|
26
|
+
updateSelectedValues(): void;
|
|
27
|
+
openDropdown(event: any): void;
|
|
28
|
+
onInput(event: any): void;
|
|
29
|
+
onSelect(event: any, item: any): void;
|
|
30
|
+
onSelectAll(event: any): void;
|
|
31
|
+
emitSelectedValues(values: any[]): void;
|
|
32
|
+
checkIfAllSelected(): any;
|
|
33
|
+
removeBadge(data: any, index: any): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipSelectComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipSelectComponent, "lib-chip-select", never, { "items": { "alias": "items"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "badgeValue": { "alias": "badgeValue"; "required": false; }; "searchKey": { "alias": "searchKey"; "required": false; }; }, { "selected": "selected"; }, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -16,6 +16,7 @@ export declare class TeamsCreationComponent implements OnInit, OnDestroy {
|
|
|
16
16
|
modalService: NgbModal;
|
|
17
17
|
inputFile: ElementRef;
|
|
18
18
|
afterValidation: any;
|
|
19
|
+
confirmDelete: any;
|
|
19
20
|
private readonly destroy;
|
|
20
21
|
searchInput: FormControl<string | null>;
|
|
21
22
|
excelError: any;
|
|
@@ -56,6 +57,8 @@ export declare class TeamsCreationComponent implements OnInit, OnDestroy {
|
|
|
56
57
|
getStoreCounts(data: any): number;
|
|
57
58
|
validateDetails(data?: any): void;
|
|
58
59
|
closeactivepopup(): void;
|
|
60
|
+
removedChip(data: any): void;
|
|
61
|
+
preventClose(event: Event): void;
|
|
59
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<TeamsCreationComponent, never>;
|
|
60
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<TeamsCreationComponent, "lib-teams-creation", never, { "teamData": { "alias": "teamData"; "required": false; }; "type": { "alias": "type"; "required": false; }; "teamsUsers": { "alias": "teamsUsers"; "required": false; }; }, {}, never, never, false, never>;
|
|
61
64
|
}
|
|
@@ -19,6 +19,7 @@ export declare class TeamsListComponent implements OnInit {
|
|
|
19
19
|
tooltipContents: NgbTooltip;
|
|
20
20
|
inputFile: ElementRef;
|
|
21
21
|
afterValidation: any;
|
|
22
|
+
confirmDelete: any;
|
|
22
23
|
showcreatebutton: boolean;
|
|
23
24
|
excelError: any;
|
|
24
25
|
excelData: any;
|
|
@@ -61,6 +62,7 @@ export declare class TeamsListComponent implements OnInit {
|
|
|
61
62
|
getCheckedClusterCount(clusterMap: {
|
|
62
63
|
[key: string]: any;
|
|
63
64
|
}): number;
|
|
65
|
+
teamId: any;
|
|
64
66
|
DeleteAllTeam(): void;
|
|
65
67
|
afterUplload(data?: any): void;
|
|
66
68
|
getStoreCounts(data: any): number;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ManageUsersService } from '../../services-v2/manage-users.service';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UsersManageComponent implements OnInit, OnDestroy {
|
|
5
6
|
userService: ManageUsersService;
|
|
7
|
+
private router;
|
|
6
8
|
private readonly destroy;
|
|
7
9
|
selectedTab: any;
|
|
8
10
|
teamCount: any;
|
|
9
11
|
private readonly destroy$;
|
|
10
12
|
searchValue: any;
|
|
11
13
|
$headerFilters: any;
|
|
12
|
-
constructor(userService: ManageUsersService);
|
|
14
|
+
constructor(userService: ManageUsersService, router: ActivatedRoute);
|
|
13
15
|
ngOnDestroy(): void;
|
|
14
16
|
ngOnInit(): void;
|
|
15
17
|
selectedTabs(type: any): void;
|
|
@@ -6,6 +6,7 @@ export declare class ManageUsersService {
|
|
|
6
6
|
private http;
|
|
7
7
|
private gs;
|
|
8
8
|
dropDownTrigger: BehaviorSubject<null>;
|
|
9
|
+
tabChange: BehaviorSubject<null>;
|
|
9
10
|
private userApiUrl;
|
|
10
11
|
middlewareApiUrl: any;
|
|
11
12
|
teamsApiUrl: any;
|
|
@@ -28,6 +29,7 @@ export declare class ManageUsersService {
|
|
|
28
29
|
private viewTeamsSubject;
|
|
29
30
|
viewTeams$: Observable<boolean>;
|
|
30
31
|
setViewTeam(value: boolean): void;
|
|
32
|
+
changeTab(data: any): void;
|
|
31
33
|
teamsBulkUpload(data: any): Observable<any>;
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ManageUsersService, never>;
|
|
33
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<ManageUsersService>;
|
|
@@ -17,14 +17,15 @@ import * as i15 from "./components-v2/action-popup/action-popup.component";
|
|
|
17
17
|
import * as i16 from "./components/tango-manage-users/group-select/group-select.component";
|
|
18
18
|
import * as i17 from "./components/tango-manage-users/audit-user/audit-user-earnings/audit-user-earnings.component";
|
|
19
19
|
import * as i18 from "./components/tango-manage-users/audit-user/audit-user-list/audit-user-list.component";
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
20
|
+
import * as i19 from "./components-v2/chip-select/chip-select.component";
|
|
21
|
+
import * as i20 from "@angular/common";
|
|
22
|
+
import * as i21 from "./tango-manage-users-routing.module";
|
|
23
|
+
import * as i22 from "@angular/forms";
|
|
24
|
+
import * as i23 from "ngx-pagination";
|
|
25
|
+
import * as i24 from "@ng-bootstrap/ng-bootstrap";
|
|
26
|
+
import * as i25 from "tango-app-ui-shared";
|
|
26
27
|
export declare class TangoManageUsersModule {
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoManageUsersModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoManageUsersModule, [typeof i1.TangoManageUsersComponent, typeof i2.UserTableComponent, typeof i3.RolesPermissionTableComponent, typeof i4.AddUserPopupComponent, typeof i5.AssignStorePopupComponent, typeof i6.BrandUserComponent, typeof i7.AlertPopupComponent, typeof i8.AddUsersComponent, typeof i9.UsersListComponent, typeof i10.TeamsListComponent, typeof i11.TeamsCreationComponent, typeof i12.UsersManageComponent, typeof i13.CustomSelectComponent, typeof i14.ViewteamsListComponent, typeof i15.ActionPopupComponent, typeof i16.GroupSelectComponent, typeof i17.AuditUserEarningsComponent, typeof i18.AuditUserListComponent], [typeof
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoManageUsersModule, [typeof i1.TangoManageUsersComponent, typeof i2.UserTableComponent, typeof i3.RolesPermissionTableComponent, typeof i4.AddUserPopupComponent, typeof i5.AssignStorePopupComponent, typeof i6.BrandUserComponent, typeof i7.AlertPopupComponent, typeof i8.AddUsersComponent, typeof i9.UsersListComponent, typeof i10.TeamsListComponent, typeof i11.TeamsCreationComponent, typeof i12.UsersManageComponent, typeof i13.CustomSelectComponent, typeof i14.ViewteamsListComponent, typeof i15.ActionPopupComponent, typeof i16.GroupSelectComponent, typeof i17.AuditUserEarningsComponent, typeof i18.AuditUserListComponent, typeof i19.ChipSelectComponent], [typeof i20.CommonModule, typeof i21.TangoManageUsersRoutingModule, typeof i22.FormsModule, typeof i22.ReactiveFormsModule, typeof i23.NgxPaginationModule, typeof i24.NgbAccordionModule, typeof i25.CommonSharedModule, typeof i24.NgbTooltipModule], never>;
|
|
29
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<TangoManageUsersModule>;
|
|
30
31
|
}
|