fas-admin 0.0.95 → 0.0.97
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/apply-subscription-plan.service.d.ts +16 -0
- package/api/apply-subscription-plan-result-vm.model.d.ts +4 -0
- package/api/apply-subscription-plan-to-company-im.model.d.ts +6 -0
- package/api/platform-user-account-vm.model.d.ts +1 -0
- package/esm2022/api/api-services/apply-subscription-plan.service.mjs +42 -0
- package/esm2022/api/apply-subscription-plan-result-vm.model.mjs +2 -0
- package/esm2022/api/apply-subscription-plan-to-company-im.model.mjs +2 -0
- package/esm2022/api/platform-user-account-vm.model.mjs +1 -1
- package/esm2022/lib/components/views/support-settings/support-settings.component.mjs +3 -3
- package/esm2022/lib/components/views/users/users-add-subscriptions/users-add-subscriptions.component.mjs +103 -43
- package/esm2022/lib/components/views/users/users-details/users-details.component.mjs +56 -30
- package/esm2022/lib/components/views/users/users-list/users-list.component.mjs +22 -2
- package/esm2022/lib/components/views/users/users.module.mjs +4 -3
- package/fesm2022/fas-admin.mjs +244 -102
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/views/users/users-add-subscriptions/users-add-subscriptions.component.d.ts +23 -17
- package/lib/components/views/users/users-details/users-details.component.d.ts +12 -9
- package/package.json +1 -1
package/lib/components/views/users/users-add-subscriptions/users-add-subscriptions.component.d.ts
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IPlatformSubscriptionPlanVm } from '../../../../../api/platform-subscription-plan-vm.model';
|
|
2
|
+
import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export interface IAssignedSubscriptionResult {
|
|
6
|
+
subscriptionPlan: string;
|
|
7
|
+
subscriptionPlanActiveTo: Date;
|
|
8
|
+
}
|
|
9
|
+
export declare class UsersAddSubscriptionsComponent implements OnInit {
|
|
10
|
+
private _plansService;
|
|
11
|
+
private _applySubscriptionPlanService;
|
|
12
|
+
private _dynamicDialogRef;
|
|
13
|
+
private _config;
|
|
14
|
+
private _messageService;
|
|
15
|
+
user: IPlatformUserAccountVm;
|
|
16
|
+
plans: IPlatformSubscriptionPlanVm[];
|
|
17
|
+
plansLoading: boolean;
|
|
18
|
+
selectedPlan: IPlatformSubscriptionPlanVm | null;
|
|
19
|
+
validTo: Date | null;
|
|
20
|
+
minimumDate: Date;
|
|
21
|
+
isSaving: boolean;
|
|
14
22
|
ngOnInit(): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
removeSub(index: number): void;
|
|
23
|
+
onPlanSelected(): void;
|
|
24
|
+
assignSubscription(): void;
|
|
18
25
|
closeDialog(): void;
|
|
19
|
-
getSubscriptionTypeColor(subscriptionType: string): "#16A34A" | "#0D9488" | "#16A34A80" | "#0D948880";
|
|
20
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersAddSubscriptionsComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UsersAddSubscriptionsComponent, "lib-users-add-subscriptions", never, {
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersAddSubscriptionsComponent, "lib-users-add-subscriptions", never, {}, {}, never, never, false, never>;
|
|
22
28
|
}
|
|
@@ -11,11 +11,12 @@ interface ReadOnlyData {
|
|
|
11
11
|
fieldTooltip?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare class UsersDetailsComponent implements OnInit {
|
|
14
|
-
private _expirationDateService;
|
|
15
14
|
private _loginAsParamService;
|
|
16
15
|
private _config;
|
|
17
16
|
private _dynamicDialogRef;
|
|
18
17
|
private _messageService;
|
|
18
|
+
private _primengDialogService;
|
|
19
|
+
private assignSubscriptionRef;
|
|
19
20
|
data: {
|
|
20
21
|
currentUserIndex: number;
|
|
21
22
|
usersListPerPage: IPlatformUserAccountVm[];
|
|
@@ -25,11 +26,8 @@ export declare class UsersDetailsComponent implements OnInit {
|
|
|
25
26
|
currentUser: IPlatformUserAccountVm;
|
|
26
27
|
currentUserIndex: number;
|
|
27
28
|
isEditMode: boolean;
|
|
28
|
-
isSubscriptionsEdit: boolean;
|
|
29
29
|
selectedTabIndex: number;
|
|
30
|
-
selectedSubscription: any;
|
|
31
30
|
permisions: string[];
|
|
32
|
-
daysToExtend: number;
|
|
33
31
|
transColumns: ({
|
|
34
32
|
field: string;
|
|
35
33
|
header: string;
|
|
@@ -53,19 +51,24 @@ export declare class UsersDetailsComponent implements OnInit {
|
|
|
53
51
|
sortable?: undefined;
|
|
54
52
|
})[];
|
|
55
53
|
ngOnInit(): void;
|
|
54
|
+
get currentUserSubscriptionRows(): IPlatformUserAccountVm[];
|
|
55
|
+
get subscriptionState(): {
|
|
56
|
+
label: string;
|
|
57
|
+
color: string;
|
|
58
|
+
};
|
|
56
59
|
closeDialog(status?: eModalRoles): void;
|
|
57
60
|
logAsCurrentUser(serviceType: 'Userserviceurl' | 'Admserviceurl'): void;
|
|
58
61
|
workInProgressMessage(action: string): void;
|
|
62
|
+
openAssignSubscription(): void;
|
|
59
63
|
moveUp(): void;
|
|
60
64
|
moveDown(): void;
|
|
61
65
|
private setReadOnlyFields;
|
|
62
66
|
handleTabSwitch($event: any): void;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
getSubscriptionState(activeTo?: Date): {
|
|
68
|
+
label: string;
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
67
71
|
showSuccess(): void;
|
|
68
|
-
editSubscriptionToggle(): void;
|
|
69
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersDetailsComponent, never>;
|
|
70
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersDetailsComponent, "lib-users-details", never, {}, {}, never, never, false, never>;
|
|
71
74
|
}
|