@volo/abp.ng.payment 5.0.0-beta.1 → 5.0.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/admin/components/products/products.component.d.ts +22 -0
- package/admin/components/products/products.module.d.ts +13 -0
- package/admin/components/requests/requests-search-form/requests-search-form.component.d.ts +14 -0
- package/admin/components/requests/requests.component.d.ts +17 -0
- package/admin/components/requests/requests.module.d.ts +17 -0
- package/admin/components/subscription-tooltip/subscription-tooltip.component.d.ts +9 -0
- package/admin/components/subscription-tooltip/subscription-tooltip.module.d.ts +10 -0
- package/admin/config/enums/policy-names.d.ts +2 -1
- package/admin/config/enums/route-names.d.ts +2 -1
- package/admin/defaults/{default-gateway-plans-entity-actions.d.ts → gateway-plans/default-gateway-plans-entity-actions.d.ts} +0 -0
- package/admin/defaults/{default-gateway-plans-entity-props.d.ts → gateway-plans/default-gateway-plans-entity-props.d.ts} +0 -0
- package/admin/defaults/{default-gateway-plans-form-props.d.ts → gateway-plans/default-gateway-plans-form-props.d.ts} +0 -0
- package/admin/defaults/{default-gateway-plans-toolbar-actions.d.ts → gateway-plans/default-gateway-plans-toolbar-actions.d.ts} +0 -0
- package/admin/defaults/gateway-plans/index.d.ts +2 -0
- package/admin/defaults/index.d.ts +2 -6
- package/admin/defaults/{default-plans-entity-actions.d.ts → plans/default-plans-entity-actions.d.ts} +0 -0
- package/admin/defaults/{default-plans-entity-props.d.ts → plans/default-plans-entity-props.d.ts} +0 -0
- package/admin/defaults/{default-plans-form-props.d.ts → plans/default-plans-form-props.d.ts} +0 -0
- package/admin/defaults/{default-plans-toolbar-actions.d.ts → plans/default-plans-toolbar-actions.d.ts} +0 -0
- package/admin/defaults/plans/index.d.ts +4 -0
- package/admin/defaults/products/default-products-entity-props.d.ts +2 -0
- package/admin/defaults/products/index.d.ts +1 -0
- package/admin/defaults/requests/default-requests-entity-actions.d.ts +3 -0
- package/admin/defaults/requests/default-requests-entity-props.d.ts +3 -0
- package/admin/enums/components.d.ts +3 -1
- package/admin/models/config-options.d.ts +4 -4
- package/admin/models/subscription-tooltip-data.d.ts +4 -0
- package/admin/payment-admin.module.d.ts +3 -1
- package/admin/tokens/extensions.token.d.ts +13 -7
- package/admin/utils/get-subscription-status.d.ts +4 -0
- package/bundles/volo-abp.ng.payment-admin-config.umd.js +1 -1
- package/bundles/volo-abp.ng.payment-admin.umd.js +1 -1
- package/bundles/volo-abp.ng.payment-proxy.umd.js +1 -1
- package/esm2015/admin/components/gateway-plans/gateway-plans.component.js +1 -1
- package/esm2015/admin/components/gateway-plans/gateway-plans.module.js +1 -1
- package/esm2015/admin/components/plans/plans.component.js +1 -1
- package/esm2015/admin/components/plans/plans.module.js +1 -1
- package/esm2015/admin/components/products/products.component.js +1 -0
- package/esm2015/admin/components/products/products.module.js +1 -0
- package/esm2015/admin/components/requests/requests-search-form/requests-search-form.component.js +1 -0
- package/esm2015/admin/components/requests/requests.component.js +1 -0
- package/esm2015/admin/components/requests/requests.module.js +1 -0
- package/esm2015/admin/components/subscription-tooltip/subscription-tooltip.component.js +1 -0
- package/esm2015/admin/components/subscription-tooltip/subscription-tooltip.module.js +1 -0
- package/esm2015/admin/config/payment-admin-config.module.js +1 -1
- package/esm2015/admin/config/providers/route.provider.js +1 -1
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.js +1 -0
- package/esm2015/admin/defaults/{default-gateway-plans-entity-props.js → gateway-plans/default-gateway-plans-entity-props.js} +0 -0
- package/esm2015/admin/defaults/{default-gateway-plans-form-props.js → gateway-plans/default-gateway-plans-form-props.js} +0 -0
- package/esm2015/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.js +1 -0
- package/esm2015/admin/defaults/gateway-plans/index.js +1 -0
- package/esm2015/admin/defaults/index.js +1 -1
- package/esm2015/admin/defaults/plans/default-plans-entity-actions.js +1 -0
- package/esm2015/admin/defaults/{default-plans-entity-props.js → plans/default-plans-entity-props.js} +0 -0
- package/esm2015/admin/defaults/{default-plans-form-props.js → plans/default-plans-form-props.js} +0 -0
- package/esm2015/admin/defaults/plans/default-plans-toolbar-actions.js +1 -0
- package/esm2015/admin/defaults/plans/index.js +1 -0
- package/esm2015/admin/defaults/products/default-products-entity-props.js +1 -0
- package/esm2015/admin/defaults/products/index.js +1 -0
- package/esm2015/admin/defaults/requests/default-requests-entity-actions.js +1 -0
- package/esm2015/admin/defaults/requests/default-requests-entity-props.js +1 -0
- package/esm2015/admin/models/subscription-tooltip-data.js +1 -0
- package/esm2015/admin/payment-admin-routing.module.js +1 -1
- package/esm2015/admin/payment-admin.module.js +1 -1
- package/esm2015/admin/payment.initializer.js +1 -1
- package/esm2015/admin/tokens/extensions.token.js +1 -1
- package/esm2015/admin/utils/get-subscription-status.js +1 -0
- package/esm2015/proxy/lib/index.js +1 -1
- package/esm2015/proxy/lib/proxy/admin/plans/plan-admin.service.js +1 -1
- package/esm2015/proxy/lib/proxy/admin/requests/index.js +1 -0
- package/esm2015/proxy/lib/proxy/admin/requests/models.js +1 -0
- package/esm2015/proxy/lib/proxy/admin/requests/payment-request-admin.service.js +1 -0
- package/esm2015/proxy/lib/proxy/gateways/gateway.service.js +1 -1
- package/esm2015/proxy/lib/proxy/plans/plan.service.js +1 -1
- package/esm2015/proxy/lib/proxy/requests/index.js +1 -0
- package/esm2015/proxy/lib/proxy/requests/models.js +1 -0
- package/esm2015/proxy/lib/proxy/requests/payment-request-state.enum.js +1 -0
- package/esm2015/proxy/lib/proxy/requests/payment-type.enum.js +1 -0
- package/fesm2015/volo-abp.ng.payment-admin-config.js +11 -4
- package/fesm2015/volo-abp.ng.payment-admin.js +482 -124
- package/fesm2015/volo-abp.ng.payment-proxy.js +51 -10
- package/package.json +4 -4
- package/proxy/lib/index.d.ts +2 -0
- package/proxy/lib/proxy/admin/requests/index.d.ts +2 -0
- package/proxy/lib/proxy/admin/requests/models.d.ts +10 -0
- package/proxy/lib/proxy/admin/requests/payment-request-admin.service.d.ts +14 -0
- package/proxy/lib/proxy/requests/index.d.ts +3 -0
- package/proxy/lib/proxy/requests/models.d.ts +25 -0
- package/proxy/lib/proxy/requests/payment-request-state.enum.d.ts +7 -0
- package/proxy/lib/proxy/requests/payment-type.enum.d.ts +5 -0
- package/esm2015/admin/defaults/default-gateway-plans-entity-actions.js +0 -1
- package/esm2015/admin/defaults/default-gateway-plans-toolbar-actions.js +0 -1
- package/esm2015/admin/defaults/default-plans-entity-actions.js +0 -1
- package/esm2015/admin/defaults/default-plans-toolbar-actions.js +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ListService } from '@abp/ng.core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { ePaymentRouteNames } from '@volo/abp.ng.payment/admin/config';
|
|
4
|
+
import { PaymentRequestAdminService, PaymentRequestProductDto } from '@volo/abp.ng.payment/proxy';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProductsComponent {
|
|
7
|
+
private route;
|
|
8
|
+
private service;
|
|
9
|
+
list: ListService;
|
|
10
|
+
data: PaymentRequestProductDto[];
|
|
11
|
+
breadCrumbItems: ({
|
|
12
|
+
name: ePaymentRouteNames;
|
|
13
|
+
path: string;
|
|
14
|
+
} | {
|
|
15
|
+
name: any;
|
|
16
|
+
path?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
get requestId(): any;
|
|
19
|
+
constructor(route: ActivatedRoute, service: PaymentRequestAdminService, list: ListService);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductsComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductsComponent, "abp-products", never, {}, {}, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./products.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@abp/ng.components/page";
|
|
5
|
+
import * as i4 from "@abp/ng.core";
|
|
6
|
+
import * as i5 from "@abp/ng.theme.shared/extensions";
|
|
7
|
+
import * as i6 from "@abp/ng.theme.shared";
|
|
8
|
+
import * as i7 from "../subscription-tooltip/subscription-tooltip.module";
|
|
9
|
+
export declare class ProductsModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductsModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProductsModule, [typeof i1.ProductsComponent], [typeof i2.CommonModule, typeof i3.PageModule, typeof i4.CoreModule, typeof i5.UiExtensionsModule, typeof i6.ThemeSharedModule, typeof i7.SubscriptionTooltipModule], never>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProductsModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ListService } from '@abp/ng.core';
|
|
3
|
+
import { PaymentRequestGetListInput } from '@volo/abp.ng.payment/proxy';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RequestsSearchFormComponent {
|
|
6
|
+
list: ListService;
|
|
7
|
+
pageQuery: PaymentRequestGetListInput;
|
|
8
|
+
pageQueryChange: EventEmitter<PaymentRequestGetListInput>;
|
|
9
|
+
paymentTypes: import("@abp/ng.core").ABP.Option<typeof import("@volo/abp.ng.payment/proxy").PaymentType>[];
|
|
10
|
+
states: import("@abp/ng.core").ABP.Option<typeof import("@volo/abp.ng.payment/proxy").PaymentRequestState>[];
|
|
11
|
+
emit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestsSearchFormComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestsSearchFormComponent, "abp-payment-requests-search-form", never, { "list": "list"; "pageQuery": "pageQuery"; }, { "pageQueryChange": "pageQueryChange"; }, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ListService, PagedResultDto } from '@abp/ng.core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { PaymentRequestAdminService, PaymentRequestGetListInput, PaymentRequestWithDetailsDto } from '@volo/abp.ng.payment/proxy';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RequestsComponent {
|
|
7
|
+
list: ListService;
|
|
8
|
+
private paymentRequestAdminService;
|
|
9
|
+
private router;
|
|
10
|
+
private route;
|
|
11
|
+
data$: Observable<PagedResultDto<PaymentRequestWithDetailsDto>>;
|
|
12
|
+
pageQuery: PaymentRequestGetListInput;
|
|
13
|
+
constructor(list: ListService, paymentRequestAdminService: PaymentRequestAdminService, router: Router, route: ActivatedRoute);
|
|
14
|
+
goToProducts(id: string): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestsComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestsComponent, "abp-payment-requests", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./requests.component";
|
|
3
|
+
import * as i2 from "./requests-search-form/requests-search-form.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@abp/ng.components/page";
|
|
6
|
+
import * as i5 from "@abp/ng.core";
|
|
7
|
+
import * as i6 from "@abp/ng.theme.shared/extensions";
|
|
8
|
+
import * as i7 from "@abp/ng.theme.shared";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "@volo/abp.commercial.ng.ui";
|
|
11
|
+
import * as i10 from "@ng-bootstrap/ng-bootstrap";
|
|
12
|
+
import * as i11 from "../subscription-tooltip/subscription-tooltip.module";
|
|
13
|
+
export declare class RequestsModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestsModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RequestsModule, [typeof i1.RequestsComponent, typeof i2.RequestsSearchFormComponent], [typeof i3.CommonModule, typeof i4.PageModule, typeof i5.CoreModule, typeof i6.UiExtensionsModule, typeof i7.ThemeSharedModule, typeof i8.ReactiveFormsModule, typeof i9.AdvancedEntityFiltersModule, typeof i10.NgbDatepickerModule, typeof i11.SubscriptionTooltipModule], never>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RequestsModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { SubscriptionTooltipData } from '../../models/subscription-tooltip-data';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SubscriptionTooltipComponent {
|
|
5
|
+
value$: Observable<SubscriptionTooltipData>;
|
|
6
|
+
constructor(value$: Observable<SubscriptionTooltipData>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionTooltipComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionTooltipComponent, "abp-subscription-tooltip", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./subscription-tooltip.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@abp/ng.core";
|
|
5
|
+
import * as i4 from "@ng-bootstrap/ng-bootstrap";
|
|
6
|
+
export declare class SubscriptionTooltipModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionTooltipModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SubscriptionTooltipModule, [typeof i1.SubscriptionTooltipComponent], [typeof i2.CommonModule, typeof i3.CoreModule, typeof i4.NgbTooltipModule], [typeof i1.SubscriptionTooltipComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SubscriptionTooltipModule>;
|
|
10
|
+
}
|
|
@@ -6,5 +6,6 @@ export declare const enum ePaymentPolicyNames {
|
|
|
6
6
|
PaymentPlansGatewayPlans = "Payment.Plans.GatewayPlans",
|
|
7
7
|
PaymentPlansGatewayPlansCreate = "Payment.Plans.GatewayPlans.Create",
|
|
8
8
|
PaymentPlansGatewayPlansDelete = "Payment.Plans.GatewayPlans.Delete",
|
|
9
|
-
PaymentPlansGatewayPlansUpdate = "Payment.Plans.GatewayPlans.Update"
|
|
9
|
+
PaymentPlansGatewayPlansUpdate = "Payment.Plans.GatewayPlans.Update",
|
|
10
|
+
PaymentRequests = "Payment.PaymentRequests"
|
|
10
11
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './default-plans-form-props';
|
|
4
|
-
export * from './default-plans-toolbar-actions';
|
|
5
|
-
export * from './default-gateway-plans-entity-actions';
|
|
6
|
-
export * from './default-gateway-plans-entity-props';
|
|
1
|
+
export * from './gateway-plans';
|
|
2
|
+
export * from './plans';
|
package/admin/defaults/{default-plans-entity-actions.d.ts → plans/default-plans-entity-actions.d.ts}
RENAMED
|
File without changes
|
package/admin/defaults/{default-plans-entity-props.d.ts → plans/default-plans-entity-props.d.ts}
RENAMED
|
File without changes
|
package/admin/defaults/{default-plans-form-props.d.ts → plans/default-plans-form-props.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './default-products-entity-props';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateFormPropContributorCallback, EditFormPropContributorCallback, EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions';
|
|
2
|
-
import { GatewayPlanDto, PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
2
|
+
import { GatewayDto, GatewayPlanDto, PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
3
3
|
import { ePaymentComponents } from '../enums/components';
|
|
4
4
|
export declare type PaymentEntityActionContributors = Partial<{
|
|
5
5
|
[ePaymentComponents.Plans]: EntityActionContributorCallback<PlanDto>[];
|
|
@@ -7,7 +7,7 @@ export declare type PaymentEntityActionContributors = Partial<{
|
|
|
7
7
|
}>;
|
|
8
8
|
export declare type PaymentToolbarActionContributors = Partial<{
|
|
9
9
|
[ePaymentComponents.Plans]: ToolbarActionContributorCallback<PlanDto[]>[];
|
|
10
|
-
[ePaymentComponents.GatewayPlans]: ToolbarActionContributorCallback<
|
|
10
|
+
[ePaymentComponents.GatewayPlans]: ToolbarActionContributorCallback<GatewayDto[]>[];
|
|
11
11
|
}>;
|
|
12
12
|
export declare type PaymentEntityPropContributors = Partial<{
|
|
13
13
|
[ePaymentComponents.Plans]: EntityPropContributorCallback<PlanDto>[];
|
|
@@ -15,11 +15,11 @@ export declare type PaymentEntityPropContributors = Partial<{
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare type PaymentCreateFormPropContributors = Partial<{
|
|
17
17
|
[ePaymentComponents.Plans]: CreateFormPropContributorCallback<PlanDto>[];
|
|
18
|
-
[ePaymentComponents.GatewayPlans]: CreateFormPropContributorCallback<
|
|
18
|
+
[ePaymentComponents.GatewayPlans]: CreateFormPropContributorCallback<GatewayDto>[];
|
|
19
19
|
}>;
|
|
20
20
|
export declare type PaymentEditFormPropContributors = Partial<{
|
|
21
21
|
[ePaymentComponents.Plans]: EditFormPropContributorCallback<PlanDto>[];
|
|
22
|
-
[ePaymentComponents.GatewayPlans]: EditFormPropContributorCallback<
|
|
22
|
+
[ePaymentComponents.GatewayPlans]: EditFormPropContributorCallback<GatewayDto>[];
|
|
23
23
|
}>;
|
|
24
24
|
export interface PaymentConfigOptions {
|
|
25
25
|
entityActionContributors?: PaymentEntityActionContributors;
|
|
@@ -4,10 +4,12 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "./payment-admin-routing.module";
|
|
5
5
|
import * as i2 from "./components/plans/plans.module";
|
|
6
6
|
import * as i3 from "./components/gateway-plans/gateway-plans.module";
|
|
7
|
+
import * as i4 from "./components/requests/requests.module";
|
|
8
|
+
import * as i5 from "./components/products/products.module";
|
|
7
9
|
export declare class PaymentAdminModule {
|
|
8
10
|
static forChild(options?: PaymentConfigOptions): ModuleWithProviders<PaymentAdminModule>;
|
|
9
11
|
static forLazy(options?: PaymentConfigOptions): NgModuleFactory<PaymentAdminModule>;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentAdminModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentAdminModule, never, [typeof i1.PaymentAdminRoutingModule, typeof i2.PaymentPlansModule, typeof i3.GatewayPlansModule], never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentAdminModule, never, [typeof i1.PaymentAdminRoutingModule, typeof i2.PaymentPlansModule, typeof i3.GatewayPlansModule, typeof i4.RequestsModule, typeof i5.ProductsModule], never>;
|
|
12
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentAdminModule>;
|
|
13
15
|
}
|
|
@@ -1,43 +1,49 @@
|
|
|
1
1
|
import { CreateFormPropContributorCallback, EditFormPropContributorCallback, EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
-
import { GatewayPlanDto, PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
3
|
+
import { GatewayDto, GatewayPlanDto, PaymentRequestProductDto, PaymentRequestWithDetailsDto, PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
4
4
|
export declare const DEFAULT_PAYMENT_ENTITY_ACTIONS: {
|
|
5
5
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").EntityAction<PlanDto>[];
|
|
6
6
|
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").EntityAction<GatewayPlanDto>[];
|
|
7
|
+
"Payment.Requests": import("@abp/ng.theme.shared/extensions").EntityAction<PaymentRequestWithDetailsDto>[];
|
|
7
8
|
};
|
|
8
9
|
export declare const DEFAULT_PAYMENT_TOOLBAR_ACTIONS: {
|
|
9
10
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").ToolbarAction<PlanDto[]>[];
|
|
10
|
-
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").ToolbarAction<
|
|
11
|
+
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").ToolbarAction<GatewayDto[]>[];
|
|
11
12
|
};
|
|
12
13
|
export declare const DEFAULT_PAYMENT_ENTITY_PROPS: {
|
|
13
14
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").EntityProp<PlanDto>[];
|
|
14
15
|
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").EntityProp<GatewayPlanDto>[];
|
|
16
|
+
"Payment.Products": import("@abp/ng.theme.shared/extensions").EntityProp<any>[];
|
|
17
|
+
"Payment.Requests": import("@abp/ng.theme.shared/extensions").EntityProp<PaymentRequestWithDetailsDto>[];
|
|
15
18
|
};
|
|
16
19
|
export declare const DEFAULT_PAYMENT_CREATE_FORM_PROPS: {
|
|
17
20
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").FormProp<PlanDto>[];
|
|
18
|
-
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<
|
|
21
|
+
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<GatewayDto>[];
|
|
19
22
|
};
|
|
20
23
|
export declare const DEFAULT_PAYMENT_EDIT_FORM_PROPS: {
|
|
21
24
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").FormProp<PlanDto>[];
|
|
22
|
-
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<
|
|
25
|
+
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<GatewayDto>[];
|
|
23
26
|
};
|
|
24
27
|
export declare const PAYMENT_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
25
28
|
"Payment.Plans": EntityActionContributorCallback<PlanDto>[];
|
|
26
29
|
"Payment.GatewayPlans": EntityActionContributorCallback<GatewayPlanDto>[];
|
|
30
|
+
"Payment.Requests": EditFormPropContributorCallback<PaymentRequestWithDetailsDto>[];
|
|
27
31
|
}>>;
|
|
28
32
|
export declare const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
29
33
|
"Payment.Plans": ToolbarActionContributorCallback<PlanDto[]>[];
|
|
30
|
-
"Payment.GatewayPlans": ToolbarActionContributorCallback<
|
|
34
|
+
"Payment.GatewayPlans": ToolbarActionContributorCallback<GatewayDto[]>[];
|
|
31
35
|
}>>;
|
|
32
36
|
export declare const PAYMENT_ENTITY_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
33
37
|
"Payment.Plans": EntityPropContributorCallback<PlanDto>[];
|
|
34
38
|
"Payment.GatewayPlans": EntityPropContributorCallback<GatewayPlanDto>[];
|
|
39
|
+
"Payment.Requests": EntityPropContributorCallback<PaymentRequestWithDetailsDto>[];
|
|
40
|
+
"Payment.Products": EntityPropContributorCallback<PaymentRequestProductDto>[];
|
|
35
41
|
}>>;
|
|
36
42
|
export declare const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
37
43
|
"Payment.Plans": CreateFormPropContributorCallback<PlanDto>[];
|
|
38
|
-
"Payment.GatewayPlans": CreateFormPropContributorCallback<
|
|
44
|
+
"Payment.GatewayPlans": CreateFormPropContributorCallback<GatewayDto>[];
|
|
39
45
|
}>>;
|
|
40
46
|
export declare const PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
41
47
|
"Payment.Plans": EditFormPropContributorCallback<PlanDto>[];
|
|
42
|
-
"Payment.GatewayPlans": EditFormPropContributorCallback<
|
|
48
|
+
"Payment.GatewayPlans": EditFormPropContributorCallback<GatewayDto>[];
|
|
43
49
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@abp/ng.core")):"function"==typeof define&&define.amd?define("@volo/abp.ng.payment/admin/config",["exports","@angular/core","@abp/ng.core"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng.payment=e.volo.abp.ng.payment||{},e.volo.abp.ng.payment.admin=e.volo.abp.ng.payment.admin||{},e.volo.abp.ng.payment.admin.config={}),e.ng.core,e.ng_core)}(this,(function(e,n,o){"use strict";function t(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}})),n.default=e,Object.freeze(n)}var a=t(n),r=[{provide:n.APP_INITIALIZER,useFactory:i,deps:[o.RoutesService],multi:!0}];function i(e){return function(){e.add([{path:void 0,name:"Payment::Menu:PaymentManagement",order:50,layout:"application",iconClass:"fa fa-credit-card"},{path:"/payment/plans",name:"Payment::Menu:Plans",parentName:"Payment::Menu:PaymentManagement",order:1,requiredPolicy:"Payment.Plans"}])}}var
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@abp/ng.core")):"function"==typeof define&&define.amd?define("@volo/abp.ng.payment/admin/config",["exports","@angular/core","@abp/ng.core"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng.payment=e.volo.abp.ng.payment||{},e.volo.abp.ng.payment.admin=e.volo.abp.ng.payment.admin||{},e.volo.abp.ng.payment.admin.config={}),e.ng.core,e.ng_core)}(this,(function(e,n,o){"use strict";function t(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}})),n.default=e,Object.freeze(n)}var a=t(n),r=[{provide:n.APP_INITIALIZER,useFactory:i,deps:[o.RoutesService],multi:!0}];function i(e){return function(){e.add([{path:void 0,name:"Payment::Menu:PaymentManagement",order:50,layout:"application",iconClass:"fa fa-credit-card"},{path:"/payment/plans",name:"Payment::Menu:Plans",parentName:"Payment::Menu:PaymentManagement",order:1,requiredPolicy:"Payment.Plans"},{path:"/payment/requests",name:"Payment::Menu:PaymentRequests",parentName:"Payment::Menu:PaymentManagement",order:2,requiredPolicy:"Payment.PaymentRequests"}])}}var u=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[r]}},e}();u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.NgModule}),u.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:a,type:u}),u.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:a,type:u}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:a,type:u,decorators:[{type:n.NgModule,args:[{}]}]}),e.PAYMENT_ROUTE_PROVIDERS=r,e.PaymentAdminConfigModule=u,e.configureRoutes=i,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@abp/ng.core"),require("@angular/router"),require("@abp/ng.theme.shared/extensions"),require("rxjs/operators"),require("@abp/ng.theme.shared"),require("@volo/abp.ng.payment/proxy"),require("@abp/ng.components/page"),require("@volo/abp.commercial.ng.ui"),require("@angular/common"),require("@angular/forms"),require("@ngx-validate/core")):"function"==typeof define&&define.amd?define("@volo/abp.ng.payment/admin",["exports","@angular/core","@abp/ng.core","@angular/router","@abp/ng.theme.shared/extensions","rxjs/operators","@abp/ng.theme.shared","@volo/abp.ng.payment/proxy","@abp/ng.components/page","@volo/abp.commercial.ng.ui","@angular/common","@angular/forms","@ngx-validate/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng.payment=e.volo.abp.ng.payment||{},e.volo.abp.ng.payment.admin={}),e.ng.core,e.i2,e.ng.router,e.i7,e.rxjs.operators,e.i3,e.volo.abp.ng.payment.proxy,e.i5,e.i6,e.ng.common,e.ng.forms,e.i10)}(this,(function(e,t,n,o,a,i,r,s,l,p,c,m,u){"use strict";function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=d(t),g=d(n),b=d(o),v=d(a),P=d(r),f=d(s),T=d(l),h=d(p),M=d(c),N=d(m),I=d(u),C=function(){function e(e,t,n,o,a){var i=this;this.planService=e,this.list=t,this.injector=n,this.confirmationService=o,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=n.get(s.PlanAdminService),this.data$=this.list.hookToQuery((function(e){return i.service.getGatewayPlans(i.planId,e)}))}return Object.defineProperty(e.prototype,"planId",{get:function(){return this.activatedRoute.snapshot.params.planId},enumerable:!1,configurable:!0}),e.prototype.onEdit=function(e){var t=this;this.planService.getGatewayPlan(this.planId,e).pipe(i.take(1)).subscribe((function(e){t.selected=e,t.openModal()}))},e.prototype.onDelete=function(e){var t=this;this.confirmationService.warn("Payment::GatewayPlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[e]}).subscribe((function(n){n===r.Confirmation.Status.confirm&&t.service.deleteGatewayPlan(t.planId,e).subscribe((function(){return t.list.get()}))}))},e.prototype.onAdd=function(){this.selected={},this.openModal()},e.prototype.openModal=function(){this.createForm(),this.isModalVisible=!0},e.prototype.save=function(){var e=this;this.form.valid&&(this.modalBusy=!0,(this.selected.gateway?this.service.updateGatewayPlan(this.planId,this.selected.gateway,this.form.value):this.service.createGatewayPlan(this.planId,this.form.value)).pipe(i.finalize((function(){return e.modalBusy=!1}))).subscribe((function(){e.list.get(),e.isModalVisible=!1})))},e.prototype.createForm=function(){var e=new a.FormPropData(this.injector,this.selected);this.form=a.generateFormFromProps(e)},e}();C.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:C,deps:[{token:f.PlanService},{token:g.ListService},{token:y.Injector},{token:P.ConfirmationService},{token:b.ActivatedRoute}],target:y.ɵɵFactoryTarget.Component}),C.ɵcmp=y.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.8",type:C,selector:"abp-gateway-plans",providers:[n.ListService,{provide:a.EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}],ngImport:y,template:'<ng-container *ngIf="data$ | async; let data">\n <abp-page [title]="\'Payment::GatewayPlans\' | abpLocalization" [toolbar]="data.items">\n <abp-advanced-entity-filters\n localizationSourceName="Payment"\n [list]="list"\n ></abp-advanced-entity-filters>\n\n <div class="card">\n <div class="card-body">\n <abp-extensible-table [list]="list" [data]="data.items" [recordsTotal]="data.totalCount">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal [(visible)]="isModalVisible" [busy]="modalBusy">\n <ng-template #abpHeader>\n <h3>\n {{ (selected?.gateway ? \'Payment::Edit\' : \'Payment::NewGatewayPlan\') | abpLocalization }}\n </h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]="form" (ngSubmit)="save()" validateOnSubmit>\n <abp-extensible-form [selectedRecord]="selected"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type="button" class="btn btn-secondary" abpClose>\n {{ \'AbpUi::Cancel\' | abpLocalization }}\n </button>\n <abp-button iconClass="fa fa-check" [disabled]="form?.invalid" (click)="save()">{{\n \'AbpUi::Save\' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n',components:[{type:T.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:h.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:v.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]},{type:P.ModalComponent,selector:"abp-modal",inputs:["visible","busy","options","suppressUnsavedChangesWarning"],outputs:["visibleChange","init","appear","disappear"]},{type:v.ExtensibleFormComponent,selector:"abp-extensible-form",inputs:["selectedRecord"],exportAs:["abpExtensibleForm"]},{type:P.ButtonComponent,selector:"abp-button",inputs:["buttonId","buttonClass","buttonType","iconClass","loading","disabled","attributes"],outputs:["click","focus","blur","abpClick","abpFocus","abpBlur"]}],directives:[{type:M.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:N.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:N.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:g.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:N.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:I.ValidationGroupDirective,selector:"[formGroup],[formGroupName]",inputs:["blueprints","errorTemplate","invalidClasses","mapErrorsFn","skipValidation","targetSelector","validateOnSubmit"]},{type:P.ModalCloseDirective,selector:"[abpClose]"}],pipes:{async:M.AsyncPipe,abpLocalization:g.LocalizationPipe},encapsulation:y.ViewEncapsulation.None}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:C,decorators:[{type:t.Component,args:[{selector:"abp-gateway-plans",templateUrl:"./gateway-plans.component.html",encapsulation:t.ViewEncapsulation.None,providers:[n.ListService,{provide:a.EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}]}]}],ctorParameters:function(){return[{type:f.PlanService},{type:g.ListService},{type:y.Injector},{type:P.ConfirmationService},{type:b.ActivatedRoute}]}});var E=a.EntityAction.createMany([{text:"Payment::Edit",action:function(e){e.getInjected(C).onEdit(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Update"},{text:"Payment::Delete",action:function(e){e.getInjected(C).onDelete(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Delete"}]),A=a.EntityProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",sortable:!0},{type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",sortable:!0}]),S={type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",id:"external-id",validators:function(){return[m.Validators.required]}},F=a.FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",options:function(e){return e.getInjected(s.GatewayService).getSubscriptionSupportedGateways().pipe(i.map((function(e){return e.map((function(e){return{key:e.displayName,value:e.name}}))})))},validators:function(){return[m.Validators.required]}},S]),_=a.FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",validators:function(){return[m.Validators.required]},disabled:function(){return!0}},S]),R=a.ToolbarAction.createMany([{text:"Payment::NewGatewayPlan",action:function(e){e.getInjected(C).onAdd()},permission:"Payment.Plans.GatewayPlans.Create",icon:"fa fa-plus"}]),D=function(){function e(e,t,n,o,a){this.list=e,this.injector=t,this.confirmationService=n,this.router=o,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=t.get(s.PlanAdminService),this.data$=this.list.hookToQuery(this.service.getList)}return e.prototype.onEdit=function(e){var t=this;this.service.get(e).pipe(i.take(1)).subscribe((function(e){t.selected=e,t.openModal()}))},e.prototype.goToGatewayPlans=function(e){this.router.navigate(["./",e],{relativeTo:this.activatedRoute})},e.prototype.onDelete=function(e,t){var n=this;this.confirmationService.warn("Payment::PlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[t]}).subscribe((function(t){t===r.Confirmation.Status.confirm&&n.service.delete(e).subscribe((function(){return n.list.get()}))}))},e.prototype.onAdd=function(){this.selected={},this.openModal()},e.prototype.openModal=function(){this.createForm(),this.isModalVisible=!0},e.prototype.save=function(){var e=this;this.form.valid&&(this.modalBusy=!0,(this.selected.id?this.service.update(this.selected.id,this.form.value):this.service.create(this.form.value)).pipe(i.finalize((function(){return e.modalBusy=!1}))).subscribe((function(){e.list.get(),e.isModalVisible=!1})))},e.prototype.createForm=function(){var e=new a.FormPropData(this.injector,this.selected);this.form=a.generateFormFromProps(e)},e}();D.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:D,deps:[{token:g.ListService},{token:y.Injector},{token:P.ConfirmationService},{token:b.Router},{token:b.ActivatedRoute}],target:y.ɵɵFactoryTarget.Component}),D.ɵcmp=y.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.8",type:D,selector:"abp-payment-plans",providers:[n.ListService,{provide:a.EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}],ngImport:y,template:'<ng-container *ngIf="data$ | async; let data">\n <abp-page [title]="\'Payment::Plans\' | abpLocalization" [toolbar]="data.items">\n <abp-advanced-entity-filters\n localizationSourceName="Payment"\n [list]="list"\n ></abp-advanced-entity-filters>\n\n <div class="card">\n <div class="card-body">\n <abp-extensible-table [list]="list" [data]="data.items" [recordsTotal]="data.totalCount">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal [(visible)]="isModalVisible" [busy]="modalBusy">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? \'Payment::Edit\' : \'Payment::NewPlan\') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]="form" (ngSubmit)="save()" validateOnSubmit>\n <abp-extensible-form [selectedRecord]="selected"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type="button" class="btn btn-secondary" abpClose>\n {{ \'AbpUi::Cancel\' | abpLocalization }}\n </button>\n <abp-button iconClass="fa fa-check" [disabled]="form?.invalid" (click)="save()">{{\n \'AbpUi::Save\' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n',components:[{type:T.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:h.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:v.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]},{type:P.ModalComponent,selector:"abp-modal",inputs:["visible","busy","options","suppressUnsavedChangesWarning"],outputs:["visibleChange","init","appear","disappear"]},{type:v.ExtensibleFormComponent,selector:"abp-extensible-form",inputs:["selectedRecord"],exportAs:["abpExtensibleForm"]},{type:P.ButtonComponent,selector:"abp-button",inputs:["buttonId","buttonClass","buttonType","iconClass","loading","disabled","attributes"],outputs:["click","focus","blur","abpClick","abpFocus","abpBlur"]}],directives:[{type:M.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:N.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:N.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:g.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:N.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:I.ValidationGroupDirective,selector:"[formGroup],[formGroupName]",inputs:["blueprints","errorTemplate","invalidClasses","mapErrorsFn","skipValidation","targetSelector","validateOnSubmit"]},{type:P.ModalCloseDirective,selector:"[abpClose]"}],pipes:{async:M.AsyncPipe,abpLocalization:g.LocalizationPipe},encapsulation:y.ViewEncapsulation.None}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:D,decorators:[{type:t.Component,args:[{selector:"abp-payment-plans",templateUrl:"./plans.component.html",encapsulation:t.ViewEncapsulation.None,providers:[n.ListService,{provide:a.EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}]}]}],ctorParameters:function(){return[{type:g.ListService},{type:y.Injector},{type:P.ConfirmationService},{type:b.Router},{type:b.ActivatedRoute}]}});var O,x,V,w,G,j=a.EntityAction.createMany([{text:"Payment::GatewayPlans",action:function(e){e.getInjected(D).goToGatewayPlans(e.record.id)},permission:"Payment.Plans.GatewayPlans"},{text:"Payment::Edit",action:function(e){e.getInjected(D).onEdit(e.record.id)},permission:"Payment.Plans.Update"},{text:"Payment::Delete",action:function(e){e.getInjected(D).onDelete(e.record.id,e.record.name)},permission:"Payment.Plans.Delete"}]),L=a.EntityProp.createMany([{type:"string",name:"name",displayName:"Payment::DisplayName:Name",sortable:!0}]),U=a.FormProp.createMany([{type:"string",name:"name",displayName:"Payment::Name",id:"payment-name",validators:function(){return[m.Validators.required]}}]),k=U,Y=a.ToolbarAction.createMany([{text:"Payment::NewPlan",action:function(e){e.getInjected(D).onAdd()},permission:"Payment.Plans.Create",icon:"fa fa-plus"}]),B=((O={})["Payment.Plans"]=j,O["Payment.GatewayPlans"]=E,O),z=((x={})["Payment.Plans"]=Y,x["Payment.GatewayPlans"]=R,x),q=((V={})["Payment.Plans"]=L,V["Payment.GatewayPlans"]=A,V),W=((w={})["Payment.Plans"]=U,w["Payment.GatewayPlans"]=F,w),X=((G={})["Payment.Plans"]=k,G["Payment.GatewayPlans"]=_,G),$=new t.InjectionToken("PAYMENT_ENTITY_ACTION_CONTRIBUTORS"),H=new t.InjectionToken("PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS"),Q=new t.InjectionToken("PAYMENT_ENTITY_PROP_CONTRIBUTORS"),J=new t.InjectionToken("PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS"),K=new t.InjectionToken("PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS"),Z=function(){function e(e){this.injector=e}return e.prototype.canActivate=function(){var e=this.injector.get(a.ExtensionsService),t=this.injector.get($,null)||{},o=this.injector.get(H,null)||{},r=this.injector.get(Q,null)||{},s=this.injector.get(J,null)||{},l=this.injector.get(K,null)||{},p=this.injector.get(n.ConfigStateService);return a.getObjectExtensionEntitiesFromStore(p,"Payment").pipe(i.map((function(e){return{}})),a.mapEntitiesToContributors(p,"Payment"),i.tap((function(n){a.mergeWithDefaultActions(e.entityActions,B,t),a.mergeWithDefaultActions(e.toolbarActions,z,o),a.mergeWithDefaultProps(e.entityProps,q,n.prop,r),a.mergeWithDefaultProps(e.createFormProps,W,n.createForm,s),a.mergeWithDefaultProps(e.editFormProps,X,n.editForm,l)})),i.mapTo(!0))},e}();Z.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:Z,deps:[{token:y.Injector}],target:y.ɵɵFactoryTarget.Injectable}),Z.ɵprov=y.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:Z}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:Z,decorators:[{type:t.Injectable}],ctorParameters:function(){return[{type:y.Injector}]}});var ee=[{path:"",redirectTo:"plans",pathMatch:"full"},{path:"",component:n.DynamicLayoutComponent,canActivate:[n.AuthGuard,n.PermissionGuard,Z],children:[{path:"plans",component:n.ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans",replaceableComponent:{key:"Payment.Plans",defaultComponent:D}}},{path:"plans/:planId",component:n.ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans.GatewayPlans",replaceableComponent:{key:"Payment.GatewayPlans",defaultComponent:C}}}]}],te=function(){};te.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:te,deps:[],target:y.ɵɵFactoryTarget.NgModule}),te.ɵmod=y.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:te,imports:[b.RouterModule]}),te.ɵinj=y.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:te,imports:[[o.RouterModule.forChild(ee)]]}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:te,decorators:[{type:t.NgModule,args:[{imports:[o.RouterModule.forChild(ee)]}]}]});var ne=function(){};ne.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ne,deps:[],target:y.ɵɵFactoryTarget.NgModule}),ne.ɵmod=y.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ne,declarations:[D],imports:[c.CommonModule,l.PageModule,n.CoreModule,a.UiExtensionsModule,r.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]}),ne.ɵinj=y.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ne,providers:[],imports:[[c.CommonModule,l.PageModule,n.CoreModule,a.UiExtensionsModule,r.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]]}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ne,decorators:[{type:t.NgModule,args:[{imports:[c.CommonModule,l.PageModule,n.CoreModule,a.UiExtensionsModule,r.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule],exports:[],declarations:[D],providers:[]}]}]});var oe=function(){};oe.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:oe,deps:[],target:y.ɵɵFactoryTarget.NgModule}),oe.ɵmod=y.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:oe,declarations:[C],imports:[c.CommonModule,l.PageModule,n.CoreModule,a.UiExtensionsModule,r.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]}),oe.ɵinj=y.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:oe,providers:[],imports:[[c.CommonModule,l.PageModule,n.CoreModule,a.UiExtensionsModule,r.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]]}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:oe,decorators:[{type:t.NgModule,args:[{imports:[c.CommonModule,l.PageModule,n.CoreModule,a.UiExtensionsModule,r.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule],exports:[],declarations:[C],providers:[]}]}]});var ae=function(){function e(){}return e.forChild=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:$,useValue:t.entityActionContributors},{provide:H,useValue:t.toolbarActionContributors},{provide:Q,useValue:t.entityPropContributors},{provide:J,useValue:t.createFormPropContributors},{provide:K,useValue:t.editFormPropContributors},Z]}},e.forLazy=function(t){return void 0===t&&(t={}),new n.LazyModuleFactory(e.forChild(t))},e}();ae.ɵfac=y.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ae,deps:[],target:y.ɵɵFactoryTarget.NgModule}),ae.ɵmod=y.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ae,imports:[te,ne,oe]}),ae.ɵinj=y.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ae,imports:[[te,ne,oe]]}),y.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:y,type:ae,decorators:[{type:t.NgModule,args:[{imports:[te,ne,oe]}]}]}),e.DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS=E,e.DEFAULT_GATEWAY_PLANS_ENTITY_PROPS=A,e.DEFAULT_PAYMENT_CREATE_FORM_PROPS=W,e.DEFAULT_PAYMENT_EDIT_FORM_PROPS=X,e.DEFAULT_PAYMENT_ENTITY_ACTIONS=B,e.DEFAULT_PAYMENT_ENTITY_PROPS=q,e.DEFAULT_PAYMENT_TOOLBAR_ACTIONS=z,e.DEFAULT_PLANS_CREATE_FORM_PROPS=U,e.DEFAULT_PLANS_EDIT_FORM_PROPS=k,e.DEFAULT_PLANS_ENTITY_ACTIONS=j,e.DEFAULT_PLANS_ENTITY_PROPS=L,e.DEFAULT_PLANS_TOOLBAR_ACTIONS=Y,e.GatewayPlansComponent=C,e.GatewayPlansModule=oe,e.PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS=J,e.PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS=K,e.PAYMENT_ENTITY_ACTION_CONTRIBUTORS=$,e.PAYMENT_ENTITY_PROP_CONTRIBUTORS=Q,e.PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS=H,e.PaymentAdminModule=ae,e.PaymentAdminRoutingModule=te,e.PaymentInitializer=Z,e.PaymentPlansComponent=D,e.PaymentPlansModule=ne,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@abp/ng.core"),require("@angular/router"),require("@abp/ng.theme.shared"),require("@abp/ng.theme.shared/extensions"),require("@volo/abp.ng.payment/proxy"),require("rxjs/operators"),require("@abp/ng.components/page"),require("@volo/abp.commercial.ng.ui"),require("@angular/common"),require("@angular/forms"),require("@ngx-validate/core"),require("@ng-bootstrap/ng-bootstrap"),require("rxjs")):"function"==typeof define&&define.amd?define("@volo/abp.ng.payment/admin",["exports","@angular/core","@abp/ng.core","@angular/router","@abp/ng.theme.shared","@abp/ng.theme.shared/extensions","@volo/abp.ng.payment/proxy","rxjs/operators","@abp/ng.components/page","@volo/abp.commercial.ng.ui","@angular/common","@angular/forms","@ngx-validate/core","@ng-bootstrap/ng-bootstrap","rxjs"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng.payment=e.volo.abp.ng.payment||{},e.volo.abp.ng.payment.admin={}),e.ng.core,e.i1,e.ng.router,e.i3,e.i6,e.volo.abp.ng.payment.proxy,e.rxjs.operators,e.i4,e.i5,e.ng.common,e.ng.forms,e.i10,e.i2$1,e.rxjs)}(this,(function(e,t,n,o,a,r,i,s,l,p,c,m,u,d,y){"use strict";function g(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var b=g(t),v=g(n),f=g(o),P=g(a),M=g(r),T=g(i),C=g(l),h=g(p),N=g(c),I=g(m),D=g(u),E=g(d),S=g(y),A=function(){function e(e,t,n,o,a){var r=this;this.planService=e,this.list=t,this.injector=n,this.confirmationService=o,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=n.get(i.PlanAdminService),this.data$=this.list.hookToQuery((function(e){return r.service.getGatewayPlans(r.planId,e)}))}return Object.defineProperty(e.prototype,"planId",{get:function(){return this.activatedRoute.snapshot.params.planId},enumerable:!1,configurable:!0}),e.prototype.onEdit=function(e){var t=this;this.planService.getGatewayPlan(this.planId,e).pipe(s.take(1)).subscribe((function(e){t.selected=e,t.openModal()}))},e.prototype.onDelete=function(e){var t=this;this.confirmationService.warn("Payment::GatewayPlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[e]}).subscribe((function(n){n===a.Confirmation.Status.confirm&&t.service.deleteGatewayPlan(t.planId,e).subscribe((function(){return t.list.get()}))}))},e.prototype.onAdd=function(){this.selected={},this.openModal()},e.prototype.openModal=function(){this.createForm(),this.isModalVisible=!0},e.prototype.save=function(){var e=this;this.form.valid&&(this.modalBusy=!0,(this.selected.gateway?this.service.updateGatewayPlan(this.planId,this.selected.gateway,this.form.value):this.service.createGatewayPlan(this.planId,this.form.value)).pipe(s.finalize((function(){return e.modalBusy=!1}))).subscribe((function(){e.list.get(),e.isModalVisible=!1})))},e.prototype.createForm=function(){var e=new r.FormPropData(this.injector,this.selected);this.form=r.generateFormFromProps(e)},e}();A.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:A,deps:[{token:T.PlanService},{token:v.ListService},{token:b.Injector},{token:P.ConfirmationService},{token:f.ActivatedRoute}],target:b.ɵɵFactoryTarget.Component}),A.ɵcmp=b.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:A,selector:"abp-gateway-plans",providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}],ngImport:b,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:C.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:h.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:M.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]},{type:P.ModalComponent,selector:"abp-modal",inputs:["visible","busy","options","suppressUnsavedChangesWarning"],outputs:["visibleChange","init","appear","disappear"]},{type:M.ExtensibleFormComponent,selector:"abp-extensible-form",inputs:["selectedRecord"],exportAs:["abpExtensibleForm"]},{type:P.ButtonComponent,selector:"abp-button",inputs:["buttonId","buttonClass","buttonType","iconClass","loading","disabled","attributes"],outputs:["click","focus","blur","abpClick","abpFocus","abpBlur"]}],directives:[{type:N.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:I.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:I.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:v.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:I.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:D.ValidationGroupDirective,selector:"[formGroup],[formGroupName]",exportAs:["validationGroup"]},{type:P.ModalCloseDirective,selector:"[abpClose]"}],pipes:{async:N.AsyncPipe,abpLocalization:v.LocalizationPipe},encapsulation:b.ViewEncapsulation.None}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:A,decorators:[{type:t.Component,args:[{selector:"abp-gateway-plans",templateUrl:"./gateway-plans.component.html",encapsulation:t.ViewEncapsulation.None,providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}]}]}],ctorParameters:function(){return[{type:T.PlanService},{type:v.ListService},{type:b.Injector},{type:P.ConfirmationService},{type:f.ActivatedRoute}]}});var F=function(){function e(e,t,n,o,a){this.list=e,this.injector=t,this.confirmationService=n,this.router=o,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=t.get(i.PlanAdminService),this.data$=this.list.hookToQuery(this.service.getList)}return e.prototype.onEdit=function(e){var t=this;this.service.get(e).pipe(s.take(1)).subscribe((function(e){t.selected=e,t.openModal()}))},e.prototype.goToGatewayPlans=function(e){this.router.navigate(["./",e],{relativeTo:this.activatedRoute})},e.prototype.onDelete=function(e,t){var n=this;this.confirmationService.warn("Payment::PlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[t]}).subscribe((function(t){t===a.Confirmation.Status.confirm&&n.service.delete(e).subscribe((function(){return n.list.get()}))}))},e.prototype.onAdd=function(){this.selected={},this.openModal()},e.prototype.openModal=function(){this.createForm(),this.isModalVisible=!0},e.prototype.save=function(){var e=this;this.form.valid&&(this.modalBusy=!0,(this.selected.id?this.service.update(this.selected.id,this.form.value):this.service.create(this.form.value)).pipe(s.finalize((function(){return e.modalBusy=!1}))).subscribe((function(){e.list.get(),e.isModalVisible=!1})))},e.prototype.createForm=function(){var e=new r.FormPropData(this.injector,this.selected);this.form=r.generateFormFromProps(e)},e}();F.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:F,deps:[{token:v.ListService},{token:b.Injector},{token:P.ConfirmationService},{token:f.Router},{token:f.ActivatedRoute}],target:b.ɵɵFactoryTarget.Component}),F.ɵcmp=b.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:F,selector:"abp-payment-plans",providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}],ngImport:b,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:C.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:h.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:M.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]},{type:P.ModalComponent,selector:"abp-modal",inputs:["visible","busy","options","suppressUnsavedChangesWarning"],outputs:["visibleChange","init","appear","disappear"]},{type:M.ExtensibleFormComponent,selector:"abp-extensible-form",inputs:["selectedRecord"],exportAs:["abpExtensibleForm"]},{type:P.ButtonComponent,selector:"abp-button",inputs:["buttonId","buttonClass","buttonType","iconClass","loading","disabled","attributes"],outputs:["click","focus","blur","abpClick","abpFocus","abpBlur"]}],directives:[{type:N.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:I.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:I.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:v.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:I.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:D.ValidationGroupDirective,selector:"[formGroup],[formGroupName]",exportAs:["validationGroup"]},{type:P.ModalCloseDirective,selector:"[abpClose]"}],pipes:{async:N.AsyncPipe,abpLocalization:v.LocalizationPipe},encapsulation:b.ViewEncapsulation.None}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:F,decorators:[{type:t.Component,args:[{selector:"abp-payment-plans",templateUrl:"./plans.component.html",encapsulation:t.ViewEncapsulation.None,providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}]}]}],ctorParameters:function(){return[{type:v.ListService},{type:b.Injector},{type:P.ConfirmationService},{type:f.Router},{type:f.ActivatedRoute}]}});var R=function(){function e(e,t,n){var o=this;this.route=e,this.service=t,this.list=n,this.data=[],this.breadCrumbItems=[{name:"Payment::Menu:PaymentManagement"},{name:"Payment::Menu:PaymentRequests",path:"/payment/requests"},{name:this.requestId},{name:"Payment::Products"}],n.hookToQuery((function(){return o.service.get(o.requestId).pipe(s.map((function(e){return e.products})))})).subscribe((function(e){return o.data=e}))}return Object.defineProperty(e.prototype,"requestId",{get:function(){return this.route.snapshot.params.requestId},enumerable:!1,configurable:!0}),e}();R.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:R,deps:[{token:f.ActivatedRoute},{token:T.PaymentRequestAdminService},{token:v.ListService}],target:b.ɵɵFactoryTarget.Component}),R.ɵcmp=b.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:R,selector:"abp-products",providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.Products"}],ngImport:b,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:C.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:C.PageBreadcrumbContainerComponent,selector:"abp-page-breadcrumb-container"},{type:P.BreadcrumbItemsComponent,selector:"abp-breadcrumb-items",inputs:["items"]},{type:M.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]}],pipes:{abpLocalization:v.LocalizationPipe}}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:R,decorators:[{type:t.Component,args:[{selector:"abp-products",templateUrl:"./products.component.html",providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.Products"}]}]}],ctorParameters:function(){return[{type:f.ActivatedRoute},{type:T.PaymentRequestAdminService},{type:v.ListService}]}});var x=function(){function e(){this.pageQueryChange=new t.EventEmitter,this.paymentTypes=i.paymentTypeOptions,this.states=i.paymentRequestStateOptions}return e.prototype.emit=function(){this.pageQueryChange.emit(this.pageQuery)},e}();x.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:x,deps:[],target:b.ɵɵFactoryTarget.Component}),x.ɵcmp=b.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:x,selector:"abp-payment-requests-search-form",inputs:{list:"list",pageQuery:"pageQuery"},outputs:{pageQueryChange:"pageQueryChange"},providers:[{provide:d.NgbDateAdapter,useClass:r.DateAdapter}],ngImport:b,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 \x3c!-- TODO: BS5 custom select class replace --\x3e\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 \x3c!-- TODO: BS5 custom select class replace --\x3e\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:I.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:I.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:I.NgForm,selector:"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",inputs:["ngFormOptions"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:E.NgbInputDatepicker,selector:"input[ngbDatepicker]",inputs:["disabled","autoClose","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","placement","restoreFocus","showWeekdays","showWeekNumbers","startDate","container","positionTarget"],outputs:["dateSelect","navigate","closed"],exportAs:["ngbDatepicker"]},{type:I.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:I.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:I.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:I.SelectControlValueAccessor,selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",inputs:["compareWith"]},{type:I.NgSelectOption,selector:"option",inputs:["ngValue","value"]},{type:I.ɵNgSelectMultipleOption,selector:"option",inputs:["ngValue","value"]},{type:N.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],pipes:{abpLocalization:v.LocalizationPipe}}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:x,decorators:[{type:t.Component,args:[{selector:"abp-payment-requests-search-form",templateUrl:"./requests-search-form.component.html",providers:[{provide:d.NgbDateAdapter,useClass:r.DateAdapter}]}]}],propDecorators:{list:[{type:t.Input}],pageQuery:[{type:t.Input}],pageQueryChange:[{type:t.Output}]}});var V=function(){function e(e,t,n,o){var a=this;this.list=e,this.paymentRequestAdminService=t,this.router=n,this.route=o,this.pageQuery={},this.data$=this.list.hookToQuery((function(e){return a.paymentRequestAdminService.getList(Object.assign(Object.assign({},e),a.pageQuery))}))}return e.prototype.goToProducts=function(e){this.router.navigate([e,"products"],{relativeTo:this.route})},e}();V.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:V,deps:[{token:v.ListService},{token:T.PaymentRequestAdminService},{token:f.Router},{token:f.ActivatedRoute}],target:b.ɵɵFactoryTarget.Component}),V.ɵcmp=b.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:V,selector:"abp-payment-requests",providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.Requests"}],ngImport:b,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:C.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:h.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:h.AdvancedEntityFiltersAboveSearchComponent,selector:"abp-advanced-entity-filters-above-search"},{type:x,selector:"abp-payment-requests-search-form",inputs:["list","pageQuery"],outputs:["pageQueryChange"]},{type:M.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]}],directives:[{type:N.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],pipes:{async:N.AsyncPipe,abpLocalization:v.LocalizationPipe}}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:V,decorators:[{type:t.Component,args:[{selector:"abp-payment-requests",templateUrl:"./requests.component.html",providers:[n.ListService,{provide:r.EXTENSIONS_IDENTIFIER,useValue:"Payment.Requests"}]}]}],ctorParameters:function(){return[{type:v.ListService},{type:T.PaymentRequestAdminService},{type:f.Router},{type:f.ActivatedRoute}]}});var O=r.EntityAction.createMany([{text:"Payment::Edit",action:function(e){e.getInjected(A).onEdit(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Update"},{text:"Payment::Delete",action:function(e){e.getInjected(A).onDelete(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Delete"}]),_=r.EntityProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",sortable:!0},{type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",sortable:!0}]),L={type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",id:"external-id",validators:function(){return[m.Validators.required]}},w=r.FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",options:function(e){return e.getInjected(i.GatewayService).getSubscriptionSupportedGateways().pipe(s.map((function(e){return e.map((function(e){return{key:e.displayName,value:e.name}}))})))},validators:function(){return[m.Validators.required]}},L]),j=r.FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",validators:function(){return[m.Validators.required]},disabled:function(){return!0}},L]),G=r.ToolbarAction.createMany([{text:"Payment::NewGatewayPlan",action:function(e){e.getInjected(A).onAdd()},permission:"Payment.Plans.GatewayPlans.Create",icon:"fa fa-plus"}]),k=r.EntityAction.createMany([{text:"Payment::GatewayPlans",action:function(e){e.getInjected(F).goToGatewayPlans(e.record.id)},permission:"Payment.Plans.GatewayPlans"},{text:"Payment::Edit",action:function(e){e.getInjected(F).onEdit(e.record.id)},permission:"Payment.Plans.Update"},{text:"Payment::Delete",action:function(e){e.getInjected(F).onDelete(e.record.id,e.record.name)},permission:"Payment.Plans.Delete"}]),q=r.EntityProp.createMany([{type:"string",name:"name",displayName:"Payment::DisplayName:Name",sortable:!0}]),U=r.FormProp.createMany([{type:"string",name:"name",displayName:"Payment::Name",id:"payment-name",validators:function(){return[m.Validators.required]}}]),z=U,B=r.ToolbarAction.createMany([{text:"Payment::NewPlan",action:function(e){e.getInjected(F).onAdd()},permission:"Payment.Plans.Create",icon:"fa fa-plus"}]),Y=function(e){this.value$=e};Y.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:Y,deps:[{token:r.PROP_DATA_STREAM}],target:b.ɵɵFactoryTarget.Component}),Y.ɵcmp=b.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:Y,selector:"abp-subscription-tooltip",ngImport:b,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:N.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:E.NgbTooltip,selector:"[ngbTooltip]",inputs:["autoClose","placement","triggers","container","disableTooltip","tooltipClass","openDelay","closeDelay","ngbTooltip"],outputs:["shown","hidden"],exportAs:["ngbTooltip"]}],pipes:{async:N.AsyncPipe,abpLocalization:v.LocalizationPipe}}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:Y,decorators:[{type:t.Component,args:[{selector:"abp-subscription-tooltip",templateUrl:"./subscription-tooltip.component.html"}]}],ctorParameters:function(){return[{type:S.Observable,decorators:[{type:t.Inject,args:[r.PROP_DATA_STREAM]}]}]}});var Q,W,$,X,H,J=function(e,t){return y.of({isSubscription:e,defaultValue:t})},K=r.EntityProp.createMany([{type:"string",name:"code",displayName:"Payment::DisplayName:Code",sortable:!1},{type:"string",name:"name",displayName:"Payment::DisplayName:Name"},{type:"number",name:"count",displayName:"Payment::DisplayName:Count"},{type:"number",name:"unitPrice",displayName:"Payment::DisplayName:UnitPrice",component:Y,valueResolver:function(e){return J(e.record.paymentType===i.PaymentType.Subscription,e.record.unitPrice)}},{type:"number",name:"totalPrice",displayName:"Payment::DisplayName:TotalPrice",component:Y,valueResolver:function(e){return J(e.record.paymentType===i.PaymentType.Subscription,e.record.totalPrice)}},{type:"enum",name:"paymentType",displayName:"Payment::DisplayName:PaymentType",enumList:i.paymentTypeOptions}]),Z=r.EntityAction.createMany([{text:"Payment::Products",action:function(e){e.getInjected(V).goToProducts(e.record.id)},permission:"Payment.PaymentRequests"}]),ee=r.EntityProp.createMany([{type:"dateTime",name:"creationTime",displayName:"Payment::DisplayName:CreationTime",sortable:!0},{type:"number",name:"totalPrice",displayName:"Payment::DisplayName:TotalPrice",sortable:!0,component:Y,valueResolver:function(e){return J(!!e.record.externalSubscriptionId,e.record.totalPrice)}},{type:"string",name:"currency",displayName:"Payment::DisplayName:Currency"},{type:"enum",name:"state",displayName:"Payment::DisplayName:State",sortable:!0,enumList:i.paymentRequestStateOptions},{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",sortable:!0},{type:"string",name:"externalSubscriptionId",displayName:"Payment::DisplayName:ExternalSubscriptionId"}]),te=((Q={})["Payment.Plans"]=k,Q["Payment.GatewayPlans"]=O,Q["Payment.Requests"]=Z,Q),ne=((W={})["Payment.Plans"]=B,W["Payment.GatewayPlans"]=G,W),oe=(($={})["Payment.Plans"]=q,$["Payment.GatewayPlans"]=_,$["Payment.Products"]=K,$["Payment.Requests"]=ee,$),ae=((X={})["Payment.Plans"]=U,X["Payment.GatewayPlans"]=w,X),re=((H={})["Payment.Plans"]=z,H["Payment.GatewayPlans"]=j,H),ie=new t.InjectionToken("PAYMENT_ENTITY_ACTION_CONTRIBUTORS"),se=new t.InjectionToken("PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS"),le=new t.InjectionToken("PAYMENT_ENTITY_PROP_CONTRIBUTORS"),pe=new t.InjectionToken("PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS"),ce=new t.InjectionToken("PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS"),me=function(){function e(e){this.injector=e}return e.prototype.canActivate=function(){var e=this.injector.get(r.ExtensionsService),t=this.injector.get(ie,null)||{},o=this.injector.get(se,null)||{},a=this.injector.get(le,null)||{},i=this.injector.get(pe,null)||{},l=this.injector.get(ce,null)||{},p=this.injector.get(n.ConfigStateService);return r.getObjectExtensionEntitiesFromStore(p,"Payment").pipe(s.map((function(e){return{}})),r.mapEntitiesToContributors(p,"Payment"),s.tap((function(n){r.mergeWithDefaultActions(e.entityActions,te,t),r.mergeWithDefaultActions(e.toolbarActions,ne,o),r.mergeWithDefaultProps(e.entityProps,oe,n.prop,a),r.mergeWithDefaultProps(e.createFormProps,ae,n.createForm,i),r.mergeWithDefaultProps(e.editFormProps,re,n.editForm,l)})),s.mapTo(!0))},e}();me.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:me,deps:[{token:b.Injector}],target:b.ɵɵFactoryTarget.Injectable}),me.ɵprov=b.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:me}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:me,decorators:[{type:t.Injectable}],ctorParameters:function(){return[{type:b.Injector}]}});var ue=[{path:"",redirectTo:"plans",pathMatch:"full"},{path:"",component:n.RouterOutletComponent,canActivate:[n.AuthGuard,n.PermissionGuard,me],children:[{path:"plans",component:n.ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans",replaceableComponent:{key:"Payment.Plans",defaultComponent:F}}},{path:"plans/:planId",component:n.ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans.GatewayPlans",replaceableComponent:{key:"Payment.GatewayPlans",defaultComponent:A}}},{path:"requests",component:n.ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.PaymentRequests",replaceableComponent:{key:"Payment.Requests",defaultComponent:V}}},{path:"requests/:requestId/products",component:n.ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.PaymentRequests",replaceableComponent:{key:"Payment.Products",defaultComponent:R}}}]}],de=function(){};de.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:de,deps:[],target:b.ɵɵFactoryTarget.NgModule}),de.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:de,imports:[f.RouterModule]}),de.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:de,imports:[[o.RouterModule.forChild(ue)]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:de,decorators:[{type:t.NgModule,args:[{imports:[o.RouterModule.forChild(ue)]}]}]});var ye=function(){};ye.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ye,deps:[],target:b.ɵɵFactoryTarget.NgModule}),ye.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ye,declarations:[F],imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]}),ye.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ye,providers:[],imports:[[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ye,decorators:[{type:t.NgModule,args:[{imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule],exports:[],declarations:[F],providers:[]}]}]});var ge=function(){};ge.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ge,deps:[],target:b.ɵɵFactoryTarget.NgModule}),ge.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ge,declarations:[A],imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]}),ge.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ge,providers:[],imports:[[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ge,decorators:[{type:t.NgModule,args:[{imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,u.NgxValidateCoreModule,p.AdvancedEntityFiltersModule],exports:[],declarations:[A],providers:[]}]}]});var be=function(){};be.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:be,deps:[],target:b.ɵɵFactoryTarget.NgModule}),be.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:be,declarations:[Y],imports:[c.CommonModule,n.CoreModule,d.NgbTooltipModule],exports:[Y]}),be.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:be,imports:[[c.CommonModule,n.CoreModule,d.NgbTooltipModule]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:be,decorators:[{type:t.NgModule,args:[{declarations:[Y],exports:[Y],imports:[c.CommonModule,n.CoreModule,d.NgbTooltipModule]}]}]});var ve=function(){};ve.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ve,deps:[],target:b.ɵɵFactoryTarget.NgModule}),ve.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ve,declarations:[V,x],imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,p.AdvancedEntityFiltersModule,d.NgbDatepickerModule,be]}),ve.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ve,imports:[[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,p.AdvancedEntityFiltersModule,d.NgbDatepickerModule,be]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:ve,decorators:[{type:t.NgModule,args:[{declarations:[V,x],imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,m.ReactiveFormsModule,p.AdvancedEntityFiltersModule,d.NgbDatepickerModule,be]}]}]});var fe=function(){};fe.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:fe,deps:[],target:b.ɵɵFactoryTarget.NgModule}),fe.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:fe,declarations:[R],imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,be]}),fe.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:fe,imports:[[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,be]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:fe,decorators:[{type:t.NgModule,args:[{declarations:[R],imports:[c.CommonModule,l.PageModule,n.CoreModule,r.UiExtensionsModule,a.ThemeSharedModule,be]}]}]});var Pe=function(){function e(){}return e.forChild=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:ie,useValue:t.entityActionContributors},{provide:se,useValue:t.toolbarActionContributors},{provide:le,useValue:t.entityPropContributors},{provide:pe,useValue:t.createFormPropContributors},{provide:ce,useValue:t.editFormPropContributors},me]}},e.forLazy=function(t){return void 0===t&&(t={}),new n.LazyModuleFactory(e.forChild(t))},e}();Pe.ɵfac=b.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:Pe,deps:[],target:b.ɵɵFactoryTarget.NgModule}),Pe.ɵmod=b.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:Pe,imports:[de,ye,ge,ve,fe]}),Pe.ɵinj=b.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:Pe,imports:[[de,ye,ge,ve,fe]]}),b.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:b,type:Pe,decorators:[{type:t.NgModule,args:[{imports:[de,ye,ge,ve,fe],declarations:[]}]}]}),e.DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS=O,e.DEFAULT_GATEWAY_PLANS_ENTITY_PROPS=_,e.DEFAULT_PAYMENT_CREATE_FORM_PROPS=ae,e.DEFAULT_PAYMENT_EDIT_FORM_PROPS=re,e.DEFAULT_PAYMENT_ENTITY_ACTIONS=te,e.DEFAULT_PAYMENT_ENTITY_PROPS=oe,e.DEFAULT_PAYMENT_TOOLBAR_ACTIONS=ne,e.DEFAULT_PLANS_CREATE_FORM_PROPS=U,e.DEFAULT_PLANS_EDIT_FORM_PROPS=z,e.DEFAULT_PLANS_ENTITY_ACTIONS=k,e.DEFAULT_PLANS_ENTITY_PROPS=q,e.DEFAULT_PLANS_TOOLBAR_ACTIONS=B,e.GatewayPlansComponent=A,e.GatewayPlansModule=ge,e.PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS=pe,e.PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS=ce,e.PAYMENT_ENTITY_ACTION_CONTRIBUTORS=ie,e.PAYMENT_ENTITY_PROP_CONTRIBUTORS=le,e.PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS=se,e.PaymentAdminModule=Pe,e.PaymentAdminRoutingModule=de,e.PaymentInitializer=me,e.PaymentPlansComponent=F,e.PaymentPlansModule=ye,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@abp/ng.core")):"function"==typeof define&&define.amd?define("@volo/abp.ng.payment/proxy",["exports","@angular/core","@abp/ng.core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng.payment=e.volo.abp.ng.payment||{},e.volo.abp.ng.payment.proxy={}),e.ng.core,e.i1)}(this,(function(e,t,a){"use strict";function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@abp/ng.core")):"function"==typeof define&&define.amd?define("@volo/abp.ng.payment/proxy",["exports","@angular/core","@abp/ng.core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng.payment=e.volo.abp.ng.payment||{},e.volo.abp.ng.payment.proxy={}),e.ng.core,e.i1)}(this,(function(e,t,a){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var r=n(t),i=n(a),o=function(e){var t=this;this.restService=e,this.apiName="AbpPaymentAdmin",this.create=function(e){return t.restService.request({method:"POST",url:"/api/payment-admin/plans",body:e},{apiName:t.apiName})},this.createGatewayPlan=function(e,a){return t.restService.request({method:"POST",url:"/api/payment-admin/plans/"+e+"/external-plans",body:a},{apiName:t.apiName})},this.delete=function(e){return t.restService.request({method:"DELETE",url:"/api/payment-admin/plans",params:{id:e}},{apiName:t.apiName})},this.deleteGatewayPlan=function(e,a){return t.restService.request({method:"DELETE",url:"/api/payment-admin/plans/"+e+"/external-plans/"+a},{apiName:t.apiName})},this.get=function(e){return t.restService.request({method:"GET",url:"/api/payment-admin/plans/"+e},{apiName:t.apiName})},this.getGatewayPlans=function(e,a){return t.restService.request({method:"GET",url:"/api/payment-admin/plans/"+e+"/external-plans",params:{filter:a.filter,sorting:a.sorting,skipCount:a.skipCount,maxResultCount:a.maxResultCount}},{apiName:t.apiName})},this.getList=function(e){return t.restService.request({method:"GET",url:"/api/payment-admin/plans",params:{filter:e.filter,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:t.apiName})},this.update=function(e,a){return t.restService.request({method:"PUT",url:"/api/payment-admin/plans/"+e,body:a},{apiName:t.apiName})},this.updateGatewayPlan=function(e,a,n){return t.restService.request({method:"PUT",url:"/api/payment-admin/plans/"+e+"/external-plans/"+a,body:n},{apiName:t.apiName})}};o.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:o,deps:[{token:i.RestService}],target:r.ɵɵFactoryTarget.Injectable}),o.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:o,providedIn:"root"}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:o,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i.RestService}]}});var p=function(e){var t=this;this.restService=e,this.apiName="AbpPaymentAdmin",this.get=function(e){return t.restService.request({method:"GET",url:"/api/payment-admin/payment-requests/"+e},{apiName:t.apiName})},this.getList=function(e){return t.restService.request({method:"GET",url:"/api/payment-admin/payment-requests",params:{filter:e.filter,creationDateMax:e.creationDateMax,creationDateMin:e.creationDateMin,paymentType:e.paymentType,status:e.status,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:t.apiName})}};p.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:p,deps:[{token:i.RestService}],target:r.ɵɵFactoryTarget.Injectable}),p.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:p,providedIn:"root"}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:p,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i.RestService}]}});var s=function(e){var t=this;this.restService=e,this.apiName="AbpPaymentAdmin",this.getGatewayConfiguration=function(){return t.restService.request({method:"GET",url:"/api/payment/gateways"},{apiName:t.apiName})},this.getSubscriptionSupportedGateways=function(){return t.restService.request({method:"GET",url:"/api/payment/gateways/subscription-supported"},{apiName:t.apiName})}};s.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:s,deps:[{token:i.RestService}],target:r.ɵɵFactoryTarget.Injectable}),s.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:s,providedIn:"root"}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:s,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i.RestService}]}});var m,u=function(e){var t=this;this.restService=e,this.apiName="AbpPaymentAdmin",this.getGatewayPlan=function(e,a){return t.restService.request({method:"GET",url:"/api/payment/plans/"+e+"/"+a},{apiName:t.apiName})},this.getPlanList=function(){return t.restService.request({method:"GET",url:"/api/payment/plans"},{apiName:t.apiName})}};u.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:u,deps:[{token:i.RestService}],target:r.ɵɵFactoryTarget.Injectable}),u.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:u,providedIn:"root"}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:r,type:u,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i.RestService}]}}),e.PaymentRequestState=void 0,(m=e.PaymentRequestState||(e.PaymentRequestState={}))[m.Waiting=0]="Waiting",m[m.Completed=1]="Completed",m[m.Failed=2]="Failed",m[m.Refunded=3]="Refunded";var c,l=a.mapEnumToOptions(e.PaymentRequestState);e.PaymentType=void 0,(c=e.PaymentType||(e.PaymentType={}))[c.OneTime=0]="OneTime",c[c.Subscription=1]="Subscription";var y=a.mapEnumToOptions(e.PaymentType);e.GatewayService=s,e.PaymentRequestAdminService=p,e.PlanAdminService=o,e.PlanService=u,e.paymentRequestStateOptions=l,e.paymentTypeOptions=y,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ListService}from"@abp/ng.core";import{Confirmation,ConfirmationService}from"@abp/ng.theme.shared";import{EXTENSIONS_IDENTIFIER,FormPropData,generateFormFromProps}from"@abp/ng.theme.shared/extensions";import{Component,Injector,ViewEncapsulation}from"@angular/core";import{ActivatedRoute}from"@angular/router";import{PlanAdminService,PlanService}from"@volo/abp.ng.payment/proxy";import{finalize,take}from"rxjs/operators";import*as i0 from"@angular/core";import*as i1 from"@volo/abp.ng.payment/proxy";import*as i2 from"@abp/ng.core";import*as i3 from"@abp/ng.theme.shared";import*as i4 from"@angular/router";import*as i5 from"@abp/ng.components/page";import*as i6 from"@volo/abp.commercial.ng.ui";import*as i7 from"@abp/ng.theme.shared/extensions";import*as i8 from"@angular/common";import*as i9 from"@angular/forms";import*as i10 from"@ngx-validate/core";export class GatewayPlansComponent{constructor(e,t,a,o,i){this.planService=e,this.list=t,this.injector=a,this.confirmationService=o,this.activatedRoute=i,this.isModalVisible=!1,this.modalBusy=!1,this.service=a.get(PlanAdminService),this.data$=this.list.hookToQuery(e=>this.service.getGatewayPlans(this.planId,e))}get planId(){return this.activatedRoute.snapshot.params.planId}onEdit(e){this.planService.getGatewayPlan(this.planId,e).pipe(take(1)).subscribe(e=>{this.selected=e,this.openModal()})}onDelete(e){this.confirmationService.warn("Payment::GatewayPlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[e]}).subscribe(t=>{t===Confirmation.Status.confirm&&this.service.deleteGatewayPlan(this.planId,e).subscribe(()=>this.list.get())})}onAdd(){this.selected={},this.openModal()}openModal(){this.createForm(),this.isModalVisible=!0}save(){if(!this.form.valid)return;let e;this.modalBusy=!0,e=this.selected.gateway?this.service.updateGatewayPlan(this.planId,this.selected.gateway,this.form.value):this.service.createGatewayPlan(this.planId,this.form.value),e.pipe(finalize(()=>this.modalBusy=!1)).subscribe(()=>{this.list.get(),this.isModalVisible=!1})}createForm(){const e=new FormPropData(this.injector,this.selected);this.form=generateFormFromProps(e)}}GatewayPlansComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{ListService}from"@abp/ng.core";import{Confirmation,ConfirmationService}from"@abp/ng.theme.shared";import{EXTENSIONS_IDENTIFIER,FormPropData,generateFormFromProps}from"@abp/ng.theme.shared/extensions";import{Component,Injector,ViewEncapsulation}from"@angular/core";import{ActivatedRoute}from"@angular/router";import{PlanAdminService,PlanService}from"@volo/abp.ng.payment/proxy";import{finalize,take}from"rxjs/operators";import*as i0 from"@angular/core";import*as i1 from"@volo/abp.ng.payment/proxy";import*as i2 from"@abp/ng.core";import*as i3 from"@abp/ng.theme.shared";import*as i4 from"@angular/router";import*as i5 from"@abp/ng.components/page";import*as i6 from"@volo/abp.commercial.ng.ui";import*as i7 from"@abp/ng.theme.shared/extensions";import*as i8 from"@angular/common";import*as i9 from"@angular/forms";import*as i10 from"@ngx-validate/core";export class GatewayPlansComponent{constructor(e,t,a,o,i){this.planService=e,this.list=t,this.injector=a,this.confirmationService=o,this.activatedRoute=i,this.isModalVisible=!1,this.modalBusy=!1,this.service=a.get(PlanAdminService),this.data$=this.list.hookToQuery(e=>this.service.getGatewayPlans(this.planId,e))}get planId(){return this.activatedRoute.snapshot.params.planId}onEdit(e){this.planService.getGatewayPlan(this.planId,e).pipe(take(1)).subscribe(e=>{this.selected=e,this.openModal()})}onDelete(e){this.confirmationService.warn("Payment::GatewayPlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[e]}).subscribe(t=>{t===Confirmation.Status.confirm&&this.service.deleteGatewayPlan(this.planId,e).subscribe(()=>this.list.get())})}onAdd(){this.selected={},this.openModal()}openModal(){this.createForm(),this.isModalVisible=!0}save(){if(!this.form.valid)return;let e;this.modalBusy=!0,e=this.selected.gateway?this.service.updateGatewayPlan(this.planId,this.selected.gateway,this.form.value):this.service.createGatewayPlan(this.planId,this.form.value),e.pipe(finalize(()=>this.modalBusy=!1)).subscribe(()=>{this.list.get(),this.isModalVisible=!1})}createForm(){const e=new FormPropData(this.injector,this.selected);this.form=generateFormFromProps(e)}}GatewayPlansComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayPlansComponent,deps:[{token:i1.PlanService},{token:i2.ListService},{token:i0.Injector},{token:i3.ConfirmationService},{token:i4.ActivatedRoute}],target:i0.ɵɵFactoryTarget.Component}),GatewayPlansComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.0",type:GatewayPlansComponent,selector:"abp-gateway-plans",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}],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:i5.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:i6.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:i7.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:i7.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:i9.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:i9.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:i2.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:i9.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:i2.LocalizationPipe},encapsulation:i0.ViewEncapsulation.None}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayPlansComponent,decorators:[{type:Component,args:[{selector:"abp-gateway-plans",templateUrl:"./gateway-plans.component.html",encapsulation:ViewEncapsulation.None,providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}]}]}],ctorParameters:function(){return[{type:i1.PlanService},{type:i2.ListService},{type:i0.Injector},{type:i3.ConfirmationService},{type:i4.ActivatedRoute}]}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PageModule}from"@abp/ng.components/page";import{CoreModule}from"@abp/ng.core";import{ThemeSharedModule}from"@abp/ng.theme.shared";import{UiExtensionsModule}from"@abp/ng.theme.shared/extensions";import{CommonModule}from"@angular/common";import{NgModule}from"@angular/core";import{ReactiveFormsModule}from"@angular/forms";import{NgxValidateCoreModule}from"@ngx-validate/core";import{AdvancedEntityFiltersModule}from"@volo/abp.commercial.ng.ui";import{GatewayPlansComponent}from"./gateway-plans.component";import*as i0 from"@angular/core";export class GatewayPlansModule{}GatewayPlansModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.
|
|
1
|
+
import{PageModule}from"@abp/ng.components/page";import{CoreModule}from"@abp/ng.core";import{ThemeSharedModule}from"@abp/ng.theme.shared";import{UiExtensionsModule}from"@abp/ng.theme.shared/extensions";import{CommonModule}from"@angular/common";import{NgModule}from"@angular/core";import{ReactiveFormsModule}from"@angular/forms";import{NgxValidateCoreModule}from"@ngx-validate/core";import{AdvancedEntityFiltersModule}from"@volo/abp.commercial.ng.ui";import{GatewayPlansComponent}from"./gateway-plans.component";import*as i0 from"@angular/core";export class GatewayPlansModule{}GatewayPlansModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayPlansModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),GatewayPlansModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayPlansModule,declarations:[GatewayPlansComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]}),GatewayPlansModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayPlansModule,providers:[],imports:[[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.0",ngImport:i0,type:GatewayPlansModule,decorators:[{type:NgModule,args:[{imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule],exports:[],declarations:[GatewayPlansComponent],providers:[]}]}]});
|