@volo/abp.ng.payment 4.4.1 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -24
- package/admin/components/gateway-plans/gateway-plans.component.d.ts +4 -1
- package/admin/components/gateway-plans/gateway-plans.module.d.ts +13 -0
- package/admin/components/plans/plans.component.d.ts +4 -1
- package/admin/components/plans/plans.module.d.ts +13 -0
- package/admin/config/package.json +0 -1
- package/admin/config/payment-admin-config.module.d.ts +4 -0
- package/admin/config/providers/route.provider.d.ts +1 -1
- package/admin/config/volo-abp.ng.payment-admin-config.d.ts +1 -1
- package/admin/defaults/default-gateway-plans-entity-actions.d.ts +1 -1
- package/admin/defaults/default-gateway-plans-entity-props.d.ts +1 -1
- package/admin/defaults/default-gateway-plans-form-props.d.ts +1 -1
- package/admin/defaults/default-gateway-plans-toolbar-actions.d.ts +1 -1
- package/admin/defaults/default-plans-entity-actions.d.ts +1 -1
- package/admin/defaults/default-plans-entity-props.d.ts +1 -1
- package/admin/defaults/default-plans-form-props.d.ts +1 -1
- package/admin/defaults/default-plans-toolbar-actions.d.ts +1 -1
- package/admin/models/config-options.d.ts +1 -1
- package/admin/package.json +0 -1
- package/admin/payment-admin-routing.module.d.ts +5 -0
- package/admin/payment-admin.module.d.ts +7 -0
- package/admin/payment.initializer.d.ts +3 -0
- package/admin/tokens/extensions.token.d.ts +4 -5
- package/admin/volo-abp.ng.payment-admin.d.ts +1 -6
- 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 -0
- package/bundles/volo-abp.ng.payment.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/config/payment-admin-config.module.js +1 -1
- package/esm2015/admin/config/volo-abp.ng.payment-admin-config.js +1 -1
- package/esm2015/admin/defaults/default-gateway-plans-entity-actions.js +1 -1
- package/esm2015/admin/defaults/default-gateway-plans-form-props.js +1 -1
- package/esm2015/admin/defaults/default-gateway-plans-toolbar-actions.js +1 -1
- package/esm2015/admin/defaults/default-plans-entity-actions.js +1 -1
- package/esm2015/admin/defaults/default-plans-form-props.js +1 -1
- package/esm2015/admin/defaults/default-plans-toolbar-actions.js +1 -1
- 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/volo-abp.ng.payment-admin.js +1 -1
- package/esm2015/{lib → proxy/lib}/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/admin/plans/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/admin/plans/models.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/admin/plans/plan-admin.service.js +1 -1
- package/esm2015/proxy/lib/proxy/gateways/gateway.service.js +1 -0
- package/esm2015/{lib → proxy/lib}/proxy/gateways/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/gateways/models.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/plans/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/plans/models.js +0 -0
- package/esm2015/proxy/lib/proxy/plans/plan.service.js +1 -0
- package/esm2015/proxy/public-api.js +1 -0
- package/esm2015/proxy/volo-abp.ng.payment-proxy.js +1 -0
- package/esm2015/public-api.js +1 -1
- package/fesm2015/volo-abp.ng.payment-admin-config.js +9 -4
- package/fesm2015/volo-abp.ng.payment-admin.js +216 -165
- package/fesm2015/volo-abp.ng.payment-proxy.js +114 -0
- package/fesm2015/volo-abp.ng.payment.js +0 -114
- package/package.json +6 -7
- package/{lib → proxy/lib}/index.d.ts +0 -0
- package/{lib → proxy/lib}/proxy/admin/plans/index.d.ts +0 -0
- package/proxy/lib/proxy/admin/plans/models.d.ts +20 -0
- package/{lib → proxy/lib}/proxy/admin/plans/plan-admin.service.d.ts +6 -3
- package/{lib → proxy/lib}/proxy/gateways/gateway.service.d.ts +3 -0
- package/{lib → proxy/lib}/proxy/gateways/index.d.ts +0 -0
- package/{lib → proxy/lib}/proxy/gateways/models.d.ts +0 -0
- package/{lib → proxy/lib}/proxy/plans/index.d.ts +0 -0
- package/proxy/lib/proxy/plans/models.d.ts +10 -0
- package/{lib → proxy/lib}/proxy/plans/plan.service.d.ts +3 -0
- package/proxy/package.json +10 -0
- package/proxy/public-api.d.ts +1 -0
- package/proxy/volo-abp.ng.payment-proxy.d.ts +5 -0
- package/public-api.d.ts +1 -1
- package/volo-abp.ng.payment.d.ts +1 -0
- package/admin/config/volo-abp.ng.payment-admin-config.metadata.json +0 -1
- package/admin/volo-abp.ng.payment-admin.metadata.json +0 -1
- package/bundles/volo-abp.ng.payment-admin-config.umd.min.js +0 -1
- package/bundles/volo-abp.ng.payment-admin.umd.min.js +0 -1
- package/bundles/volo-abp.ng.payment.umd.min.js +0 -1
- package/esm2015/lib/proxy/gateways/gateway.service.js +0 -1
- package/esm2015/lib/proxy/plans/plan.service.js +0 -1
- package/lib/proxy/admin/plans/models.d.ts +0 -18
- package/lib/proxy/plans/models.d.ts +0 -10
- package/volo-abp.ng.payment.metadata.json +0 -1
package/README.md
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.1.2.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project payment` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project payment`.
|
|
8
|
-
> Note: Don't forget to add `--project payment` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build payment` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build payment`, go to the dist folder `cd dist/payment` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test payment` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# @volo/abp.ng.payment
|
|
@@ -3,8 +3,9 @@ import { ConfirmationService } from '@abp/ng.theme.shared';
|
|
|
3
3
|
import { Injector } from '@angular/core';
|
|
4
4
|
import { FormGroup } from '@angular/forms';
|
|
5
5
|
import { ActivatedRoute } from '@angular/router';
|
|
6
|
-
import { GatewayPlanDto, PlanAdminService, PlanService } from '@volo/abp.ng.payment';
|
|
6
|
+
import { GatewayPlanDto, PlanAdminService, PlanService } from '@volo/abp.ng.payment/proxy';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class GatewayPlansComponent {
|
|
9
10
|
planService: PlanService;
|
|
10
11
|
list: ListService<PagedAndSortedResultRequestDto>;
|
|
@@ -25,4 +26,6 @@ export declare class GatewayPlansComponent {
|
|
|
25
26
|
openModal(): void;
|
|
26
27
|
save(): void;
|
|
27
28
|
private createForm;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GatewayPlansComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GatewayPlansComponent, "abp-gateway-plans", never, {}, {}, never, never>;
|
|
28
31
|
}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./gateway-plans.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 "@angular/forms";
|
|
9
|
+
import * as i8 from "@ngx-validate/core";
|
|
10
|
+
import * as i9 from "@volo/abp.commercial.ng.ui";
|
|
1
11
|
export declare class GatewayPlansModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GatewayPlansModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GatewayPlansModule, [typeof i1.GatewayPlansComponent], [typeof i2.CommonModule, typeof i3.PageModule, typeof i4.CoreModule, typeof i5.UiExtensionsModule, typeof i6.ThemeSharedModule, typeof i7.ReactiveFormsModule, typeof i8.NgxValidateCoreModule, typeof i9.AdvancedEntityFiltersModule], never>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GatewayPlansModule>;
|
|
2
15
|
}
|
|
@@ -3,8 +3,9 @@ import { ConfirmationService } from '@abp/ng.theme.shared';
|
|
|
3
3
|
import { Injector } from '@angular/core';
|
|
4
4
|
import { FormGroup } from '@angular/forms';
|
|
5
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
-
import { PlanAdminService, PlanDto } from '@volo/abp.ng.payment';
|
|
6
|
+
import { PlanAdminService, PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class PaymentPlansComponent {
|
|
9
10
|
list: ListService<PagedAndSortedResultRequestDto>;
|
|
10
11
|
private injector;
|
|
@@ -25,4 +26,6 @@ export declare class PaymentPlansComponent {
|
|
|
25
26
|
openModal(): void;
|
|
26
27
|
save(): void;
|
|
27
28
|
private createForm;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentPlansComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaymentPlansComponent, "abp-payment-plans", never, {}, {}, never, never>;
|
|
28
31
|
}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./plans.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 "@angular/forms";
|
|
9
|
+
import * as i8 from "@ngx-validate/core";
|
|
10
|
+
import * as i9 from "@volo/abp.commercial.ng.ui";
|
|
1
11
|
export declare class PaymentPlansModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentPlansModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentPlansModule, [typeof i1.PaymentPlansComponent], [typeof i2.CommonModule, typeof i3.PageModule, typeof i4.CoreModule, typeof i5.UiExtensionsModule, typeof i6.ThemeSharedModule, typeof i7.ReactiveFormsModule, typeof i8.NgxValidateCoreModule, typeof i9.AdvancedEntityFiltersModule], never>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentPlansModule>;
|
|
2
15
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"esm2015": "../../esm2015/admin/config/volo-abp.ng.payment-admin-config.js",
|
|
6
6
|
"fesm2015": "../../fesm2015/volo-abp.ng.payment-admin-config.js",
|
|
7
7
|
"typings": "volo-abp.ng.payment-admin-config.d.ts",
|
|
8
|
-
"metadata": "volo-abp.ng.payment-admin-config.metadata.json",
|
|
9
8
|
"sideEffects": false,
|
|
10
9
|
"name": "@volo/abp.ng.payment/admin/config"
|
|
11
10
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class PaymentAdminConfigModule {
|
|
3
4
|
static forRoot(): ModuleWithProviders<PaymentAdminConfigModule>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentAdminConfigModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentAdminConfigModule, never, never, never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentAdminConfigModule>;
|
|
4
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RoutesService } from '@abp/ng.core';
|
|
2
2
|
export declare const PAYMENT_ROUTE_PROVIDERS: {
|
|
3
|
-
provide: import("@angular/core").InjectionToken<(() => void)[]>;
|
|
3
|
+
provide: import("@angular/core").InjectionToken<readonly (() => void | import("rxjs").Observable<unknown> | Promise<unknown>)[]>;
|
|
4
4
|
useFactory: typeof configureRoutes;
|
|
5
5
|
deps: (typeof RoutesService)[];
|
|
6
6
|
multi: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EntityAction } from '@abp/ng.theme.shared/extensions';
|
|
2
|
-
import { GatewayPlanDto } from '@volo/abp.ng.payment';
|
|
2
|
+
import { GatewayPlanDto } from '@volo/abp.ng.payment/proxy';
|
|
3
3
|
export declare const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS: EntityAction<GatewayPlanDto>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormProp } from '@abp/ng.theme.shared/extensions';
|
|
2
|
-
import { GatewayDto } from '@volo/abp.ng.payment';
|
|
2
|
+
import { GatewayDto } from '@volo/abp.ng.payment/proxy';
|
|
3
3
|
export declare const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS: FormProp<GatewayDto>[];
|
|
4
4
|
export declare const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS: FormProp<GatewayDto>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormProp } from '@abp/ng.theme.shared/extensions';
|
|
2
|
-
import { PlanDto } from '@volo/abp.ng.payment';
|
|
2
|
+
import { PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
3
3
|
export declare const DEFAULT_PLANS_CREATE_FORM_PROPS: FormProp<PlanDto>[];
|
|
4
4
|
export declare const DEFAULT_PLANS_EDIT_FORM_PROPS: FormProp<PlanDto>[];
|
|
@@ -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';
|
|
2
|
+
import { 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>[];
|
package/admin/package.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"esm2015": "../esm2015/admin/volo-abp.ng.payment-admin.js",
|
|
6
6
|
"fesm2015": "../fesm2015/volo-abp.ng.payment-admin.js",
|
|
7
7
|
"typings": "volo-abp.ng.payment-admin.d.ts",
|
|
8
|
-
"metadata": "volo-abp.ng.payment-admin.metadata.json",
|
|
9
8
|
"sideEffects": false,
|
|
10
9
|
"name": "@volo/abp.ng.payment/admin"
|
|
11
10
|
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
1
3
|
export declare class PaymentAdminRoutingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentAdminRoutingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentAdminRoutingModule, never, [typeof i1.RouterModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentAdminRoutingModule>;
|
|
2
7
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ModuleWithProviders, NgModuleFactory } from '@angular/core';
|
|
2
2
|
import { PaymentConfigOptions } from './models/config-options';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./payment-admin-routing.module";
|
|
5
|
+
import * as i2 from "./components/plans/plans.module";
|
|
6
|
+
import * as i3 from "./components/gateway-plans/gateway-plans.module";
|
|
3
7
|
export declare class PaymentAdminModule {
|
|
4
8
|
static forChild(options?: PaymentConfigOptions): ModuleWithProviders<PaymentAdminModule>;
|
|
5
9
|
static forLazy(options?: PaymentConfigOptions): NgModuleFactory<PaymentAdminModule>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentAdminModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentAdminModule, never, [typeof i1.PaymentAdminRoutingModule, typeof i2.PaymentPlansModule, typeof i3.GatewayPlansModule], never>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentAdminModule>;
|
|
6
13
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { CanActivate } from '@angular/router';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class PaymentInitializer implements CanActivate {
|
|
5
6
|
private injector;
|
|
6
7
|
constructor(injector: Injector);
|
|
7
8
|
canActivate(): Observable<boolean>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentInitializer, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentInitializer>;
|
|
8
11
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
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';
|
|
4
|
-
import { ePaymentComponents } from '../enums/components';
|
|
3
|
+
import { GatewayPlanDto, PlanDto } from '@volo/abp.ng.payment/proxy';
|
|
5
4
|
export declare const DEFAULT_PAYMENT_ENTITY_ACTIONS: {
|
|
6
5
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").EntityAction<PlanDto>[];
|
|
7
6
|
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").EntityAction<GatewayPlanDto>[];
|
|
8
7
|
};
|
|
9
8
|
export declare const DEFAULT_PAYMENT_TOOLBAR_ACTIONS: {
|
|
10
9
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").ToolbarAction<PlanDto[]>[];
|
|
11
|
-
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").ToolbarAction<import("
|
|
10
|
+
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").ToolbarAction<import("@volo/abp.ng.payment/proxy").GatewayDto[]>[];
|
|
12
11
|
};
|
|
13
12
|
export declare const DEFAULT_PAYMENT_ENTITY_PROPS: {
|
|
14
13
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").EntityProp<PlanDto>[];
|
|
@@ -16,11 +15,11 @@ export declare const DEFAULT_PAYMENT_ENTITY_PROPS: {
|
|
|
16
15
|
};
|
|
17
16
|
export declare const DEFAULT_PAYMENT_CREATE_FORM_PROPS: {
|
|
18
17
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").FormProp<PlanDto>[];
|
|
19
|
-
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<import("
|
|
18
|
+
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<import("@volo/abp.ng.payment/proxy").GatewayDto>[];
|
|
20
19
|
};
|
|
21
20
|
export declare const DEFAULT_PAYMENT_EDIT_FORM_PROPS: {
|
|
22
21
|
"Payment.Plans": import("@abp/ng.theme.shared/extensions").FormProp<PlanDto>[];
|
|
23
|
-
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<import("
|
|
22
|
+
"Payment.GatewayPlans": import("@abp/ng.theme.shared/extensions").FormProp<import("@volo/abp.ng.payment/proxy").GatewayDto>[];
|
|
24
23
|
};
|
|
25
24
|
export declare const PAYMENT_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
26
25
|
"Payment.Plans": EntityActionContributorCallback<PlanDto>[];
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
+
/// <amd-module name="@volo/abp.ng.payment/admin" />
|
|
4
5
|
export * from './public-api';
|
|
5
|
-
export { GatewayPlansComponent as ɵc } from './components/gateway-plans/gateway-plans.component';
|
|
6
|
-
export { GatewayPlansModule as ɵe } from './components/gateway-plans/gateway-plans.module';
|
|
7
|
-
export { PaymentPlansComponent as ɵb } from './components/plans/plans.component';
|
|
8
|
-
export { PaymentPlansModule as ɵd } from './components/plans/plans.module';
|
|
9
|
-
export { ePaymentComponents as ɵa } from './enums/components';
|
|
10
|
-
export { PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS as ɵi, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS as ɵj, PAYMENT_ENTITY_ACTION_CONTRIBUTORS as ɵf, PAYMENT_ENTITY_PROP_CONTRIBUTORS as ɵh, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS as ɵg } from './tokens/extensions.token';
|
|
@@ -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";var a=[{provide:n.APP_INITIALIZER,useFactory:
|
|
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 p=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[r]}},e}();p.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:a,type:p,deps:[],target:a.ɵɵFactoryTarget.NgModule}),p.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:a,type:p}),p.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:a,type:p}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:a,type:p,decorators:[{type:n.NgModule,args:[{}]}]}),e.PAYMENT_ROUTE_PROVIDERS=r,e.PaymentAdminConfigModule=p,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"),require("@angular/forms"),require("@angular/common"),require("@abp/ng.components/page"),require("@ngx-validate/core"),require("@volo/abp.commercial.ng.ui")):"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","@angular/forms","@angular/common","@abp/ng.components/page","@ngx-validate/core","@volo/abp.commercial.ng.ui"],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.ng_core,e.ng.router,e.extensions,e.rxjs.operators,e.ng_theme_shared,e.volo.abp.ng.payment,e.ng.forms,e.ng.common,e.page,e.core$1,e.abp_commercial_ng_ui)}(this,(function(e,t,a,n,o,i,r,s,l,p,c,d,m){"use strict";var u=function(){function e(e,t,a,n,o){var i=this;this.planService=e,this.list=t,this.injector=a,this.confirmationService=n,this.activatedRoute=o,this.isModalVisible=!1,this.modalBusy=!1,this.service=a.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(a){a===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 o.FormPropData(this.injector,this.selected);this.form=o.generateFormFromProps(e)},e}();u.decorators=[{type:t.Component,args:[{selector:"abp-gateway-plans",template:'<ng-container *ngIf="data$ | async; let data">\n <abp-page [title]="\'Payment::GatewayPlans\' | abpLocalization" [toolbar]="data.items">\n <abp-entity-filter [list]="list"></abp-entity-filter>\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 size="md" [(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',encapsulation:t.ViewEncapsulation.None,providers:[a.ListService,{provide:o.EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}]}]}],u.ctorParameters=function(){return[{type:s.PlanService},{type:a.ListService},{type:t.Injector},{type:r.ConfirmationService},{type:n.ActivatedRoute}]};var y=o.EntityAction.createMany([{text:"Payment::Edit",action:function(e){e.getInjected(u).onEdit(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Update"},{text:"Payment::Delete",action:function(e){e.getInjected(u).onDelete(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Delete"}]),P=o.EntityProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",sortable:!0},{type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",sortable:!0}]),b={type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",id:"external-id",validators:function(){return[l.Validators.required]}},g=o.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[l.Validators.required]}},b]),f=o.FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",validators:function(){return[l.Validators.required]},disabled:function(){return!0}},b]),v=o.ToolbarAction.createMany([{text:"Payment::NewGatewayPlan",action:function(e){e.getInjected(u).onAdd()},permission:"Payment.Plans.GatewayPlans.Create",icon:"fa fa-plus"}]),h=function(){function e(e,t,a,n,o){this.list=e,this.injector=t,this.confirmationService=a,this.router=n,this.activatedRoute=o,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 a=this;this.confirmationService.warn("Payment::PlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[t]}).subscribe((function(t){t===r.Confirmation.Status.confirm&&a.service.delete(e).subscribe((function(){return a.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 o.FormPropData(this.injector,this.selected);this.form=o.generateFormFromProps(e)},e}();h.decorators=[{type:t.Component,args:[{selector:"abp-payment-plans",template:'<ng-container *ngIf="data$ | async; let data">\n <abp-page [title]="\'Payment::Plans\' | abpLocalization" [toolbar]="data.items">\n <abp-entity-filter [list]="list"></abp-entity-filter>\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 size="md" [(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',encapsulation:t.ViewEncapsulation.None,providers:[a.ListService,{provide:o.EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}]}]}],h.ctorParameters=function(){return[{type:a.ListService},{type:t.Injector},{type:r.ConfirmationService},{type:n.Router},{type:n.ActivatedRoute}]};var T,A,_,N,E,M=function(e){e.getInjected(h).onDelete(e.record.id,e.record.name)},I=o.EntityAction.createMany([{text:"Payment::GatewayPlans",action:function(e){e.getInjected(h).goToGatewayPlans(e.record.id)},permission:"Payment.Plans.GatewayPlans"},{text:"Payment::Edit",action:function(e){e.getInjected(h).onEdit(e.record.id)},permission:"Payment.Plans.Update"},{text:"Payment::Delete",action:M,permission:"Payment.Plans.Delete"}]),C=o.EntityProp.createMany([{type:"string",name:"name",displayName:"Payment::DisplayName:Name",sortable:!0}]),R=o.FormProp.createMany([{type:"string",name:"name",displayName:"Payment::Name",id:"payment-name",validators:function(){return[l.Validators.required]}}]),S=R,O=o.ToolbarAction.createMany([{text:"Payment::NewPlan",action:function(e){e.getInjected(h).onAdd()},permission:"Payment.Plans.Create",icon:"fa fa-plus"}]),w=((T={})["Payment.Plans"]=I,T["Payment.GatewayPlans"]=y,T),F=((A={})["Payment.Plans"]=O,A["Payment.GatewayPlans"]=v,A),D=((_={})["Payment.Plans"]=C,_["Payment.GatewayPlans"]=P,_),L=((N={})["Payment.Plans"]=R,N["Payment.GatewayPlans"]=g,N),x=((E={})["Payment.Plans"]=S,E["Payment.GatewayPlans"]=f,E),j=new t.InjectionToken("PAYMENT_ENTITY_ACTION_CONTRIBUTORS"),G=new t.InjectionToken("PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS"),U=new t.InjectionToken("PAYMENT_ENTITY_PROP_CONTRIBUTORS"),Y=new t.InjectionToken("PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS"),B=new t.InjectionToken("PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS"),V=function(){function e(e){this.injector=e}return e.prototype.canActivate=function(){var e=this.injector.get(o.ExtensionsService),t=this.injector.get(j,null)||{},n=this.injector.get(G,null)||{},r=this.injector.get(U,null)||{},s=this.injector.get(Y,null)||{},l=this.injector.get(B,null)||{},p=this.injector.get(a.ConfigStateService);return o.getObjectExtensionEntitiesFromStore(p,"Payment").pipe(i.map((function(e){return{}})),o.mapEntitiesToContributors(p,"Payment"),i.tap((function(a){o.mergeWithDefaultActions(e.entityActions,w,t),o.mergeWithDefaultActions(e.toolbarActions,F,n),o.mergeWithDefaultProps(e.entityProps,D,a.prop,r),o.mergeWithDefaultProps(e.createFormProps,L,a.createForm,s),o.mergeWithDefaultProps(e.editFormProps,x,a.editForm,l)})),i.mapTo(!0))},e}();V.decorators=[{type:t.Injectable}],V.ctorParameters=function(){return[{type:t.Injector}]};var q={requiredPolicy:"Payment.Plans",replaceableComponent:{key:"Payment.Plans",defaultComponent:h}},z={requiredPolicy:"Payment.Plans.GatewayPlans",replaceableComponent:{key:"Payment.GatewayPlans",defaultComponent:u}},k=[{path:"",redirectTo:"plans",pathMatch:"full"},{path:"",component:a.DynamicLayoutComponent,canActivate:[a.AuthGuard,a.PermissionGuard,V],children:[{path:"plans",component:a.ReplaceableRouteContainerComponent,data:q},{path:"plans/:planId",component:a.ReplaceableRouteContainerComponent,data:z}]}],W=function(){};W.decorators=[{type:t.NgModule,args:[{imports:[n.RouterModule.forChild(k)]}]}];var $=function(){};$.decorators=[{type:t.NgModule,args:[{imports:[p.CommonModule,c.PageModule,a.CoreModule,o.UiExtensionsModule,r.ThemeSharedModule,l.ReactiveFormsModule,d.NgxValidateCoreModule,m.EntityFilterModule],exports:[],declarations:[h],providers:[]}]}];var H=function(){};H.decorators=[{type:t.NgModule,args:[{imports:[p.CommonModule,c.PageModule,a.CoreModule,o.UiExtensionsModule,r.ThemeSharedModule,l.ReactiveFormsModule,d.NgxValidateCoreModule,m.EntityFilterModule],exports:[],declarations:[u],providers:[]}]}];var Q=function(){function e(){}return e.forChild=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:j,useValue:t.entityActionContributors},{provide:G,useValue:t.toolbarActionContributors},{provide:U,useValue:t.entityPropContributors},{provide:Y,useValue:t.createFormPropContributors},{provide:B,useValue:t.editFormPropContributors},V]}},e.forLazy=function(t){return void 0===t&&(t={}),new a.LazyModuleFactory(e.forChild(t))},e}();Q.decorators=[{type:t.NgModule,args:[{imports:[W,$,H]}]}],e.DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS=y,e.DEFAULT_GATEWAY_PLANS_ENTITY_PROPS=P,e.DEFAULT_PAYMENT_CREATE_FORM_PROPS=L,e.DEFAULT_PAYMENT_EDIT_FORM_PROPS=x,e.DEFAULT_PAYMENT_ENTITY_ACTIONS=w,e.DEFAULT_PAYMENT_ENTITY_PROPS=D,e.DEFAULT_PAYMENT_TOOLBAR_ACTIONS=F,e.DEFAULT_PLANS_CREATE_FORM_PROPS=R,e.DEFAULT_PLANS_EDIT_FORM_PROPS=S,e.DEFAULT_PLANS_ENTITY_ACTIONS=I,e.DEFAULT_PLANS_ENTITY_PROPS=C,e.DEFAULT_PLANS_TOOLBAR_ACTIONS=O,e.GatewayPlansComponent=u,e.GatewayPlansModule=H,e.PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS=Y,e.PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS=B,e.PAYMENT_ENTITY_ACTION_CONTRIBUTORS=j,e.PAYMENT_ENTITY_PROP_CONTRIBUTORS=U,e.PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS=G,e.PaymentAdminModule=Q,e.PaymentAdminRoutingModule=W,e.PaymentInitializer=V,e.PaymentPlansComponent=h,e.PaymentPlansModule=$,e.ɵ0=q,e.ɵ1=z,e.ɵ2=M,e.ɵb=h,e.ɵc=u,e.ɵd=$,e.ɵe=H,e.ɵf=j,e.ɵg=G,e.ɵh=U,e.ɵi=Y,e.ɵj=B,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/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})}));
|
|
@@ -0,0 +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 r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var n=r(t),i=r(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,r){return t.restService.request({method:"PUT",url:"/api/payment-admin/plans/"+e+"/external-plans/"+a,body:r},{apiName:t.apiName})}};o.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:o,deps:[{token:i.RestService}],target:n.ɵɵFactoryTarget.Injectable}),o.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:o,providedIn:"root"}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:n,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.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})}};p.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:p,deps:[{token:i.RestService}],target:n.ɵɵFactoryTarget.Injectable}),p.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:p,providedIn:"root"}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:n,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.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})}};s.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:s,deps:[{token:i.RestService}],target:n.ɵɵFactoryTarget.Injectable}),s.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:s,providedIn:"root"}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:n,type:s,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i.RestService}]}}),e.GatewayService=p,e.PlanAdminService=o,e.PlanService=s,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(n){"function"==typeof define&&define.amd?define("@volo/abp.ng.payment",n):n()}((function(){}));
|
|
@@ -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";import{finalize,take}from"rxjs/operators";
|
|
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.8",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.8",type:GatewayPlansComponent,selector:"abp-gateway-plans",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.GatewayPlans"}],ngImport:i0,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: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]",inputs:["blueprints","errorTemplate","invalidClasses","mapErrorsFn","skipValidation","targetSelector","validateOnSubmit"]},{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.8",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{
|
|
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.8",ngImport:i0,type:GatewayPlansModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),GatewayPlansModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",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.8",ngImport:i0,type:GatewayPlansModule,providers:[],imports:[[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:GatewayPlansModule,decorators:[{type:NgModule,args:[{imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule],exports:[],declarations:[GatewayPlansComponent],providers:[]}]}]});
|
|
@@ -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,Router}from"@angular/router";import{PlanAdminService}from"@volo/abp.ng.payment";import{finalize,take}from"rxjs/operators";
|
|
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,Router}from"@angular/router";import{PlanAdminService}from"@volo/abp.ng.payment/proxy";import{finalize,take}from"rxjs/operators";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";import*as i2 from"@abp/ng.theme.shared";import*as i3 from"@angular/router";import*as i4 from"@abp/ng.components/page";import*as i5 from"@volo/abp.commercial.ng.ui";import*as i6 from"@abp/ng.theme.shared/extensions";import*as i7 from"@angular/common";import*as i8 from"@angular/forms";import*as i9 from"@ngx-validate/core";export class PaymentPlansComponent{constructor(e,t,o,i,a){this.list=e,this.injector=t,this.confirmationService=o,this.router=i,this.activatedRoute=a,this.isModalVisible=!1,this.modalBusy=!1,this.service=t.get(PlanAdminService),this.data$=this.list.hookToQuery(this.service.getList)}onEdit(e){this.service.get(e).pipe(take(1)).subscribe(e=>{this.selected=e,this.openModal()})}goToGatewayPlans(e){this.router.navigate(["./",e],{relativeTo:this.activatedRoute})}onDelete(e,t){this.confirmationService.warn("Payment::PlanDeletionConfirmationMessage","AbpUi::AreYouSure",{messageLocalizationParams:[t]}).subscribe(t=>{t===Confirmation.Status.confirm&&this.service.delete(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.id?this.service.update(this.selected.id,this.form.value):this.service.create(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)}}PaymentPlansComponent.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentPlansComponent,deps:[{token:i1.ListService},{token:i0.Injector},{token:i2.ConfirmationService},{token:i3.Router},{token:i3.ActivatedRoute}],target:i0.ɵɵFactoryTarget.Component}),PaymentPlansComponent.ɵcmp=i0.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.8",type:PaymentPlansComponent,selector:"abp-payment-plans",providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}],ngImport:i0,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:i4.PageComponent,selector:"abp-page",inputs:["title","toolbar","breadcrumb"]},{type:i5.AdvancedEntityFiltersComponent,selector:"abp-advanced-entity-filters",inputs:["list","localizationSourceName","entityFilterPlaceholder"]},{type:i6.ExtensibleTableComponent,selector:"abp-extensible-table",inputs:["actionsText","data","list","recordsTotal","actionsColumnWidth","actionsTemplate"],exportAs:["abpExtensibleTable"]},{type:i2.ModalComponent,selector:"abp-modal",inputs:["visible","busy","options","suppressUnsavedChangesWarning"],outputs:["visibleChange","init","appear","disappear"]},{type:i6.ExtensibleFormComponent,selector:"abp-extensible-form",inputs:["selectedRecord"],exportAs:["abpExtensibleForm"]},{type:i2.ButtonComponent,selector:"abp-button",inputs:["buttonId","buttonClass","buttonType","iconClass","loading","disabled","attributes"],outputs:["click","focus","blur","abpClick","abpFocus","abpBlur"]}],directives:[{type:i7.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:i8.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:i8.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:i1.FormSubmitDirective,selector:"form[ngSubmit][formGroup]",inputs:["debounce","notValidateOnSubmit"],outputs:["ngSubmit"]},{type:i8.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:i9.ValidationGroupDirective,selector:"[formGroup],[formGroupName]",inputs:["blueprints","errorTemplate","invalidClasses","mapErrorsFn","skipValidation","targetSelector","validateOnSubmit"]},{type:i2.ModalCloseDirective,selector:"[abpClose]"}],pipes:{async:i7.AsyncPipe,abpLocalization:i1.LocalizationPipe},encapsulation:i0.ViewEncapsulation.None}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentPlansComponent,decorators:[{type:Component,args:[{selector:"abp-payment-plans",templateUrl:"./plans.component.html",encapsulation:ViewEncapsulation.None,providers:[ListService,{provide:EXTENSIONS_IDENTIFIER,useValue:"Payment.Plans"}]}]}],ctorParameters:function(){return[{type:i1.ListService},{type:i0.Injector},{type:i2.ConfirmationService},{type:i3.Router},{type:i3.ActivatedRoute}]}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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{PaymentPlansComponent}from"./plans.component";import*as i0 from"@angular/core";export class PaymentPlansModule{}PaymentPlansModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentPlansModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentPlansModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentPlansModule,declarations:[PaymentPlansComponent],imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]}),PaymentPlansModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentPlansModule,providers:[],imports:[[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentPlansModule,decorators:[{type:NgModule,args:[{imports:[CommonModule,PageModule,CoreModule,UiExtensionsModule,ThemeSharedModule,ReactiveFormsModule,NgxValidateCoreModule,AdvancedEntityFiltersModule],exports:[],declarations:[PaymentPlansComponent],providers:[]}]}]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NgModule}from"@angular/core";import{PAYMENT_ROUTE_PROVIDERS}from"./providers/route.provider";export class PaymentAdminConfigModule{static forRoot(){return{ngModule:PaymentAdminConfigModule,providers:[PAYMENT_ROUTE_PROVIDERS]}}}PaymentAdminConfigModule.decorators
|
|
1
|
+
import{NgModule}from"@angular/core";import{PAYMENT_ROUTE_PROVIDERS}from"./providers/route.provider";import*as i0 from"@angular/core";export class PaymentAdminConfigModule{static forRoot(){return{ngModule:PaymentAdminConfigModule,providers:[PAYMENT_ROUTE_PROVIDERS]}}}PaymentAdminConfigModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminConfigModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentAdminConfigModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminConfigModule}),PaymentAdminConfigModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminConfigModule}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminConfigModule,decorators:[{type:NgModule,args:[{}]}]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./public-api";
|
|
1
|
+
export*from"./public-api";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{GatewayPlansComponent}from"../components/gateway-plans/gateway-plans.component";const
|
|
1
|
+
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{GatewayPlansComponent}from"../components/gateway-plans/gateway-plans.component";export const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS=EntityAction.createMany([{text:"Payment::Edit",action:e=>{e.getInjected(GatewayPlansComponent).onEdit(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Update"},{text:"Payment::Delete",action:e=>{e.getInjected(GatewayPlansComponent).onDelete(e.record.gateway)},permission:"Payment.Plans.GatewayPlans.Delete"}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FormProp}from"@abp/ng.theme.shared/extensions";import{Validators}from"@angular/forms";import{GatewayService}from"@volo/abp.ng.payment";import{map}from"rxjs/operators";const
|
|
1
|
+
import{FormProp}from"@abp/ng.theme.shared/extensions";import{Validators}from"@angular/forms";import{GatewayService}from"@volo/abp.ng.payment/proxy";import{map}from"rxjs/operators";const externalIdField={type:"string",name:"externalId",displayName:"Payment::DisplayName:ExternalId",id:"external-id",validators:()=>[Validators.required]};export const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS=FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",options:a=>a.getInjected(GatewayService).getSubscriptionSupportedGateways().pipe(map(a=>a.map(a=>({key:a.displayName,value:a.name})))),validators:()=>[Validators.required]},externalIdField]);export const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS=FormProp.createMany([{type:"string",name:"gateway",displayName:"Payment::DisplayName:Gateway",id:"gateway",validators:()=>[Validators.required],disabled:()=>!0},externalIdField]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ToolbarAction}from"@abp/ng.theme.shared/extensions";import{GatewayPlansComponent}from"../components/gateway-plans/gateway-plans.component";
|
|
1
|
+
import{ToolbarAction}from"@abp/ng.theme.shared/extensions";import{GatewayPlansComponent}from"../components/gateway-plans/gateway-plans.component";export const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS=ToolbarAction.createMany([{text:"Payment::NewGatewayPlan",action:a=>{a.getInjected(GatewayPlansComponent).onAdd()},permission:"Payment.Plans.GatewayPlans.Create",icon:"fa fa-plus"}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{PaymentPlansComponent}from"../components/plans/plans.component";const
|
|
1
|
+
import{EntityAction}from"@abp/ng.theme.shared/extensions";import{PaymentPlansComponent}from"../components/plans/plans.component";export const DEFAULT_PLANS_ENTITY_ACTIONS=EntityAction.createMany([{text:"Payment::GatewayPlans",action:e=>{e.getInjected(PaymentPlansComponent).goToGatewayPlans(e.record.id)},permission:"Payment.Plans.GatewayPlans"},{text:"Payment::Edit",action:e=>{e.getInjected(PaymentPlansComponent).onEdit(e.record.id)},permission:"Payment.Plans.Update"},{text:"Payment::Delete",action:e=>{e.getInjected(PaymentPlansComponent).onDelete(e.record.id,e.record.name)},permission:"Payment.Plans.Delete"}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FormProp}from"@abp/ng.theme.shared/extensions";import{Validators}from"@angular/forms";
|
|
1
|
+
import{FormProp}from"@abp/ng.theme.shared/extensions";import{Validators}from"@angular/forms";export const DEFAULT_PLANS_CREATE_FORM_PROPS=FormProp.createMany([{type:"string",name:"name",displayName:"Payment::Name",id:"payment-name",validators:()=>[Validators.required]}]);export const DEFAULT_PLANS_EDIT_FORM_PROPS=DEFAULT_PLANS_CREATE_FORM_PROPS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ToolbarAction}from"@abp/ng.theme.shared/extensions";import{PaymentPlansComponent}from"../components/plans/plans.component";
|
|
1
|
+
import{ToolbarAction}from"@abp/ng.theme.shared/extensions";import{PaymentPlansComponent}from"../components/plans/plans.component";export const DEFAULT_PLANS_TOOLBAR_ACTIONS=ToolbarAction.createMany([{text:"Payment::NewPlan",action:n=>{n.getInjected(PaymentPlansComponent).onAdd()},permission:"Payment.Plans.Create",icon:"fa fa-plus"}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NgModule}from"@angular/core";import{RouterModule}from"@angular/router";import{DynamicLayoutComponent,AuthGuard,PermissionGuard,ReplaceableRouteContainerComponent}from"@abp/ng.core";import{PaymentInitializer}from"./payment.initializer";import{PaymentPlansComponent}from"./components/plans/plans.component";import{GatewayPlansComponent}from"./components/gateway-plans/gateway-plans.component";const
|
|
1
|
+
import{NgModule}from"@angular/core";import{RouterModule}from"@angular/router";import{DynamicLayoutComponent,AuthGuard,PermissionGuard,ReplaceableRouteContainerComponent}from"@abp/ng.core";import{PaymentInitializer}from"./payment.initializer";import{PaymentPlansComponent}from"./components/plans/plans.component";import{GatewayPlansComponent}from"./components/gateway-plans/gateway-plans.component";import*as i0 from"@angular/core";import*as i1 from"@angular/router";const routes=[{path:"",redirectTo:"plans",pathMatch:"full"},{path:"",component:DynamicLayoutComponent,canActivate:[AuthGuard,PermissionGuard,PaymentInitializer],children:[{path:"plans",component:ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans",replaceableComponent:{key:"Payment.Plans",defaultComponent:PaymentPlansComponent}}},{path:"plans/:planId",component:ReplaceableRouteContainerComponent,data:{requiredPolicy:"Payment.Plans.GatewayPlans",replaceableComponent:{key:"Payment.GatewayPlans",defaultComponent:GatewayPlansComponent}}}]}];export class PaymentAdminRoutingModule{}PaymentAdminRoutingModule.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminRoutingModule,deps:[],target:i0.ɵɵFactoryTarget.NgModule}),PaymentAdminRoutingModule.ɵmod=i0.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminRoutingModule,imports:[i1.RouterModule]}),PaymentAdminRoutingModule.ɵinj=i0.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminRoutingModule,imports:[[RouterModule.forChild(routes)]]}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:PaymentAdminRoutingModule,decorators:[{type:NgModule,args:[{imports:[RouterModule.forChild(routes)]}]}]});
|