fas-admin 0.0.25 → 0.0.58
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/api/api-services/login-as-param.service.d.ts +15 -0
- package/api/api-services/platform-users.service.d.ts +3 -2
- package/api/logi-as-result-vm.model.d.ts +4 -0
- package/api/login-as-im.model.d.ts +4 -0
- package/api/paginated-result-platform-user-account-vm.model.d.ts +8 -0
- package/api/platform-user-account-vm.model.d.ts +20 -0
- package/esm2022/api/api-services/login-as-param.service.mjs +34 -0
- package/esm2022/api/api-services/platform-users.service.mjs +5 -7
- package/esm2022/api/logi-as-result-vm.model.mjs +2 -0
- package/esm2022/api/login-as-im.model.mjs +2 -0
- package/esm2022/api/models/api-url.token.mjs +3 -0
- package/esm2022/api/paginated-result-platform-user-account-vm.model.mjs +2 -0
- package/esm2022/api/platform-user-account-vm.model.mjs +2 -0
- package/esm2022/lib/components/views/messages/messages-newsletter/messages-newsletter.component.mjs +1 -1
- package/esm2022/lib/components/views/messages/messages-sent/messages-sent.component.mjs +1 -1
- package/esm2022/lib/components/views/messages/messages-templates/messages-templates.component.mjs +1 -1
- package/esm2022/lib/components/views/messages/messages.module.mjs +2 -6
- package/esm2022/lib/components/views/operators/operators-list/operators-list.component.mjs +1 -1
- package/esm2022/lib/components/views/statistics/statistic-list/statistic-list.component.mjs +1 -1
- package/esm2022/lib/components/views/subscriptions/subscriptions-list/subscriptions-list.component.mjs +1 -1
- package/esm2022/lib/components/views/users/users-details/users-details.component.mjs +33 -22
- package/esm2022/lib/components/views/users/users-list/users-list.component.mjs +125 -72
- package/esm2022/lib/components/views/users/users.module.mjs +6 -6
- package/esm2022/lib/fas-admin.component.mjs +5 -5
- package/esm2022/lib/fas-admin.module.mjs +31 -20
- package/esm2022/lib/shared/models/fas-admin-models.mjs +1 -1
- package/esm2022/lib/shared/tokens/fas-lib-config.token.mjs +2 -2
- package/esm2022/public-api.mjs +7 -4
- package/fesm2022/fas-admin.mjs +331 -225
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/views/messages/messages.module.d.ts +1 -2
- package/lib/components/views/users/users-details/users-details.component.d.ts +5 -2
- package/lib/components/views/users/users-list/users-list.component.d.ts +28 -79
- package/lib/components/views/users/users.module.d.ts +1 -1
- package/lib/fas-admin.component.d.ts +1 -1
- package/lib/fas-admin.module.d.ts +4 -4
- package/lib/shared/models/fas-admin-models.d.ts +1 -1
- package/lib/shared/tokens/fas-lib-config.token.d.ts +1 -1
- package/package.json +3 -1
- package/public-api.d.ts +3 -3
- package/esm2022/api/api-url.token.mjs +0 -3
- /package/api/{api-url.token.d.ts → models/api-url.token.d.ts} +0 -0
|
@@ -11,9 +11,8 @@ import * as i9 from "primeng/button";
|
|
|
11
11
|
import * as i10 from "primeng/tabview";
|
|
12
12
|
import * as i11 from "@angular/common";
|
|
13
13
|
import * as i12 from "primeng/dialog";
|
|
14
|
-
import * as i13 from "primeng/editor";
|
|
15
14
|
export declare class MessagesModule {
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessagesModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MessagesModule, [typeof i1.MessagesNewsletterComponent, typeof i2.MessageNewTemplateComponent, typeof i3.MessagesTemplatesComponent, typeof i4.MessageNewSendComponent, typeof i5.MessagesSentComponent, typeof i6.MessagesComponent], [typeof i7.FasServiceTableComponent, typeof i8.ReactiveFormsModule, typeof i9.ButtonModule, typeof i10.TabViewModule, typeof i11.CommonModule, typeof i12.DialogModule, typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MessagesModule, [typeof i1.MessagesNewsletterComponent, typeof i2.MessageNewTemplateComponent, typeof i3.MessagesTemplatesComponent, typeof i4.MessageNewSendComponent, typeof i5.MessagesSentComponent, typeof i6.MessagesComponent], [typeof i7.FasServiceTableComponent, typeof i8.ReactiveFormsModule, typeof i9.ButtonModule, typeof i10.TabViewModule, typeof i11.CommonModule, typeof i12.DialogModule, typeof i8.FormsModule], never>;
|
|
18
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<MessagesModule>;
|
|
19
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
|
|
1
2
|
import { IDetailsControl } from '../../../../shared/models/details-control';
|
|
2
3
|
import { FormGroup } from '@angular/forms';
|
|
3
4
|
import { SimpleChanges, OnDestroy, OnInit } from '@angular/core';
|
|
@@ -5,10 +6,11 @@ import * as i0 from "@angular/core";
|
|
|
5
6
|
export declare class UsersDetailsComponent implements OnInit, OnDestroy {
|
|
6
7
|
dialogID_usersDetails: string;
|
|
7
8
|
userIndex: number;
|
|
8
|
-
usersList:
|
|
9
|
-
user:
|
|
9
|
+
usersList: IPlatformUserAccountVm[];
|
|
10
|
+
user: IPlatformUserAccountVm;
|
|
10
11
|
private dialogStateSubscription;
|
|
11
12
|
private _expirationDateService;
|
|
13
|
+
private _loginAsParamService;
|
|
12
14
|
private _messageService;
|
|
13
15
|
private _dialogService;
|
|
14
16
|
private _fb;
|
|
@@ -50,6 +52,7 @@ export declare class UsersDetailsComponent implements OnInit, OnDestroy {
|
|
|
50
52
|
ngOnInit(): void;
|
|
51
53
|
ngOnDestroy(): void;
|
|
52
54
|
ngOnChanges(changes: SimpleChanges): void;
|
|
55
|
+
logAsCurrentUser(serviceType: 'Userserviceurl' | 'Admserviceurl'): void;
|
|
53
56
|
handleTabSwitch($event: any): void;
|
|
54
57
|
getSubscriptionStatus(subscriptionStatus: string): string;
|
|
55
58
|
getSubscriptionStatusMessage(subscriptionStatus: string): string;
|
|
@@ -1,89 +1,38 @@
|
|
|
1
|
+
import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
|
|
2
|
+
import { FASDynamicTableColumnConfig } from 'fas-services';
|
|
1
3
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class UsersListComponent implements OnInit {
|
|
7
|
+
private _dialogService;
|
|
8
|
+
private _platformUsersService;
|
|
9
|
+
columns: FASDynamicTableColumnConfig<IPlatformUserAccountVm>[];
|
|
10
|
+
fetchUsers: (params: {
|
|
11
|
+
page: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
sortField?: keyof IPlatformUserAccountVm;
|
|
14
|
+
sortOrder?: number;
|
|
15
|
+
search?: string;
|
|
16
|
+
}) => Observable<{
|
|
17
|
+
data: IPlatformUserAccountVm[];
|
|
18
|
+
total: number;
|
|
19
|
+
}>;
|
|
5
20
|
dialogID_usersDetails: string;
|
|
6
|
-
dialogID_addUser: string;
|
|
7
21
|
userSelected: any | null;
|
|
8
|
-
|
|
9
|
-
|
|
22
|
+
usersList: IPlatformUserAccountVm[];
|
|
23
|
+
currentUser: IPlatformUserAccountVm;
|
|
10
24
|
userIndex: number;
|
|
11
|
-
user: any;
|
|
12
|
-
private _expirationDateService;
|
|
13
|
-
private _dialogService;
|
|
14
|
-
usersFooterBtn: IFooterButtonOptions;
|
|
15
|
-
userColumns: ({
|
|
16
|
-
field: string;
|
|
17
|
-
header: string;
|
|
18
|
-
sortable: boolean;
|
|
19
|
-
columnClass: string;
|
|
20
|
-
actions: {
|
|
21
|
-
label: string;
|
|
22
|
-
buttonClass: string;
|
|
23
|
-
callback: (user: any, userIndex: number) => void;
|
|
24
|
-
icoSuffix: string;
|
|
25
|
-
}[];
|
|
26
|
-
prefix?: undefined;
|
|
27
|
-
contentClass?: undefined;
|
|
28
|
-
styleBackgroundFunction?: undefined;
|
|
29
|
-
valueFunction?: undefined;
|
|
30
|
-
styleColorFunction?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
field: string;
|
|
33
|
-
header: string;
|
|
34
|
-
sortable: boolean;
|
|
35
|
-
columnClass: string;
|
|
36
|
-
actions?: undefined;
|
|
37
|
-
prefix?: undefined;
|
|
38
|
-
contentClass?: undefined;
|
|
39
|
-
styleBackgroundFunction?: undefined;
|
|
40
|
-
valueFunction?: undefined;
|
|
41
|
-
styleColorFunction?: undefined;
|
|
42
|
-
} | {
|
|
43
|
-
field: string;
|
|
44
|
-
header: string;
|
|
45
|
-
prefix: string;
|
|
46
|
-
sortable: boolean;
|
|
47
|
-
contentClass: string;
|
|
48
|
-
styleBackgroundFunction: (rowData: any) => string;
|
|
49
|
-
columnClass?: undefined;
|
|
50
|
-
actions?: undefined;
|
|
51
|
-
valueFunction?: undefined;
|
|
52
|
-
styleColorFunction?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
field: string;
|
|
55
|
-
header: string;
|
|
56
|
-
sortable: boolean;
|
|
57
|
-
valueFunction: (rowData: any) => string;
|
|
58
|
-
styleColorFunction: (rowData: any) => string;
|
|
59
|
-
columnClass?: undefined;
|
|
60
|
-
actions?: undefined;
|
|
61
|
-
prefix?: undefined;
|
|
62
|
-
contentClass?: undefined;
|
|
63
|
-
styleBackgroundFunction?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
field: string;
|
|
66
|
-
header: string;
|
|
67
|
-
sortable: boolean;
|
|
68
|
-
columnClass: string;
|
|
69
|
-
actions: {
|
|
70
|
-
label: string;
|
|
71
|
-
tooltip: string;
|
|
72
|
-
buttonClass: string;
|
|
73
|
-
}[];
|
|
74
|
-
prefix?: undefined;
|
|
75
|
-
contentClass?: undefined;
|
|
76
|
-
styleBackgroundFunction?: undefined;
|
|
77
|
-
valueFunction?: undefined;
|
|
78
|
-
styleColorFunction?: undefined;
|
|
79
|
-
})[];
|
|
80
25
|
ngOnInit(): void;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
openDialog
|
|
26
|
+
handleDataLoaded(data: IPlatformUserAccountVm[]): void;
|
|
27
|
+
private editUser;
|
|
28
|
+
private deleteUser;
|
|
29
|
+
private addSubsccription;
|
|
30
|
+
private showUserDetails;
|
|
31
|
+
private openDialog;
|
|
32
|
+
private getCurrentUserIndex;
|
|
33
|
+
private getSubscriptionStatus;
|
|
34
|
+
private formatDate;
|
|
35
|
+
private copyToClipboard;
|
|
87
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersListComponent, never>;
|
|
88
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersListComponent, "lib-users-list", never, {}, {}, never, never, false, never>;
|
|
89
38
|
}
|
|
@@ -22,6 +22,6 @@ import * as i20 from "primeng/toast";
|
|
|
22
22
|
import * as i21 from "primeng/table";
|
|
23
23
|
export declare class UsersModule {
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UsersModule, [typeof i1.UsersAddSubscriptionsComponent, typeof i2.UsersAddUserComponent, typeof i3.UsersDetailsComponent, typeof i4.UsersListComponent, typeof i5.UsersComponent], [typeof i6.
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UsersModule, [typeof i1.UsersAddSubscriptionsComponent, typeof i2.UsersAddUserComponent, typeof i3.UsersDetailsComponent, typeof i4.UsersListComponent, typeof i5.UsersComponent], [typeof i6.FasServiceDynamicTableComponent, typeof i7.ProgressSpinnerModule, typeof i8.ReactiveFormsModule, typeof i9.InputNumberModule, typeof i10.MultiSelectModule, typeof i11.HttpClientModule, typeof i12.FileUploadModule, typeof i13.CalendarModule, typeof i14.CheckboxModule, typeof i15.DropdownModule, typeof i16.StepperModule, typeof i17.TabViewModule, typeof i18.DialogModule, typeof i19.CommonModule, typeof i8.FormsModule, typeof i20.ToastModule, typeof i21.TableModule], never>;
|
|
26
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<UsersModule>;
|
|
27
27
|
}
|
|
@@ -7,7 +7,7 @@ export declare class FASAdminComponent implements OnInit {
|
|
|
7
7
|
visableDefaultButtonList: IFASButtonList[];
|
|
8
8
|
specButtonList: IFASButtonList[];
|
|
9
9
|
ngOnInit(): void;
|
|
10
|
-
setSidebarButtons(configData: IFASAdminConfigInitializer, buttonList: IFASButtonList[]): IFASButtonList[];
|
|
10
|
+
setSidebarButtons(configData: IFASAdminConfigInitializer, buttonList: IFASButtonList[], isDefaultList: boolean): IFASButtonList[];
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminComponent, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<FASAdminComponent, "lib-fas-admin", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FASAdminService } from './fas-admin.service';
|
|
2
1
|
import { IFASAdminConfigInitializer } from './shared/models/fas-admin-models';
|
|
2
|
+
import { FASAdminService } from './fas-admin.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./fas-admin.component";
|
|
5
5
|
import * as i2 from "./components/layout/top-bar/top-bar.component";
|
|
@@ -7,8 +7,8 @@ import * as i3 from "./components/layout/side-bar/side-bar.component";
|
|
|
7
7
|
import * as i4 from "@angular/common";
|
|
8
8
|
import * as i5 from "@angular/router";
|
|
9
9
|
import * as i6 from "./components/views/subscriptions/subscriptions.module";
|
|
10
|
-
import * as i7 from "./components/views/
|
|
11
|
-
import * as i8 from "./components/views/
|
|
10
|
+
import * as i7 from "./components/views/operators/operators.module";
|
|
11
|
+
import * as i8 from "./components/views/statistics/statistic.module";
|
|
12
12
|
import * as i9 from "./components/views/messages/messages.module";
|
|
13
13
|
import * as i10 from "./components/views/users/users.module";
|
|
14
14
|
export declare class FASAdminModule {
|
|
@@ -17,6 +17,6 @@ export declare class FASAdminModule {
|
|
|
17
17
|
constructor(configData: IFASAdminConfigInitializer, fasAdminService: FASAdminService);
|
|
18
18
|
private generateRoutes;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FASAdminModule, [typeof i1.FASAdminComponent, typeof i2.TopBarComponent, typeof i3.SideBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.SubscriptionsModule, typeof i7.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FASAdminModule, [typeof i1.FASAdminComponent, typeof i2.TopBarComponent, typeof i3.SideBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.SubscriptionsModule, typeof i7.OperatorsModule, typeof i8.StatisticModule, typeof i9.MessagesModule, typeof i10.UsersModule], never>;
|
|
21
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<FASAdminModule>;
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { API_URL } from '../../../api/api-url.token';
|
|
2
1
|
import { IFASAdminConfigInitializer } from '../models/fas-admin-models';
|
|
2
|
+
import { API_URL } from '../../../api/models/api-url.token';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FAS_LIB_CONFIG: InjectionToken<IFASAdminConfigInitializer>;
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fas-admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.2.0",
|
|
6
6
|
"@angular/core": "^17.2.0",
|
|
7
|
+
"@angular/forms": "^17.2.0",
|
|
8
|
+
"@angular/router": "^17.2.0",
|
|
7
9
|
"jwt-decode": "^3.1.2"
|
|
8
10
|
},
|
|
9
11
|
"dependencies": {
|
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './lib/shared/models/fas-admin-models';
|
|
2
|
-
export * from './lib/fas-admin.service';
|
|
3
|
-
export * from './lib/fas-admin.module';
|
|
4
2
|
export * from './lib/shared/tokens/fas-lib-config.token';
|
|
5
3
|
export * from './lib/shared/const/fas-default-config';
|
|
6
|
-
export * from './api/api-url.token';
|
|
4
|
+
export * from './api/models/api-url.token';
|
|
5
|
+
export * from './lib/fas-admin.service';
|
|
6
|
+
export * from './lib/fas-admin.module';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const API_URL = new InjectionToken('API_URL');
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLXVybC50b2tlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Zhcy1hZG1pbi9zcmMvYXBpL2FwaS11cmwudG9rZW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvQyxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxjQUFjLENBQVMsU0FBUyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgQVBJX1VSTCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxzdHJpbmc+KCdBUElfVVJMJyk7XG4iXX0=
|
|
File without changes
|