@volo/abp.ng.payment 5.0.0 → 5.1.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/admin/config/package.json +5 -5
- package/admin/package.json +5 -5
- package/esm2020/admin/components/gateway-plans/gateway-plans.component.mjs +101 -0
- package/esm2020/admin/components/gateway-plans/gateway-plans.module.mjs +51 -0
- package/esm2020/admin/components/gateway-plans/index.mjs +3 -0
- package/esm2020/admin/components/index.mjs +3 -0
- package/esm2020/admin/components/plans/index.mjs +3 -0
- package/esm2020/admin/components/plans/plans.component.mjs +100 -0
- package/esm2020/admin/components/plans/plans.module.mjs +51 -0
- package/esm2020/admin/components/products/products.component.mjs +59 -0
- package/esm2020/admin/components/products/products.module.mjs +41 -0
- package/esm2020/admin/components/requests/requests-search-form/requests-search-form.component.mjs +33 -0
- package/esm2020/admin/components/requests/requests.component.mjs +46 -0
- package/esm2020/admin/components/requests/requests.module.mjs +54 -0
- package/esm2020/admin/components/subscription-tooltip/subscription-tooltip.component.mjs +23 -0
- package/esm2020/admin/components/subscription-tooltip/subscription-tooltip.module.mjs +20 -0
- package/esm2020/admin/config/enums/index.mjs +3 -0
- package/esm2020/admin/config/enums/policy-names.mjs +2 -0
- package/esm2020/admin/config/enums/route-names.mjs +2 -0
- package/esm2020/admin/config/payment-admin-config.module.mjs +19 -0
- package/esm2020/admin/config/providers/index.mjs +2 -0
- package/esm2020/admin/config/providers/route.provider.mjs +39 -0
- package/esm2020/admin/config/public-api.mjs +4 -0
- package/esm2020/admin/config/volo-abp.ng.payment-admin-config.mjs +5 -0
- package/esm2020/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.mjs +21 -0
- package/esm2020/admin/defaults/gateway-plans/default-gateway-plans-entity-props.mjs +16 -0
- package/esm2020/admin/defaults/gateway-plans/default-gateway-plans-form-props.mjs +40 -0
- package/esm2020/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.mjs +14 -0
- package/esm2020/admin/defaults/gateway-plans/index.mjs +3 -0
- package/esm2020/admin/defaults/index.mjs +3 -0
- package/esm2020/admin/defaults/plans/default-plans-entity-actions.mjs +29 -0
- package/esm2020/admin/defaults/plans/default-plans-entity-props.mjs +10 -0
- package/esm2020/admin/defaults/plans/default-plans-form-props.mjs +13 -0
- package/esm2020/admin/defaults/plans/default-plans-toolbar-actions.mjs +14 -0
- package/esm2020/admin/defaults/plans/index.mjs +5 -0
- package/esm2020/admin/defaults/products/default-products-entity-props.mjs +43 -0
- package/esm2020/admin/defaults/products/index.mjs +2 -0
- package/esm2020/admin/defaults/requests/default-requests-entity-actions.mjs +13 -0
- package/esm2020/admin/defaults/requests/default-requests-entity-props.mjs +44 -0
- package/esm2020/admin/enums/components.mjs +2 -0
- package/esm2020/admin/enums/index.mjs +2 -0
- package/esm2020/admin/models/config-options.mjs +2 -0
- package/esm2020/admin/models/index.mjs +2 -0
- package/esm2020/admin/models/subscription-tooltip-data.mjs +2 -0
- package/esm2020/admin/payment-admin-routing.module.mjs +80 -0
- package/esm2020/admin/payment-admin.module.mjs +70 -0
- package/esm2020/admin/payment.initializer.mjs +36 -0
- package/esm2020/admin/public-api.mjs +9 -0
- package/esm2020/admin/tokens/extensions.token.mjs +41 -0
- package/esm2020/admin/tokens/index.mjs +2 -0
- package/esm2020/admin/utils/get-subscription-status.mjs +5 -0
- package/esm2020/admin/volo-abp.ng.payment-admin.mjs +5 -0
- package/esm2020/proxy/lib/index.mjs +6 -0
- package/esm2020/proxy/lib/proxy/admin/plans/index.mjs +3 -0
- package/esm2020/proxy/lib/proxy/admin/plans/models.mjs +2 -0
- package/esm2020/proxy/lib/proxy/admin/plans/plan-admin.service.mjs +62 -0
- package/esm2020/proxy/lib/proxy/admin/requests/index.mjs +3 -0
- package/esm2020/proxy/lib/proxy/admin/requests/models.mjs +2 -0
- package/esm2020/proxy/lib/proxy/admin/requests/payment-request-admin.service.mjs +28 -0
- package/esm2020/proxy/lib/proxy/gateways/gateway.service.mjs +27 -0
- package/esm2020/proxy/lib/proxy/gateways/index.mjs +3 -0
- package/esm2020/proxy/lib/proxy/gateways/models.mjs +2 -0
- package/esm2020/proxy/lib/proxy/plans/index.mjs +3 -0
- package/esm2020/proxy/lib/proxy/plans/models.mjs +2 -0
- package/esm2020/proxy/lib/proxy/plans/plan.service.mjs +27 -0
- package/esm2020/proxy/lib/proxy/requests/index.mjs +4 -0
- package/esm2020/proxy/lib/proxy/requests/models.mjs +2 -0
- package/esm2020/proxy/lib/proxy/requests/payment-request-state.enum.mjs +10 -0
- package/esm2020/proxy/lib/proxy/requests/payment-type.enum.mjs +8 -0
- package/esm2020/proxy/public-api.mjs +2 -0
- package/esm2020/proxy/volo-abp.ng.payment-proxy.mjs +5 -0
- package/esm2020/public-api.mjs +2 -0
- package/esm2020/volo-abp.ng.payment.mjs +5 -0
- package/fesm2015/{volo-abp.ng.payment-admin-config.js → volo-abp.ng.payment-admin-config.mjs} +5 -5
- package/fesm2015/volo-abp.ng.payment-admin-config.mjs.map +1 -0
- package/fesm2015/volo-abp.ng.payment-admin.mjs +909 -0
- package/fesm2015/volo-abp.ng.payment-admin.mjs.map +1 -0
- package/fesm2015/{volo-abp.ng.payment-proxy.js → volo-abp.ng.payment-proxy.mjs} +15 -15
- package/fesm2015/volo-abp.ng.payment-proxy.mjs.map +1 -0
- package/fesm2015/volo-abp.ng.payment.mjs +4 -0
- package/fesm2015/volo-abp.ng.payment.mjs.map +1 -0
- package/fesm2020/volo-abp.ng.payment-admin-config.mjs +63 -0
- package/fesm2020/volo-abp.ng.payment-admin-config.mjs.map +1 -0
- package/{fesm2015/volo-abp.ng.payment-admin.js → fesm2020/volo-abp.ng.payment-admin.mjs} +61 -86
- package/fesm2020/volo-abp.ng.payment-admin.mjs.map +1 -0
- package/fesm2020/volo-abp.ng.payment-proxy.mjs +155 -0
- package/fesm2020/volo-abp.ng.payment-proxy.mjs.map +1 -0
- package/fesm2020/volo-abp.ng.payment.mjs +4 -0
- package/fesm2020/volo-abp.ng.payment.mjs.map +1 -0
- package/package.json +46 -11
- package/proxy/package.json +5 -5
- package/proxy/src/lib/proxy/README.md +17 -0
- package/bundles/volo-abp.ng.payment-admin-config.umd.js +0 -1
- package/bundles/volo-abp.ng.payment-admin.umd.js +0 -1
- package/bundles/volo-abp.ng.payment-proxy.umd.js +0 -1
- package/bundles/volo-abp.ng.payment.umd.js +0 -1
- package/esm2015/admin/components/gateway-plans/gateway-plans.component.js +0 -1
- package/esm2015/admin/components/gateway-plans/gateway-plans.module.js +0 -1
- package/esm2015/admin/components/gateway-plans/index.js +0 -1
- package/esm2015/admin/components/index.js +0 -1
- package/esm2015/admin/components/plans/index.js +0 -1
- package/esm2015/admin/components/plans/plans.component.js +0 -1
- package/esm2015/admin/components/plans/plans.module.js +0 -1
- package/esm2015/admin/components/products/products.component.js +0 -1
- package/esm2015/admin/components/products/products.module.js +0 -1
- package/esm2015/admin/components/requests/requests-search-form/requests-search-form.component.js +0 -1
- package/esm2015/admin/components/requests/requests.component.js +0 -1
- package/esm2015/admin/components/requests/requests.module.js +0 -1
- package/esm2015/admin/components/subscription-tooltip/subscription-tooltip.component.js +0 -1
- package/esm2015/admin/components/subscription-tooltip/subscription-tooltip.module.js +0 -1
- package/esm2015/admin/config/enums/index.js +0 -1
- package/esm2015/admin/config/enums/policy-names.js +0 -1
- package/esm2015/admin/config/enums/route-names.js +0 -1
- package/esm2015/admin/config/payment-admin-config.module.js +0 -1
- package/esm2015/admin/config/providers/index.js +0 -1
- package/esm2015/admin/config/providers/route.provider.js +0 -1
- package/esm2015/admin/config/public-api.js +0 -1
- package/esm2015/admin/config/volo-abp.ng.payment-admin-config.js +0 -1
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.js +0 -1
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-entity-props.js +0 -1
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-form-props.js +0 -1
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.js +0 -1
- package/esm2015/admin/defaults/gateway-plans/index.js +0 -1
- package/esm2015/admin/defaults/index.js +0 -1
- package/esm2015/admin/defaults/plans/default-plans-entity-actions.js +0 -1
- package/esm2015/admin/defaults/plans/default-plans-entity-props.js +0 -1
- package/esm2015/admin/defaults/plans/default-plans-form-props.js +0 -1
- package/esm2015/admin/defaults/plans/default-plans-toolbar-actions.js +0 -1
- package/esm2015/admin/defaults/plans/index.js +0 -1
- package/esm2015/admin/defaults/products/default-products-entity-props.js +0 -1
- package/esm2015/admin/defaults/products/index.js +0 -1
- package/esm2015/admin/defaults/requests/default-requests-entity-actions.js +0 -1
- package/esm2015/admin/defaults/requests/default-requests-entity-props.js +0 -1
- package/esm2015/admin/enums/components.js +0 -1
- package/esm2015/admin/enums/index.js +0 -1
- package/esm2015/admin/models/config-options.js +0 -1
- package/esm2015/admin/models/index.js +0 -1
- package/esm2015/admin/models/subscription-tooltip-data.js +0 -1
- package/esm2015/admin/payment-admin-routing.module.js +0 -1
- package/esm2015/admin/payment-admin.module.js +0 -1
- package/esm2015/admin/payment.initializer.js +0 -1
- package/esm2015/admin/public-api.js +0 -1
- package/esm2015/admin/tokens/extensions.token.js +0 -1
- package/esm2015/admin/tokens/index.js +0 -1
- package/esm2015/admin/utils/get-subscription-status.js +0 -1
- package/esm2015/admin/volo-abp.ng.payment-admin.js +0 -1
- package/esm2015/proxy/lib/index.js +0 -1
- package/esm2015/proxy/lib/proxy/admin/plans/index.js +0 -1
- package/esm2015/proxy/lib/proxy/admin/plans/models.js +0 -1
- package/esm2015/proxy/lib/proxy/admin/plans/plan-admin.service.js +0 -1
- package/esm2015/proxy/lib/proxy/admin/requests/index.js +0 -1
- package/esm2015/proxy/lib/proxy/admin/requests/models.js +0 -1
- package/esm2015/proxy/lib/proxy/admin/requests/payment-request-admin.service.js +0 -1
- package/esm2015/proxy/lib/proxy/gateways/gateway.service.js +0 -1
- package/esm2015/proxy/lib/proxy/gateways/index.js +0 -1
- package/esm2015/proxy/lib/proxy/gateways/models.js +0 -1
- package/esm2015/proxy/lib/proxy/plans/index.js +0 -1
- package/esm2015/proxy/lib/proxy/plans/models.js +0 -1
- package/esm2015/proxy/lib/proxy/plans/plan.service.js +0 -1
- package/esm2015/proxy/lib/proxy/requests/index.js +0 -1
- package/esm2015/proxy/lib/proxy/requests/models.js +0 -1
- package/esm2015/proxy/lib/proxy/requests/payment-request-state.enum.js +0 -1
- package/esm2015/proxy/lib/proxy/requests/payment-type.enum.js +0 -1
- package/esm2015/proxy/public-api.js +0 -1
- package/esm2015/proxy/volo-abp.ng.payment-proxy.js +0 -1
- package/esm2015/public-api.js +0 -1
- package/esm2015/volo-abp.ng.payment.js +0 -1
- package/fesm2015/volo-abp.ng.payment.js +0 -4
|
@@ -0,0 +1,909 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, EventEmitter, Input, Output, Inject, InjectionToken, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@abp/ng.core';
|
|
4
|
+
import { ListService, ConfigStateService, RouterOutletComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
5
|
+
import * as i3$1 from '@angular/router';
|
|
6
|
+
import { RouterModule } from '@angular/router';
|
|
7
|
+
import * as i3 from '@abp/ng.theme.shared';
|
|
8
|
+
import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
|
+
import * as i6 from '@abp/ng.theme.shared/extensions';
|
|
10
|
+
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, DateAdapter, EntityAction, EntityProp, FormProp, ToolbarAction, PROP_DATA_STREAM, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
|
|
11
|
+
import * as i2 from '@volo/abp.ng.payment/proxy';
|
|
12
|
+
import { PlanAdminService, paymentTypeOptions, paymentRequestStateOptions, GatewayService, PaymentType } from '@volo/abp.ng.payment/proxy';
|
|
13
|
+
import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
|
|
14
|
+
import * as i4 from '@abp/ng.components/page';
|
|
15
|
+
import { PageModule } from '@abp/ng.components/page';
|
|
16
|
+
import * as i5 from '@volo/abp.commercial.ng.ui';
|
|
17
|
+
import { AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
18
|
+
import * as i8 from '@angular/common';
|
|
19
|
+
import { CommonModule } from '@angular/common';
|
|
20
|
+
import * as i1$1 from '@angular/forms';
|
|
21
|
+
import { Validators, ReactiveFormsModule } from '@angular/forms';
|
|
22
|
+
import * as i10 from '@ngx-validate/core';
|
|
23
|
+
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
24
|
+
import * as i2$1 from '@ng-bootstrap/ng-bootstrap';
|
|
25
|
+
import { NgbDateAdapter, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
26
|
+
import * as i4$1 from 'rxjs';
|
|
27
|
+
import { of } from 'rxjs';
|
|
28
|
+
|
|
29
|
+
class GatewayPlansComponent {
|
|
30
|
+
constructor(planService, list, injector, confirmationService, activatedRoute) {
|
|
31
|
+
this.planService = planService;
|
|
32
|
+
this.list = list;
|
|
33
|
+
this.injector = injector;
|
|
34
|
+
this.confirmationService = confirmationService;
|
|
35
|
+
this.activatedRoute = activatedRoute;
|
|
36
|
+
this.isModalVisible = false;
|
|
37
|
+
this.modalBusy = false;
|
|
38
|
+
this.service = injector.get(PlanAdminService);
|
|
39
|
+
this.data$ = this.list.hookToQuery(input => this.service.getGatewayPlans(this.planId, input));
|
|
40
|
+
}
|
|
41
|
+
get planId() {
|
|
42
|
+
return this.activatedRoute.snapshot.params.planId;
|
|
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
|
+
GatewayPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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 });
|
|
94
|
+
GatewayPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: GatewayPlansComponent, selector: "abp-gateway-plans", providers: [
|
|
95
|
+
ListService,
|
|
96
|
+
{
|
|
97
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
98
|
+
useValue: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
99
|
+
},
|
|
100
|
+
], 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", components: [{ type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i5.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i10.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i3.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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" /* 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
|
+
}], ctorParameters: function () { return [{ type: i2.PlanService }, { type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.ActivatedRoute }]; } });
|
|
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
|
+
PaymentPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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 });
|
|
177
|
+
PaymentPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: PaymentPlansComponent, selector: "abp-payment-plans", providers: [
|
|
178
|
+
ListService,
|
|
179
|
+
{
|
|
180
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
181
|
+
useValue: "Payment.Plans" /* Plans */,
|
|
182
|
+
},
|
|
183
|
+
], 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", components: [{ type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i5.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i10.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i3.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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" /* 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
|
+
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
194
|
+
|
|
195
|
+
class ProductsComponent {
|
|
196
|
+
constructor(route, service, list) {
|
|
197
|
+
this.route = route;
|
|
198
|
+
this.service = service;
|
|
199
|
+
this.list = list;
|
|
200
|
+
this.data = [];
|
|
201
|
+
this.breadCrumbItems = [
|
|
202
|
+
{
|
|
203
|
+
name: "Payment::Menu:PaymentManagement" /* Payment */,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "Payment::Menu:PaymentRequests" /* Requests */,
|
|
207
|
+
path: '/payment/requests',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: this.requestId,
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'Payment::Products',
|
|
214
|
+
},
|
|
215
|
+
];
|
|
216
|
+
list.hookToQuery(() => this.service.get(this.requestId).pipe(map(request => request.products))).subscribe((data) => (this.data = data));
|
|
217
|
+
}
|
|
218
|
+
get requestId() {
|
|
219
|
+
return this.route.snapshot.params.requestId;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
ProductsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProductsComponent, deps: [{ token: i3$1.ActivatedRoute }, { token: i2.PaymentRequestAdminService }, { token: i1.ListService }], target: i0.ɵɵFactoryTarget.Component });
|
|
223
|
+
ProductsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ProductsComponent, selector: "abp-products", providers: [
|
|
224
|
+
ListService,
|
|
225
|
+
{
|
|
226
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
227
|
+
useValue: "Payment.Products" /* Products */,
|
|
228
|
+
},
|
|
229
|
+
], 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", components: [{ type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i4.PageBreadcrumbContainerComponent, selector: "abp-page-breadcrumb-container" }, { type: i3.BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }, { type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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" /* 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
|
+
}], ctorParameters: function () { return [{ type: i3$1.ActivatedRoute }, { type: i2.PaymentRequestAdminService }, { type: i1.ListService }]; } });
|
|
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
|
+
RequestsSearchFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RequestsSearchFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
252
|
+
RequestsSearchFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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", directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$1.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { type: i1$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]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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
|
+
}] } });
|
|
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(Object.assign(Object.assign({}, query), this.pageQuery)));
|
|
272
|
+
}
|
|
273
|
+
goToProducts(id) {
|
|
274
|
+
this.router.navigate([id, 'products'], { relativeTo: this.route });
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
RequestsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RequestsComponent, deps: [{ token: i1.ListService }, { token: i2.PaymentRequestAdminService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
278
|
+
RequestsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: RequestsComponent, selector: "abp-payment-requests", providers: [
|
|
279
|
+
ListService,
|
|
280
|
+
{
|
|
281
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
282
|
+
useValue: "Payment.Requests" /* Requests */,
|
|
283
|
+
},
|
|
284
|
+
], 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", components: [{ type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i5.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i5.AdvancedEntityFiltersAboveSearchComponent, selector: "abp-advanced-entity-filters-above-search" }, { type: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: ["list", "pageQuery"], outputs: ["pageQueryChange"] }, { type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe } });
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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" /* 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
|
+
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.PaymentRequestAdminService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
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
|
+
},
|
|
313
|
+
]);
|
|
314
|
+
|
|
315
|
+
const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
316
|
+
{
|
|
317
|
+
type: "string" /* String */,
|
|
318
|
+
name: 'gateway',
|
|
319
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
320
|
+
sortable: true,
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
type: "string" /* String */,
|
|
324
|
+
name: 'externalId',
|
|
325
|
+
displayName: 'Payment::DisplayName:ExternalId',
|
|
326
|
+
sortable: true,
|
|
327
|
+
},
|
|
328
|
+
]);
|
|
329
|
+
|
|
330
|
+
const externalIdField = {
|
|
331
|
+
type: "string" /* 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" /* 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" /* String */,
|
|
357
|
+
name: 'gateway',
|
|
358
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
359
|
+
id: 'gateway',
|
|
360
|
+
validators: () => [Validators.required],
|
|
361
|
+
disabled: () => true,
|
|
362
|
+
},
|
|
363
|
+
externalIdField,
|
|
364
|
+
]);
|
|
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
|
+
},
|
|
376
|
+
]);
|
|
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
|
+
},
|
|
403
|
+
]);
|
|
404
|
+
|
|
405
|
+
const DEFAULT_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
406
|
+
{
|
|
407
|
+
type: "string" /* String */,
|
|
408
|
+
name: 'name',
|
|
409
|
+
displayName: 'Payment::DisplayName:Name',
|
|
410
|
+
sortable: true,
|
|
411
|
+
},
|
|
412
|
+
]);
|
|
413
|
+
|
|
414
|
+
const DEFAULT_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
415
|
+
{
|
|
416
|
+
type: "string" /* String */,
|
|
417
|
+
name: 'name',
|
|
418
|
+
displayName: 'Payment::Name',
|
|
419
|
+
id: 'payment-name',
|
|
420
|
+
validators: () => [Validators.required],
|
|
421
|
+
},
|
|
422
|
+
]);
|
|
423
|
+
const DEFAULT_PLANS_EDIT_FORM_PROPS = DEFAULT_PLANS_CREATE_FORM_PROPS;
|
|
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
|
+
},
|
|
435
|
+
]);
|
|
436
|
+
|
|
437
|
+
class SubscriptionTooltipComponent {
|
|
438
|
+
constructor(value$) {
|
|
439
|
+
this.value$ = value$;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
SubscriptionTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SubscriptionTooltipComponent, deps: [{ token: PROP_DATA_STREAM }], target: i0.ɵɵFactoryTarget.Component });
|
|
443
|
+
SubscriptionTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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", directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i1.LocalizationPipe } });
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", 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 () {
|
|
448
|
+
return [{ type: i4$1.Observable, decorators: [{
|
|
449
|
+
type: Inject,
|
|
450
|
+
args: [PROP_DATA_STREAM]
|
|
451
|
+
}] }];
|
|
452
|
+
} });
|
|
453
|
+
|
|
454
|
+
const getSubscriptionStatus = (condition, defaultValue) => {
|
|
455
|
+
return of({ isSubscription: condition, defaultValue });
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
const DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS = EntityProp.createMany([
|
|
459
|
+
{
|
|
460
|
+
type: "string" /* String */,
|
|
461
|
+
name: 'code',
|
|
462
|
+
displayName: 'Payment::DisplayName:Code',
|
|
463
|
+
sortable: false,
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
type: "string" /* String */,
|
|
467
|
+
name: 'name',
|
|
468
|
+
displayName: 'Payment::DisplayName:Name',
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
type: "number" /* Number */,
|
|
472
|
+
name: 'count',
|
|
473
|
+
displayName: 'Payment::DisplayName:Count',
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
type: "number" /* Number */,
|
|
477
|
+
name: 'unitPrice',
|
|
478
|
+
displayName: 'Payment::DisplayName:UnitPrice',
|
|
479
|
+
component: SubscriptionTooltipComponent,
|
|
480
|
+
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.unitPrice),
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
type: "number" /* Number */,
|
|
484
|
+
name: 'totalPrice',
|
|
485
|
+
displayName: 'Payment::DisplayName:TotalPrice',
|
|
486
|
+
component: SubscriptionTooltipComponent,
|
|
487
|
+
valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.totalPrice),
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
type: "enum" /* Enum */,
|
|
491
|
+
name: 'paymentType',
|
|
492
|
+
displayName: 'Payment::DisplayName:PaymentType',
|
|
493
|
+
enumList: paymentTypeOptions,
|
|
494
|
+
},
|
|
495
|
+
]);
|
|
496
|
+
|
|
497
|
+
const DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
498
|
+
{
|
|
499
|
+
text: 'Payment::Products',
|
|
500
|
+
action: data => {
|
|
501
|
+
const component = data.getInjected(RequestsComponent);
|
|
502
|
+
component.goToProducts(data.record.id);
|
|
503
|
+
},
|
|
504
|
+
permission: 'Payment.PaymentRequests',
|
|
505
|
+
},
|
|
506
|
+
]);
|
|
507
|
+
|
|
508
|
+
const DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS = EntityProp.createMany([
|
|
509
|
+
{
|
|
510
|
+
type: "dateTime" /* DateTime */,
|
|
511
|
+
name: 'creationTime',
|
|
512
|
+
displayName: 'Payment::DisplayName:CreationTime',
|
|
513
|
+
sortable: true,
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
type: "number" /* Number */,
|
|
517
|
+
name: 'totalPrice',
|
|
518
|
+
displayName: 'Payment::DisplayName:TotalPrice',
|
|
519
|
+
sortable: true,
|
|
520
|
+
component: SubscriptionTooltipComponent,
|
|
521
|
+
valueResolver: data => getSubscriptionStatus(!!data.record.externalSubscriptionId, data.record.totalPrice),
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
type: "string" /* String */,
|
|
525
|
+
name: 'currency',
|
|
526
|
+
displayName: 'Payment::DisplayName:Currency',
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
type: "enum" /* Enum */,
|
|
530
|
+
name: 'state',
|
|
531
|
+
displayName: 'Payment::DisplayName:State',
|
|
532
|
+
sortable: true,
|
|
533
|
+
enumList: paymentRequestStateOptions,
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
type: "string" /* String */,
|
|
537
|
+
name: 'gateway',
|
|
538
|
+
displayName: 'Payment::DisplayName:Gateway',
|
|
539
|
+
sortable: true,
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
type: "string" /* String */,
|
|
543
|
+
name: 'externalSubscriptionId',
|
|
544
|
+
displayName: 'Payment::DisplayName:ExternalSubscriptionId',
|
|
545
|
+
},
|
|
546
|
+
]);
|
|
547
|
+
|
|
548
|
+
const DEFAULT_PAYMENT_ENTITY_ACTIONS = {
|
|
549
|
+
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_ENTITY_ACTIONS,
|
|
550
|
+
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS,
|
|
551
|
+
["Payment.Requests" /* Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS,
|
|
552
|
+
};
|
|
553
|
+
const DEFAULT_PAYMENT_TOOLBAR_ACTIONS = {
|
|
554
|
+
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_TOOLBAR_ACTIONS,
|
|
555
|
+
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS,
|
|
556
|
+
};
|
|
557
|
+
const DEFAULT_PAYMENT_ENTITY_PROPS = {
|
|
558
|
+
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_ENTITY_PROPS,
|
|
559
|
+
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_PROPS,
|
|
560
|
+
["Payment.Products" /* Products */]: DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS,
|
|
561
|
+
["Payment.Requests" /* Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS,
|
|
562
|
+
};
|
|
563
|
+
const DEFAULT_PAYMENT_CREATE_FORM_PROPS = {
|
|
564
|
+
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_CREATE_FORM_PROPS,
|
|
565
|
+
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS,
|
|
566
|
+
};
|
|
567
|
+
const DEFAULT_PAYMENT_EDIT_FORM_PROPS = {
|
|
568
|
+
["Payment.Plans" /* Plans */]: DEFAULT_PLANS_EDIT_FORM_PROPS,
|
|
569
|
+
["Payment.GatewayPlans" /* GatewayPlans */]: DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS,
|
|
570
|
+
};
|
|
571
|
+
const PAYMENT_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_ACTION_CONTRIBUTORS');
|
|
572
|
+
const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS');
|
|
573
|
+
const PAYMENT_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_PROP_CONTRIBUTORS');
|
|
574
|
+
const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS');
|
|
575
|
+
const PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS');
|
|
576
|
+
|
|
577
|
+
class PaymentInitializer {
|
|
578
|
+
constructor(injector) {
|
|
579
|
+
this.injector = injector;
|
|
580
|
+
}
|
|
581
|
+
canActivate() {
|
|
582
|
+
const extensions = this.injector.get(ExtensionsService);
|
|
583
|
+
const actionContributors = this.injector.get(PAYMENT_ENTITY_ACTION_CONTRIBUTORS, null) || {};
|
|
584
|
+
const toolbarContributors = this.injector.get(PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
|
|
585
|
+
const propContributors = this.injector.get(PAYMENT_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
586
|
+
const createFormContributors = this.injector.get(PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
587
|
+
const editFormContributors = this.injector.get(PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
588
|
+
const configState = this.injector.get(ConfigStateService);
|
|
589
|
+
return getObjectExtensionEntitiesFromStore(configState, 'Payment').pipe(map(entities => ({
|
|
590
|
+
// TODO: find out following entity name
|
|
591
|
+
// [ePaymentComponents.Plans]: entities.PaymentPlans,
|
|
592
|
+
})), mapEntitiesToContributors(configState, 'Payment'), tap(objectExtensionContributors => {
|
|
593
|
+
mergeWithDefaultActions(extensions.entityActions, DEFAULT_PAYMENT_ENTITY_ACTIONS, actionContributors);
|
|
594
|
+
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, toolbarContributors);
|
|
595
|
+
mergeWithDefaultProps(extensions.entityProps, DEFAULT_PAYMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
596
|
+
mergeWithDefaultProps(extensions.createFormProps, DEFAULT_PAYMENT_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
|
|
597
|
+
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_PAYMENT_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
598
|
+
}), mapTo(true));
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
PaymentInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
602
|
+
PaymentInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentInitializer });
|
|
603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentInitializer, decorators: [{
|
|
604
|
+
type: Injectable
|
|
605
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
606
|
+
|
|
607
|
+
const routes = [
|
|
608
|
+
{
|
|
609
|
+
path: '',
|
|
610
|
+
redirectTo: 'plans',
|
|
611
|
+
pathMatch: 'full',
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
path: '',
|
|
615
|
+
component: RouterOutletComponent,
|
|
616
|
+
canActivate: [AuthGuard, PermissionGuard, PaymentInitializer],
|
|
617
|
+
children: [
|
|
618
|
+
{
|
|
619
|
+
path: 'plans',
|
|
620
|
+
component: ReplaceableRouteContainerComponent,
|
|
621
|
+
data: {
|
|
622
|
+
requiredPolicy: 'Payment.Plans',
|
|
623
|
+
replaceableComponent: {
|
|
624
|
+
key: "Payment.Plans" /* Plans */,
|
|
625
|
+
defaultComponent: PaymentPlansComponent,
|
|
626
|
+
},
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
path: 'plans/:planId',
|
|
631
|
+
component: ReplaceableRouteContainerComponent,
|
|
632
|
+
data: {
|
|
633
|
+
requiredPolicy: 'Payment.Plans.GatewayPlans',
|
|
634
|
+
replaceableComponent: {
|
|
635
|
+
key: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
636
|
+
defaultComponent: GatewayPlansComponent,
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
path: 'requests',
|
|
642
|
+
component: ReplaceableRouteContainerComponent,
|
|
643
|
+
data: {
|
|
644
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
645
|
+
replaceableComponent: {
|
|
646
|
+
key: "Payment.Requests" /* Requests */,
|
|
647
|
+
defaultComponent: RequestsComponent,
|
|
648
|
+
},
|
|
649
|
+
},
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
path: 'requests/:requestId/products',
|
|
653
|
+
component: ReplaceableRouteContainerComponent,
|
|
654
|
+
data: {
|
|
655
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
656
|
+
replaceableComponent: {
|
|
657
|
+
key: "Payment.Products" /* Products */,
|
|
658
|
+
defaultComponent: ProductsComponent,
|
|
659
|
+
},
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
],
|
|
663
|
+
},
|
|
664
|
+
];
|
|
665
|
+
class PaymentAdminRoutingModule {
|
|
666
|
+
}
|
|
667
|
+
PaymentAdminRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
668
|
+
PaymentAdminRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i3$1.RouterModule] });
|
|
669
|
+
PaymentAdminRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminRoutingModule, imports: [[RouterModule.forChild(routes)]] });
|
|
670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
|
|
671
|
+
type: NgModule,
|
|
672
|
+
args: [{
|
|
673
|
+
imports: [RouterModule.forChild(routes)],
|
|
674
|
+
}]
|
|
675
|
+
}] });
|
|
676
|
+
|
|
677
|
+
class PaymentPlansModule {
|
|
678
|
+
}
|
|
679
|
+
PaymentPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
680
|
+
PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentPlansModule, declarations: [PaymentPlansComponent], imports: [CommonModule,
|
|
681
|
+
PageModule,
|
|
682
|
+
CoreModule,
|
|
683
|
+
UiExtensionsModule,
|
|
684
|
+
ThemeSharedModule,
|
|
685
|
+
ReactiveFormsModule,
|
|
686
|
+
NgxValidateCoreModule,
|
|
687
|
+
AdvancedEntityFiltersModule] });
|
|
688
|
+
PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentPlansModule, providers: [], imports: [[
|
|
689
|
+
CommonModule,
|
|
690
|
+
PageModule,
|
|
691
|
+
CoreModule,
|
|
692
|
+
UiExtensionsModule,
|
|
693
|
+
ThemeSharedModule,
|
|
694
|
+
ReactiveFormsModule,
|
|
695
|
+
NgxValidateCoreModule,
|
|
696
|
+
AdvancedEntityFiltersModule,
|
|
697
|
+
]] });
|
|
698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentPlansModule, decorators: [{
|
|
699
|
+
type: NgModule,
|
|
700
|
+
args: [{
|
|
701
|
+
imports: [
|
|
702
|
+
CommonModule,
|
|
703
|
+
PageModule,
|
|
704
|
+
CoreModule,
|
|
705
|
+
UiExtensionsModule,
|
|
706
|
+
ThemeSharedModule,
|
|
707
|
+
ReactiveFormsModule,
|
|
708
|
+
NgxValidateCoreModule,
|
|
709
|
+
AdvancedEntityFiltersModule,
|
|
710
|
+
],
|
|
711
|
+
exports: [],
|
|
712
|
+
declarations: [PaymentPlansComponent],
|
|
713
|
+
providers: [],
|
|
714
|
+
}]
|
|
715
|
+
}] });
|
|
716
|
+
|
|
717
|
+
class GatewayPlansModule {
|
|
718
|
+
}
|
|
719
|
+
GatewayPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
720
|
+
GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GatewayPlansModule, declarations: [GatewayPlansComponent], imports: [CommonModule,
|
|
721
|
+
PageModule,
|
|
722
|
+
CoreModule,
|
|
723
|
+
UiExtensionsModule,
|
|
724
|
+
ThemeSharedModule,
|
|
725
|
+
ReactiveFormsModule,
|
|
726
|
+
NgxValidateCoreModule,
|
|
727
|
+
AdvancedEntityFiltersModule] });
|
|
728
|
+
GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GatewayPlansModule, providers: [], imports: [[
|
|
729
|
+
CommonModule,
|
|
730
|
+
PageModule,
|
|
731
|
+
CoreModule,
|
|
732
|
+
UiExtensionsModule,
|
|
733
|
+
ThemeSharedModule,
|
|
734
|
+
ReactiveFormsModule,
|
|
735
|
+
NgxValidateCoreModule,
|
|
736
|
+
AdvancedEntityFiltersModule,
|
|
737
|
+
]] });
|
|
738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GatewayPlansModule, decorators: [{
|
|
739
|
+
type: NgModule,
|
|
740
|
+
args: [{
|
|
741
|
+
imports: [
|
|
742
|
+
CommonModule,
|
|
743
|
+
PageModule,
|
|
744
|
+
CoreModule,
|
|
745
|
+
UiExtensionsModule,
|
|
746
|
+
ThemeSharedModule,
|
|
747
|
+
ReactiveFormsModule,
|
|
748
|
+
NgxValidateCoreModule,
|
|
749
|
+
AdvancedEntityFiltersModule,
|
|
750
|
+
],
|
|
751
|
+
exports: [],
|
|
752
|
+
declarations: [GatewayPlansComponent],
|
|
753
|
+
providers: [],
|
|
754
|
+
}]
|
|
755
|
+
}] });
|
|
756
|
+
|
|
757
|
+
class SubscriptionTooltipModule {
|
|
758
|
+
}
|
|
759
|
+
SubscriptionTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SubscriptionTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
760
|
+
SubscriptionTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SubscriptionTooltipModule, declarations: [SubscriptionTooltipComponent], imports: [CommonModule, CoreModule, NgbTooltipModule], exports: [SubscriptionTooltipComponent] });
|
|
761
|
+
SubscriptionTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SubscriptionTooltipModule, imports: [[CommonModule, CoreModule, NgbTooltipModule]] });
|
|
762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SubscriptionTooltipModule, decorators: [{
|
|
763
|
+
type: NgModule,
|
|
764
|
+
args: [{
|
|
765
|
+
declarations: [SubscriptionTooltipComponent],
|
|
766
|
+
exports: [SubscriptionTooltipComponent],
|
|
767
|
+
imports: [CommonModule, CoreModule, NgbTooltipModule],
|
|
768
|
+
}]
|
|
769
|
+
}] });
|
|
770
|
+
|
|
771
|
+
class RequestsModule {
|
|
772
|
+
}
|
|
773
|
+
RequestsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RequestsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
774
|
+
RequestsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RequestsModule, declarations: [RequestsComponent, RequestsSearchFormComponent], imports: [CommonModule,
|
|
775
|
+
PageModule,
|
|
776
|
+
CoreModule,
|
|
777
|
+
UiExtensionsModule,
|
|
778
|
+
ThemeSharedModule,
|
|
779
|
+
ReactiveFormsModule,
|
|
780
|
+
AdvancedEntityFiltersModule,
|
|
781
|
+
NgbDatepickerModule,
|
|
782
|
+
SubscriptionTooltipModule] });
|
|
783
|
+
RequestsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RequestsModule, imports: [[
|
|
784
|
+
CommonModule,
|
|
785
|
+
PageModule,
|
|
786
|
+
CoreModule,
|
|
787
|
+
UiExtensionsModule,
|
|
788
|
+
ThemeSharedModule,
|
|
789
|
+
ReactiveFormsModule,
|
|
790
|
+
AdvancedEntityFiltersModule,
|
|
791
|
+
NgbDatepickerModule,
|
|
792
|
+
SubscriptionTooltipModule,
|
|
793
|
+
]] });
|
|
794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RequestsModule, decorators: [{
|
|
795
|
+
type: NgModule,
|
|
796
|
+
args: [{
|
|
797
|
+
declarations: [RequestsComponent, RequestsSearchFormComponent],
|
|
798
|
+
imports: [
|
|
799
|
+
CommonModule,
|
|
800
|
+
PageModule,
|
|
801
|
+
CoreModule,
|
|
802
|
+
UiExtensionsModule,
|
|
803
|
+
ThemeSharedModule,
|
|
804
|
+
ReactiveFormsModule,
|
|
805
|
+
AdvancedEntityFiltersModule,
|
|
806
|
+
NgbDatepickerModule,
|
|
807
|
+
SubscriptionTooltipModule,
|
|
808
|
+
],
|
|
809
|
+
}]
|
|
810
|
+
}] });
|
|
811
|
+
|
|
812
|
+
class ProductsModule {
|
|
813
|
+
}
|
|
814
|
+
ProductsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProductsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
815
|
+
ProductsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProductsModule, declarations: [ProductsComponent], imports: [CommonModule,
|
|
816
|
+
PageModule,
|
|
817
|
+
CoreModule,
|
|
818
|
+
UiExtensionsModule,
|
|
819
|
+
ThemeSharedModule,
|
|
820
|
+
SubscriptionTooltipModule] });
|
|
821
|
+
ProductsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProductsModule, imports: [[
|
|
822
|
+
CommonModule,
|
|
823
|
+
PageModule,
|
|
824
|
+
CoreModule,
|
|
825
|
+
UiExtensionsModule,
|
|
826
|
+
ThemeSharedModule,
|
|
827
|
+
SubscriptionTooltipModule,
|
|
828
|
+
]] });
|
|
829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProductsModule, decorators: [{
|
|
830
|
+
type: NgModule,
|
|
831
|
+
args: [{
|
|
832
|
+
declarations: [ProductsComponent],
|
|
833
|
+
imports: [
|
|
834
|
+
CommonModule,
|
|
835
|
+
PageModule,
|
|
836
|
+
CoreModule,
|
|
837
|
+
UiExtensionsModule,
|
|
838
|
+
ThemeSharedModule,
|
|
839
|
+
SubscriptionTooltipModule,
|
|
840
|
+
],
|
|
841
|
+
}]
|
|
842
|
+
}] });
|
|
843
|
+
|
|
844
|
+
class PaymentAdminModule {
|
|
845
|
+
static forChild(options = {}) {
|
|
846
|
+
return {
|
|
847
|
+
ngModule: PaymentAdminModule,
|
|
848
|
+
providers: [
|
|
849
|
+
{
|
|
850
|
+
provide: PAYMENT_ENTITY_ACTION_CONTRIBUTORS,
|
|
851
|
+
useValue: options.entityActionContributors,
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
provide: PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
855
|
+
useValue: options.toolbarActionContributors,
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
provide: PAYMENT_ENTITY_PROP_CONTRIBUTORS,
|
|
859
|
+
useValue: options.entityPropContributors,
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
provide: PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,
|
|
863
|
+
useValue: options.createFormPropContributors,
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
provide: PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,
|
|
867
|
+
useValue: options.editFormPropContributors,
|
|
868
|
+
},
|
|
869
|
+
PaymentInitializer,
|
|
870
|
+
],
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
static forLazy(options = {}) {
|
|
874
|
+
return new LazyModuleFactory(PaymentAdminModule.forChild(options));
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
PaymentAdminModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
878
|
+
PaymentAdminModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule,
|
|
879
|
+
PaymentPlansModule,
|
|
880
|
+
GatewayPlansModule,
|
|
881
|
+
RequestsModule,
|
|
882
|
+
ProductsModule] });
|
|
883
|
+
PaymentAdminModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminModule, imports: [[
|
|
884
|
+
PaymentAdminRoutingModule,
|
|
885
|
+
PaymentPlansModule,
|
|
886
|
+
GatewayPlansModule,
|
|
887
|
+
RequestsModule,
|
|
888
|
+
ProductsModule,
|
|
889
|
+
]] });
|
|
890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: PaymentAdminModule, decorators: [{
|
|
891
|
+
type: NgModule,
|
|
892
|
+
args: [{
|
|
893
|
+
imports: [
|
|
894
|
+
PaymentAdminRoutingModule,
|
|
895
|
+
PaymentPlansModule,
|
|
896
|
+
GatewayPlansModule,
|
|
897
|
+
RequestsModule,
|
|
898
|
+
ProductsModule,
|
|
899
|
+
],
|
|
900
|
+
declarations: [],
|
|
901
|
+
}]
|
|
902
|
+
}] });
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Generated bundle index. Do not edit.
|
|
906
|
+
*/
|
|
907
|
+
|
|
908
|
+
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 };
|
|
909
|
+
//# sourceMappingURL=volo-abp.ng.payment-admin.mjs.map
|