@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
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, InjectionToken, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@abp/ng.core';
|
|
2
4
|
import { ListService, ConfigStateService, DynamicLayoutComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
3
|
-
import
|
|
5
|
+
import * as i3$1 from '@angular/router';
|
|
6
|
+
import { RouterModule } from '@angular/router';
|
|
7
|
+
import * as i7 from '@abp/ng.theme.shared/extensions';
|
|
4
8
|
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, FormProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
|
|
5
9
|
import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
+
import * as i3 from '@abp/ng.theme.shared';
|
|
11
|
+
import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
12
|
+
import * as i1 from '@volo/abp.ng.payment/proxy';
|
|
13
|
+
import { PlanAdminService, GatewayService } from '@volo/abp.ng.payment/proxy';
|
|
14
|
+
import * as i5 from '@abp/ng.components/page';
|
|
10
15
|
import { PageModule } from '@abp/ng.components/page';
|
|
16
|
+
import * as i6 from '@volo/abp.commercial.ng.ui';
|
|
17
|
+
import { AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
18
|
+
import * as i8 from '@angular/common';
|
|
19
|
+
import { CommonModule } from '@angular/common';
|
|
20
|
+
import * as i9 from '@angular/forms';
|
|
21
|
+
import { Validators, ReactiveFormsModule } from '@angular/forms';
|
|
22
|
+
import * as i10 from '@ngx-validate/core';
|
|
11
23
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
12
|
-
import { EntityFilterModule } from '@volo/abp.commercial.ng.ui';
|
|
13
24
|
|
|
14
|
-
const ɵ0$8 = "Payment.GatewayPlans" /* GatewayPlans */;
|
|
15
25
|
class GatewayPlansComponent {
|
|
16
26
|
constructor(planService, list, injector, confirmationService, activatedRoute) {
|
|
17
27
|
this.planService = planService;
|
|
@@ -76,44 +86,45 @@ class GatewayPlansComponent {
|
|
|
76
86
|
this.form = generateFormFromProps(data);
|
|
77
87
|
}
|
|
78
88
|
}
|
|
79
|
-
GatewayPlansComponent
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
]
|
|
89
|
+
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: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
GatewayPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: GatewayPlansComponent, selector: "abp-gateway-plans", providers: [
|
|
91
|
+
ListService,
|
|
92
|
+
{
|
|
93
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
94
|
+
useValue: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
95
|
+
},
|
|
96
|
+
], 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 });
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansComponent, decorators: [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{
|
|
100
|
+
selector: 'abp-gateway-plans',
|
|
101
|
+
templateUrl: './gateway-plans.component.html',
|
|
102
|
+
encapsulation: ViewEncapsulation.None,
|
|
103
|
+
providers: [
|
|
104
|
+
ListService,
|
|
105
|
+
{
|
|
106
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
107
|
+
useValue: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
}]
|
|
111
|
+
}], ctorParameters: function () { return [{ type: i1.PlanService }, { type: i2.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.ActivatedRoute }]; } });
|
|
100
112
|
|
|
101
|
-
const ɵ0$7 = data => {
|
|
102
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
103
|
-
component.onEdit(data.record.gateway);
|
|
104
|
-
}, ɵ1$3 = data => {
|
|
105
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
106
|
-
component.onDelete(data.record.gateway);
|
|
107
|
-
};
|
|
108
113
|
const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
109
114
|
{
|
|
110
115
|
text: 'Payment::Edit',
|
|
111
|
-
action:
|
|
116
|
+
action: data => {
|
|
117
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
118
|
+
component.onEdit(data.record.gateway);
|
|
119
|
+
},
|
|
112
120
|
permission: 'Payment.Plans.GatewayPlans.Update',
|
|
113
121
|
},
|
|
114
122
|
{
|
|
115
123
|
text: 'Payment::Delete',
|
|
116
|
-
action:
|
|
124
|
+
action: data => {
|
|
125
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
126
|
+
component.onDelete(data.record.gateway);
|
|
127
|
+
},
|
|
117
128
|
permission: 'Payment.Plans.GatewayPlans.Delete',
|
|
118
129
|
},
|
|
119
130
|
]);
|
|
@@ -133,59 +144,54 @@ const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
|
133
144
|
},
|
|
134
145
|
]);
|
|
135
146
|
|
|
136
|
-
const ɵ0$6 = () => [Validators.required];
|
|
137
147
|
const externalIdField = {
|
|
138
148
|
type: "string" /* String */,
|
|
139
149
|
name: 'externalId',
|
|
140
150
|
displayName: 'Payment::DisplayName:ExternalId',
|
|
141
151
|
id: 'external-id',
|
|
142
|
-
validators:
|
|
152
|
+
validators: () => [Validators.required],
|
|
143
153
|
};
|
|
144
|
-
const ɵ1$2 = data => {
|
|
145
|
-
const service = data.getInjected(GatewayService);
|
|
146
|
-
return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
|
|
147
|
-
key: opt.displayName,
|
|
148
|
-
value: opt.name,
|
|
149
|
-
}))));
|
|
150
|
-
}, ɵ2$1 = () => [Validators.required];
|
|
151
154
|
const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
152
155
|
{
|
|
153
156
|
type: "string" /* String */,
|
|
154
157
|
name: 'gateway',
|
|
155
158
|
displayName: 'Payment::DisplayName:Gateway',
|
|
156
159
|
id: 'gateway',
|
|
157
|
-
options:
|
|
158
|
-
|
|
160
|
+
options: data => {
|
|
161
|
+
const service = data.getInjected(GatewayService);
|
|
162
|
+
return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
|
|
163
|
+
key: opt.displayName,
|
|
164
|
+
value: opt.name,
|
|
165
|
+
}))));
|
|
166
|
+
},
|
|
167
|
+
validators: () => [Validators.required],
|
|
159
168
|
},
|
|
160
169
|
externalIdField,
|
|
161
170
|
]);
|
|
162
|
-
const ɵ3 = () => [Validators.required], ɵ4 = () => true;
|
|
163
171
|
const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
|
|
164
172
|
{
|
|
165
173
|
type: "string" /* String */,
|
|
166
174
|
name: 'gateway',
|
|
167
175
|
displayName: 'Payment::DisplayName:Gateway',
|
|
168
176
|
id: 'gateway',
|
|
169
|
-
validators:
|
|
170
|
-
disabled:
|
|
177
|
+
validators: () => [Validators.required],
|
|
178
|
+
disabled: () => true,
|
|
171
179
|
},
|
|
172
180
|
externalIdField,
|
|
173
181
|
]);
|
|
174
182
|
|
|
175
|
-
const ɵ0$5 = data => {
|
|
176
|
-
const component = data.getInjected(GatewayPlansComponent);
|
|
177
|
-
component.onAdd();
|
|
178
|
-
};
|
|
179
183
|
const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
180
184
|
{
|
|
181
185
|
text: 'Payment::NewGatewayPlan',
|
|
182
|
-
action:
|
|
186
|
+
action: data => {
|
|
187
|
+
const component = data.getInjected(GatewayPlansComponent);
|
|
188
|
+
component.onAdd();
|
|
189
|
+
},
|
|
183
190
|
permission: 'Payment.Plans.GatewayPlans.Create',
|
|
184
191
|
icon: 'fa fa-plus',
|
|
185
192
|
},
|
|
186
193
|
]);
|
|
187
194
|
|
|
188
|
-
const ɵ0$4 = "Payment.Plans" /* Plans */;
|
|
189
195
|
class PaymentPlansComponent {
|
|
190
196
|
constructor(list, injector, confirmationService, router, activatedRoute) {
|
|
191
197
|
this.list = list;
|
|
@@ -250,52 +256,53 @@ class PaymentPlansComponent {
|
|
|
250
256
|
this.form = generateFormFromProps(data);
|
|
251
257
|
}
|
|
252
258
|
}
|
|
253
|
-
PaymentPlansComponent
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
]
|
|
259
|
+
PaymentPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansComponent, deps: [{ token: i2.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
260
|
+
PaymentPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: PaymentPlansComponent, selector: "abp-payment-plans", providers: [
|
|
261
|
+
ListService,
|
|
262
|
+
{
|
|
263
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
264
|
+
useValue: "Payment.Plans" /* Plans */,
|
|
265
|
+
},
|
|
266
|
+
], 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: 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 });
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansComponent, decorators: [{
|
|
268
|
+
type: Component,
|
|
269
|
+
args: [{
|
|
270
|
+
selector: 'abp-payment-plans',
|
|
271
|
+
templateUrl: './plans.component.html',
|
|
272
|
+
encapsulation: ViewEncapsulation.None,
|
|
273
|
+
providers: [
|
|
274
|
+
ListService,
|
|
275
|
+
{
|
|
276
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
277
|
+
useValue: "Payment.Plans" /* Plans */,
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
}]
|
|
281
|
+
}], ctorParameters: function () { return [{ type: i2.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
|
|
274
282
|
|
|
275
|
-
const ɵ0$3 = data => {
|
|
276
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
277
|
-
component.goToGatewayPlans(data.record.id);
|
|
278
|
-
}, ɵ1$1 = data => {
|
|
279
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
280
|
-
component.onEdit(data.record.id);
|
|
281
|
-
}, ɵ2 = data => {
|
|
282
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
283
|
-
component.onDelete(data.record.id, data.record.name);
|
|
284
|
-
};
|
|
285
283
|
const DEFAULT_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
286
284
|
{
|
|
287
285
|
text: 'Payment::GatewayPlans',
|
|
288
|
-
action:
|
|
286
|
+
action: data => {
|
|
287
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
288
|
+
component.goToGatewayPlans(data.record.id);
|
|
289
|
+
},
|
|
289
290
|
permission: 'Payment.Plans.GatewayPlans',
|
|
290
291
|
},
|
|
291
292
|
{
|
|
292
293
|
text: 'Payment::Edit',
|
|
293
|
-
action:
|
|
294
|
+
action: data => {
|
|
295
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
296
|
+
component.onEdit(data.record.id);
|
|
297
|
+
},
|
|
294
298
|
permission: 'Payment.Plans.Update',
|
|
295
299
|
},
|
|
296
300
|
{
|
|
297
301
|
text: 'Payment::Delete',
|
|
298
|
-
action:
|
|
302
|
+
action: data => {
|
|
303
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
304
|
+
component.onDelete(data.record.id, data.record.name);
|
|
305
|
+
},
|
|
299
306
|
permission: 'Payment.Plans.Delete',
|
|
300
307
|
},
|
|
301
308
|
]);
|
|
@@ -309,26 +316,24 @@ const DEFAULT_PLANS_ENTITY_PROPS = EntityProp.createMany([
|
|
|
309
316
|
},
|
|
310
317
|
]);
|
|
311
318
|
|
|
312
|
-
const ɵ0$2 = () => [Validators.required];
|
|
313
319
|
const DEFAULT_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
314
320
|
{
|
|
315
321
|
type: "string" /* String */,
|
|
316
322
|
name: 'name',
|
|
317
323
|
displayName: 'Payment::Name',
|
|
318
324
|
id: 'payment-name',
|
|
319
|
-
validators:
|
|
325
|
+
validators: () => [Validators.required],
|
|
320
326
|
},
|
|
321
327
|
]);
|
|
322
328
|
const DEFAULT_PLANS_EDIT_FORM_PROPS = DEFAULT_PLANS_CREATE_FORM_PROPS;
|
|
323
329
|
|
|
324
|
-
const ɵ0$1 = data => {
|
|
325
|
-
const component = data.getInjected(PaymentPlansComponent);
|
|
326
|
-
component.onAdd();
|
|
327
|
-
};
|
|
328
330
|
const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
329
331
|
{
|
|
330
332
|
text: 'Payment::NewPlan',
|
|
331
|
-
action:
|
|
333
|
+
action: data => {
|
|
334
|
+
const component = data.getInjected(PaymentPlansComponent);
|
|
335
|
+
component.onAdd();
|
|
336
|
+
},
|
|
332
337
|
permission: 'Payment.Plans.Create',
|
|
333
338
|
icon: 'fa fa-plus',
|
|
334
339
|
},
|
|
@@ -384,26 +389,12 @@ class PaymentInitializer {
|
|
|
384
389
|
}), mapTo(true));
|
|
385
390
|
}
|
|
386
391
|
}
|
|
387
|
-
PaymentInitializer
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
];
|
|
392
|
+
PaymentInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
393
|
+
PaymentInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentInitializer });
|
|
394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentInitializer, decorators: [{
|
|
395
|
+
type: Injectable
|
|
396
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
393
397
|
|
|
394
|
-
const ɵ0 = {
|
|
395
|
-
requiredPolicy: 'Payment.Plans',
|
|
396
|
-
replaceableComponent: {
|
|
397
|
-
key: "Payment.Plans" /* Plans */,
|
|
398
|
-
defaultComponent: PaymentPlansComponent,
|
|
399
|
-
},
|
|
400
|
-
}, ɵ1 = {
|
|
401
|
-
requiredPolicy: 'Payment.Plans.GatewayPlans',
|
|
402
|
-
replaceableComponent: {
|
|
403
|
-
key: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
404
|
-
defaultComponent: GatewayPlansComponent,
|
|
405
|
-
},
|
|
406
|
-
};
|
|
407
398
|
const routes = [
|
|
408
399
|
{
|
|
409
400
|
path: '',
|
|
@@ -418,63 +409,119 @@ const routes = [
|
|
|
418
409
|
{
|
|
419
410
|
path: 'plans',
|
|
420
411
|
component: ReplaceableRouteContainerComponent,
|
|
421
|
-
data:
|
|
412
|
+
data: {
|
|
413
|
+
requiredPolicy: 'Payment.Plans',
|
|
414
|
+
replaceableComponent: {
|
|
415
|
+
key: "Payment.Plans" /* Plans */,
|
|
416
|
+
defaultComponent: PaymentPlansComponent,
|
|
417
|
+
},
|
|
418
|
+
},
|
|
422
419
|
},
|
|
423
420
|
{
|
|
424
421
|
path: 'plans/:planId',
|
|
425
422
|
component: ReplaceableRouteContainerComponent,
|
|
426
|
-
data:
|
|
423
|
+
data: {
|
|
424
|
+
requiredPolicy: 'Payment.Plans.GatewayPlans',
|
|
425
|
+
replaceableComponent: {
|
|
426
|
+
key: "Payment.GatewayPlans" /* GatewayPlans */,
|
|
427
|
+
defaultComponent: GatewayPlansComponent,
|
|
428
|
+
},
|
|
429
|
+
},
|
|
427
430
|
},
|
|
428
431
|
],
|
|
429
432
|
},
|
|
430
433
|
];
|
|
431
434
|
class PaymentAdminRoutingModule {
|
|
432
435
|
}
|
|
433
|
-
PaymentAdminRoutingModule
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
PaymentAdminRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
437
|
+
PaymentAdminRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i3$1.RouterModule] });
|
|
438
|
+
PaymentAdminRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [[RouterModule.forChild(routes)]] });
|
|
439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
|
|
440
|
+
type: NgModule,
|
|
441
|
+
args: [{
|
|
442
|
+
imports: [RouterModule.forChild(routes)],
|
|
443
|
+
}]
|
|
444
|
+
}] });
|
|
438
445
|
|
|
439
446
|
class PaymentPlansModule {
|
|
440
447
|
}
|
|
441
|
-
PaymentPlansModule
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
448
|
+
PaymentPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
449
|
+
PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, declarations: [PaymentPlansComponent], imports: [CommonModule,
|
|
450
|
+
PageModule,
|
|
451
|
+
CoreModule,
|
|
452
|
+
UiExtensionsModule,
|
|
453
|
+
ThemeSharedModule,
|
|
454
|
+
ReactiveFormsModule,
|
|
455
|
+
NgxValidateCoreModule,
|
|
456
|
+
AdvancedEntityFiltersModule] });
|
|
457
|
+
PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, providers: [], imports: [[
|
|
458
|
+
CommonModule,
|
|
459
|
+
PageModule,
|
|
460
|
+
CoreModule,
|
|
461
|
+
UiExtensionsModule,
|
|
462
|
+
ThemeSharedModule,
|
|
463
|
+
ReactiveFormsModule,
|
|
464
|
+
NgxValidateCoreModule,
|
|
465
|
+
AdvancedEntityFiltersModule,
|
|
466
|
+
]] });
|
|
467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, decorators: [{
|
|
468
|
+
type: NgModule,
|
|
469
|
+
args: [{
|
|
470
|
+
imports: [
|
|
471
|
+
CommonModule,
|
|
472
|
+
PageModule,
|
|
473
|
+
CoreModule,
|
|
474
|
+
UiExtensionsModule,
|
|
475
|
+
ThemeSharedModule,
|
|
476
|
+
ReactiveFormsModule,
|
|
477
|
+
NgxValidateCoreModule,
|
|
478
|
+
AdvancedEntityFiltersModule,
|
|
479
|
+
],
|
|
480
|
+
exports: [],
|
|
481
|
+
declarations: [PaymentPlansComponent],
|
|
482
|
+
providers: [],
|
|
483
|
+
}]
|
|
484
|
+
}] });
|
|
458
485
|
|
|
459
486
|
class GatewayPlansModule {
|
|
460
487
|
}
|
|
461
|
-
GatewayPlansModule
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
488
|
+
GatewayPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
489
|
+
GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, declarations: [GatewayPlansComponent], imports: [CommonModule,
|
|
490
|
+
PageModule,
|
|
491
|
+
CoreModule,
|
|
492
|
+
UiExtensionsModule,
|
|
493
|
+
ThemeSharedModule,
|
|
494
|
+
ReactiveFormsModule,
|
|
495
|
+
NgxValidateCoreModule,
|
|
496
|
+
AdvancedEntityFiltersModule] });
|
|
497
|
+
GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, providers: [], imports: [[
|
|
498
|
+
CommonModule,
|
|
499
|
+
PageModule,
|
|
500
|
+
CoreModule,
|
|
501
|
+
UiExtensionsModule,
|
|
502
|
+
ThemeSharedModule,
|
|
503
|
+
ReactiveFormsModule,
|
|
504
|
+
NgxValidateCoreModule,
|
|
505
|
+
AdvancedEntityFiltersModule,
|
|
506
|
+
]] });
|
|
507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, decorators: [{
|
|
508
|
+
type: NgModule,
|
|
509
|
+
args: [{
|
|
510
|
+
imports: [
|
|
511
|
+
CommonModule,
|
|
512
|
+
PageModule,
|
|
513
|
+
CoreModule,
|
|
514
|
+
UiExtensionsModule,
|
|
515
|
+
ThemeSharedModule,
|
|
516
|
+
ReactiveFormsModule,
|
|
517
|
+
NgxValidateCoreModule,
|
|
518
|
+
AdvancedEntityFiltersModule,
|
|
519
|
+
],
|
|
520
|
+
exports: [],
|
|
521
|
+
declarations: [GatewayPlansComponent],
|
|
522
|
+
providers: [],
|
|
523
|
+
}]
|
|
524
|
+
}] });
|
|
478
525
|
|
|
479
526
|
class PaymentAdminModule {
|
|
480
527
|
static forChild(options = {}) {
|
|
@@ -509,15 +556,19 @@ class PaymentAdminModule {
|
|
|
509
556
|
return new LazyModuleFactory(PaymentAdminModule.forChild(options));
|
|
510
557
|
}
|
|
511
558
|
}
|
|
512
|
-
PaymentAdminModule
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
559
|
+
PaymentAdminModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
560
|
+
PaymentAdminModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule] });
|
|
561
|
+
PaymentAdminModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, imports: [[PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule]] });
|
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, decorators: [{
|
|
563
|
+
type: NgModule,
|
|
564
|
+
args: [{
|
|
565
|
+
imports: [PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule],
|
|
566
|
+
}]
|
|
567
|
+
}] });
|
|
517
568
|
|
|
518
569
|
/**
|
|
519
570
|
* Generated bundle index. Do not edit.
|
|
520
571
|
*/
|
|
521
572
|
|
|
522
|
-
export { DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS, DEFAULT_GATEWAY_PLANS_ENTITY_PROPS, DEFAULT_PAYMENT_CREATE_FORM_PROPS, DEFAULT_PAYMENT_EDIT_FORM_PROPS, DEFAULT_PAYMENT_ENTITY_ACTIONS, DEFAULT_PAYMENT_ENTITY_PROPS, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, DEFAULT_PLANS_CREATE_FORM_PROPS, DEFAULT_PLANS_EDIT_FORM_PROPS, DEFAULT_PLANS_ENTITY_ACTIONS, DEFAULT_PLANS_ENTITY_PROPS, DEFAULT_PLANS_TOOLBAR_ACTIONS, GatewayPlansComponent, GatewayPlansModule, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, PAYMENT_ENTITY_ACTION_CONTRIBUTORS, PAYMENT_ENTITY_PROP_CONTRIBUTORS, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, PaymentAdminModule, PaymentAdminRoutingModule, PaymentInitializer, PaymentPlansComponent, PaymentPlansModule
|
|
573
|
+
export { DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS, DEFAULT_GATEWAY_PLANS_ENTITY_PROPS, DEFAULT_PAYMENT_CREATE_FORM_PROPS, DEFAULT_PAYMENT_EDIT_FORM_PROPS, DEFAULT_PAYMENT_ENTITY_ACTIONS, DEFAULT_PAYMENT_ENTITY_PROPS, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, DEFAULT_PLANS_CREATE_FORM_PROPS, DEFAULT_PLANS_EDIT_FORM_PROPS, DEFAULT_PLANS_ENTITY_ACTIONS, DEFAULT_PLANS_ENTITY_PROPS, DEFAULT_PLANS_TOOLBAR_ACTIONS, GatewayPlansComponent, GatewayPlansModule, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, PAYMENT_ENTITY_ACTION_CONTRIBUTORS, PAYMENT_ENTITY_PROP_CONTRIBUTORS, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, PaymentAdminModule, PaymentAdminRoutingModule, PaymentInitializer, PaymentPlansComponent, PaymentPlansModule };
|
|
523
574
|
//# sourceMappingURL=volo-abp.ng.payment-admin.js.map
|