@volo/abp.ng.payment 7.2.2 → 7.3.0-rc.2
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 +129 -1
- package/admin/components/gateway-plans/gateway-plans.component.d.ts +31 -31
- package/admin/components/gateway-plans/gateway-plans.module.d.ts +15 -15
- package/admin/components/gateway-plans/index.d.ts +2 -2
- package/admin/components/index.d.ts +2 -2
- package/admin/components/plans/index.d.ts +2 -2
- package/admin/components/plans/plans.component.d.ts +31 -31
- package/admin/components/plans/plans.module.d.ts +15 -15
- package/admin/components/products/products.component.d.ts +22 -22
- package/admin/components/products/products.module.d.ts +13 -13
- package/admin/components/requests/requests-search-form/requests-search-form.component.d.ts +14 -14
- package/admin/components/requests/requests.component.d.ts +17 -17
- package/admin/components/requests/requests.module.d.ts +17 -17
- package/admin/components/subscription-tooltip/subscription-tooltip.component.d.ts +9 -9
- package/admin/components/subscription-tooltip/subscription-tooltip.module.d.ts +10 -10
- package/admin/config/enums/index.d.ts +2 -2
- package/admin/config/enums/policy-names.d.ts +11 -11
- package/admin/config/enums/route-names.d.ts +5 -5
- package/admin/config/index.d.ts +5 -5
- package/admin/config/payment-admin-config.module.d.ts +8 -8
- package/admin/config/providers/index.d.ts +1 -1
- package/admin/config/providers/route.provider.d.ts +8 -8
- package/admin/config/public-api.d.ts +3 -3
- package/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.d.ts +3 -3
- package/admin/defaults/gateway-plans/default-gateway-plans-entity-props.d.ts +3 -3
- package/admin/defaults/gateway-plans/default-gateway-plans-form-props.d.ts +4 -4
- package/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.d.ts +3 -3
- package/admin/defaults/gateway-plans/index.d.ts +2 -2
- package/admin/defaults/index.d.ts +2 -2
- package/admin/defaults/plans/default-plans-entity-actions.d.ts +3 -3
- package/admin/defaults/plans/default-plans-entity-props.d.ts +3 -3
- package/admin/defaults/plans/default-plans-form-props.d.ts +4 -4
- package/admin/defaults/plans/default-plans-toolbar-actions.d.ts +3 -3
- package/admin/defaults/plans/index.d.ts +4 -4
- package/admin/defaults/products/default-products-entity-props.d.ts +2 -2
- package/admin/defaults/products/index.d.ts +1 -1
- package/admin/defaults/requests/default-requests-entity-actions.d.ts +3 -3
- package/admin/defaults/requests/default-requests-entity-props.d.ts +3 -3
- package/admin/enums/components.d.ts +6 -6
- package/admin/enums/index.d.ts +1 -1
- package/admin/index.d.ts +5 -5
- package/admin/models/config-options.d.ts +30 -30
- package/admin/models/index.d.ts +1 -1
- package/admin/models/subscription-tooltip-data.d.ts +4 -4
- package/admin/payment-admin-routing.module.d.ts +7 -7
- package/admin/payment-admin.module.d.ts +15 -15
- package/admin/payment.initializer.d.ts +10 -11
- package/admin/public-api.d.ts +9 -9
- package/admin/tokens/extensions.token.d.ts +49 -49
- package/admin/tokens/index.d.ts +1 -1
- package/admin/utils/get-subscription-status.d.ts +4 -4
- package/admin/utils/index.d.ts +1 -1
- package/esm2022/admin/components/gateway-plans/gateway-plans.component.mjs +102 -0
- package/esm2022/admin/components/gateway-plans/gateway-plans.module.mjs +50 -0
- package/{esm2020 → esm2022}/admin/components/gateway-plans/index.mjs +2 -2
- package/{esm2020 → esm2022}/admin/components/index.mjs +2 -2
- package/{esm2020 → esm2022}/admin/components/plans/index.mjs +2 -2
- package/esm2022/admin/components/plans/plans.component.mjs +101 -0
- package/esm2022/admin/components/plans/plans.module.mjs +50 -0
- package/esm2022/admin/components/products/products.component.mjs +60 -0
- package/esm2022/admin/components/products/products.module.mjs +40 -0
- package/esm2022/admin/components/requests/requests-search-form/requests-search-form.component.mjs +34 -0
- package/esm2022/admin/components/requests/requests.component.mjs +47 -0
- package/esm2022/admin/components/requests/requests.module.mjs +53 -0
- package/esm2022/admin/components/subscription-tooltip/subscription-tooltip.component.mjs +24 -0
- package/esm2022/admin/components/subscription-tooltip/subscription-tooltip.module.mjs +21 -0
- package/{esm2020 → esm2022}/admin/config/enums/index.mjs +2 -2
- package/{esm2020 → esm2022}/admin/config/enums/policy-names.mjs +1 -1
- package/{esm2020 → esm2022}/admin/config/enums/route-names.mjs +1 -1
- package/esm2022/admin/config/payment-admin-config.module.mjs +20 -0
- package/{esm2020 → esm2022}/admin/config/providers/index.mjs +1 -1
- package/{esm2020 → esm2022}/admin/config/providers/route.provider.mjs +38 -38
- package/{esm2020 → esm2022}/admin/config/public-api.mjs +3 -3
- package/{esm2020 → esm2022}/admin/config/volo-abp.ng.payment-admin-config.mjs +4 -4
- package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.mjs +20 -20
- package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-entity-props.mjs +15 -15
- package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-form-props.mjs +39 -39
- package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.mjs +13 -13
- package/{esm2020 → esm2022}/admin/defaults/gateway-plans/index.mjs +2 -2
- package/{esm2020 → esm2022}/admin/defaults/index.mjs +2 -2
- package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-entity-actions.mjs +28 -28
- package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-entity-props.mjs +9 -9
- package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-form-props.mjs +12 -12
- package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-toolbar-actions.mjs +13 -13
- package/{esm2020 → esm2022}/admin/defaults/plans/index.mjs +4 -4
- package/{esm2020 → esm2022}/admin/defaults/products/default-products-entity-props.mjs +42 -42
- package/{esm2020 → esm2022}/admin/defaults/products/index.mjs +1 -1
- package/{esm2020 → esm2022}/admin/defaults/requests/default-requests-entity-actions.mjs +12 -12
- package/{esm2020 → esm2022}/admin/defaults/requests/default-requests-entity-props.mjs +43 -43
- package/{esm2020 → esm2022}/admin/enums/components.mjs +1 -1
- package/{esm2020 → esm2022}/admin/enums/index.mjs +1 -1
- package/{esm2020 → esm2022}/admin/models/config-options.mjs +1 -1
- package/{esm2020 → esm2022}/admin/models/index.mjs +1 -1
- package/{esm2020 → esm2022}/admin/models/subscription-tooltip-data.mjs +1 -1
- package/{esm2020 → esm2022}/admin/payment-admin-routing.module.mjs +81 -80
- package/esm2022/admin/payment-admin.module.mjs +69 -0
- package/esm2022/admin/payment.initializer.mjs +37 -0
- package/{esm2020 → esm2022}/admin/public-api.mjs +9 -9
- package/{esm2020 → esm2022}/admin/tokens/extensions.token.mjs +40 -40
- package/{esm2020 → esm2022}/admin/tokens/index.mjs +1 -1
- package/{esm2020 → esm2022}/admin/utils/get-subscription-status.mjs +4 -4
- package/{esm2020 → esm2022}/admin/utils/index.mjs +1 -1
- package/{esm2020 → esm2022}/admin/volo-abp.ng.payment-admin.mjs +4 -4
- package/{esm2020 → esm2022}/proxy/lib/index.mjs +5 -5
- package/{esm2020 → esm2022}/proxy/lib/proxy/admin/plans/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/admin/plans/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/admin/plans/plan-admin.service.mjs +63 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/admin/requests/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/admin/requests/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/admin/requests/payment-request-admin.service.mjs +29 -0
- package/esm2022/proxy/lib/proxy/gateways/gateway.service.mjs +28 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/gateways/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/gateways/models.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/lib/proxy/plans/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/plans/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/plans/plan.service.mjs +28 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/requests/index.mjs +3 -3
- package/{esm2020 → esm2022}/proxy/lib/proxy/requests/models.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/lib/proxy/requests/payment-request-state.enum.mjs +9 -9
- package/{esm2020 → esm2022}/proxy/lib/proxy/requests/payment-type.enum.mjs +7 -7
- package/{esm2020 → esm2022}/proxy/public-api.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/volo-abp.ng.payment-proxy.mjs +4 -4
- package/{esm2020 → esm2022}/public-api.mjs +1 -1
- package/{esm2020 → esm2022}/volo-abp.ng.payment.mjs +4 -4
- package/{fesm2020 → fesm2022}/volo-abp.ng.payment-admin-config.mjs +51 -51
- package/{fesm2020 → fesm2022}/volo-abp.ng.payment-admin-config.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/volo-abp.ng.payment-admin.mjs +811 -811
- package/fesm2022/volo-abp.ng.payment-admin.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/volo-abp.ng.payment-proxy.mjs +134 -134
- package/{fesm2015 → fesm2022}/volo-abp.ng.payment-proxy.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/volo-abp.ng.payment.mjs +2 -2
- package/index.d.ts +5 -5
- package/package.json +39 -32
- package/proxy/index.d.ts +5 -5
- package/proxy/lib/index.d.ts +5 -5
- package/proxy/lib/proxy/admin/plans/index.d.ts +2 -2
- package/proxy/lib/proxy/admin/plans/models.d.ts +20 -20
- package/proxy/lib/proxy/admin/plans/plan-admin.service.d.ts +21 -21
- package/proxy/lib/proxy/admin/requests/index.d.ts +2 -2
- package/proxy/lib/proxy/admin/requests/models.d.ts +10 -10
- package/proxy/lib/proxy/admin/requests/payment-request-admin.service.d.ts +14 -14
- package/proxy/lib/proxy/gateways/gateway.service.d.ts +12 -12
- package/proxy/lib/proxy/gateways/index.d.ts +2 -2
- package/proxy/lib/proxy/gateways/models.d.ts +5 -5
- package/proxy/lib/proxy/plans/index.d.ts +2 -2
- package/proxy/lib/proxy/plans/models.d.ts +10 -10
- package/proxy/lib/proxy/plans/plan.service.d.ts +12 -12
- package/proxy/lib/proxy/requests/index.d.ts +3 -3
- package/proxy/lib/proxy/requests/models.d.ts +25 -25
- package/proxy/lib/proxy/requests/payment-request-state.enum.d.ts +7 -7
- package/proxy/lib/proxy/requests/payment-type.enum.d.ts +5 -5
- package/proxy/public-api.d.ts +1 -1
- package/public-api.d.ts +1 -1
- package/esm2020/admin/components/gateway-plans/gateway-plans.component.mjs +0 -101
- package/esm2020/admin/components/gateway-plans/gateway-plans.module.mjs +0 -49
- package/esm2020/admin/components/plans/plans.component.mjs +0 -100
- package/esm2020/admin/components/plans/plans.module.mjs +0 -49
- package/esm2020/admin/components/products/products.component.mjs +0 -59
- package/esm2020/admin/components/products/products.module.mjs +0 -39
- package/esm2020/admin/components/requests/requests-search-form/requests-search-form.component.mjs +0 -33
- package/esm2020/admin/components/requests/requests.component.mjs +0 -46
- package/esm2020/admin/components/requests/requests.module.mjs +0 -52
- package/esm2020/admin/components/subscription-tooltip/subscription-tooltip.component.mjs +0 -23
- package/esm2020/admin/components/subscription-tooltip/subscription-tooltip.module.mjs +0 -20
- package/esm2020/admin/config/payment-admin-config.module.mjs +0 -19
- package/esm2020/admin/payment-admin.module.mjs +0 -68
- package/esm2020/admin/payment.initializer.mjs +0 -36
- package/esm2020/proxy/lib/proxy/admin/plans/plan-admin.service.mjs +0 -62
- package/esm2020/proxy/lib/proxy/admin/requests/payment-request-admin.service.mjs +0 -28
- package/esm2020/proxy/lib/proxy/gateways/gateway.service.mjs +0 -27
- package/esm2020/proxy/lib/proxy/plans/plan.service.mjs +0 -27
- package/fesm2015/volo-abp.ng.payment-admin-config.mjs +0 -63
- package/fesm2015/volo-abp.ng.payment-admin-config.mjs.map +0 -1
- package/fesm2015/volo-abp.ng.payment-admin.mjs +0 -899
- package/fesm2015/volo-abp.ng.payment-admin.mjs.map +0 -1
- package/fesm2015/volo-abp.ng.payment-proxy.mjs +0 -155
- package/fesm2020/volo-abp.ng.payment-admin.mjs.map +0 -1
- package/fesm2020/volo-abp.ng.payment-proxy.mjs.map +0 -1
- package/fesm2020/volo-abp.ng.payment.mjs +0 -4
- package/fesm2020/volo-abp.ng.payment.mjs.map +0 -1
- package/proxy/src/lib/proxy/README.md +0 -17
- /package/{fesm2015 → fesm2022}/volo-abp.ng.payment.mjs.map +0 -0
|
@@ -26,871 +26,871 @@ import { NgbDateAdapter, NgbTooltipModule, NgbDatepickerModule } from '@ng-boots
|
|
|
26
26
|
import * as i4$2 from 'rxjs';
|
|
27
27
|
import { of } from 'rxjs';
|
|
28
28
|
|
|
29
|
-
class GatewayPlansComponent {
|
|
30
|
-
|
|
31
|
-
this.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
onEdit(id) {
|
|
45
|
-
this.planService
|
|
46
|
-
.getGatewayPlan(this.planId, id)
|
|
47
|
-
.pipe(take(1))
|
|
48
|
-
.subscribe(selectedGatewayPlan => {
|
|
49
|
-
this.selected = selectedGatewayPlan;
|
|
50
|
-
this.openModal();
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
onDelete(gateway) {
|
|
54
|
-
this.confirmationService
|
|
55
|
-
.warn('Payment::GatewayPlanDeletionConfirmationMessage', 'AbpUi::AreYouSure', {
|
|
56
|
-
messageLocalizationParams: [gateway],
|
|
57
|
-
})
|
|
58
|
-
.subscribe((status) => {
|
|
59
|
-
if (status === Confirmation.Status.confirm) {
|
|
60
|
-
this.service.deleteGatewayPlan(this.planId, gateway).subscribe(() => this.list.get());
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
onAdd() {
|
|
65
|
-
this.selected = {};
|
|
66
|
-
this.openModal();
|
|
67
|
-
}
|
|
68
|
-
openModal() {
|
|
69
|
-
this.createForm();
|
|
70
|
-
this.isModalVisible = true;
|
|
71
|
-
}
|
|
72
|
-
save() {
|
|
73
|
-
if (!this.form.valid)
|
|
74
|
-
return;
|
|
75
|
-
this.modalBusy = true;
|
|
76
|
-
let stream;
|
|
77
|
-
if (this.selected.gateway) {
|
|
78
|
-
stream = this.service.updateGatewayPlan(this.planId, this.selected.gateway, this.form.value);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
stream = this.service.createGatewayPlan(this.planId, this.form.value);
|
|
82
|
-
}
|
|
83
|
-
stream.pipe(finalize(() => (this.modalBusy = false))).subscribe(() => {
|
|
84
|
-
this.list.get();
|
|
85
|
-
this.isModalVisible = false;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
createForm() {
|
|
89
|
-
const data = new FormPropData(this.injector, this.selected);
|
|
90
|
-
this.form = generateFormFromProps(data);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
102
|
-
type: Component,
|
|
103
|
-
args: [{ selector: 'abp-gateway-plans', encapsulation: ViewEncapsulation.None, providers: [
|
|
104
|
-
ListService,
|
|
105
|
-
{
|
|
106
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
107
|
-
useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
108
|
-
},
|
|
109
|
-
], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
|
|
29
|
+
class GatewayPlansComponent {
|
|
30
|
+
get planId() {
|
|
31
|
+
return this.activatedRoute.snapshot.params.planId;
|
|
32
|
+
}
|
|
33
|
+
constructor(planService, list, injector, confirmationService, activatedRoute) {
|
|
34
|
+
this.planService = planService;
|
|
35
|
+
this.list = list;
|
|
36
|
+
this.injector = injector;
|
|
37
|
+
this.confirmationService = confirmationService;
|
|
38
|
+
this.activatedRoute = activatedRoute;
|
|
39
|
+
this.isModalVisible = false;
|
|
40
|
+
this.modalBusy = false;
|
|
41
|
+
this.service = injector.get(PlanAdminService);
|
|
42
|
+
this.data$ = this.list.hookToQuery(input => this.service.getGatewayPlans(this.planId, input));
|
|
43
|
+
}
|
|
44
|
+
onEdit(id) {
|
|
45
|
+
this.planService
|
|
46
|
+
.getGatewayPlan(this.planId, id)
|
|
47
|
+
.pipe(take(1))
|
|
48
|
+
.subscribe(selectedGatewayPlan => {
|
|
49
|
+
this.selected = selectedGatewayPlan;
|
|
50
|
+
this.openModal();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
onDelete(gateway) {
|
|
54
|
+
this.confirmationService
|
|
55
|
+
.warn('Payment::GatewayPlanDeletionConfirmationMessage', 'AbpUi::AreYouSure', {
|
|
56
|
+
messageLocalizationParams: [gateway],
|
|
57
|
+
})
|
|
58
|
+
.subscribe((status) => {
|
|
59
|
+
if (status === Confirmation.Status.confirm) {
|
|
60
|
+
this.service.deleteGatewayPlan(this.planId, gateway).subscribe(() => this.list.get());
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
onAdd() {
|
|
65
|
+
this.selected = {};
|
|
66
|
+
this.openModal();
|
|
67
|
+
}
|
|
68
|
+
openModal() {
|
|
69
|
+
this.createForm();
|
|
70
|
+
this.isModalVisible = true;
|
|
71
|
+
}
|
|
72
|
+
save() {
|
|
73
|
+
if (!this.form.valid)
|
|
74
|
+
return;
|
|
75
|
+
this.modalBusy = true;
|
|
76
|
+
let stream;
|
|
77
|
+
if (this.selected.gateway) {
|
|
78
|
+
stream = this.service.updateGatewayPlan(this.planId, this.selected.gateway, this.form.value);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
stream = this.service.createGatewayPlan(this.planId, this.form.value);
|
|
82
|
+
}
|
|
83
|
+
stream.pipe(finalize(() => (this.modalBusy = false))).subscribe(() => {
|
|
84
|
+
this.list.get();
|
|
85
|
+
this.isModalVisible = false;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
createForm() {
|
|
89
|
+
const data = new FormPropData(this.injector, this.selected);
|
|
90
|
+
this.form = generateFormFromProps(data);
|
|
91
|
+
}
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GatewayPlansComponent, deps: [{ token: i2.PlanService }, { token: i1.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
93
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: GatewayPlansComponent, selector: "abp-gateway-plans", providers: [
|
|
94
|
+
ListService,
|
|
95
|
+
{
|
|
96
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
97
|
+
useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
98
|
+
},
|
|
99
|
+
], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i7.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
100
|
+
}
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GatewayPlansComponent, decorators: [{
|
|
102
|
+
type: Component,
|
|
103
|
+
args: [{ selector: 'abp-gateway-plans', encapsulation: ViewEncapsulation.None, providers: [
|
|
104
|
+
ListService,
|
|
105
|
+
{
|
|
106
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
107
|
+
useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
108
|
+
},
|
|
109
|
+
], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
|
|
110
110
|
}], ctorParameters: function () { return [{ type: i2.PlanService }, { type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.ActivatedRoute }]; } });
|
|
111
111
|
|
|
112
|
-
class PaymentPlansComponent {
|
|
113
|
-
constructor(list, injector, confirmationService, router, activatedRoute) {
|
|
114
|
-
this.list = list;
|
|
115
|
-
this.injector = injector;
|
|
116
|
-
this.confirmationService = confirmationService;
|
|
117
|
-
this.router = router;
|
|
118
|
-
this.activatedRoute = activatedRoute;
|
|
119
|
-
this.isModalVisible = false;
|
|
120
|
-
this.modalBusy = false;
|
|
121
|
-
this.service = injector.get(PlanAdminService);
|
|
122
|
-
this.data$ = this.list.hookToQuery(this.service.getList);
|
|
123
|
-
}
|
|
124
|
-
onEdit(id) {
|
|
125
|
-
this.service
|
|
126
|
-
.get(id)
|
|
127
|
-
.pipe(take(1))
|
|
128
|
-
.subscribe(selectedPlan => {
|
|
129
|
-
this.selected = selectedPlan;
|
|
130
|
-
this.openModal();
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
goToGatewayPlans(id) {
|
|
134
|
-
this.router.navigate(['./', id], { relativeTo: this.activatedRoute });
|
|
135
|
-
}
|
|
136
|
-
onDelete(id, name) {
|
|
137
|
-
this.confirmationService
|
|
138
|
-
.warn('Payment::PlanDeletionConfirmationMessage', 'AbpUi::AreYouSure', {
|
|
139
|
-
messageLocalizationParams: [name],
|
|
140
|
-
})
|
|
141
|
-
.subscribe((status) => {
|
|
142
|
-
if (status === Confirmation.Status.confirm) {
|
|
143
|
-
this.service.delete(id).subscribe(() => this.list.get());
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
onAdd() {
|
|
148
|
-
this.selected = {};
|
|
149
|
-
this.openModal();
|
|
150
|
-
}
|
|
151
|
-
openModal() {
|
|
152
|
-
this.createForm();
|
|
153
|
-
this.isModalVisible = true;
|
|
154
|
-
}
|
|
155
|
-
save() {
|
|
156
|
-
if (!this.form.valid)
|
|
157
|
-
return;
|
|
158
|
-
this.modalBusy = true;
|
|
159
|
-
let stream;
|
|
160
|
-
if (this.selected.id) {
|
|
161
|
-
stream = this.service.update(this.selected.id, this.form.value);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
stream = this.service.create(this.form.value);
|
|
165
|
-
}
|
|
166
|
-
stream.pipe(finalize(() => (this.modalBusy = false))).subscribe(() => {
|
|
167
|
-
this.list.get();
|
|
168
|
-
this.isModalVisible = false;
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
createForm() {
|
|
172
|
-
const data = new FormPropData(this.injector, this.selected);
|
|
173
|
-
this.form = generateFormFromProps(data);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
185
|
-
type: Component,
|
|
186
|
-
args: [{ selector: 'abp-payment-plans', encapsulation: ViewEncapsulation.None, providers: [
|
|
187
|
-
ListService,
|
|
188
|
-
{
|
|
189
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
190
|
-
useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
191
|
-
},
|
|
192
|
-
], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
|
|
112
|
+
class PaymentPlansComponent {
|
|
113
|
+
constructor(list, injector, confirmationService, router, activatedRoute) {
|
|
114
|
+
this.list = list;
|
|
115
|
+
this.injector = injector;
|
|
116
|
+
this.confirmationService = confirmationService;
|
|
117
|
+
this.router = router;
|
|
118
|
+
this.activatedRoute = activatedRoute;
|
|
119
|
+
this.isModalVisible = false;
|
|
120
|
+
this.modalBusy = false;
|
|
121
|
+
this.service = injector.get(PlanAdminService);
|
|
122
|
+
this.data$ = this.list.hookToQuery(this.service.getList);
|
|
123
|
+
}
|
|
124
|
+
onEdit(id) {
|
|
125
|
+
this.service
|
|
126
|
+
.get(id)
|
|
127
|
+
.pipe(take(1))
|
|
128
|
+
.subscribe(selectedPlan => {
|
|
129
|
+
this.selected = selectedPlan;
|
|
130
|
+
this.openModal();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
goToGatewayPlans(id) {
|
|
134
|
+
this.router.navigate(['./', id], { relativeTo: this.activatedRoute });
|
|
135
|
+
}
|
|
136
|
+
onDelete(id, name) {
|
|
137
|
+
this.confirmationService
|
|
138
|
+
.warn('Payment::PlanDeletionConfirmationMessage', 'AbpUi::AreYouSure', {
|
|
139
|
+
messageLocalizationParams: [name],
|
|
140
|
+
})
|
|
141
|
+
.subscribe((status) => {
|
|
142
|
+
if (status === Confirmation.Status.confirm) {
|
|
143
|
+
this.service.delete(id).subscribe(() => this.list.get());
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
onAdd() {
|
|
148
|
+
this.selected = {};
|
|
149
|
+
this.openModal();
|
|
150
|
+
}
|
|
151
|
+
openModal() {
|
|
152
|
+
this.createForm();
|
|
153
|
+
this.isModalVisible = true;
|
|
154
|
+
}
|
|
155
|
+
save() {
|
|
156
|
+
if (!this.form.valid)
|
|
157
|
+
return;
|
|
158
|
+
this.modalBusy = true;
|
|
159
|
+
let stream;
|
|
160
|
+
if (this.selected.id) {
|
|
161
|
+
stream = this.service.update(this.selected.id, this.form.value);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
stream = this.service.create(this.form.value);
|
|
165
|
+
}
|
|
166
|
+
stream.pipe(finalize(() => (this.modalBusy = false))).subscribe(() => {
|
|
167
|
+
this.list.get();
|
|
168
|
+
this.isModalVisible = false;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
createForm() {
|
|
172
|
+
const data = new FormPropData(this.injector, this.selected);
|
|
173
|
+
this.form = generateFormFromProps(data);
|
|
174
|
+
}
|
|
175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentPlansComponent, deps: [{ token: i1.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
176
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: PaymentPlansComponent, selector: "abp-payment-plans", providers: [
|
|
177
|
+
ListService,
|
|
178
|
+
{
|
|
179
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
180
|
+
useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
181
|
+
},
|
|
182
|
+
], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i7.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
183
|
+
}
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentPlansComponent, decorators: [{
|
|
185
|
+
type: Component,
|
|
186
|
+
args: [{ selector: 'abp-payment-plans', encapsulation: ViewEncapsulation.None, providers: [
|
|
187
|
+
ListService,
|
|
188
|
+
{
|
|
189
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
190
|
+
useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
191
|
+
},
|
|
192
|
+
], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
|
|
193
193
|
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
194
194
|
|
|
195
|
-
class ProductsComponent {
|
|
196
|
-
|
|
197
|
-
this.route
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
{
|
|
206
|
-
name: "Payment::Menu:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name:
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
231
|
-
type: Component,
|
|
232
|
-
args: [{ selector: 'abp-products', providers: [
|
|
233
|
-
ListService,
|
|
234
|
-
{
|
|
235
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
236
|
-
useValue: "Payment.Products" /* ePaymentComponents.Products */,
|
|
237
|
-
},
|
|
238
|
-
], template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n" }]
|
|
195
|
+
class ProductsComponent {
|
|
196
|
+
get requestId() {
|
|
197
|
+
return this.route.snapshot.params.requestId;
|
|
198
|
+
}
|
|
199
|
+
constructor(route, service, list) {
|
|
200
|
+
this.route = route;
|
|
201
|
+
this.service = service;
|
|
202
|
+
this.list = list;
|
|
203
|
+
this.data = [];
|
|
204
|
+
this.breadCrumbItems = [
|
|
205
|
+
{
|
|
206
|
+
name: "Payment::Menu:PaymentManagement" /* ePaymentRouteNames.Payment */,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "Payment::Menu:PaymentRequests" /* ePaymentRouteNames.Requests */,
|
|
210
|
+
path: '/payment/requests',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: this.requestId,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'Payment::Products',
|
|
217
|
+
},
|
|
218
|
+
];
|
|
219
|
+
list.hookToQuery(() => this.service.get(this.requestId).pipe(map(request => request.products))).subscribe((data) => (this.data = data));
|
|
220
|
+
}
|
|
221
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProductsComponent, deps: [{ token: i3$1.ActivatedRoute }, { token: i2.PaymentRequestAdminService }, { token: i1.ListService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
222
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: ProductsComponent, selector: "abp-products", providers: [
|
|
223
|
+
ListService,
|
|
224
|
+
{
|
|
225
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
226
|
+
useValue: "Payment.Products" /* ePaymentComponents.Products */,
|
|
227
|
+
},
|
|
228
|
+
], ngImport: i0, template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n", dependencies: [{ kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4$1.PageBreadcrumbContainerComponent, selector: "abp-page-breadcrumb-container" }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3.BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
229
|
+
}
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProductsComponent, decorators: [{
|
|
231
|
+
type: Component,
|
|
232
|
+
args: [{ selector: 'abp-products', providers: [
|
|
233
|
+
ListService,
|
|
234
|
+
{
|
|
235
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
236
|
+
useValue: "Payment.Products" /* ePaymentComponents.Products */,
|
|
237
|
+
},
|
|
238
|
+
], template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n" }]
|
|
239
239
|
}], ctorParameters: function () { return [{ type: i3$1.ActivatedRoute }, { type: i2.PaymentRequestAdminService }, { type: i1.ListService }]; } });
|
|
240
240
|
|
|
241
|
-
class RequestsSearchFormComponent {
|
|
242
|
-
constructor() {
|
|
243
|
-
this.pageQueryChange = new EventEmitter();
|
|
244
|
-
this.paymentTypes = paymentTypeOptions;
|
|
245
|
-
this.states = paymentRequestStateOptions;
|
|
246
|
-
}
|
|
247
|
-
emit() {
|
|
248
|
-
this.pageQueryChange.emit(this.pageQuery);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
-
type: Component,
|
|
255
|
-
args: [{ selector: 'abp-payment-requests-search-form', providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let paymentType of paymentTypes\" [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let state of states\" [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
|
|
256
|
-
}], propDecorators: { list: [{
|
|
257
|
-
type: Input
|
|
258
|
-
}], pageQuery: [{
|
|
259
|
-
type: Input
|
|
260
|
-
}], pageQueryChange: [{
|
|
261
|
-
type: Output
|
|
241
|
+
class RequestsSearchFormComponent {
|
|
242
|
+
constructor() {
|
|
243
|
+
this.pageQueryChange = new EventEmitter();
|
|
244
|
+
this.paymentTypes = paymentTypeOptions;
|
|
245
|
+
this.states = paymentRequestStateOptions;
|
|
246
|
+
}
|
|
247
|
+
emit() {
|
|
248
|
+
this.pageQueryChange.emit(this.pageQuery);
|
|
249
|
+
}
|
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsSearchFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: { list: "list", pageQuery: "pageQuery" }, outputs: { pageQueryChange: "pageQueryChange" }, providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], ngImport: i0, template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let paymentType of paymentTypes\" [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let state of states\" [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "contentTemplate", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "popperOptions", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
252
|
+
}
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsSearchFormComponent, decorators: [{
|
|
254
|
+
type: Component,
|
|
255
|
+
args: [{ selector: 'abp-payment-requests-search-form', providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let paymentType of paymentTypes\" [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let state of states\" [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
|
|
256
|
+
}], propDecorators: { list: [{
|
|
257
|
+
type: Input
|
|
258
|
+
}], pageQuery: [{
|
|
259
|
+
type: Input
|
|
260
|
+
}], pageQueryChange: [{
|
|
261
|
+
type: Output
|
|
262
262
|
}] } });
|
|
263
263
|
|
|
264
|
-
class RequestsComponent {
|
|
265
|
-
constructor(list, paymentRequestAdminService, router, route) {
|
|
266
|
-
this.list = list;
|
|
267
|
-
this.paymentRequestAdminService = paymentRequestAdminService;
|
|
268
|
-
this.router = router;
|
|
269
|
-
this.route = route;
|
|
270
|
-
this.pageQuery = {};
|
|
271
|
-
this.data$ = this.list.hookToQuery(query => this.paymentRequestAdminService.getList({ ...query, ...this.pageQuery }));
|
|
272
|
-
}
|
|
273
|
-
goToProducts(id) {
|
|
274
|
-
this.router.navigate([id, 'products'], { relativeTo: this.route });
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
286
|
-
type: Component,
|
|
287
|
-
args: [{ selector: 'abp-payment-requests', providers: [
|
|
288
|
-
ListService,
|
|
289
|
-
{
|
|
290
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
291
|
-
useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
292
|
-
},
|
|
293
|
-
], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n >\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\"></abp-payment-requests-search-form>\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n</ng-container>\r\n" }]
|
|
264
|
+
class RequestsComponent {
|
|
265
|
+
constructor(list, paymentRequestAdminService, router, route) {
|
|
266
|
+
this.list = list;
|
|
267
|
+
this.paymentRequestAdminService = paymentRequestAdminService;
|
|
268
|
+
this.router = router;
|
|
269
|
+
this.route = route;
|
|
270
|
+
this.pageQuery = {};
|
|
271
|
+
this.data$ = this.list.hookToQuery(query => this.paymentRequestAdminService.getList({ ...query, ...this.pageQuery }));
|
|
272
|
+
}
|
|
273
|
+
goToProducts(id) {
|
|
274
|
+
this.router.navigate([id, 'products'], { relativeTo: this.route });
|
|
275
|
+
}
|
|
276
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsComponent, deps: [{ token: i1.ListService }, { token: i2.PaymentRequestAdminService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
277
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: RequestsComponent, selector: "abp-payment-requests", providers: [
|
|
278
|
+
ListService,
|
|
279
|
+
{
|
|
280
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
281
|
+
useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
282
|
+
},
|
|
283
|
+
], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n >\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\"></abp-payment-requests-search-form>\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i7.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i7.AdvancedEntityFiltersAboveSearchComponent, selector: "abp-advanced-entity-filters-above-search" }, { kind: "component", type: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: ["list", "pageQuery"], outputs: ["pageQueryChange"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
284
|
+
}
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsComponent, decorators: [{
|
|
286
|
+
type: Component,
|
|
287
|
+
args: [{ selector: 'abp-payment-requests', providers: [
|
|
288
|
+
ListService,
|
|
289
|
+
{
|
|
290
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
291
|
+
useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
292
|
+
},
|
|
293
|
+
], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n >\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\"></abp-payment-requests-search-form>\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n</ng-container>\r\n" }]
|
|
294
294
|
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.PaymentRequestAdminService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
295
295
|
|
|
296
|
-
const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
297
|
-
{
|
|
298
|
-
text: 'Payment::Edit',
|
|
299
|
-
action: data => {
|
|
300
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
301
|
-
component.onEdit(data.record.gateway);
|
|
302
|
-
},
|
|
303
|
-
permission: 'Payment.Plans.GatewayPlans.Update',
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
text: 'Payment::Delete',
|
|
307
|
-
action: data => {
|
|
308
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
309
|
-
component.onDelete(data.record.gateway);
|
|
310
|
-
},
|
|
311
|
-
permission: 'Payment.Plans.GatewayPlans.Delete',
|
|
312
|
-
},
|
|
296
|
+
const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
297
|
+
{
|
|
298
|
+
text: 'Payment::Edit',
|
|
299
|
+
action: data => {
|
|
300
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
301
|
+
component.onEdit(data.record.gateway);
|
|
302
|
+
},
|
|
303
|
+
permission: 'Payment.Plans.GatewayPlans.Update',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
text: 'Payment::Delete',
|
|
307
|
+
action: data => {
|
|
308
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
309
|
+
component.onDelete(data.record.gateway);
|
|
310
|
+
},
|
|
311
|
+
permission: 'Payment.Plans.GatewayPlans.Delete',
|
|
312
|
+
},
|
|
313
313
|
]);
|
|
314
314
|
|
|
315
|
-
const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
316
|
-
{
|
|
317
|
-
type: "string" /* ePropType.String */,
|
|
318
|
-
name: 'gateway',
|
|
319
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
320
|
-
sortable: true,
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
type: "string" /* ePropType.String */,
|
|
324
|
-
name: 'externalId',
|
|
325
|
-
displayName: 'Payment::DisplayName:ExternalId',
|
|
326
|
-
sortable: true,
|
|
327
|
-
},
|
|
315
|
+
const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
316
|
+
{
|
|
317
|
+
type: "string" /* ePropType.String */,
|
|
318
|
+
name: 'gateway',
|
|
319
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
320
|
+
sortable: true,
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
type: "string" /* ePropType.String */,
|
|
324
|
+
name: 'externalId',
|
|
325
|
+
displayName: 'Payment::DisplayName:ExternalId',
|
|
326
|
+
sortable: true,
|
|
327
|
+
},
|
|
328
328
|
]);
|
|
329
329
|
|
|
330
|
-
const externalIdField = {
|
|
331
|
-
type: "string" /* ePropType.String */,
|
|
332
|
-
name: 'externalId',
|
|
333
|
-
displayName: 'Payment::DisplayName:ExternalId',
|
|
334
|
-
id: 'external-id',
|
|
335
|
-
validators: () => [Validators.required],
|
|
336
|
-
};
|
|
337
|
-
const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
338
|
-
{
|
|
339
|
-
type: "string" /* ePropType.String */,
|
|
340
|
-
name: 'gateway',
|
|
341
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
342
|
-
id: 'gateway',
|
|
343
|
-
options: data => {
|
|
344
|
-
const service = data.getInjected(GatewayService);
|
|
345
|
-
return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
|
|
346
|
-
key: opt.displayName,
|
|
347
|
-
value: opt.name,
|
|
348
|
-
}))));
|
|
349
|
-
},
|
|
350
|
-
validators: () => [Validators.required],
|
|
351
|
-
},
|
|
352
|
-
externalIdField,
|
|
353
|
-
]);
|
|
354
|
-
const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
|
|
355
|
-
{
|
|
356
|
-
type: "string" /* ePropType.String */,
|
|
357
|
-
name: 'gateway',
|
|
358
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
359
|
-
id: 'gateway',
|
|
360
|
-
validators: () => [Validators.required],
|
|
361
|
-
disabled: () => true,
|
|
362
|
-
},
|
|
363
|
-
externalIdField,
|
|
330
|
+
const externalIdField = {
|
|
331
|
+
type: "string" /* ePropType.String */,
|
|
332
|
+
name: 'externalId',
|
|
333
|
+
displayName: 'Payment::DisplayName:ExternalId',
|
|
334
|
+
id: 'external-id',
|
|
335
|
+
validators: () => [Validators.required],
|
|
336
|
+
};
|
|
337
|
+
const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
338
|
+
{
|
|
339
|
+
type: "string" /* ePropType.String */,
|
|
340
|
+
name: 'gateway',
|
|
341
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
342
|
+
id: 'gateway',
|
|
343
|
+
options: data => {
|
|
344
|
+
const service = data.getInjected(GatewayService);
|
|
345
|
+
return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
|
|
346
|
+
key: opt.displayName,
|
|
347
|
+
value: opt.name,
|
|
348
|
+
}))));
|
|
349
|
+
},
|
|
350
|
+
validators: () => [Validators.required],
|
|
351
|
+
},
|
|
352
|
+
externalIdField,
|
|
353
|
+
]);
|
|
354
|
+
const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
|
|
355
|
+
{
|
|
356
|
+
type: "string" /* ePropType.String */,
|
|
357
|
+
name: 'gateway',
|
|
358
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
359
|
+
id: 'gateway',
|
|
360
|
+
validators: () => [Validators.required],
|
|
361
|
+
disabled: () => true,
|
|
362
|
+
},
|
|
363
|
+
externalIdField,
|
|
364
364
|
]);
|
|
365
365
|
|
|
366
|
-
const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
367
|
-
{
|
|
368
|
-
text: 'Payment::NewGatewayPlan',
|
|
369
|
-
action: data => {
|
|
370
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
371
|
-
component.onAdd();
|
|
372
|
-
},
|
|
373
|
-
permission: 'Payment.Plans.GatewayPlans.Create',
|
|
374
|
-
icon: 'fa fa-plus',
|
|
375
|
-
},
|
|
366
|
+
const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
367
|
+
{
|
|
368
|
+
text: 'Payment::NewGatewayPlan',
|
|
369
|
+
action: data => {
|
|
370
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
371
|
+
component.onAdd();
|
|
372
|
+
},
|
|
373
|
+
permission: 'Payment.Plans.GatewayPlans.Create',
|
|
374
|
+
icon: 'fa fa-plus',
|
|
375
|
+
},
|
|
376
376
|
]);
|
|
377
377
|
|
|
378
|
-
const DEFAULT_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
379
|
-
{
|
|
380
|
-
text: 'Payment::GatewayPlans',
|
|
381
|
-
action: data => {
|
|
382
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
383
|
-
component.goToGatewayPlans(data.record.id);
|
|
384
|
-
},
|
|
385
|
-
permission: 'Payment.Plans.GatewayPlans',
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
text: 'Payment::Edit',
|
|
389
|
-
action: data => {
|
|
390
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
391
|
-
component.onEdit(data.record.id);
|
|
392
|
-
},
|
|
393
|
-
permission: 'Payment.Plans.Update',
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
text: 'Payment::Delete',
|
|
397
|
-
action: data => {
|
|
398
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
399
|
-
component.onDelete(data.record.id, data.record.name);
|
|
400
|
-
},
|
|
401
|
-
permission: 'Payment.Plans.Delete',
|
|
402
|
-
},
|
|
378
|
+
const DEFAULT_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
379
|
+
{
|
|
380
|
+
text: 'Payment::GatewayPlans',
|
|
381
|
+
action: data => {
|
|
382
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
383
|
+
component.goToGatewayPlans(data.record.id);
|
|
384
|
+
},
|
|
385
|
+
permission: 'Payment.Plans.GatewayPlans',
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
text: 'Payment::Edit',
|
|
389
|
+
action: data => {
|
|
390
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
391
|
+
component.onEdit(data.record.id);
|
|
392
|
+
},
|
|
393
|
+
permission: 'Payment.Plans.Update',
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
text: 'Payment::Delete',
|
|
397
|
+
action: data => {
|
|
398
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
399
|
+
component.onDelete(data.record.id, data.record.name);
|
|
400
|
+
},
|
|
401
|
+
permission: 'Payment.Plans.Delete',
|
|
402
|
+
},
|
|
403
403
|
]);
|
|
404
404
|
|
|
405
|
-
const DEFAULT_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
406
|
-
{
|
|
407
|
-
type: "string" /* ePropType.String */,
|
|
408
|
-
name: 'name',
|
|
409
|
-
displayName: 'Payment::DisplayName:Name',
|
|
410
|
-
sortable: true,
|
|
411
|
-
},
|
|
405
|
+
const DEFAULT_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
406
|
+
{
|
|
407
|
+
type: "string" /* ePropType.String */,
|
|
408
|
+
name: 'name',
|
|
409
|
+
displayName: 'Payment::DisplayName:Name',
|
|
410
|
+
sortable: true,
|
|
411
|
+
},
|
|
412
412
|
]);
|
|
413
413
|
|
|
414
|
-
const DEFAULT_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
415
|
-
{
|
|
416
|
-
type: "string" /* ePropType.String */,
|
|
417
|
-
name: 'name',
|
|
418
|
-
displayName: 'Payment::Name',
|
|
419
|
-
id: 'payment-name',
|
|
420
|
-
validators: () => [Validators.required],
|
|
421
|
-
},
|
|
422
|
-
]);
|
|
414
|
+
const DEFAULT_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
415
|
+
{
|
|
416
|
+
type: "string" /* ePropType.String */,
|
|
417
|
+
name: 'name',
|
|
418
|
+
displayName: 'Payment::Name',
|
|
419
|
+
id: 'payment-name',
|
|
420
|
+
validators: () => [Validators.required],
|
|
421
|
+
},
|
|
422
|
+
]);
|
|
423
423
|
const DEFAULT_PLANS_EDIT_FORM_PROPS = DEFAULT_PLANS_CREATE_FORM_PROPS;
|
|
424
424
|
|
|
425
|
-
const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
426
|
-
{
|
|
427
|
-
text: 'Payment::NewPlan',
|
|
428
|
-
action: data => {
|
|
429
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
430
|
-
component.onAdd();
|
|
431
|
-
},
|
|
432
|
-
permission: 'Payment.Plans.Create',
|
|
433
|
-
icon: 'fa fa-plus',
|
|
434
|
-
},
|
|
425
|
+
const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
426
|
+
{
|
|
427
|
+
text: 'Payment::NewPlan',
|
|
428
|
+
action: data => {
|
|
429
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
430
|
+
component.onAdd();
|
|
431
|
+
},
|
|
432
|
+
permission: 'Payment.Plans.Create',
|
|
433
|
+
icon: 'fa fa-plus',
|
|
434
|
+
},
|
|
435
435
|
]);
|
|
436
436
|
|
|
437
|
-
class SubscriptionTooltipComponent {
|
|
438
|
-
constructor(value$) {
|
|
439
|
-
this.value$ = value$;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
445
|
-
type: Component,
|
|
446
|
-
args: [{ selector: 'abp-subscription-tooltip', template: "<ng-container *ngIf=\"value$ | async as value\">\r\n <i\r\n *ngIf=\"value.isSubscription; else valueTmp\"\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n</ng-container>\r\n" }]
|
|
447
|
-
}], ctorParameters: function () { return [{ type: i4$2.Observable, decorators: [{
|
|
448
|
-
type: Inject,
|
|
449
|
-
args: [PROP_DATA_STREAM]
|
|
437
|
+
class SubscriptionTooltipComponent {
|
|
438
|
+
constructor(value$) {
|
|
439
|
+
this.value$ = value$;
|
|
440
|
+
}
|
|
441
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SubscriptionTooltipComponent, deps: [{ token: PROP_DATA_STREAM }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
442
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: SubscriptionTooltipComponent, selector: "abp-subscription-tooltip", ngImport: i0, template: "<ng-container *ngIf=\"value$ | async as value\">\r\n <i\r\n *ngIf=\"value.isSubscription; else valueTmp\"\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
443
|
+
}
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SubscriptionTooltipComponent, decorators: [{
|
|
445
|
+
type: Component,
|
|
446
|
+
args: [{ selector: 'abp-subscription-tooltip', template: "<ng-container *ngIf=\"value$ | async as value\">\r\n <i\r\n *ngIf=\"value.isSubscription; else valueTmp\"\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n</ng-container>\r\n" }]
|
|
447
|
+
}], ctorParameters: function () { return [{ type: i4$2.Observable, decorators: [{
|
|
448
|
+
type: Inject,
|
|
449
|
+
args: [PROP_DATA_STREAM]
|
|
450
450
|
}] }]; } });
|
|
451
451
|
|
|
452
|
-
const getSubscriptionStatus = (condition, defaultValue) => {
|
|
453
|
-
return of({ isSubscription: condition, defaultValue });
|
|
452
|
+
const getSubscriptionStatus = (condition, defaultValue) => {
|
|
453
|
+
return of({ isSubscription: condition, defaultValue });
|
|
454
454
|
};
|
|
455
455
|
|
|
456
|
-
const DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS = EntityProp.createMany([
|
|
457
|
-
{
|
|
458
|
-
type: "string" /* ePropType.String */,
|
|
459
|
-
name: 'code',
|
|
460
|
-
displayName: 'Payment::DisplayName:Code',
|
|
461
|
-
sortable: false,
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
type: "string" /* ePropType.String */,
|
|
465
|
-
name: 'name',
|
|
466
|
-
displayName: 'Payment::DisplayName:Name',
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
type: "number" /* ePropType.Number */,
|
|
470
|
-
name: 'count',
|
|
471
|
-
displayName: 'Payment::DisplayName:Count',
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
type: "number" /* ePropType.Number */,
|
|
475
|
-
name: 'unitPrice',
|
|
476
|
-
displayName: 'Payment::DisplayName:UnitPrice',
|
|
477
|
-
component: SubscriptionTooltipComponent,
|
|
478
|
-
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.unitPrice),
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
type: "number" /* ePropType.Number */,
|
|
482
|
-
name: 'totalPrice',
|
|
483
|
-
displayName: 'Payment::DisplayName:TotalPrice',
|
|
484
|
-
component: SubscriptionTooltipComponent,
|
|
485
|
-
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.totalPrice),
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
type: "enum" /* ePropType.Enum */,
|
|
489
|
-
name: 'paymentType',
|
|
490
|
-
displayName: 'Payment::DisplayName:PaymentType',
|
|
491
|
-
enumList: paymentTypeOptions,
|
|
492
|
-
},
|
|
456
|
+
const DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS = EntityProp.createMany([
|
|
457
|
+
{
|
|
458
|
+
type: "string" /* ePropType.String */,
|
|
459
|
+
name: 'code',
|
|
460
|
+
displayName: 'Payment::DisplayName:Code',
|
|
461
|
+
sortable: false,
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
type: "string" /* ePropType.String */,
|
|
465
|
+
name: 'name',
|
|
466
|
+
displayName: 'Payment::DisplayName:Name',
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
type: "number" /* ePropType.Number */,
|
|
470
|
+
name: 'count',
|
|
471
|
+
displayName: 'Payment::DisplayName:Count',
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
type: "number" /* ePropType.Number */,
|
|
475
|
+
name: 'unitPrice',
|
|
476
|
+
displayName: 'Payment::DisplayName:UnitPrice',
|
|
477
|
+
component: SubscriptionTooltipComponent,
|
|
478
|
+
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.unitPrice),
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
type: "number" /* ePropType.Number */,
|
|
482
|
+
name: 'totalPrice',
|
|
483
|
+
displayName: 'Payment::DisplayName:TotalPrice',
|
|
484
|
+
component: SubscriptionTooltipComponent,
|
|
485
|
+
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.totalPrice),
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
type: "enum" /* ePropType.Enum */,
|
|
489
|
+
name: 'paymentType',
|
|
490
|
+
displayName: 'Payment::DisplayName:PaymentType',
|
|
491
|
+
enumList: paymentTypeOptions,
|
|
492
|
+
},
|
|
493
493
|
]);
|
|
494
494
|
|
|
495
|
-
const DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
496
|
-
{
|
|
497
|
-
text: 'Payment::Products',
|
|
498
|
-
action: data => {
|
|
499
|
-
const component = data.getInjected(RequestsComponent);
|
|
500
|
-
component.goToProducts(data.record.id);
|
|
501
|
-
},
|
|
502
|
-
permission: 'Payment.PaymentRequests',
|
|
503
|
-
},
|
|
495
|
+
const DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
496
|
+
{
|
|
497
|
+
text: 'Payment::Products',
|
|
498
|
+
action: data => {
|
|
499
|
+
const component = data.getInjected(RequestsComponent);
|
|
500
|
+
component.goToProducts(data.record.id);
|
|
501
|
+
},
|
|
502
|
+
permission: 'Payment.PaymentRequests',
|
|
503
|
+
},
|
|
504
504
|
]);
|
|
505
505
|
|
|
506
|
-
const DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS = EntityProp.createMany([
|
|
507
|
-
{
|
|
508
|
-
type: "datetime" /* ePropType.DateTime */,
|
|
509
|
-
name: 'creationTime',
|
|
510
|
-
displayName: 'Payment::DisplayName:CreationTime',
|
|
511
|
-
sortable: true,
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
type: "number" /* ePropType.Number */,
|
|
515
|
-
name: 'totalPrice',
|
|
516
|
-
displayName: 'Payment::DisplayName:TotalPrice',
|
|
517
|
-
sortable: true,
|
|
518
|
-
component: SubscriptionTooltipComponent,
|
|
519
|
-
valueResolver: data => getSubscriptionStatus(!!data.record.externalSubscriptionId, data.record.totalPrice),
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
type: "string" /* ePropType.String */,
|
|
523
|
-
name: 'currency',
|
|
524
|
-
displayName: 'Payment::DisplayName:Currency',
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
type: "enum" /* ePropType.Enum */,
|
|
528
|
-
name: 'state',
|
|
529
|
-
displayName: 'Payment::DisplayName:State',
|
|
530
|
-
sortable: true,
|
|
531
|
-
enumList: paymentRequestStateOptions,
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
type: "string" /* ePropType.String */,
|
|
535
|
-
name: 'gateway',
|
|
536
|
-
displayName: 'Payment::DisplayName:Gateway',
|
|
537
|
-
sortable: true,
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
type: "string" /* ePropType.String */,
|
|
541
|
-
name: 'externalSubscriptionId',
|
|
542
|
-
displayName: 'Payment::DisplayName:ExternalSubscriptionId',
|
|
543
|
-
},
|
|
506
|
+
const DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS = EntityProp.createMany([
|
|
507
|
+
{
|
|
508
|
+
type: "datetime" /* ePropType.DateTime */,
|
|
509
|
+
name: 'creationTime',
|
|
510
|
+
displayName: 'Payment::DisplayName:CreationTime',
|
|
511
|
+
sortable: true,
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
type: "number" /* ePropType.Number */,
|
|
515
|
+
name: 'totalPrice',
|
|
516
|
+
displayName: 'Payment::DisplayName:TotalPrice',
|
|
517
|
+
sortable: true,
|
|
518
|
+
component: SubscriptionTooltipComponent,
|
|
519
|
+
valueResolver: data => getSubscriptionStatus(!!data.record.externalSubscriptionId, data.record.totalPrice),
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
type: "string" /* ePropType.String */,
|
|
523
|
+
name: 'currency',
|
|
524
|
+
displayName: 'Payment::DisplayName:Currency',
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
type: "enum" /* ePropType.Enum */,
|
|
528
|
+
name: 'state',
|
|
529
|
+
displayName: 'Payment::DisplayName:State',
|
|
530
|
+
sortable: true,
|
|
531
|
+
enumList: paymentRequestStateOptions,
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
type: "string" /* ePropType.String */,
|
|
535
|
+
name: 'gateway',
|
|
536
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
537
|
+
sortable: true,
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
type: "string" /* ePropType.String */,
|
|
541
|
+
name: 'externalSubscriptionId',
|
|
542
|
+
displayName: 'Payment::DisplayName:ExternalSubscriptionId',
|
|
543
|
+
},
|
|
544
544
|
]);
|
|
545
545
|
|
|
546
|
-
const DEFAULT_PAYMENT_ENTITY_ACTIONS = {
|
|
547
|
-
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_ENTITY_ACTIONS,
|
|
548
|
-
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS,
|
|
549
|
-
["Payment.Requests" /* ePaymentComponents.Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS,
|
|
550
|
-
};
|
|
551
|
-
const DEFAULT_PAYMENT_TOOLBAR_ACTIONS = {
|
|
552
|
-
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_TOOLBAR_ACTIONS,
|
|
553
|
-
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS,
|
|
554
|
-
};
|
|
555
|
-
const DEFAULT_PAYMENT_ENTITY_PROPS = {
|
|
556
|
-
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_ENTITY_PROPS,
|
|
557
|
-
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_PROPS,
|
|
558
|
-
["Payment.Products" /* ePaymentComponents.Products */]: DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS,
|
|
559
|
-
["Payment.Requests" /* ePaymentComponents.Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS,
|
|
560
|
-
};
|
|
561
|
-
const DEFAULT_PAYMENT_CREATE_FORM_PROPS = {
|
|
562
|
-
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_CREATE_FORM_PROPS,
|
|
563
|
-
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS,
|
|
564
|
-
};
|
|
565
|
-
const DEFAULT_PAYMENT_EDIT_FORM_PROPS = {
|
|
566
|
-
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_EDIT_FORM_PROPS,
|
|
567
|
-
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS,
|
|
568
|
-
};
|
|
569
|
-
const PAYMENT_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_ACTION_CONTRIBUTORS');
|
|
570
|
-
const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS');
|
|
571
|
-
const PAYMENT_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_PROP_CONTRIBUTORS');
|
|
572
|
-
const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS');
|
|
546
|
+
const DEFAULT_PAYMENT_ENTITY_ACTIONS = {
|
|
547
|
+
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_ENTITY_ACTIONS,
|
|
548
|
+
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS,
|
|
549
|
+
["Payment.Requests" /* ePaymentComponents.Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS,
|
|
550
|
+
};
|
|
551
|
+
const DEFAULT_PAYMENT_TOOLBAR_ACTIONS = {
|
|
552
|
+
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_TOOLBAR_ACTIONS,
|
|
553
|
+
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS,
|
|
554
|
+
};
|
|
555
|
+
const DEFAULT_PAYMENT_ENTITY_PROPS = {
|
|
556
|
+
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_ENTITY_PROPS,
|
|
557
|
+
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_PROPS,
|
|
558
|
+
["Payment.Products" /* ePaymentComponents.Products */]: DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS,
|
|
559
|
+
["Payment.Requests" /* ePaymentComponents.Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS,
|
|
560
|
+
};
|
|
561
|
+
const DEFAULT_PAYMENT_CREATE_FORM_PROPS = {
|
|
562
|
+
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_CREATE_FORM_PROPS,
|
|
563
|
+
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS,
|
|
564
|
+
};
|
|
565
|
+
const DEFAULT_PAYMENT_EDIT_FORM_PROPS = {
|
|
566
|
+
["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_EDIT_FORM_PROPS,
|
|
567
|
+
["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS,
|
|
568
|
+
};
|
|
569
|
+
const PAYMENT_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_ACTION_CONTRIBUTORS');
|
|
570
|
+
const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS');
|
|
571
|
+
const PAYMENT_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_PROP_CONTRIBUTORS');
|
|
572
|
+
const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS');
|
|
573
573
|
const PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS');
|
|
574
574
|
|
|
575
|
-
class PaymentInitializer {
|
|
576
|
-
constructor(injector) {
|
|
577
|
-
this.injector = injector;
|
|
578
|
-
}
|
|
579
|
-
canActivate() {
|
|
580
|
-
const extensions = this.injector.get(ExtensionsService);
|
|
581
|
-
const actionContributors = this.injector.get(PAYMENT_ENTITY_ACTION_CONTRIBUTORS, null) || {};
|
|
582
|
-
const toolbarContributors = this.injector.get(PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
|
|
583
|
-
const propContributors = this.injector.get(PAYMENT_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
584
|
-
const createFormContributors = this.injector.get(PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
585
|
-
const editFormContributors = this.injector.get(PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
586
|
-
const configState = this.injector.get(ConfigStateService);
|
|
587
|
-
return getObjectExtensionEntitiesFromStore(configState, 'Payment').pipe(map(entities => ({
|
|
588
|
-
// TODO: find out following entity name
|
|
589
|
-
// [ePaymentComponents.Plans]: entities.PaymentPlans,
|
|
590
|
-
})), mapEntitiesToContributors(configState, 'Payment'), tap(objectExtensionContributors => {
|
|
591
|
-
mergeWithDefaultActions(extensions.entityActions, DEFAULT_PAYMENT_ENTITY_ACTIONS, actionContributors);
|
|
592
|
-
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, toolbarContributors);
|
|
593
|
-
mergeWithDefaultProps(extensions.entityProps, DEFAULT_PAYMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
594
|
-
mergeWithDefaultProps(extensions.createFormProps, DEFAULT_PAYMENT_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
|
|
595
|
-
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_PAYMENT_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
596
|
-
}), mapTo(true));
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
602
|
-
type: Injectable
|
|
575
|
+
class PaymentInitializer {
|
|
576
|
+
constructor(injector) {
|
|
577
|
+
this.injector = injector;
|
|
578
|
+
}
|
|
579
|
+
canActivate() {
|
|
580
|
+
const extensions = this.injector.get(ExtensionsService);
|
|
581
|
+
const actionContributors = this.injector.get(PAYMENT_ENTITY_ACTION_CONTRIBUTORS, null) || {};
|
|
582
|
+
const toolbarContributors = this.injector.get(PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
|
|
583
|
+
const propContributors = this.injector.get(PAYMENT_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
584
|
+
const createFormContributors = this.injector.get(PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
585
|
+
const editFormContributors = this.injector.get(PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
586
|
+
const configState = this.injector.get(ConfigStateService);
|
|
587
|
+
return getObjectExtensionEntitiesFromStore(configState, 'Payment').pipe(map(entities => ({
|
|
588
|
+
// TODO: find out following entity name
|
|
589
|
+
// [ePaymentComponents.Plans]: entities.PaymentPlans,
|
|
590
|
+
})), mapEntitiesToContributors(configState, 'Payment'), tap(objectExtensionContributors => {
|
|
591
|
+
mergeWithDefaultActions(extensions.entityActions, DEFAULT_PAYMENT_ENTITY_ACTIONS, actionContributors);
|
|
592
|
+
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, toolbarContributors);
|
|
593
|
+
mergeWithDefaultProps(extensions.entityProps, DEFAULT_PAYMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
594
|
+
mergeWithDefaultProps(extensions.createFormProps, DEFAULT_PAYMENT_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
|
|
595
|
+
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_PAYMENT_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
596
|
+
}), mapTo(true));
|
|
597
|
+
}
|
|
598
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
599
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentInitializer }); }
|
|
600
|
+
}
|
|
601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentInitializer, decorators: [{
|
|
602
|
+
type: Injectable
|
|
603
603
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
604
604
|
|
|
605
|
-
const routes = [
|
|
606
|
-
{
|
|
607
|
-
path: '',
|
|
608
|
-
redirectTo: 'plans',
|
|
609
|
-
pathMatch: 'full',
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
path: '',
|
|
613
|
-
component: RouterOutletComponent,
|
|
614
|
-
canActivate: [AuthGuard, PermissionGuard, PaymentInitializer],
|
|
615
|
-
children: [
|
|
616
|
-
{
|
|
617
|
-
path: 'plans',
|
|
618
|
-
component: ReplaceableRouteContainerComponent,
|
|
619
|
-
data: {
|
|
620
|
-
requiredPolicy: 'Payment.Plans',
|
|
621
|
-
replaceableComponent: {
|
|
622
|
-
key: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
623
|
-
defaultComponent: PaymentPlansComponent,
|
|
624
|
-
},
|
|
625
|
-
},
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
path: 'plans/:planId',
|
|
629
|
-
component: ReplaceableRouteContainerComponent,
|
|
630
|
-
data: {
|
|
631
|
-
requiredPolicy: 'Payment.Plans.GatewayPlans',
|
|
632
|
-
replaceableComponent: {
|
|
633
|
-
key: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
634
|
-
defaultComponent: GatewayPlansComponent,
|
|
635
|
-
},
|
|
636
|
-
},
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
path: 'requests',
|
|
640
|
-
component: ReplaceableRouteContainerComponent,
|
|
641
|
-
data: {
|
|
642
|
-
requiredPolicy: 'Payment.PaymentRequests',
|
|
643
|
-
replaceableComponent: {
|
|
644
|
-
key: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
645
|
-
defaultComponent: RequestsComponent,
|
|
646
|
-
},
|
|
647
|
-
},
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
path: 'requests/:requestId/products',
|
|
651
|
-
component: ReplaceableRouteContainerComponent,
|
|
652
|
-
data: {
|
|
653
|
-
requiredPolicy: 'Payment.PaymentRequests',
|
|
654
|
-
replaceableComponent: {
|
|
655
|
-
key: "Payment.Products" /* ePaymentComponents.Products */,
|
|
656
|
-
defaultComponent: ProductsComponent,
|
|
657
|
-
},
|
|
658
|
-
},
|
|
659
|
-
},
|
|
660
|
-
],
|
|
661
|
-
},
|
|
662
|
-
];
|
|
663
|
-
class PaymentAdminRoutingModule {
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
669
|
-
type: NgModule,
|
|
670
|
-
args: [{
|
|
671
|
-
imports: [RouterModule.forChild(routes)],
|
|
672
|
-
}]
|
|
605
|
+
const routes = [
|
|
606
|
+
{
|
|
607
|
+
path: '',
|
|
608
|
+
redirectTo: 'plans',
|
|
609
|
+
pathMatch: 'full',
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
path: '',
|
|
613
|
+
component: RouterOutletComponent,
|
|
614
|
+
canActivate: [AuthGuard, PermissionGuard, PaymentInitializer],
|
|
615
|
+
children: [
|
|
616
|
+
{
|
|
617
|
+
path: 'plans',
|
|
618
|
+
component: ReplaceableRouteContainerComponent,
|
|
619
|
+
data: {
|
|
620
|
+
requiredPolicy: 'Payment.Plans',
|
|
621
|
+
replaceableComponent: {
|
|
622
|
+
key: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
623
|
+
defaultComponent: PaymentPlansComponent,
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
path: 'plans/:planId',
|
|
629
|
+
component: ReplaceableRouteContainerComponent,
|
|
630
|
+
data: {
|
|
631
|
+
requiredPolicy: 'Payment.Plans.GatewayPlans',
|
|
632
|
+
replaceableComponent: {
|
|
633
|
+
key: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
634
|
+
defaultComponent: GatewayPlansComponent,
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
path: 'requests',
|
|
640
|
+
component: ReplaceableRouteContainerComponent,
|
|
641
|
+
data: {
|
|
642
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
643
|
+
replaceableComponent: {
|
|
644
|
+
key: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
645
|
+
defaultComponent: RequestsComponent,
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
path: 'requests/:requestId/products',
|
|
651
|
+
component: ReplaceableRouteContainerComponent,
|
|
652
|
+
data: {
|
|
653
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
654
|
+
replaceableComponent: {
|
|
655
|
+
key: "Payment.Products" /* ePaymentComponents.Products */,
|
|
656
|
+
defaultComponent: ProductsComponent,
|
|
657
|
+
},
|
|
658
|
+
},
|
|
659
|
+
},
|
|
660
|
+
],
|
|
661
|
+
},
|
|
662
|
+
];
|
|
663
|
+
class PaymentAdminRoutingModule {
|
|
664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
665
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i3$1.RouterModule] }); }
|
|
666
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminRoutingModule, imports: [RouterModule.forChild(routes)] }); }
|
|
667
|
+
}
|
|
668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
|
|
669
|
+
type: NgModule,
|
|
670
|
+
args: [{
|
|
671
|
+
imports: [RouterModule.forChild(routes)],
|
|
672
|
+
}]
|
|
673
673
|
}] });
|
|
674
674
|
|
|
675
|
-
class PaymentPlansModule {
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
695
|
-
type: NgModule,
|
|
696
|
-
args: [{
|
|
697
|
-
imports: [
|
|
698
|
-
CommonModule,
|
|
699
|
-
PageModule,
|
|
700
|
-
CoreModule,
|
|
701
|
-
UiExtensionsModule,
|
|
702
|
-
ThemeSharedModule,
|
|
703
|
-
ReactiveFormsModule,
|
|
704
|
-
NgxValidateCoreModule,
|
|
705
|
-
AdvancedEntityFiltersModule,
|
|
706
|
-
],
|
|
707
|
-
exports: [],
|
|
708
|
-
declarations: [PaymentPlansComponent],
|
|
709
|
-
providers: [],
|
|
710
|
-
}]
|
|
675
|
+
class PaymentPlansModule {
|
|
676
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
677
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: PaymentPlansModule, declarations: [PaymentPlansComponent], imports: [CommonModule,
|
|
678
|
+
PageModule,
|
|
679
|
+
CoreModule,
|
|
680
|
+
UiExtensionsModule,
|
|
681
|
+
ThemeSharedModule,
|
|
682
|
+
ReactiveFormsModule,
|
|
683
|
+
NgxValidateCoreModule,
|
|
684
|
+
AdvancedEntityFiltersModule] }); }
|
|
685
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentPlansModule, imports: [CommonModule,
|
|
686
|
+
PageModule,
|
|
687
|
+
CoreModule,
|
|
688
|
+
UiExtensionsModule,
|
|
689
|
+
ThemeSharedModule,
|
|
690
|
+
ReactiveFormsModule,
|
|
691
|
+
NgxValidateCoreModule,
|
|
692
|
+
AdvancedEntityFiltersModule] }); }
|
|
693
|
+
}
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentPlansModule, decorators: [{
|
|
695
|
+
type: NgModule,
|
|
696
|
+
args: [{
|
|
697
|
+
imports: [
|
|
698
|
+
CommonModule,
|
|
699
|
+
PageModule,
|
|
700
|
+
CoreModule,
|
|
701
|
+
UiExtensionsModule,
|
|
702
|
+
ThemeSharedModule,
|
|
703
|
+
ReactiveFormsModule,
|
|
704
|
+
NgxValidateCoreModule,
|
|
705
|
+
AdvancedEntityFiltersModule,
|
|
706
|
+
],
|
|
707
|
+
exports: [],
|
|
708
|
+
declarations: [PaymentPlansComponent],
|
|
709
|
+
providers: [],
|
|
710
|
+
}]
|
|
711
711
|
}] });
|
|
712
712
|
|
|
713
|
-
class GatewayPlansModule {
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
733
|
-
type: NgModule,
|
|
734
|
-
args: [{
|
|
735
|
-
imports: [
|
|
736
|
-
CommonModule,
|
|
737
|
-
PageModule,
|
|
738
|
-
CoreModule,
|
|
739
|
-
UiExtensionsModule,
|
|
740
|
-
ThemeSharedModule,
|
|
741
|
-
ReactiveFormsModule,
|
|
742
|
-
NgxValidateCoreModule,
|
|
743
|
-
AdvancedEntityFiltersModule,
|
|
744
|
-
],
|
|
745
|
-
exports: [],
|
|
746
|
-
declarations: [GatewayPlansComponent],
|
|
747
|
-
providers: [],
|
|
748
|
-
}]
|
|
713
|
+
class GatewayPlansModule {
|
|
714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
715
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: GatewayPlansModule, declarations: [GatewayPlansComponent], imports: [CommonModule,
|
|
716
|
+
PageModule,
|
|
717
|
+
CoreModule,
|
|
718
|
+
UiExtensionsModule,
|
|
719
|
+
ThemeSharedModule,
|
|
720
|
+
ReactiveFormsModule,
|
|
721
|
+
NgxValidateCoreModule,
|
|
722
|
+
AdvancedEntityFiltersModule] }); }
|
|
723
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GatewayPlansModule, imports: [CommonModule,
|
|
724
|
+
PageModule,
|
|
725
|
+
CoreModule,
|
|
726
|
+
UiExtensionsModule,
|
|
727
|
+
ThemeSharedModule,
|
|
728
|
+
ReactiveFormsModule,
|
|
729
|
+
NgxValidateCoreModule,
|
|
730
|
+
AdvancedEntityFiltersModule] }); }
|
|
731
|
+
}
|
|
732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: GatewayPlansModule, decorators: [{
|
|
733
|
+
type: NgModule,
|
|
734
|
+
args: [{
|
|
735
|
+
imports: [
|
|
736
|
+
CommonModule,
|
|
737
|
+
PageModule,
|
|
738
|
+
CoreModule,
|
|
739
|
+
UiExtensionsModule,
|
|
740
|
+
ThemeSharedModule,
|
|
741
|
+
ReactiveFormsModule,
|
|
742
|
+
NgxValidateCoreModule,
|
|
743
|
+
AdvancedEntityFiltersModule,
|
|
744
|
+
],
|
|
745
|
+
exports: [],
|
|
746
|
+
declarations: [GatewayPlansComponent],
|
|
747
|
+
providers: [],
|
|
748
|
+
}]
|
|
749
749
|
}] });
|
|
750
750
|
|
|
751
|
-
class SubscriptionTooltipModule {
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
757
|
-
type: NgModule,
|
|
758
|
-
args: [{
|
|
759
|
-
declarations: [SubscriptionTooltipComponent],
|
|
760
|
-
exports: [SubscriptionTooltipComponent],
|
|
761
|
-
imports: [CommonModule, CoreModule, NgbTooltipModule],
|
|
762
|
-
}]
|
|
751
|
+
class SubscriptionTooltipModule {
|
|
752
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SubscriptionTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
753
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: SubscriptionTooltipModule, declarations: [SubscriptionTooltipComponent], imports: [CommonModule, CoreModule, NgbTooltipModule], exports: [SubscriptionTooltipComponent] }); }
|
|
754
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SubscriptionTooltipModule, imports: [CommonModule, CoreModule, NgbTooltipModule] }); }
|
|
755
|
+
}
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SubscriptionTooltipModule, decorators: [{
|
|
757
|
+
type: NgModule,
|
|
758
|
+
args: [{
|
|
759
|
+
declarations: [SubscriptionTooltipComponent],
|
|
760
|
+
exports: [SubscriptionTooltipComponent],
|
|
761
|
+
imports: [CommonModule, CoreModule, NgbTooltipModule],
|
|
762
|
+
}]
|
|
763
763
|
}] });
|
|
764
764
|
|
|
765
|
-
class RequestsModule {
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
787
|
-
type: NgModule,
|
|
788
|
-
args: [{
|
|
789
|
-
declarations: [RequestsComponent, RequestsSearchFormComponent],
|
|
790
|
-
imports: [
|
|
791
|
-
CommonModule,
|
|
792
|
-
PageModule,
|
|
793
|
-
CoreModule,
|
|
794
|
-
UiExtensionsModule,
|
|
795
|
-
ThemeSharedModule,
|
|
796
|
-
ReactiveFormsModule,
|
|
797
|
-
AdvancedEntityFiltersModule,
|
|
798
|
-
NgbDatepickerModule,
|
|
799
|
-
SubscriptionTooltipModule,
|
|
800
|
-
],
|
|
801
|
-
}]
|
|
765
|
+
class RequestsModule {
|
|
766
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
767
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: RequestsModule, declarations: [RequestsComponent, RequestsSearchFormComponent], imports: [CommonModule,
|
|
768
|
+
PageModule,
|
|
769
|
+
CoreModule,
|
|
770
|
+
UiExtensionsModule,
|
|
771
|
+
ThemeSharedModule,
|
|
772
|
+
ReactiveFormsModule,
|
|
773
|
+
AdvancedEntityFiltersModule,
|
|
774
|
+
NgbDatepickerModule,
|
|
775
|
+
SubscriptionTooltipModule] }); }
|
|
776
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsModule, imports: [CommonModule,
|
|
777
|
+
PageModule,
|
|
778
|
+
CoreModule,
|
|
779
|
+
UiExtensionsModule,
|
|
780
|
+
ThemeSharedModule,
|
|
781
|
+
ReactiveFormsModule,
|
|
782
|
+
AdvancedEntityFiltersModule,
|
|
783
|
+
NgbDatepickerModule,
|
|
784
|
+
SubscriptionTooltipModule] }); }
|
|
785
|
+
}
|
|
786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RequestsModule, decorators: [{
|
|
787
|
+
type: NgModule,
|
|
788
|
+
args: [{
|
|
789
|
+
declarations: [RequestsComponent, RequestsSearchFormComponent],
|
|
790
|
+
imports: [
|
|
791
|
+
CommonModule,
|
|
792
|
+
PageModule,
|
|
793
|
+
CoreModule,
|
|
794
|
+
UiExtensionsModule,
|
|
795
|
+
ThemeSharedModule,
|
|
796
|
+
ReactiveFormsModule,
|
|
797
|
+
AdvancedEntityFiltersModule,
|
|
798
|
+
NgbDatepickerModule,
|
|
799
|
+
SubscriptionTooltipModule,
|
|
800
|
+
],
|
|
801
|
+
}]
|
|
802
802
|
}] });
|
|
803
803
|
|
|
804
|
-
class ProductsModule {
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
820
|
-
type: NgModule,
|
|
821
|
-
args: [{
|
|
822
|
-
declarations: [ProductsComponent],
|
|
823
|
-
imports: [
|
|
824
|
-
CommonModule,
|
|
825
|
-
PageModule,
|
|
826
|
-
CoreModule,
|
|
827
|
-
UiExtensionsModule,
|
|
828
|
-
ThemeSharedModule,
|
|
829
|
-
SubscriptionTooltipModule,
|
|
830
|
-
],
|
|
831
|
-
}]
|
|
804
|
+
class ProductsModule {
|
|
805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProductsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
806
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ProductsModule, declarations: [ProductsComponent], imports: [CommonModule,
|
|
807
|
+
PageModule,
|
|
808
|
+
CoreModule,
|
|
809
|
+
UiExtensionsModule,
|
|
810
|
+
ThemeSharedModule,
|
|
811
|
+
SubscriptionTooltipModule] }); }
|
|
812
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProductsModule, imports: [CommonModule,
|
|
813
|
+
PageModule,
|
|
814
|
+
CoreModule,
|
|
815
|
+
UiExtensionsModule,
|
|
816
|
+
ThemeSharedModule,
|
|
817
|
+
SubscriptionTooltipModule] }); }
|
|
818
|
+
}
|
|
819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProductsModule, decorators: [{
|
|
820
|
+
type: NgModule,
|
|
821
|
+
args: [{
|
|
822
|
+
declarations: [ProductsComponent],
|
|
823
|
+
imports: [
|
|
824
|
+
CommonModule,
|
|
825
|
+
PageModule,
|
|
826
|
+
CoreModule,
|
|
827
|
+
UiExtensionsModule,
|
|
828
|
+
ThemeSharedModule,
|
|
829
|
+
SubscriptionTooltipModule,
|
|
830
|
+
],
|
|
831
|
+
}]
|
|
832
832
|
}] });
|
|
833
833
|
|
|
834
|
-
class PaymentAdminModule {
|
|
835
|
-
static forChild(options = {}) {
|
|
836
|
-
return {
|
|
837
|
-
ngModule: PaymentAdminModule,
|
|
838
|
-
providers: [
|
|
839
|
-
{
|
|
840
|
-
provide: PAYMENT_ENTITY_ACTION_CONTRIBUTORS,
|
|
841
|
-
useValue: options.entityActionContributors,
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
provide: PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
845
|
-
useValue: options.toolbarActionContributors,
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
provide: PAYMENT_ENTITY_PROP_CONTRIBUTORS,
|
|
849
|
-
useValue: options.entityPropContributors,
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
provide: PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,
|
|
853
|
-
useValue: options.createFormPropContributors,
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
provide: PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,
|
|
857
|
-
useValue: options.editFormPropContributors,
|
|
858
|
-
},
|
|
859
|
-
PaymentInitializer,
|
|
860
|
-
],
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
static forLazy(options = {}) {
|
|
864
|
-
return new LazyModuleFactory(PaymentAdminModule.forChild(options));
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
879
|
-
type: NgModule,
|
|
880
|
-
args: [{
|
|
881
|
-
imports: [
|
|
882
|
-
PaymentAdminRoutingModule,
|
|
883
|
-
PaymentPlansModule,
|
|
884
|
-
GatewayPlansModule,
|
|
885
|
-
RequestsModule,
|
|
886
|
-
ProductsModule,
|
|
887
|
-
],
|
|
888
|
-
declarations: [],
|
|
889
|
-
}]
|
|
834
|
+
class PaymentAdminModule {
|
|
835
|
+
static forChild(options = {}) {
|
|
836
|
+
return {
|
|
837
|
+
ngModule: PaymentAdminModule,
|
|
838
|
+
providers: [
|
|
839
|
+
{
|
|
840
|
+
provide: PAYMENT_ENTITY_ACTION_CONTRIBUTORS,
|
|
841
|
+
useValue: options.entityActionContributors,
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
provide: PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
845
|
+
useValue: options.toolbarActionContributors,
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
provide: PAYMENT_ENTITY_PROP_CONTRIBUTORS,
|
|
849
|
+
useValue: options.entityPropContributors,
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
provide: PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,
|
|
853
|
+
useValue: options.createFormPropContributors,
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
provide: PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,
|
|
857
|
+
useValue: options.editFormPropContributors,
|
|
858
|
+
},
|
|
859
|
+
PaymentInitializer,
|
|
860
|
+
],
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
static forLazy(options = {}) {
|
|
864
|
+
return new LazyModuleFactory(PaymentAdminModule.forChild(options));
|
|
865
|
+
}
|
|
866
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
867
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule,
|
|
868
|
+
PaymentPlansModule,
|
|
869
|
+
GatewayPlansModule,
|
|
870
|
+
RequestsModule,
|
|
871
|
+
ProductsModule] }); }
|
|
872
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule,
|
|
873
|
+
PaymentPlansModule,
|
|
874
|
+
GatewayPlansModule,
|
|
875
|
+
RequestsModule,
|
|
876
|
+
ProductsModule] }); }
|
|
877
|
+
}
|
|
878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PaymentAdminModule, decorators: [{
|
|
879
|
+
type: NgModule,
|
|
880
|
+
args: [{
|
|
881
|
+
imports: [
|
|
882
|
+
PaymentAdminRoutingModule,
|
|
883
|
+
PaymentPlansModule,
|
|
884
|
+
GatewayPlansModule,
|
|
885
|
+
RequestsModule,
|
|
886
|
+
ProductsModule,
|
|
887
|
+
],
|
|
888
|
+
declarations: [],
|
|
889
|
+
}]
|
|
890
890
|
}] });
|
|
891
891
|
|
|
892
|
-
/**
|
|
893
|
-
* Generated bundle index. Do not edit.
|
|
892
|
+
/**
|
|
893
|
+
* Generated bundle index. Do not edit.
|
|
894
894
|
*/
|
|
895
895
|
|
|
896
896
|
export { DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS, DEFAULT_GATEWAY_PLANS_ENTITY_PROPS, DEFAULT_PAYMENT_CREATE_FORM_PROPS, DEFAULT_PAYMENT_EDIT_FORM_PROPS, DEFAULT_PAYMENT_ENTITY_ACTIONS, DEFAULT_PAYMENT_ENTITY_PROPS, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, DEFAULT_PLANS_CREATE_FORM_PROPS, DEFAULT_PLANS_EDIT_FORM_PROPS, DEFAULT_PLANS_ENTITY_ACTIONS, DEFAULT_PLANS_ENTITY_PROPS, DEFAULT_PLANS_TOOLBAR_ACTIONS, GatewayPlansComponent, GatewayPlansModule, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, PAYMENT_ENTITY_ACTION_CONTRIBUTORS, PAYMENT_ENTITY_PROP_CONTRIBUTORS, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, PaymentAdminModule, PaymentAdminRoutingModule, PaymentInitializer, PaymentPlansComponent, PaymentPlansModule, getSubscriptionStatus };
|