tango-app-ui-manage-users 3.4.0-alpha.8 → 3.7.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/esm2022/lib/components/tango-manage-users/add-user-popup/add-user-popup.component.mjs +66 -18
  2. package/esm2022/lib/components/tango-manage-users/assign-store-popup/assign-store-popup.component.mjs +182 -39
  3. package/esm2022/lib/components/tango-manage-users/audit-user/audit-user-earnings/audit-user-earnings.component.mjs +3 -3
  4. package/esm2022/lib/components/tango-manage-users/audit-user/audit-user-list/audit-user-list.component.mjs +3 -3
  5. package/esm2022/lib/components/tango-manage-users/brand-user/brand-user.component.mjs +197 -7
  6. package/esm2022/lib/components/tango-manage-users/group-select/group-select.component.mjs +155 -0
  7. package/esm2022/lib/components/tango-manage-users/roles-permission-table/roles-permission-table.component.mjs +3 -3
  8. package/esm2022/lib/components/tango-manage-users/tango-manage-users.component.mjs +3 -3
  9. package/esm2022/lib/components/tango-manage-users/user-table/alert-popup/alert-popup.component.mjs +3 -3
  10. package/esm2022/lib/components/tango-manage-users/user-table/user-table.component.mjs +3 -3
  11. package/esm2022/lib/components-v2/action-popup/action-popup.component.mjs +3 -3
  12. package/esm2022/lib/components-v2/add-users/add-users.component.mjs +65 -13
  13. package/esm2022/lib/components-v2/custom-select/custom-select.component.mjs +3 -3
  14. package/esm2022/lib/components-v2/teams-creation/teams-creation.component.mjs +12 -5
  15. package/esm2022/lib/components-v2/teams-list/teams-list.component.mjs +18 -5
  16. package/esm2022/lib/components-v2/users-list/users-list.component.mjs +3 -3
  17. package/esm2022/lib/components-v2/users-manage/users-manage.component.mjs +3 -3
  18. package/esm2022/lib/components-v2/viewteams-list/viewteams-list.component.mjs +28 -5
  19. package/esm2022/lib/services/excel.service.mjs +3 -3
  20. package/esm2022/lib/services/user.service.mjs +11 -4
  21. package/esm2022/lib/services-v2/manage-users.service.mjs +3 -3
  22. package/esm2022/lib/tango-manage-users-routing.module.mjs +4 -4
  23. package/esm2022/lib/tango-manage-users.module.mjs +8 -5
  24. package/fesm2022/tango-app-ui-manage-users.mjs +762 -130
  25. package/fesm2022/tango-app-ui-manage-users.mjs.map +1 -1
  26. package/lib/components/tango-manage-users/add-user-popup/add-user-popup.component.d.ts +3 -0
  27. package/lib/components/tango-manage-users/assign-store-popup/assign-store-popup.component.d.ts +21 -4
  28. package/lib/components/tango-manage-users/brand-user/brand-user.component.d.ts +19 -1
  29. package/lib/components/tango-manage-users/group-select/group-select.component.d.ts +33 -0
  30. package/lib/components-v2/add-users/add-users.component.d.ts +6 -0
  31. package/lib/components-v2/teams-creation/teams-creation.component.d.ts +1 -0
  32. package/lib/components-v2/teams-list/teams-list.component.d.ts +2 -0
  33. package/lib/components-v2/viewteams-list/viewteams-list.component.d.ts +3 -0
  34. package/lib/services/user.service.d.ts +3 -0
  35. package/lib/tango-manage-users.module.d.ts +10 -9
  36. package/package.json +1 -1
@@ -42,6 +42,8 @@ export declare class AddUserPopupComponent implements OnInit, OnDestroy {
42
42
  constructor(activeModal: NgbActiveModal, cd: ChangeDetectorRef, modalService: NgbModal, fb: FormBuilder, userService: UserService, ts: ToastService, gs: GlobalStateService);
43
43
  ngOnInit(): void;
44
44
  initUserForm(): void;
45
+ maskEmail(value: string): string;
46
+ maskMobile(value: string): string;
45
47
  loadUserForm(): void;
46
48
  toggleCollapse(index: number): void;
47
49
  addSingleUser(): void;
@@ -54,6 +56,7 @@ export declare class AddUserPopupComponent implements OnInit, OnDestroy {
54
56
  omit_special_char(event: any): boolean;
55
57
  getPermissions(): FormArray;
56
58
  getFeaturePermissions(permission: FormGroup | any): FormArray;
59
+ hasInvalidChars(value: string): boolean;
57
60
  onUpload(e: any): void;
58
61
  validateField(value: string | undefined | null | number, fieldName: string, row: number, regex?: RegExp): string | null;
59
62
  onRoleChange(role: string): void;
@@ -1,25 +1,30 @@
1
- import { ChangeDetectorRef, OnInit } from "@angular/core";
1
+ import { ChangeDetectorRef, OnInit, ElementRef } from "@angular/core";
2
2
  import { UserService } from "../../../services/user.service";
3
3
  import { ToastService } from "tango-app-ui-shared";
4
- import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
4
+ import { NgbActiveModal, NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class AssignStorePopupComponent implements OnInit {
7
7
  private userService;
8
8
  private cd;
9
9
  private ts;
10
10
  activeModal: NgbActiveModal;
11
+ private modalService;
11
12
  user: any;
12
13
  select: string;
13
14
  stores: any[];
14
15
  clusters: any[];
15
16
  teams: any[];
16
17
  $headerFilters: any;
18
+ modalRef: NgbModalRef;
17
19
  userData: any;
18
20
  userType: string;
19
21
  selectedTextstores: any;
20
22
  selectedTextclusters: any;
21
23
  selectedTextteams: any;
22
- constructor(userService: UserService, cd: ChangeDetectorRef, ts: ToastService, activeModal: NgbActiveModal);
24
+ inputFile: ElementRef;
25
+ afterValidation: any;
26
+ uploadPopUp: any;
27
+ constructor(userService: UserService, cd: ChangeDetectorRef, ts: ToastService, activeModal: NgbActiveModal, modalService: NgbModal);
23
28
  ngOnInit(): void;
24
29
  loadUserAssignDetails(): void;
25
30
  getAssignStoreList(): void;
@@ -38,8 +43,20 @@ export declare class AssignStorePopupComponent implements OnInit {
38
43
  toggleCheckboxStores(event: any, store: any, index: number, subIndex: number): void;
39
44
  toggleCheckboxTeams(event: any, team: any, index: number, subIndex: number): void;
40
45
  loadTable(values: any[]): void;
41
- toggleCheckboxclusters(event: any, cluster: any, index: number, subIndex: number): void;
46
+ onstoreSelect(event: any): void;
47
+ ongroupSelect(event: any): void;
48
+ onTeamsSelect(event: any): void;
42
49
  onSubmit(): void;
50
+ excelError: any;
51
+ excelData: any;
52
+ validatedOutput: any;
53
+ getStoreCounts(data: any): number;
54
+ fileError: boolean;
55
+ apiData: any;
56
+ onUpload(e: any): void;
57
+ proceedSubmit(): void;
58
+ closeactivepopup(): void;
59
+ afterUplload(data?: any): void;
43
60
  assignSubmit(): void;
44
61
  reAssignSubmit(): void;
45
62
  loadSelectedStores(stores: any[]): void;
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter, ElementRef } from '@angular/core';
2
2
  import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
3
3
  import { UserService } from "../../../services/user.service";
4
4
  import { ExcelService } from "../../../services/excel.service";
@@ -15,6 +15,9 @@ export declare class BrandUserComponent implements OnInit, OnDestroy {
15
15
  private toastService;
16
16
  private userService;
17
17
  dataToParent: EventEmitter<string>;
18
+ bulkUpload: any;
19
+ inputFile1: ElementRef;
20
+ afterValidation: any;
18
21
  receivedData: any;
19
22
  userData: string;
20
23
  searchValue: any;
@@ -30,6 +33,8 @@ export declare class BrandUserComponent implements OnInit, OnDestroy {
30
33
  searchInput: FormControl<string | null>;
31
34
  private readonly destroy$;
32
35
  roles: any;
36
+ fileError: boolean;
37
+ stores: any;
33
38
  rolesCount: any;
34
39
  SelectedTab: any;
35
40
  dataObject: any;
@@ -39,6 +44,8 @@ export declare class BrandUserComponent implements OnInit, OnDestroy {
39
44
  constructor(modalService: NgbModal, pageInfo: PageInfoService, changeDetector: ChangeDetectorRef, excelService: ExcelService, gs: GlobalStateService, toastService: ToastService, userService: UserService);
40
45
  setPageData(): void;
41
46
  ngOnInit(): void;
47
+ getMaskedValue(value: string, role: string): string;
48
+ getMaskedMobile(value: string, role: string): string;
42
49
  searchData(): void;
43
50
  users(type: any, user?: any): void;
44
51
  Viewusers(type: any, user?: any): void;
@@ -48,6 +55,17 @@ export declare class BrandUserComponent implements OnInit, OnDestroy {
48
55
  loadTable(): void;
49
56
  paginationSize(): number;
50
57
  exportXLSX(): void;
58
+ bulkAssignasxlsx(): void;
59
+ addSingleUser(): void;
60
+ excelError: any;
61
+ excelData: any;
62
+ validatedOutput: any;
63
+ getStoreCounts(data: any): number;
64
+ onUpload1(e: any): void;
65
+ Reupload(): void;
66
+ proceedSubmit(): void;
67
+ closeactivepopup(): void;
68
+ afterUplload(data?: any): void;
51
69
  userStatusChange(user: any, i: number): void;
52
70
  ngOnDestroy(): void;
53
71
  getRoles(): void;
@@ -0,0 +1,33 @@
1
+ import { ChangeDetectorRef, EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { UserService } from '../../../services/user.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GroupSelectComponent {
5
+ private cd;
6
+ private userService;
7
+ onClick(event: MouseEvent): void;
8
+ items: any;
9
+ searchField: string;
10
+ multi: boolean;
11
+ idField: string;
12
+ selectedValues: any;
13
+ disabled: boolean | undefined;
14
+ label: string;
15
+ selected: EventEmitter<any>;
16
+ filteredValues: any;
17
+ showDropdown: boolean;
18
+ searchValue: string;
19
+ instanceId: any;
20
+ constructor(cd: ChangeDetectorRef, userService: UserService);
21
+ ngOnInit(): void;
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ initializeItems(): void;
24
+ updateSelectedValues(): void;
25
+ openDropdown(event: any): void;
26
+ onInput(event: any): void;
27
+ onSelect(event: any, item: any): void;
28
+ onSelectAll(event: any): void;
29
+ emitSelectedValues(values: any[]): void;
30
+ checkIfAllSelected(): any;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<GroupSelectComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<GroupSelectComponent, "lib-group-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; }; }, { "selected": "selected"; }, never, never, false, never>;
33
+ }
@@ -49,6 +49,8 @@ export declare class AddUsersComponent implements OnDestroy, OnInit {
49
49
  onrolechange(event: any): void;
50
50
  onStoreSelect(event: any): void;
51
51
  cancel(): void;
52
+ maskEmail(value: string): string;
53
+ maskMobile(value: string): string;
52
54
  loadUserForm(): void;
53
55
  updateTangouserField(tangoUserType: any): void;
54
56
  initUserForm(): void;
@@ -57,6 +59,8 @@ export declare class AddUsersComponent implements OnDestroy, OnInit {
57
59
  getFeaturePermissions(rolespermission: FormGroup | any): FormArray;
58
60
  getUserPermissionData(roleName: string, userType: string): void;
59
61
  camelCaseToText(input: string): string;
62
+ originalEmail: string;
63
+ originalMobile: string;
60
64
  addUserSubmit(): void;
61
65
  onSubmit(): void;
62
66
  userUpdate(): void;
@@ -66,6 +70,8 @@ export declare class AddUsersComponent implements OnDestroy, OnInit {
66
70
  editUser(): void;
67
71
  isButtonDisabled(): boolean;
68
72
  setTeamLeads(teamList: any[]): void;
73
+ omitSpecialChar(event: KeyboardEvent): void;
74
+ omitSpecialCharPaste(event: ClipboardEvent): void;
69
75
  static ɵfac: i0.ɵɵFactoryDeclaration<AddUsersComponent, never>;
70
76
  static ɵcmp: i0.ɵɵComponentDeclaration<AddUsersComponent, "lib-add-users", never, { "type": { "alias": "type"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userType": { "alias": "userType"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
71
77
  }
@@ -44,6 +44,7 @@ export declare class TeamsCreationComponent implements OnInit, OnDestroy {
44
44
  cancel(): void;
45
45
  onCreateTeam(): void;
46
46
  onUpload(e: any): void;
47
+ omitSpecialChar(event: KeyboardEvent): void;
47
48
  static ɵfac: i0.ɵɵFactoryDeclaration<TeamsCreationComponent, never>;
48
49
  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>;
49
50
  }
@@ -30,8 +30,10 @@ export declare class TeamsListComponent implements OnInit {
30
30
  private readonly destroy$;
31
31
  selectedTeam: any;
32
32
  constructor(changeDetector: ChangeDetectorRef, userService: ManageUsersService, excelService: ExcelService, gs: GlobalStateService, ts: ToastService, router: Router, modalService: NgbModal);
33
+ users: any;
33
34
  ngOnInit(): void;
34
35
  exportXLSX(): void;
36
+ getMaskedValue(value: string, role: string): string;
35
37
  createTeam(): void;
36
38
  editTeamsdata(data: any): void;
37
39
  deleteTeam(data: any): void;
@@ -27,7 +27,10 @@ export declare class ViewteamsListComponent implements OnInit {
27
27
  filterByStatus: any;
28
28
  leadData: any;
29
29
  constructor(changeDetector: ChangeDetectorRef, userService: ManageUsersService, gs: GlobalStateService, excelService: ExcelService, modalService: NgbModal);
30
+ users: any;
30
31
  ngOnInit(): void;
32
+ getMaskedValue(value: string, role: string): string;
33
+ getMaskedMobile(value: string, role: string): string;
31
34
  exportXLSX(): void;
32
35
  Viewusers(type: any, user?: any): void;
33
36
  applyFilters(event: any): void;
@@ -12,6 +12,7 @@ export declare class UserService {
12
12
  private auditWalletApiUrl;
13
13
  dataSubject: BehaviorSubject<any>;
14
14
  rolesComms: BehaviorSubject<any>;
15
+ dropDownTrigger: BehaviorSubject<any>;
15
16
  private clusterApiUrl;
16
17
  private teamsApiUrl;
17
18
  constructor(http: HttpClient, gs: GlobalStateService);
@@ -27,6 +28,8 @@ export declare class UserService {
27
28
  getAssignStores(params: any): Observable<any>;
28
29
  getAssignGroups(params: any): Observable<any>;
29
30
  assignData(data: any): Observable<any>;
31
+ bulkUserAssign(data: any): Observable<any>;
32
+ bulkstoreAssign(data: any): Observable<any>;
30
33
  assignStores(data: any): Observable<any>;
31
34
  getAssignclusters(data: any): Observable<any>;
32
35
  getAssignteams(data: any): Observable<any>;
@@ -14,16 +14,17 @@ import * as i12 from "./components-v2/users-manage/users-manage.component";
14
14
  import * as i13 from "./components-v2/custom-select/custom-select.component";
15
15
  import * as i14 from "./components-v2/viewteams-list/viewteams-list.component";
16
16
  import * as i15 from "./components-v2/action-popup/action-popup.component";
17
- import * as i16 from "./components/tango-manage-users/audit-user/audit-user-earnings/audit-user-earnings.component";
18
- import * as i17 from "./components/tango-manage-users/audit-user/audit-user-list/audit-user-list.component";
19
- import * as i18 from "@angular/common";
20
- import * as i19 from "./tango-manage-users-routing.module";
21
- import * as i20 from "@angular/forms";
22
- import * as i21 from "ngx-pagination";
23
- import * as i22 from "@ng-bootstrap/ng-bootstrap";
24
- import * as i23 from "tango-app-ui-shared";
17
+ import * as i16 from "./components/tango-manage-users/group-select/group-select.component";
18
+ import * as i17 from "./components/tango-manage-users/audit-user/audit-user-earnings/audit-user-earnings.component";
19
+ import * as i18 from "./components/tango-manage-users/audit-user/audit-user-list/audit-user-list.component";
20
+ import * as i19 from "@angular/common";
21
+ import * as i20 from "./tango-manage-users-routing.module";
22
+ import * as i21 from "@angular/forms";
23
+ import * as i22 from "ngx-pagination";
24
+ import * as i23 from "@ng-bootstrap/ng-bootstrap";
25
+ import * as i24 from "tango-app-ui-shared";
25
26
  export declare class TangoManageUsersModule {
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<TangoManageUsersModule, never>;
27
- 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.AuditUserEarningsComponent, typeof i17.AuditUserListComponent], [typeof i18.CommonModule, typeof i19.TangoManageUsersRoutingModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.NgxPaginationModule, typeof i22.NgbAccordionModule, typeof i23.CommonSharedModule, typeof i22.NgbTooltipModule], 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 i19.CommonModule, typeof i20.TangoManageUsersRoutingModule, typeof i21.FormsModule, typeof i21.ReactiveFormsModule, typeof i22.NgxPaginationModule, typeof i23.NgbAccordionModule, typeof i24.CommonSharedModule, typeof i23.NgbTooltipModule], never>;
28
29
  static ɵinj: i0.ɵɵInjectorDeclaration<TangoManageUsersModule>;
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-ui-manage-users",
3
- "version": "3.4.0-alpha.8",
3
+ "version": "3.7.0-alpha.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0"