fas-admin 0.0.33 → 0.0.59
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/README.md +8 -8
- package/api/api-services/login-as-param.service.d.ts +15 -0
- package/api/api-services/platform-available-subscription-plans.service.d.ts +14 -0
- package/api/api-services/platform-subscription-usage.service.d.ts +15 -0
- package/api/api-services/platform-users.service.d.ts +15 -0
- package/api/logi-as-result-vm.model.d.ts +4 -0
- package/api/login-as-im.model.d.ts +4 -0
- package/api/models/api-url.token.d.ts +2 -0
- package/api/paginated-result-platform-user-account-vm.model.d.ts +8 -0
- package/{fas-payments → api}/plan-feature-vm.model.d.ts +2 -2
- package/api/platform-subscription-plan-vm.model.d.ts +26 -0
- package/api/platform-user-account-vm.model.d.ts +20 -0
- package/api/sort-order.model.d.ts +4 -0
- package/esm2022/api/api-services/login-as-param.service.mjs +34 -0
- package/esm2022/api/api-services/platform-available-subscription-plans.service.mjs +38 -0
- package/esm2022/api/api-services/platform-subscription-usage.service.mjs +50 -0
- package/esm2022/api/api-services/platform-users.service.mjs +50 -0
- 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/plan-feature-vm.model.mjs +2 -0
- package/esm2022/api/platform-subscription-plan-vm.model.mjs +2 -0
- package/esm2022/api/platform-user-account-vm.model.mjs +2 -0
- package/esm2022/api/sort-order.model.mjs +6 -0
- package/esm2022/fas-admin.mjs +1 -1
- package/esm2022/lib/components/layout/side-bar/side-bar.component.mjs +26 -0
- package/esm2022/lib/components/layout/top-bar/top-bar.component.mjs +39 -0
- package/esm2022/lib/components/views/dashboard/dashboard.component.mjs +11 -0
- package/esm2022/lib/components/views/messages/message-new-send/message-new-send.component.mjs +50 -0
- package/esm2022/lib/components/views/messages/message-new-template/message-new-template.component.mjs +50 -0
- package/esm2022/lib/components/views/messages/messages-newsletter/messages-newsletter.component.mjs +48 -0
- package/esm2022/lib/components/views/messages/messages-sent/messages-sent.component.mjs +105 -0
- package/esm2022/lib/components/views/messages/messages-templates/messages-templates.component.mjs +79 -0
- package/esm2022/lib/components/views/messages/messages.component.mjs +28 -0
- package/esm2022/lib/components/views/messages/messages.module.mjs +59 -0
- package/esm2022/lib/components/views/messages/mocked-data.mjs +35 -0
- package/esm2022/lib/components/views/operators/operators-details/operators-details.component.mjs +104 -0
- package/esm2022/lib/components/views/operators/operators-list/operators-list.component.mjs +84 -0
- package/esm2022/lib/components/views/operators/operators.component.mjs +12 -0
- package/esm2022/lib/components/views/operators/operators.module.mjs +48 -0
- package/esm2022/lib/components/views/statistics/statistic-income/statistic-income.component.mjs +12 -0
- package/esm2022/lib/components/views/statistics/statistic-list/statistic-list.component.mjs +153 -0
- package/esm2022/lib/components/views/statistics/statistic.module.mjs +29 -0
- package/esm2022/lib/components/views/statistics/statistics.component.mjs +13 -0
- package/esm2022/lib/components/views/subscriptions/mocked-data.mjs +27 -0
- package/esm2022/lib/components/views/subscriptions/subscriptions-add-new/subscriptions-add-new.component.mjs +49 -0
- package/esm2022/lib/components/views/subscriptions/subscriptions-details/subscriptions-details.component.mjs +95 -0
- package/esm2022/lib/components/views/subscriptions/subscriptions-list/subscriptions-list.component.mjs +145 -0
- package/esm2022/lib/components/views/subscriptions/subscriptions.component.mjs +12 -0
- package/esm2022/lib/components/views/subscriptions/subscriptions.module.mjs +70 -0
- package/esm2022/lib/components/views/users/mocked-data.mjs +313 -0
- package/esm2022/lib/components/views/users/users-add-subscriptions/users-add-subscriptions.component.mjs +60 -0
- package/esm2022/lib/components/views/users/users-add-user/users-add-user.component.mjs +83 -0
- package/esm2022/lib/components/views/users/users-details/users-details.component.mjs +201 -0
- package/esm2022/lib/components/views/users/users-list/users-list.component.mjs +172 -0
- package/esm2022/lib/components/views/users/users.component.mjs +19 -0
- package/esm2022/lib/components/views/users/users.module.mjs +98 -0
- package/esm2022/lib/core/guards/fas-access-guard.guard.mjs +70 -0
- package/esm2022/lib/fas-admin.component.mjs +45 -0
- package/esm2022/lib/fas-admin.module.mjs +93 -0
- package/esm2022/lib/fas-admin.service.mjs +28 -0
- package/esm2022/lib/shared/const/fas-default-config.mjs +7 -0
- package/esm2022/lib/shared/const/fas-default-settings.const.mjs +45 -0
- package/esm2022/lib/shared/models/details-control.mjs +2 -0
- package/esm2022/lib/shared/models/fas-admin-models.mjs +2 -0
- package/esm2022/lib/shared/services/dialog.service.mjs +46 -0
- package/esm2022/lib/shared/services/sidebar-toggle.service.mjs +24 -0
- package/esm2022/lib/shared/services/subscription-expiration-date.service.mjs +94 -0
- package/esm2022/lib/shared/services/users.service.mjs +20 -0
- package/esm2022/lib/shared/tokens/fas-lib-config.token.mjs +30 -0
- package/esm2022/public-api.mjs +11 -5
- package/fesm2022/fas-admin.mjs +2597 -592
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/layout/side-bar/side-bar.component.d.ts +11 -0
- package/lib/components/layout/top-bar/top-bar.component.d.ts +13 -0
- package/lib/components/views/dashboard/dashboard.component.d.ts +5 -0
- package/lib/components/views/messages/message-new-send/message-new-send.component.d.ts +20 -0
- package/lib/components/views/messages/message-new-template/message-new-template.component.d.ts +21 -0
- package/lib/components/views/messages/messages-newsletter/messages-newsletter.component.d.ts +22 -0
- package/lib/components/views/messages/messages-sent/messages-sent.component.d.ts +67 -0
- package/lib/components/views/messages/messages-templates/messages-templates.component.d.ts +59 -0
- package/lib/components/views/messages/messages.component.d.ts +9 -0
- package/lib/components/views/messages/messages.module.d.ts +18 -0
- package/lib/components/views/messages/mocked-data.d.ts +8 -0
- package/lib/components/views/operators/operators-details/operators-details.component.d.ts +29 -0
- package/lib/components/views/operators/operators-list/operators-list.component.d.ts +55 -0
- package/lib/components/views/operators/operators.component.d.ts +5 -0
- package/lib/components/views/operators/operators.module.d.ts +16 -0
- package/lib/components/views/statistics/statistic-income/statistic-income.component.d.ts +5 -0
- package/lib/components/views/statistics/statistic-list/statistic-list.component.d.ts +84 -0
- package/lib/components/views/statistics/statistic.module.d.ts +12 -0
- package/lib/components/views/statistics/statistics.component.d.ts +5 -0
- package/lib/components/views/subscriptions/mocked-data.d.ts +6 -0
- package/lib/components/views/subscriptions/subscriptions-add-new/subscriptions-add-new.component.d.ts +21 -0
- package/lib/components/views/subscriptions/subscriptions-details/subscriptions-details.component.d.ts +27 -0
- package/lib/components/views/subscriptions/subscriptions-list/subscriptions-list.component.d.ts +47 -0
- package/lib/components/views/subscriptions/subscriptions.component.d.ts +5 -0
- package/lib/components/views/subscriptions/subscriptions.module.d.ts +18 -0
- package/lib/components/views/users/mocked-data.d.ts +11 -0
- package/lib/components/views/users/users-add-subscriptions/users-add-subscriptions.component.d.ts +22 -0
- package/lib/components/views/users/users-add-user/users-add-user.component.d.ts +30 -0
- package/lib/components/views/users/users-details/users-details.component.d.ts +72 -0
- package/lib/components/views/users/users-list/users-list.component.d.ts +38 -0
- package/lib/components/views/users/users.component.d.ts +7 -0
- package/lib/components/views/users/users.module.d.ts +27 -0
- package/lib/core/guards/fas-access-guard.guard.d.ts +29 -0
- package/lib/fas-admin.component.d.ts +13 -0
- package/lib/fas-admin.module.d.ts +22 -0
- package/lib/fas-admin.service.d.ts +10 -0
- package/lib/shared/const/fas-default-config.d.ts +2 -0
- package/lib/shared/const/fas-default-settings.const.d.ts +3 -0
- package/lib/shared/models/details-control.d.ts +4 -0
- package/lib/shared/models/fas-admin-models.d.ts +29 -0
- package/lib/shared/services/dialog.service.d.ts +14 -0
- package/lib/shared/services/sidebar-toggle.service.d.ts +11 -0
- package/lib/shared/services/subscription-expiration-date.service.d.ts +9 -0
- package/lib/shared/services/users.service.d.ts +8 -0
- package/lib/shared/tokens/fas-lib-config.token.d.ts +19 -0
- package/package.json +6 -3
- package/public-api.d.ts +6 -3
- package/esm2022/fas-payments/company-vm.model.mjs +0 -2
- package/esm2022/fas-payments/initialised-payment-link-vm.model.mjs +0 -2
- package/esm2022/fas-payments/invoice-data-im.model.mjs +0 -2
- package/esm2022/fas-payments/invoice-data-um.model.mjs +0 -2
- package/esm2022/fas-payments/invoice-data-vm.model.mjs +0 -2
- package/esm2022/fas-payments/my-account-im.model.mjs +0 -2
- package/esm2022/fas-payments/my-account-vm.model.mjs +0 -2
- package/esm2022/fas-payments/new-payment-im.model.mjs +0 -2
- package/esm2022/fas-payments/new-payment-subscription-im.model.mjs +0 -2
- package/esm2022/fas-payments/payment-session-confirmation-vm.model.mjs +0 -2
- package/esm2022/fas-payments/plan-feature-vm.model.mjs +0 -2
- package/esm2022/fas-payments/platform-subscription-plan-vm.model.mjs +0 -2
- package/esm2022/lib/fas-payment/components/card/card.component.mjs +0 -26
- package/esm2022/lib/fas-payment/components/failure/failure.component.mjs +0 -27
- package/esm2022/lib/fas-payment/components/offer/offer.component.mjs +0 -75
- package/esm2022/lib/fas-payment/components/select/select.component.mjs +0 -67
- package/esm2022/lib/fas-payment/components/success/success.component.mjs +0 -29
- package/esm2022/lib/fas-payment/components/summary/summary.component.mjs +0 -246
- package/esm2022/lib/fas-payment/components/trial/trial.component.mjs +0 -15
- package/esm2022/lib/fas-payment/fas-payment.module.mjs +0 -72
- package/esm2022/lib/fas-payment/models/fas-payment-config.mjs +0 -2
- package/esm2022/lib/fas-payment/services/api/invoice-data.service.mjs +0 -36
- package/esm2022/lib/fas-payment/services/api/my-account.service.mjs +0 -36
- package/esm2022/lib/fas-payment/services/api/new-payment.service.mjs +0 -32
- package/esm2022/lib/fas-payment/services/api/payment-success.service.mjs +0 -25
- package/esm2022/lib/fas-payment/services/api/subscriptions.service.mjs +0 -25
- package/esm2022/lib/fas-payment/services/config.service.mjs +0 -36
- package/esm2022/lib/fas-payment/services/custom-NIP-validator.mjs +0 -31
- package/esm2022/lib/fas-payment/services/custom-validator.mjs +0 -24
- package/esm2022/lib/fas-payment/services/move-focus.helpers.mjs +0 -13
- package/esm2022/lib/fas-payment/services/selected-plan.service.mjs +0 -32
- package/esm2022/lib/fas-payment.component.mjs +0 -20
- package/esm2022/lib/fas-payment.service.mjs +0 -14
- package/fas-payments/company-vm.model.d.ts +0 -15
- package/fas-payments/initialised-payment-link-vm.model.d.ts +0 -3
- package/fas-payments/invoice-data-im.model.d.ts +0 -12
- package/fas-payments/invoice-data-um.model.d.ts +0 -14
- package/fas-payments/invoice-data-vm.model.d.ts +0 -14
- package/fas-payments/my-account-im.model.d.ts +0 -8
- package/fas-payments/my-account-vm.model.d.ts +0 -13
- package/fas-payments/new-payment-im.model.d.ts +0 -12
- package/fas-payments/new-payment-subscription-im.model.d.ts +0 -5
- package/fas-payments/payment-session-confirmation-vm.model.d.ts +0 -3
- package/fas-payments/platform-subscription-plan-vm.model.d.ts +0 -21
- package/lib/fas-payment/components/card/card.component.d.ts +0 -14
- package/lib/fas-payment/components/failure/failure.component.d.ts +0 -12
- package/lib/fas-payment/components/offer/offer.component.d.ts +0 -27
- package/lib/fas-payment/components/select/select.component.d.ts +0 -34
- package/lib/fas-payment/components/success/success.component.d.ts +0 -14
- package/lib/fas-payment/components/summary/summary.component.d.ts +0 -55
- package/lib/fas-payment/components/trial/trial.component.d.ts +0 -6
- package/lib/fas-payment/fas-payment.module.d.ts +0 -12
- package/lib/fas-payment/models/fas-payment-config.d.ts +0 -5
- package/lib/fas-payment/services/api/invoice-data.service.d.ts +0 -15
- package/lib/fas-payment/services/api/my-account.service.d.ts +0 -15
- package/lib/fas-payment/services/api/new-payment.service.d.ts +0 -16
- package/lib/fas-payment/services/api/payment-success.service.d.ts +0 -13
- package/lib/fas-payment/services/api/subscriptions.service.d.ts +0 -13
- package/lib/fas-payment/services/config.service.d.ts +0 -14
- package/lib/fas-payment/services/custom-NIP-validator.d.ts +0 -2
- package/lib/fas-payment/services/custom-validator.d.ts +0 -8
- package/lib/fas-payment/services/move-focus.helpers.d.ts +0 -1
- package/lib/fas-payment/services/selected-plan.service.d.ts +0 -15
- package/lib/fas-payment.component.d.ts +0 -6
- package/lib/fas-payment.service.d.ts +0 -6
package/lib/components/views/users/users-add-subscriptions/users-add-subscriptions.component.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { IDetailsControl } from '../../../../shared/models/details-control';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UsersAddSubscriptionsComponent implements OnInit, OnDestroy {
|
|
5
|
+
dialogID_userAssignSub: string;
|
|
6
|
+
private _expirationDateService;
|
|
7
|
+
private dialogStateSubscription;
|
|
8
|
+
private _dialogService;
|
|
9
|
+
selectedSubscriptions: any[];
|
|
10
|
+
dialogState: IDetailsControl;
|
|
11
|
+
subcriptionsEntity: number;
|
|
12
|
+
subscriptionStart: any;
|
|
13
|
+
minimumDate: any;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
addNewSubscription(subName: string): void;
|
|
17
|
+
removeSub(index: number): void;
|
|
18
|
+
closeDialog(): void;
|
|
19
|
+
getSubscriptionTypeColor(subscriptionType: string): "#16A34A" | "#0D9488" | "#16A34A80" | "#0D948880";
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersAddSubscriptionsComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersAddSubscriptionsComponent, "lib-users-add-subscriptions", never, { "dialogID_userAssignSub": { "alias": "dialogID_userAssignSub"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { IDetailsControl } from '../../../../shared/models/details-control';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UsersAddUserComponent implements OnInit, OnDestroy {
|
|
6
|
+
dialogID_addUser: string;
|
|
7
|
+
private dialogStateSubscription;
|
|
8
|
+
private _expirationDateService;
|
|
9
|
+
private _dialogService;
|
|
10
|
+
private _fb;
|
|
11
|
+
dialogState: IDetailsControl;
|
|
12
|
+
addNewUserForm: FormGroup;
|
|
13
|
+
selectedSubscriptions: any[];
|
|
14
|
+
subcriptionsEntity: number;
|
|
15
|
+
subscriptionStart: any;
|
|
16
|
+
minimumDate: any;
|
|
17
|
+
permisions: any;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
setFormStructure(): void;
|
|
21
|
+
editOn(): void;
|
|
22
|
+
closeDialog(): void;
|
|
23
|
+
openDialog(id: string): void;
|
|
24
|
+
setEditMode(id: string, isEditing: boolean): void;
|
|
25
|
+
addNewSubscription(subName: string): void;
|
|
26
|
+
removeSub(index: number): void;
|
|
27
|
+
getSubscriptionTypeColor(subscriptionType: string): "#16A34A" | "#0D9488" | "#16A34A80" | "#0D948880";
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersAddUserComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersAddUserComponent, "lib-users-add-user", never, { "dialogID_addUser": { "alias": "dialogID_addUser"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
|
|
2
|
+
import { IDetailsControl } from '../../../../shared/models/details-control';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { SimpleChanges, OnDestroy, OnInit } from '@angular/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UsersDetailsComponent implements OnInit, OnDestroy {
|
|
7
|
+
dialogID_usersDetails: string;
|
|
8
|
+
userIndex: number;
|
|
9
|
+
usersList: IPlatformUserAccountVm[];
|
|
10
|
+
user: IPlatformUserAccountVm;
|
|
11
|
+
private dialogStateSubscription;
|
|
12
|
+
private _expirationDateService;
|
|
13
|
+
private _loginAsParamService;
|
|
14
|
+
private _messageService;
|
|
15
|
+
private _dialogService;
|
|
16
|
+
private _fb;
|
|
17
|
+
dialogID_userAssignSub: string;
|
|
18
|
+
isSubscriptionsEdit: boolean;
|
|
19
|
+
rangeDates: Date[] | undefined;
|
|
20
|
+
dialogState: IDetailsControl;
|
|
21
|
+
selectedTabIndex: number;
|
|
22
|
+
selectedSubscription: any;
|
|
23
|
+
userUpdateForm: FormGroup;
|
|
24
|
+
permisions: string[];
|
|
25
|
+
daysToExtend: number;
|
|
26
|
+
subscriptionList: any;
|
|
27
|
+
subscriprion: any;
|
|
28
|
+
transSelected: any;
|
|
29
|
+
transation: any;
|
|
30
|
+
transColumns: ({
|
|
31
|
+
field: string;
|
|
32
|
+
header: string;
|
|
33
|
+
sortable: boolean;
|
|
34
|
+
columnClass: string;
|
|
35
|
+
actions?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
field: string;
|
|
38
|
+
header: string;
|
|
39
|
+
columnClass: string;
|
|
40
|
+
sortable?: undefined;
|
|
41
|
+
actions?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
field: string;
|
|
44
|
+
header: string;
|
|
45
|
+
columnClass: string;
|
|
46
|
+
actions: {
|
|
47
|
+
label: string;
|
|
48
|
+
buttonClass: string;
|
|
49
|
+
}[];
|
|
50
|
+
sortable?: undefined;
|
|
51
|
+
})[];
|
|
52
|
+
ngOnInit(): void;
|
|
53
|
+
ngOnDestroy(): void;
|
|
54
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
55
|
+
logAsCurrentUser(serviceType: 'Userserviceurl' | 'Admserviceurl'): void;
|
|
56
|
+
handleTabSwitch($event: any): void;
|
|
57
|
+
getSubscriptionStatus(subscriptionStatus: string): string;
|
|
58
|
+
getSubscriptionStatusMessage(subscriptionStatus: string): string;
|
|
59
|
+
getSubscriptionTypeColor(subscriptionType: string, subscriptionStatus: string): "#16A34A" | "#0D9488" | "#16A34A80" | "#0D948880";
|
|
60
|
+
getSubscriptionStatusColor(subscriptionStatus: string): string;
|
|
61
|
+
showSuccess(): void;
|
|
62
|
+
setFormStructure(): void;
|
|
63
|
+
editOn(): void;
|
|
64
|
+
closeDialog(): void;
|
|
65
|
+
openDialog(id: string): void;
|
|
66
|
+
setEditMode(id: string, isEditing: boolean): void;
|
|
67
|
+
editSubscriptionToggle(): void;
|
|
68
|
+
moveUp(): void;
|
|
69
|
+
moveDown(): void;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersDetailsComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersDetailsComponent, "lib-users-details", never, { "dialogID_usersDetails": { "alias": "dialogID_usersDetails"; "required": false; }; "userIndex": { "alias": "userIndex"; "required": false; }; "usersList": { "alias": "usersList"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
|
|
2
|
+
import { FASDynamicTableColumnConfig } from 'fas-services';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
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
|
+
}>;
|
|
20
|
+
dialogID_usersDetails: string;
|
|
21
|
+
userSelected: any | null;
|
|
22
|
+
usersList: IPlatformUserAccountVm[];
|
|
23
|
+
currentUser: IPlatformUserAccountVm;
|
|
24
|
+
userIndex: number;
|
|
25
|
+
ngOnInit(): void;
|
|
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;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersListComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersListComponent, "lib-users-list", never, {}, {}, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UsersComponent {
|
|
3
|
+
private usersService;
|
|
4
|
+
ngOnInit(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "lib-users", never, {}, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./users-add-subscriptions/users-add-subscriptions.component";
|
|
3
|
+
import * as i2 from "./users-add-user/users-add-user.component";
|
|
4
|
+
import * as i3 from "./users-details/users-details.component";
|
|
5
|
+
import * as i4 from "./users-list/users-list.component";
|
|
6
|
+
import * as i5 from "./users.component";
|
|
7
|
+
import * as i6 from "fas-services";
|
|
8
|
+
import * as i7 from "primeng/progressspinner";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "primeng/inputnumber";
|
|
11
|
+
import * as i10 from "primeng/multiselect";
|
|
12
|
+
import * as i11 from "@angular/common/http";
|
|
13
|
+
import * as i12 from "primeng/fileupload";
|
|
14
|
+
import * as i13 from "primeng/calendar";
|
|
15
|
+
import * as i14 from "primeng/checkbox";
|
|
16
|
+
import * as i15 from "primeng/dropdown";
|
|
17
|
+
import * as i16 from "primeng/stepper";
|
|
18
|
+
import * as i17 from "primeng/tabview";
|
|
19
|
+
import * as i18 from "primeng/dialog";
|
|
20
|
+
import * as i19 from "@angular/common";
|
|
21
|
+
import * as i20 from "primeng/toast";
|
|
22
|
+
import * as i21 from "primeng/table";
|
|
23
|
+
export declare class UsersModule {
|
|
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.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
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UsersModule>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IFASAdminConfigInitializer } from '../../shared/models/fas-admin-models';
|
|
2
|
+
import { CanActivate, ActivatedRouteSnapshot, Router } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* FasAccessGuard is an Angular route guard that ensures users can only
|
|
6
|
+
* access routes they are authorized to based on their role.
|
|
7
|
+
*
|
|
8
|
+
* Configuration for access rules is provided via FAS_LIB_CONFIG, which
|
|
9
|
+
* must include `accessRules` defining allowed routes per role.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* - Ensure that `accessRules` is correctly set in the configuration object.
|
|
13
|
+
* - Token must be stored in `localStorage` under the key `authToken`.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FasAccessGuard implements CanActivate {
|
|
16
|
+
private router;
|
|
17
|
+
private config;
|
|
18
|
+
constructor(router: Router, config: IFASAdminConfigInitializer);
|
|
19
|
+
/**
|
|
20
|
+
* Determines whether the current user can activate a route based on
|
|
21
|
+
* their role and the configured access rules.
|
|
22
|
+
*
|
|
23
|
+
* @param route The activated route snapshot
|
|
24
|
+
* @returns `true` if access is allowed, otherwise `false`
|
|
25
|
+
*/
|
|
26
|
+
canActivate(route: ActivatedRouteSnapshot): boolean;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FasAccessGuard, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FasAccessGuard>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { IFASAdminConfigInitializer, IFASButtonList } from './shared/models/fas-admin-models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FASAdminComponent implements OnInit {
|
|
5
|
+
private fasAdminService;
|
|
6
|
+
inputData?: IFASAdminConfigInitializer;
|
|
7
|
+
visableDefaultButtonList: IFASButtonList[];
|
|
8
|
+
specButtonList: IFASButtonList[];
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
setSidebarButtons(configData: IFASAdminConfigInitializer, buttonList: IFASButtonList[], isDefaultList: boolean): IFASButtonList[];
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FASAdminComponent, "lib-fas-admin", never, {}, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IFASAdminConfigInitializer } from './shared/models/fas-admin-models';
|
|
2
|
+
import { FASAdminService } from './fas-admin.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./fas-admin.component";
|
|
5
|
+
import * as i2 from "./components/layout/top-bar/top-bar.component";
|
|
6
|
+
import * as i3 from "./components/layout/side-bar/side-bar.component";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/router";
|
|
9
|
+
import * as i6 from "./components/views/subscriptions/subscriptions.module";
|
|
10
|
+
import * as i7 from "./components/views/operators/operators.module";
|
|
11
|
+
import * as i8 from "./components/views/statistics/statistic.module";
|
|
12
|
+
import * as i9 from "./components/views/messages/messages.module";
|
|
13
|
+
import * as i10 from "./components/views/users/users.module";
|
|
14
|
+
export declare class FASAdminModule {
|
|
15
|
+
private configData;
|
|
16
|
+
private fasAdminService;
|
|
17
|
+
constructor(configData: IFASAdminConfigInitializer, fasAdminService: FASAdminService);
|
|
18
|
+
private generateRoutes;
|
|
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.OperatorsModule, typeof i8.StatisticModule, typeof i9.MessagesModule, typeof i10.UsersModule], never>;
|
|
21
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FASAdminModule>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IFASAdminConfigInitializer } from './shared/models/fas-admin-models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FASAdminService {
|
|
4
|
+
private fasAdminConfigSubject;
|
|
5
|
+
fasAdminConfig$: import("rxjs").Observable<IFASAdminConfigInitializer>;
|
|
6
|
+
getFasAdminConfigValue(): IFASAdminConfigInitializer;
|
|
7
|
+
setFasAdminConfigValue(configData: IFASAdminConfigInitializer): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FASAdminService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Route } from '@angular/router';
|
|
2
|
+
import { Type } from '@angular/core';
|
|
3
|
+
export interface IFASButtonList {
|
|
4
|
+
routerUrl: IFASDefaultRoutePath | string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
}
|
|
8
|
+
export type IFASDefaultRoutePath = 'dashboard' | 'statistic' | 'subscriptions' | 'messages' | 'operators' | 'users';
|
|
9
|
+
export type IFASUserRole = 'PlatformOperator' | 'OSK';
|
|
10
|
+
export interface IFASDefaultPath {
|
|
11
|
+
path: IFASDefaultRoutePath;
|
|
12
|
+
component: Type<any>;
|
|
13
|
+
}
|
|
14
|
+
export interface IFASDefaultButtonsSettings {
|
|
15
|
+
path: IFASDefaultRoutePath;
|
|
16
|
+
label?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IFASAdminConfigInitializer {
|
|
20
|
+
companyName: string;
|
|
21
|
+
accessRules: IFASAccessRules[] | null;
|
|
22
|
+
specButtonList?: IFASButtonList[];
|
|
23
|
+
customRoutes?: Route[];
|
|
24
|
+
defaultButtonSettings?: IFASDefaultButtonsSettings[];
|
|
25
|
+
}
|
|
26
|
+
export interface IFASAccessRules {
|
|
27
|
+
role: IFASUserRole;
|
|
28
|
+
access: Array<IFASDefaultRoutePath | string>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IDetailsControl } from '../models/details-control';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DialogService {
|
|
5
|
+
private dialogStates;
|
|
6
|
+
constructor();
|
|
7
|
+
getDialogState(id: string): Observable<IDetailsControl>;
|
|
8
|
+
setDialogState(id: string, state: IDetailsControl): void;
|
|
9
|
+
openDialog(id: string): void;
|
|
10
|
+
closeDialog(id: string): void;
|
|
11
|
+
setEditingState(id: string, isEditing: boolean): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SidebarToggleService {
|
|
4
|
+
private isOpenSubject;
|
|
5
|
+
private isOpen$;
|
|
6
|
+
constructor();
|
|
7
|
+
getIsOpen(): Observable<boolean>;
|
|
8
|
+
setIsOpen(value: boolean): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarToggleService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SidebarToggleService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SubscriptionExpirationDateService {
|
|
3
|
+
getSubscriptionStatus(subscriptionStatus: string): string;
|
|
4
|
+
getSubscriptionStatusMessage(subscriptionStatus: string): string;
|
|
5
|
+
getSubscriptionStatusColor(subscriptionStatus: string): string;
|
|
6
|
+
getSubscriptionTypeColor(subscriptionType: string, subscriptionStatus?: string): "#16A34A" | "#0D9488" | "#16A34A80" | "#0D948880";
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionExpirationDateService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionExpirationDateService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UsersService {
|
|
4
|
+
private readonly platformUsersService;
|
|
5
|
+
getUsersList$(): Observable<any>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UsersService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IFASAdminConfigInitializer } from '../models/fas-admin-models';
|
|
2
|
+
import { API_URL } from '../../../api/models/api-url.token';
|
|
3
|
+
import { InjectionToken } from '@angular/core';
|
|
4
|
+
export declare const FAS_LIB_CONFIG: InjectionToken<IFASAdminConfigInitializer>;
|
|
5
|
+
/**
|
|
6
|
+
* Factory function to provide a custom configuration for FAS_LIB_CONFIG.
|
|
7
|
+
* Ensures that the configuration object conforms to IFASAdminConfigInitializer.
|
|
8
|
+
*/
|
|
9
|
+
export declare function provideFASAdminLibConfig(config: IFASAdminConfigInitializer): {
|
|
10
|
+
provide: typeof FAS_LIB_CONFIG;
|
|
11
|
+
useValue: IFASAdminConfigInitializer;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Factory function to provide a api configuration for FAS API_URL.
|
|
15
|
+
*/
|
|
16
|
+
export declare function provideFASAdminLibApiConfig(apiUrl: string): {
|
|
17
|
+
provide: typeof API_URL;
|
|
18
|
+
useValue: string;
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fas-admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^17.2.0",
|
|
6
|
+
"@angular/core": "^17.2.0",
|
|
7
|
+
"@angular/forms": "^17.2.0",
|
|
8
|
+
"@angular/router": "^17.2.0",
|
|
9
|
+
"jwt-decode": "^3.1.2"
|
|
7
10
|
},
|
|
8
11
|
"dependencies": {
|
|
9
12
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from './lib/fas-
|
|
2
|
-
export * from './lib/fas-
|
|
3
|
-
export * from './lib/
|
|
1
|
+
export * from './lib/shared/models/fas-admin-models';
|
|
2
|
+
export * from './lib/shared/tokens/fas-lib-config.token';
|
|
3
|
+
export * from './lib/shared/const/fas-default-config';
|
|
4
|
+
export * from './api/models/api-url.token';
|
|
5
|
+
export * from './lib/fas-admin.service';
|
|
6
|
+
export * from './lib/fas-admin.module';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFueS12bS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Zhcy1wYXltZW50L3NyYy9mYXMtcGF5bWVudHMvY29tcGFueS12bS5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJQ29tcGFueVZtIHtcbiAgICBndWlkOiBzdHJpbmcsXG4gICAgY29tcGFueU5hbWU6IHN0cmluZyxcbiAgICBjcmVhdGVkOiBEYXRlLFxuICAgIGNyZWF0ZWRCeTogc3RyaW5nLFxuICAgIGNyZWF0ZWRCeUd1aWQ/OiBzdHJpbmcsXG4gICAgb3duZXI6IHN0cmluZyxcbiAgICBvd25lckd1aWQ/OiBzdHJpbmcsXG4gICAgaXNBY3RpdmU6IGJvb2xlYW4sXG4gICAgY29tcGFueVNob3J0TmFtZTogc3RyaW5nLFxuICAgIHN0cmVldDogc3RyaW5nLFxuICAgIHBvc3RDb2RlOiBzdHJpbmcsXG4gICAgY2l0eTogc3RyaW5nLFxuICAgIG5pcDogc3RyaW5nXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGlzZWQtcGF5bWVudC1saW5rLXZtLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZmFzLXBheW1lbnQvc3JjL2Zhcy1wYXltZW50cy9pbml0aWFsaXNlZC1wYXltZW50LWxpbmstdm0ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUluaXRpYWxpc2VkUGF5bWVudExpbmtWbSB7XG4gICAgc2Vzc2lvblVybDogc3RyaW5nXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52b2ljZS1kYXRhLWltLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZmFzLXBheW1lbnQvc3JjL2Zhcy1wYXltZW50cy9pbnZvaWNlLWRhdGEtaW0ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUludm9pY2VEYXRhSW0ge1xuICAgIGNvbXBhbnlHdWlkOiBzdHJpbmcsXG4gICAgbklQOiBzdHJpbmcsXG4gICAgc3RyZWV0OiBzdHJpbmcsXG4gICAgY2l0eTogc3RyaW5nLFxuICAgIGNvdW50cnk6IHN0cmluZyxcbiAgICBjb21wYW55TmFtZTogc3RyaW5nLFxuICAgIHBvc3RDb2RlOiBzdHJpbmcsXG4gICAgaW52b2ljZUVtYWlsOiBzdHJpbmcsXG4gICAgc3Vic2NyaXB0aW9uUGxhbkd1aWQ6IHN0cmluZyxcbiAgICBpbnZvaWNlUmVxdWVzdGVkOiBib29sZWFuXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52b2ljZS1kYXRhLXVtLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZmFzLXBheW1lbnQvc3JjL2Zhcy1wYXltZW50cy9pbnZvaWNlLWRhdGEtdW0ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUludm9pY2VEYXRhVW0ge1xuICAgIGludm9pY2VSZXF1ZXN0ZWQ6IGJvb2xlYW4sXG4gICAgc3Vic2NyaXB0aW9uUGxhbkd1aWQ/OiBzdHJpbmcsXG4gICAgc3Vic2NyaXB0aW9uUGxhbjogc3RyaW5nLFxuICAgIGd1aWQ6IHN0cmluZyxcbiAgICBjb21wYW55R3VpZDogc3RyaW5nLFxuICAgIG5JUDogc3RyaW5nLFxuICAgIHN0cmVldDogc3RyaW5nLFxuICAgIGNpdHk6IHN0cmluZyxcbiAgICBjb3VudHJ5OiBzdHJpbmcsXG4gICAgY29tcGFueU5hbWU6IHN0cmluZyxcbiAgICBwb3N0Q29kZTogc3RyaW5nLFxuICAgIGludm9pY2VFbWFpbDogc3RyaW5nXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52b2ljZS1kYXRhLXZtLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZmFzLXBheW1lbnQvc3JjL2Zhcy1wYXltZW50cy9pbnZv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FnZTogc3RyaW5nXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktYWNjb3VudC12bS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Zhcy1wYXltZW50L3NyYy9mYXMtcGF5bWVudHMvbXktYWNjb3VudC12bS5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSUNvbXBhbnlWbSB9IGZyb20gJy4vY29tcGFueS12bS5tb2RlbCc7XG5leHBvcnQgaW50ZXJmYWNlIElNeUFjY291bnRWbSB7XG4gICAgZW1haWw6IHN0cmluZyxcbiAgICBwaG9uZTogc3RyaW5nLFxuICAgIGZpcnN0TmFtZTogc3RyaW5nLFxuICAgIGxhc3ROYW1lOiBzdHJpbmcsXG4gICAgZ3VpZDogc3RyaW5nLFxuICAgIGNvbXBhbmllczogSUNvbXBhbnlWbVtdLFxuICAgIGxhc3RVc2VkQ29tcGFueTogSUNvbXBhbnlWbSxcbiAgICBsYXN0VXNlZENvbXBhbnlHdWlkOiBzdHJpbmcsXG4gICAgbGFuZ3VhZ2U6IHN0cmluZyxcbiAgICBkaXNwbGF5TmFtZTogc3RyaW5nXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LXBheW1lbnQtaW0ubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mYXMtcGF5bWVudC9zcmMvZmFzLXBheW1lbnRzL25ldy1wYXltZW50LWltLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElOZXdQYXltZW50SW0ge1xuICAgIGNvbXBhbnlHdWlkOiBzdHJpbmcsXG4gICAgcHJpY2U6IG51bWJlcixcbiAgICBxdWFudGl0eTogbnVtYmVyLFxuICAgIHByb2R1Y3ROYW1lOiBzdHJpbmcsXG4gICAgY3VycmVudFVzZXJHdWlkOiBzdHJpbmcsXG4gICAgcGxhdGZvcm1TdWJzY3JpcHRpb25QbGFuR3VpZDogc3RyaW5nLFxuICAgIGN1cnJlbmN5OiBzdHJpbmcsXG4gICAgaW50ZXJ2YWw6IHN0cmluZyxcbiAgICBpbnRlcnZhbENvdW50OiBudW1iZXIsXG4gICAgaW52b2ljZURhdGFHdWlkOiBzdHJpbmdcbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV3LXBheW1lbnQtc3Vic2NyaXB0aW9uLWltLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZmFzLXBheW1lbnQvc3JjL2Zhcy1wYXltZW50cy9uZXctcGF5bWVudC1zdWJzY3JpcHRpb24taW0ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSU5ld1BheW1lbnRTdWJzY3JpcHRpb25JbSB7XG4gICAgY29tcGFueUd1aWQ6IHN0cmluZyxcbiAgICBwbGF0Zm9ybVN1YnNjcmlwdGlvblBsYW5HdWlkOiBzdHJpbmcsXG4gICAgaW52b2ljZURhdGFHdWlkOiBzdHJpbmdcbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1zZXNzaW9uLWNvbmZpcm1hdGlvbi12bS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Zhcy1wYXltZW50L3NyYy9mYXMtcGF5bWVudHMvcGF5bWVudC1zZXNzaW9uLWNvbmZpcm1hdGlvbi12bS5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUGF5bWVudFNlc3Npb25Db25maXJtYXRpb25WbSB7XG4gICAgc3VjY2VzczogYm9vbGVhblxufVxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhbi1mZWF0dXJlLXZtLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZmFzLXBheW1lbnQvc3JjL2Zhcy1wYXltZW50cy9wbGFuLWZlYXR1cmUtdm0ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSVBsYW5GZWF0dXJlVm0ge1xuICAgIGRlc2NyaXB0aW9uOiBzdHJpbmcsXG4gICAgaXNBdmFpbGFibGU6IGJvb2xlYW4sXG4gICAgcGxhbkZlYXR1cmVJZDogbnVtYmVyLFxuICAgIHBsYXRmb3JtRmVhdHVyZUlkOiBudW1iZXIsXG4gICAgZmVhdHVyZU5hbWU6IHN0cmluZyxcbiAgICBwb3NpdGlvbjogbnVtYmVyLFxuICAgIGlzQWN0aXZlOiBib29sZWFuXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1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
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../services/selected-plan.service";
|
|
5
|
-
import * as i2 from "../../services/config.service";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
export class CardComponent {
|
|
8
|
-
constructor(selectedPlanService, configService) {
|
|
9
|
-
this.selectedPlanService = selectedPlanService;
|
|
10
|
-
this.configService = configService;
|
|
11
|
-
this.mainColor = '';
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
this.selectedPlanService.getSelectedPlan().subscribe((selectedPlan) => {
|
|
15
|
-
this.selectedPlanData = selectedPlan;
|
|
16
|
-
});
|
|
17
|
-
this.configService.getMainColor$.subscribe(color => this.mainColor = color);
|
|
18
|
-
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CardComponent, deps: [{ token: i1.SelectedPlanService }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: CardComponent, isStandalone: true, selector: "lib-card", ngImport: i0, template: "<div *ngIf=\"selectedPlanData\" class=\"flex flex-column shadow-2 surface-card border-round p-5 mb-4 w-full selected-card\" [class]=\"'text-' + mainColor\">\n <div class=\"flex flex-wrap justify-content-center justify-content-center border-bottom-1 mb-1 gap-0 sm:gap-3 xl:justify-content-between\">\n <strong class=\"font-bold text-center\">{{selectedPlanData.planName}} </strong>\n \n <strong class=\"text-2xl text-center font-bold\">{{ selectedPlanData.badgeText}}</strong>\n </div>\n <!-- <div class=\"bottom-container flex flex-wrap justify-content-between mb-2\">\n <p class=\"text-base mb-0 text-center sm:text-left\">Kwota netto</p>\n <p class=\"text-base mb-0 text-center sm:text-right\">{{option.netPrice}} z\u0142</p>\n </div>\n <div class=\"bottom-container flex flex-wrap justify-content-between mb-2\">\n <p class=\"text-base mb-0 text-center sm:text-left\">Podatek VAT (23%)</p>\n <p class=\"text-base mb-0 text-center sm:text-right\">{{ (option.netPrice) * (23 / 100 ) }} z\u0142</p>\n </div> -->\n <div class=\"bottom-container flex flex-wrap justify-content-between mb-2\">\n <p class=\"text-base mb-0 text-center sm:text-left\">Do zap\u0142aty</p>\n <p class=\"text-base mb-0 text-center sm:text-right\">{{ selectedPlanData.value }} {{selectedPlanData.currency}}\n </p>\n </div>\n</div>", styles: [".bottom-line{border-bottom:1px solid black}.selected-card{border:4px solid;width:100%}@media screen and (max-width: 300px){.bottom-container{justify-content:center!important;gap:.5rem!important;margin-bottom:.7rem!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
21
|
-
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: CardComponent, decorators: [{
|
|
23
|
-
type: Component,
|
|
24
|
-
args: [{ selector: 'lib-card', standalone: true, imports: [CommonModule], template: "<div *ngIf=\"selectedPlanData\" class=\"flex flex-column shadow-2 surface-card border-round p-5 mb-4 w-full selected-card\" [class]=\"'text-' + mainColor\">\n <div class=\"flex flex-wrap justify-content-center justify-content-center border-bottom-1 mb-1 gap-0 sm:gap-3 xl:justify-content-between\">\n <strong class=\"font-bold text-center\">{{selectedPlanData.planName}} </strong>\n \n <strong class=\"text-2xl text-center font-bold\">{{ selectedPlanData.badgeText}}</strong>\n </div>\n <!-- <div class=\"bottom-container flex flex-wrap justify-content-between mb-2\">\n <p class=\"text-base mb-0 text-center sm:text-left\">Kwota netto</p>\n <p class=\"text-base mb-0 text-center sm:text-right\">{{option.netPrice}} z\u0142</p>\n </div>\n <div class=\"bottom-container flex flex-wrap justify-content-between mb-2\">\n <p class=\"text-base mb-0 text-center sm:text-left\">Podatek VAT (23%)</p>\n <p class=\"text-base mb-0 text-center sm:text-right\">{{ (option.netPrice) * (23 / 100 ) }} z\u0142</p>\n </div> -->\n <div class=\"bottom-container flex flex-wrap justify-content-between mb-2\">\n <p class=\"text-base mb-0 text-center sm:text-left\">Do zap\u0142aty</p>\n <p class=\"text-base mb-0 text-center sm:text-right\">{{ selectedPlanData.value }} {{selectedPlanData.currency}}\n </p>\n </div>\n</div>", styles: [".bottom-line{border-bottom:1px solid black}.selected-card{border:4px solid;width:100%}@media screen and (max-width: 300px){.bottom-container{justify-content:center!important;gap:.5rem!important;margin-bottom:.7rem!important}}\n"] }]
|
|
25
|
-
}], ctorParameters: () => [{ type: i1.SelectedPlanService }, { type: i2.ConfigService }] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mYXMtcGF5bWVudC9zcmMvbGliL2Zhcy1wYXltZW50L2NvbXBvbmVudHMvY2FyZC9jYXJkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Zhcy1wYXltZW50L3NyYy9saWIvZmFzLXBheW1lbnQvY29tcG9uZW50cy9jYXJkL2NhcmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBaUIsTUFBTSxlQUFlLENBQUM7QUFFekQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7OztBQVUvQyxNQUFNLE9BQU8sYUFBYTtJQUN4QixZQUFvQixtQkFBd0MsRUFBVSxhQUE0QjtRQUE5RSx3QkFBbUIsR0FBbkIsbUJBQW1CLENBQXFCO1FBQVUsa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GlmeS1jb250ZW50LWJldHdlZW4gbWItMlwiPlxuICAgIDxwIGNsYXNzPVwidGV4dC1iYXNlIG1iLTAgdGV4dC1jZW50ZXIgc206dGV4dC1sZWZ0XCI+RG8gemFwxYJhdHk8L3A+XG4gICAgPHAgY2xhc3M9XCJ0ZXh0LWJhc2UgbWItMCB0ZXh0LWNlbnRlciBzbTp0ZXh0LXJpZ2h0XCI+e3sgc2VsZWN0ZWRQbGFuRGF0YS52YWx1ZSAgfX0ge3tzZWxlY3RlZFBsYW5EYXRhLmN1cnJlbmN5fX1cbiAgICA8L3A+XG4gIDwvZGl2PlxuPC9kaXY+Il19
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { ButtonModule } from 'primeng/button';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/router";
|
|
5
|
-
import * as i2 from "primeng/button";
|
|
6
|
-
export class FailureComponent {
|
|
7
|
-
constructor(router) {
|
|
8
|
-
this.router = router;
|
|
9
|
-
}
|
|
10
|
-
ngOnInit() {
|
|
11
|
-
const routeParts = this.router.url.split('guid=');
|
|
12
|
-
console.log(routeParts[1]);
|
|
13
|
-
}
|
|
14
|
-
cancel() {
|
|
15
|
-
this.router.navigateByUrl('/');
|
|
16
|
-
}
|
|
17
|
-
tryAgain() {
|
|
18
|
-
this.router.navigateByUrl('/subscriptions/summary');
|
|
19
|
-
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FailureComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: FailureComponent, isStandalone: true, selector: "lib-failure", ngImport: i0, template: "<div\n class=\"w-full h-full line-height-3 flex flex-column align-items-center justify-content-center\"\n>\n <img class=\"mt-6\" style=\"width: 130px\" src=\"\" />\n <div class=\"font-semibold text-center mt-6 text-5xl\" style=\"max-width: 750px\">\n Twoja p\u0142atno\u015B\u0107 si\u0119 nie powiod\u0142a </div>\n <div class=\"text-xl text-center mt-6\" style=\"max-width: 750px\">\n Pon\u00F3w p\u0142atno\u015B\u0107 teraz lub spr\u00F3buj p\u00F3\u017Aniej. \n </div>\n <div class=\"text-base text-center mt-8\" style=\"max-width: 750px\">\n Je\u015Bli b\u0142\u0105d nadal b\u0119dzie si\u0119 pojawia\u0142 skontaktuj si\u0119 z Nami.\n </div>\n <div class=\"flex align-items-center justify-items-center gap-5 mt-3\">\n <div class=\"flex align-items-center justify-items-center gap-3\">\n <i class=\"pi pi-envelope\"></i>\n <div class=\"\">support@kilometr\u00F3wka.com</div>\n </div>\n <div class=\"flex align-items-center justify-items-center gap-3\">\n <i class=\"pi pi-phone\"></i>\n <div class=\"\">+48 000-000-000</div>\n </div>\n </div>\n <div class=\"mt-6 w-full flex align-items-center justify-content-center gap-4\">\n <p-button label=\"Anuluj\" [link]=\"true\" (onClick)=\"cancel()\"></p-button>\n <p-button label=\"Pon\u00F3w p\u0142atno\u015B\u0107\" icon=\"pi pi-arrow-right\" iconPos=\"right\" (onClick)=\"tryAgain()\"></p-button>\n </div>\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }] }); }
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: FailureComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{ selector: 'lib-failure', standalone: true, imports: [ButtonModule], template: "<div\n class=\"w-full h-full line-height-3 flex flex-column align-items-center justify-content-center\"\n>\n <img class=\"mt-6\" style=\"width: 130px\" src=\"\" />\n <div class=\"font-semibold text-center mt-6 text-5xl\" style=\"max-width: 750px\">\n Twoja p\u0142atno\u015B\u0107 si\u0119 nie powiod\u0142a </div>\n <div class=\"text-xl text-center mt-6\" style=\"max-width: 750px\">\n Pon\u00F3w p\u0142atno\u015B\u0107 teraz lub spr\u00F3buj p\u00F3\u017Aniej. \n </div>\n <div class=\"text-base text-center mt-8\" style=\"max-width: 750px\">\n Je\u015Bli b\u0142\u0105d nadal b\u0119dzie si\u0119 pojawia\u0142 skontaktuj si\u0119 z Nami.\n </div>\n <div class=\"flex align-items-center justify-items-center gap-5 mt-3\">\n <div class=\"flex align-items-center justify-items-center gap-3\">\n <i class=\"pi pi-envelope\"></i>\n <div class=\"\">support@kilometr\u00F3wka.com</div>\n </div>\n <div class=\"flex align-items-center justify-items-center gap-3\">\n <i class=\"pi pi-phone\"></i>\n <div class=\"\">+48 000-000-000</div>\n </div>\n </div>\n <div class=\"mt-6 w-full flex align-items-center justify-content-center gap-4\">\n <p-button label=\"Anuluj\" [link]=\"true\" (onClick)=\"cancel()\"></p-button>\n <p-button label=\"Pon\u00F3w p\u0142atno\u015B\u0107\" icon=\"pi pi-arrow-right\" iconPos=\"right\" (onClick)=\"tryAgain()\"></p-button>\n </div>\n</div>" }]
|
|
26
|
-
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFpbHVyZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mYXMtcGF5bWVudC9zcmMvbGliL2Zhcy1wYXltZW50L2NvbXBvbmVudHMvZmFpbHVyZS9mYWlsdXJlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Zhcy1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