fas-admin 0.0.81 → 0.0.82
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/my-account.service.d.ts +17 -0
- package/api/api-services/subscription-admin-cheat.service.d.ts +15 -0
- package/api/company-platform-subscription-vm.model.d.ts +6 -0
- package/api/company-with-user-role-vm.model.d.ts +22 -0
- package/api/my-account-im.model.d.ts +8 -0
- package/api/my-account-vm.model.d.ts +13 -0
- package/api/my-account-with-token-vm.model.d.ts +15 -0
- package/api/platform-user-account-vm.model.d.ts +1 -0
- package/api/subscription-admin-cheat-im.model.d.ts +8 -0
- package/api/subscription-admin-cheat-result-vm.model.d.ts +4 -0
- package/api/token-vm.model.d.ts +4 -0
- package/esm2022/api/api-services/my-account.service.mjs +39 -0
- package/esm2022/api/api-services/subscription-admin-cheat.service.mjs +53 -0
- package/esm2022/api/company-platform-subscription-vm.model.mjs +2 -0
- package/esm2022/api/company-with-user-role-vm.model.mjs +2 -0
- package/esm2022/api/my-account-im.model.mjs +2 -0
- package/esm2022/api/my-account-vm.model.mjs +2 -0
- package/esm2022/api/my-account-with-token-vm.model.mjs +2 -0
- package/esm2022/api/platform-user-account-vm.model.mjs +1 -1
- package/esm2022/api/subscription-admin-cheat-im.model.mjs +2 -0
- package/esm2022/api/subscription-admin-cheat-result-vm.model.mjs +2 -0
- package/esm2022/api/token-vm.model.mjs +2 -0
- package/esm2022/lib/components/views/users/users-details/users-details.component.mjs +91 -6
- package/esm2022/lib/components/views/users/users.module.mjs +5 -1
- package/fesm2022/fas-admin.mjs +172 -5
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/views/users/users-details/users-details.component.d.ts +16 -2
- package/lib/components/views/users/users.module.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { eModalRoles } from '../../../../shared/models/modals';
|
|
4
|
+
import { IPlatformSubscriptionPlanVm } from '../../../../../api/platform-subscription-plan-vm.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
interface ReadOnlyData {
|
|
6
7
|
name: keyof IPlatformUserAccountVm;
|
|
@@ -11,11 +12,14 @@ interface ReadOnlyData {
|
|
|
11
12
|
fieldTooltip?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare class UsersDetailsComponent implements OnInit {
|
|
15
|
+
private _platformAvailableSubscriptionPlansService;
|
|
16
|
+
private _subscriptionAdminCheatService;
|
|
14
17
|
private _expirationDateService;
|
|
15
18
|
private _loginAsParamService;
|
|
16
|
-
private
|
|
19
|
+
private _myAccountService;
|
|
17
20
|
private _dynamicDialogRef;
|
|
18
21
|
private _messageService;
|
|
22
|
+
private _config;
|
|
19
23
|
data: {
|
|
20
24
|
currentUserIndex: number;
|
|
21
25
|
usersListPerPage: IPlatformUserAccountVm[];
|
|
@@ -26,10 +30,15 @@ export declare class UsersDetailsComponent implements OnInit {
|
|
|
26
30
|
currentUserIndex: number;
|
|
27
31
|
isEditMode: boolean;
|
|
28
32
|
isSubscriptionsEdit: boolean;
|
|
33
|
+
availableSubscriptionPlans: IPlatformSubscriptionPlanVm[];
|
|
29
34
|
selectedTabIndex: number;
|
|
30
35
|
selectedSubscription: any;
|
|
31
36
|
permisions: string[];
|
|
32
37
|
daysToExtend: number;
|
|
38
|
+
extendingSubscription: boolean;
|
|
39
|
+
authKey: string;
|
|
40
|
+
companyGuid: string;
|
|
41
|
+
editingPlanGuid: string | null;
|
|
33
42
|
transColumns: ({
|
|
34
43
|
field: string;
|
|
35
44
|
header: string;
|
|
@@ -65,7 +74,12 @@ export declare class UsersDetailsComponent implements OnInit {
|
|
|
65
74
|
getSubscriptionTypeColor(subscriptionType: string, subscriptionStatus: string): "#16A34A" | "#0D9488" | "#16A34A80" | "#0D948880";
|
|
66
75
|
getSubscriptionStatusColor(subscriptionStatus: string): string;
|
|
67
76
|
showSuccess(): void;
|
|
68
|
-
editSubscriptionToggle(): void;
|
|
77
|
+
editSubscriptionToggle(planGuid?: string): void;
|
|
78
|
+
isEditingPlan(planGuid: string): boolean;
|
|
79
|
+
isSubscriptionActive(subscriptionPlan: IPlatformSubscriptionPlanVm): boolean;
|
|
80
|
+
isSubscriptionExpired(subscriptionPlan: IPlatformSubscriptionPlanVm): boolean;
|
|
81
|
+
getSubscriptionExpirationDate(): Date | null;
|
|
82
|
+
extendSubscription(subscriptionPlan: IPlatformSubscriptionPlanVm): void;
|
|
69
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersDetailsComponent, never>;
|
|
70
84
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersDetailsComponent, "lib-users-details", never, {}, {}, never, never, false, never>;
|
|
71
85
|
}
|
|
@@ -22,9 +22,10 @@ import * as i20 from "primeng/toast";
|
|
|
22
22
|
import * as i21 from "primeng/table";
|
|
23
23
|
import * as i22 from "primeng/tooltip";
|
|
24
24
|
import * as i23 from "primeng/inputtext";
|
|
25
|
-
import * as i24 from "
|
|
25
|
+
import * as i24 from "primeng/button";
|
|
26
|
+
import * as i25 from "../../../shared/components/subscription-tag/subscription-tag.component";
|
|
26
27
|
export declare class UsersModule {
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersModule, never>;
|
|
28
|
-
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, typeof i22.TooltipModule, typeof i23.InputTextModule, typeof i13.CalendarModule, typeof
|
|
29
|
+
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, typeof i22.TooltipModule, typeof i23.InputTextModule, typeof i24.ButtonModule, typeof i13.CalendarModule, typeof i25.SubscriptionTagComponent], never>;
|
|
29
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<UsersModule>;
|
|
30
31
|
}
|