@volo/abp.ng.payment 9.2.0 → 9.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/components/gateway-plans/gateway-plans.component.d.ts +4 -4
- package/admin/components/gateway-plans/gateway-plans.module.d.ts +10 -10
- package/admin/components/plans/plans.component.d.ts +4 -4
- package/admin/components/plans/plans.module.d.ts +10 -10
- package/admin/components/products/products.component.d.ts +4 -5
- package/admin/components/products/products.module.d.ts +8 -8
- package/admin/components/requests/requests-search-form/requests-search-form.component.d.ts +1 -1
- package/admin/components/requests/requests.component.d.ts +5 -6
- package/admin/components/requests/requests.module.d.ts +12 -12
- package/admin/components/subscription-tooltip/subscription-tooltip.component.d.ts +1 -2
- package/admin/components/subscription-tooltip/subscription-tooltip.module.d.ts +5 -5
- package/admin/payment-admin.module.d.ts +3 -0
- package/admin/payment.routes.d.ts +3 -0
- package/admin/public-api.d.ts +1 -0
- package/fesm2022/volo-abp.ng.payment-admin.mjs +211 -83
- package/fesm2022/volo-abp.ng.payment-admin.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injector, ViewEncapsulation, Component, EventEmitter, Output, Input,
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as i3$1 from '@angular/router';
|
|
2
|
+
import { inject, Injector, ViewEncapsulation, Component, EventEmitter, Output, Input, InjectionToken, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import { ListService, LocalizationPipe, ReplaceableRouteContainerComponent, AuthGuard, PermissionGuard, RouterOutletComponent, CoreModule, LazyModuleFactory, authGuard, permissionGuard } from '@abp/ng.core';
|
|
4
|
+
import * as i1$1 from '@angular/router';
|
|
6
5
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
7
|
-
import
|
|
8
|
-
import { ConfirmationService, ToasterService, Confirmation, DateAdapter, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
|
-
import * as i4$1 from '@abp/ng.components/extensible';
|
|
10
|
-
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, FormProp, ToolbarAction, PROP_DATA_STREAM, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, ExtensibleModule } from '@abp/ng.components/extensible';
|
|
11
|
-
import * as i2 from '@volo/abp.ng.payment/proxy';
|
|
12
|
-
import { PlanService, PlanAdminService, paymentTypeOptions, paymentRequestStateOptions, GatewayService, PaymentType } from '@volo/abp.ng.payment/proxy';
|
|
13
|
-
import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
|
|
14
|
-
import * as i4 from '@abp/ng.components/page';
|
|
15
|
-
import { PageModule } from '@abp/ng.components/page';
|
|
6
|
+
import { AsyncPipe, CommonModule } from '@angular/common';
|
|
16
7
|
import * as i1 from '@angular/forms';
|
|
17
|
-
import {
|
|
18
|
-
import * as
|
|
8
|
+
import { FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
9
|
+
import * as i2 from '@ngx-validate/core';
|
|
19
10
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
11
|
+
import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
|
|
12
|
+
import { ConfirmationService, ToasterService, Confirmation, ModalCloseDirective, ModalComponent, ButtonComponent, BreadcrumbItemsComponent, DateAdapter, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
13
|
+
import { FormPropData, generateFormFromProps, ExtensibleTableComponent, ExtensibleFormComponent, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, FormProp, ToolbarAction, PROP_DATA_STREAM, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, ExtensibleModule } from '@abp/ng.components/extensible';
|
|
14
|
+
import { PageComponent, PageBreadcrumbContainerComponent, PageModule } from '@abp/ng.components/page';
|
|
15
|
+
import { AdvancedEntityFiltersComponent, AdvancedEntityFiltersAboveSearchComponent, AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
16
|
+
import { PlanService, PlanAdminService, PaymentRequestAdminService, paymentTypeOptions, paymentRequestStateOptions, GatewayService, PaymentType } from '@volo/abp.ng.payment/proxy';
|
|
17
|
+
import { NgbInputDatepicker, NgbDateAdapter, NgbTooltip, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
27
18
|
import { of } from 'rxjs';
|
|
28
19
|
|
|
29
20
|
class GatewayPlansComponent {
|
|
@@ -97,23 +88,36 @@ class GatewayPlansComponent {
|
|
|
97
88
|
this.form = generateFormFromProps(data);
|
|
98
89
|
}
|
|
99
90
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
100
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: GatewayPlansComponent, isStandalone:
|
|
91
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: GatewayPlansComponent, isStandalone: true, selector: "abp-gateway-plans", providers: [
|
|
101
92
|
ListService,
|
|
102
93
|
{
|
|
103
94
|
provide: EXTENSIONS_IDENTIFIER,
|
|
104
95
|
useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
105
96
|
},
|
|
106
|
-
], ngImport: i0, template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters
|
|
97
|
+
], ngImport: i0, template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
107
98
|
}
|
|
108
99
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansComponent, decorators: [{
|
|
109
100
|
type: Component,
|
|
110
|
-
args: [{
|
|
101
|
+
args: [{ selector: 'abp-gateway-plans', encapsulation: ViewEncapsulation.None, providers: [
|
|
111
102
|
ListService,
|
|
112
103
|
{
|
|
113
104
|
provide: EXTENSIONS_IDENTIFIER,
|
|
114
105
|
useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
115
106
|
},
|
|
116
|
-
],
|
|
107
|
+
], imports: [
|
|
108
|
+
FormsModule,
|
|
109
|
+
ReactiveFormsModule,
|
|
110
|
+
NgxValidateCoreModule,
|
|
111
|
+
ModalCloseDirective,
|
|
112
|
+
LocalizationPipe,
|
|
113
|
+
AsyncPipe,
|
|
114
|
+
ExtensibleTableComponent,
|
|
115
|
+
ExtensibleFormComponent,
|
|
116
|
+
AdvancedEntityFiltersComponent,
|
|
117
|
+
PageComponent,
|
|
118
|
+
ModalComponent,
|
|
119
|
+
ButtonComponent,
|
|
120
|
+
], template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n}\r\n" }]
|
|
117
121
|
}] });
|
|
118
122
|
|
|
119
123
|
class PaymentPlansComponent {
|
|
@@ -187,33 +191,46 @@ class PaymentPlansComponent {
|
|
|
187
191
|
this.form = generateFormFromProps(data);
|
|
188
192
|
}
|
|
189
193
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: PaymentPlansComponent, isStandalone:
|
|
194
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: PaymentPlansComponent, isStandalone: true, selector: "abp-payment-plans", providers: [
|
|
191
195
|
ListService,
|
|
192
196
|
{
|
|
193
197
|
provide: EXTENSIONS_IDENTIFIER,
|
|
194
198
|
useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
195
199
|
},
|
|
196
|
-
], ngImport: i0, template: "@if (data$ | async; as data) {\r\n
|
|
200
|
+
], ngImport: i0, template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
197
201
|
}
|
|
198
202
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansComponent, decorators: [{
|
|
199
203
|
type: Component,
|
|
200
|
-
args: [{
|
|
204
|
+
args: [{ selector: 'abp-payment-plans', encapsulation: ViewEncapsulation.None, providers: [
|
|
201
205
|
ListService,
|
|
202
206
|
{
|
|
203
207
|
provide: EXTENSIONS_IDENTIFIER,
|
|
204
208
|
useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
205
209
|
},
|
|
206
|
-
],
|
|
210
|
+
], imports: [
|
|
211
|
+
FormsModule,
|
|
212
|
+
ReactiveFormsModule,
|
|
213
|
+
NgxValidateCoreModule,
|
|
214
|
+
ModalCloseDirective,
|
|
215
|
+
LocalizationPipe,
|
|
216
|
+
AsyncPipe,
|
|
217
|
+
ExtensibleFormComponent,
|
|
218
|
+
ExtensibleTableComponent,
|
|
219
|
+
AdvancedEntityFiltersComponent,
|
|
220
|
+
PageComponent,
|
|
221
|
+
ButtonComponent,
|
|
222
|
+
ModalComponent,
|
|
223
|
+
], template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n}\r\n" }]
|
|
207
224
|
}] });
|
|
208
225
|
|
|
209
226
|
class ProductsComponent {
|
|
210
227
|
get requestId() {
|
|
211
228
|
return this.route.snapshot.params.requestId;
|
|
212
229
|
}
|
|
213
|
-
constructor(
|
|
214
|
-
this.route =
|
|
215
|
-
this.service =
|
|
216
|
-
this.list =
|
|
230
|
+
constructor() {
|
|
231
|
+
this.route = inject(ActivatedRoute);
|
|
232
|
+
this.service = inject(PaymentRequestAdminService);
|
|
233
|
+
this.list = inject(ListService);
|
|
217
234
|
this.data = [];
|
|
218
235
|
this.breadCrumbItems = [
|
|
219
236
|
{
|
|
@@ -230,27 +247,33 @@ class ProductsComponent {
|
|
|
230
247
|
name: 'Payment::Products',
|
|
231
248
|
},
|
|
232
249
|
];
|
|
233
|
-
list.hookToQuery(() => this.service.get(this.requestId).pipe(map(request => request.products))).subscribe((data) => (this.data = data));
|
|
250
|
+
this.list.hookToQuery(() => this.service.get(this.requestId).pipe(map(request => request.products))).subscribe((data) => (this.data = data));
|
|
234
251
|
}
|
|
235
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProductsComponent, deps: [
|
|
236
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: ProductsComponent, isStandalone:
|
|
252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProductsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
253
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: ProductsComponent, isStandalone: true, selector: "abp-products", providers: [
|
|
237
254
|
ListService,
|
|
238
255
|
{
|
|
239
256
|
provide: EXTENSIONS_IDENTIFIER,
|
|
240
257
|
useValue: "Payment.Products" /* ePaymentComponents.Products */,
|
|
241
258
|
},
|
|
242
|
-
], ngImport: i0, template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n", dependencies: [{ kind: "
|
|
259
|
+
], ngImport: i0, template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n", dependencies: [{ kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: PageBreadcrumbContainerComponent, selector: "abp-page-breadcrumb-container" }, { kind: "component", type: BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }] }); }
|
|
243
260
|
}
|
|
244
261
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProductsComponent, decorators: [{
|
|
245
262
|
type: Component,
|
|
246
|
-
args: [{
|
|
263
|
+
args: [{ selector: 'abp-products', providers: [
|
|
247
264
|
ListService,
|
|
248
265
|
{
|
|
249
266
|
provide: EXTENSIONS_IDENTIFIER,
|
|
250
267
|
useValue: "Payment.Products" /* ePaymentComponents.Products */,
|
|
251
268
|
},
|
|
269
|
+
], imports: [
|
|
270
|
+
LocalizationPipe,
|
|
271
|
+
ExtensibleTableComponent,
|
|
272
|
+
PageBreadcrumbContainerComponent,
|
|
273
|
+
BreadcrumbItemsComponent,
|
|
274
|
+
PageComponent,
|
|
252
275
|
], template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n" }]
|
|
253
|
-
}], ctorParameters: () => [
|
|
276
|
+
}], ctorParameters: () => [] });
|
|
254
277
|
|
|
255
278
|
class RequestsSearchFormComponent {
|
|
256
279
|
constructor() {
|
|
@@ -262,11 +285,11 @@ class RequestsSearchFormComponent {
|
|
|
262
285
|
this.pageQueryChange.emit(this.pageQuery);
|
|
263
286
|
}
|
|
264
287
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsSearchFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
265
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RequestsSearchFormComponent, isStandalone:
|
|
288
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RequestsSearchFormComponent, isStandalone: true, selector: "abp-payment-requests-search-form", inputs: { list: "list", pageQuery: "pageQuery" }, outputs: { pageQueryChange: "pageQueryChange" }, providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], ngImport: i0, template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n @for (paymentType of paymentTypes; track $index) {\r\n <option [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n @for (state of states; track $index) {\r\n <option [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "contentTemplate", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "popperOptions", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
266
289
|
}
|
|
267
290
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsSearchFormComponent, decorators: [{
|
|
268
291
|
type: Component,
|
|
269
|
-
args: [{
|
|
292
|
+
args: [{ selector: 'abp-payment-requests-search-form', providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], imports: [FormsModule, NgbInputDatepicker, LocalizationPipe], template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n @for (paymentType of paymentTypes; track $index) {\r\n <option [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n @for (state of states; track $index) {\r\n <option [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
|
|
270
293
|
}], propDecorators: { list: [{
|
|
271
294
|
type: Input
|
|
272
295
|
}], pageQuery: [{
|
|
@@ -276,36 +299,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
276
299
|
}] } });
|
|
277
300
|
|
|
278
301
|
class RequestsComponent {
|
|
279
|
-
constructor(
|
|
280
|
-
this.list =
|
|
281
|
-
this.paymentRequestAdminService =
|
|
282
|
-
this.router =
|
|
283
|
-
this.route =
|
|
302
|
+
constructor() {
|
|
303
|
+
this.list = inject(ListService);
|
|
304
|
+
this.paymentRequestAdminService = inject(PaymentRequestAdminService);
|
|
305
|
+
this.router = inject(Router);
|
|
306
|
+
this.route = inject(ActivatedRoute);
|
|
284
307
|
this.pageQuery = {};
|
|
285
308
|
this.data$ = this.list.hookToQuery(query => this.paymentRequestAdminService.getList({ ...query, ...this.pageQuery }));
|
|
286
309
|
}
|
|
287
310
|
goToProducts(id) {
|
|
288
311
|
this.router.navigate([id, 'products'], { relativeTo: this.route });
|
|
289
312
|
}
|
|
290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsComponent, deps: [
|
|
291
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RequestsComponent, isStandalone:
|
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
314
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RequestsComponent, isStandalone: true, selector: "abp-payment-requests", providers: [
|
|
292
315
|
ListService,
|
|
293
316
|
{
|
|
294
317
|
provide: EXTENSIONS_IDENTIFIER,
|
|
295
318
|
useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
296
319
|
},
|
|
297
|
-
], ngImport: i0, template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\">\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form
|
|
320
|
+
], ngImport: i0, template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\">\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\" />\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n}\r\n", dependencies: [{ kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: ["list", "pageQuery"], outputs: ["pageQueryChange"] }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: AdvancedEntityFiltersAboveSearchComponent, selector: "abp-advanced-entity-filters-above-search" }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }] }); }
|
|
298
321
|
}
|
|
299
322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsComponent, decorators: [{
|
|
300
323
|
type: Component,
|
|
301
|
-
args: [{
|
|
324
|
+
args: [{ selector: 'abp-payment-requests', providers: [
|
|
302
325
|
ListService,
|
|
303
326
|
{
|
|
304
327
|
provide: EXTENSIONS_IDENTIFIER,
|
|
305
328
|
useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
306
329
|
},
|
|
307
|
-
],
|
|
308
|
-
|
|
330
|
+
], imports: [
|
|
331
|
+
LocalizationPipe,
|
|
332
|
+
AsyncPipe,
|
|
333
|
+
RequestsSearchFormComponent,
|
|
334
|
+
ExtensibleTableComponent,
|
|
335
|
+
AdvancedEntityFiltersComponent,
|
|
336
|
+
AdvancedEntityFiltersAboveSearchComponent,
|
|
337
|
+
PageComponent,
|
|
338
|
+
], template: "@if (data$ | async; as data) {\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters localizationSourceName=\"Payment\" [list]=\"list\">\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\" />\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n}\r\n" }]
|
|
339
|
+
}], ctorParameters: () => [] });
|
|
309
340
|
|
|
310
341
|
const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
311
342
|
{
|
|
@@ -449,19 +480,16 @@ const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
|
449
480
|
]);
|
|
450
481
|
|
|
451
482
|
class SubscriptionTooltipComponent {
|
|
452
|
-
constructor(
|
|
453
|
-
this.value$ =
|
|
483
|
+
constructor() {
|
|
484
|
+
this.value$ = inject(PROP_DATA_STREAM);
|
|
454
485
|
}
|
|
455
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipComponent, deps: [
|
|
456
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SubscriptionTooltipComponent, isStandalone:
|
|
486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
487
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SubscriptionTooltipComponent, isStandalone: true, selector: "abp-subscription-tooltip", ngImport: i0, template: "@if (value$ | async; as value) {\r\n @if (value.isSubscription) {\r\n <i\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n } @else {\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n }\r\n}\r\n", dependencies: [{ kind: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
457
488
|
}
|
|
458
489
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipComponent, decorators: [{
|
|
459
490
|
type: Component,
|
|
460
|
-
args: [{
|
|
461
|
-
}]
|
|
462
|
-
type: Inject,
|
|
463
|
-
args: [PROP_DATA_STREAM]
|
|
464
|
-
}] }] });
|
|
491
|
+
args: [{ selector: 'abp-subscription-tooltip', imports: [NgbTooltip, AsyncPipe, LocalizationPipe], template: "@if (value$ | async; as value) {\r\n @if (value.isSubscription) {\r\n <i\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n } @else {\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n }\r\n}\r\n" }]
|
|
492
|
+
}] });
|
|
465
493
|
|
|
466
494
|
const getSubscriptionStatus = (condition, defaultValue) => {
|
|
467
495
|
return of({ isSubscription: condition, defaultValue });
|
|
@@ -675,7 +703,7 @@ const routes = [
|
|
|
675
703
|
];
|
|
676
704
|
class PaymentAdminRoutingModule {
|
|
677
705
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
678
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [
|
|
706
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i1$1.RouterModule] }); }
|
|
679
707
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [RouterModule.forChild(routes)] }); }
|
|
680
708
|
}
|
|
681
709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
|
|
@@ -687,14 +715,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
687
715
|
|
|
688
716
|
class PaymentPlansModule {
|
|
689
717
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
690
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansModule,
|
|
718
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansModule, imports: [CommonModule,
|
|
691
719
|
PageModule,
|
|
692
720
|
CoreModule,
|
|
693
721
|
ExtensibleModule,
|
|
694
722
|
ThemeSharedModule,
|
|
695
723
|
ReactiveFormsModule,
|
|
696
724
|
NgxValidateCoreModule,
|
|
697
|
-
AdvancedEntityFiltersModule
|
|
725
|
+
AdvancedEntityFiltersModule,
|
|
726
|
+
PaymentPlansComponent] }); }
|
|
698
727
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansModule, imports: [CommonModule,
|
|
699
728
|
PageModule,
|
|
700
729
|
CoreModule,
|
|
@@ -702,7 +731,8 @@ class PaymentPlansModule {
|
|
|
702
731
|
ThemeSharedModule,
|
|
703
732
|
ReactiveFormsModule,
|
|
704
733
|
NgxValidateCoreModule,
|
|
705
|
-
AdvancedEntityFiltersModule
|
|
734
|
+
AdvancedEntityFiltersModule,
|
|
735
|
+
PaymentPlansComponent] }); }
|
|
706
736
|
}
|
|
707
737
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: PaymentPlansModule, decorators: [{
|
|
708
738
|
type: NgModule,
|
|
@@ -716,23 +746,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
716
746
|
ReactiveFormsModule,
|
|
717
747
|
NgxValidateCoreModule,
|
|
718
748
|
AdvancedEntityFiltersModule,
|
|
749
|
+
PaymentPlansComponent,
|
|
719
750
|
],
|
|
720
751
|
exports: [],
|
|
721
|
-
declarations: [PaymentPlansComponent],
|
|
722
752
|
providers: [],
|
|
723
753
|
}]
|
|
724
754
|
}] });
|
|
725
755
|
|
|
726
756
|
class GatewayPlansModule {
|
|
727
757
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
728
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansModule,
|
|
758
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansModule, imports: [CommonModule,
|
|
729
759
|
PageModule,
|
|
730
760
|
CoreModule,
|
|
731
761
|
ExtensibleModule,
|
|
732
762
|
ThemeSharedModule,
|
|
733
763
|
ReactiveFormsModule,
|
|
734
764
|
NgxValidateCoreModule,
|
|
735
|
-
AdvancedEntityFiltersModule
|
|
765
|
+
AdvancedEntityFiltersModule,
|
|
766
|
+
GatewayPlansComponent] }); }
|
|
736
767
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansModule, imports: [CommonModule,
|
|
737
768
|
PageModule,
|
|
738
769
|
CoreModule,
|
|
@@ -740,7 +771,8 @@ class GatewayPlansModule {
|
|
|
740
771
|
ThemeSharedModule,
|
|
741
772
|
ReactiveFormsModule,
|
|
742
773
|
NgxValidateCoreModule,
|
|
743
|
-
AdvancedEntityFiltersModule
|
|
774
|
+
AdvancedEntityFiltersModule,
|
|
775
|
+
GatewayPlansComponent] }); }
|
|
744
776
|
}
|
|
745
777
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: GatewayPlansModule, decorators: [{
|
|
746
778
|
type: NgModule,
|
|
@@ -754,30 +786,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
754
786
|
ReactiveFormsModule,
|
|
755
787
|
NgxValidateCoreModule,
|
|
756
788
|
AdvancedEntityFiltersModule,
|
|
789
|
+
GatewayPlansComponent,
|
|
757
790
|
],
|
|
758
791
|
exports: [],
|
|
759
|
-
declarations: [GatewayPlansComponent],
|
|
760
792
|
providers: [],
|
|
761
793
|
}]
|
|
762
794
|
}] });
|
|
763
795
|
|
|
764
796
|
class SubscriptionTooltipModule {
|
|
765
797
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
766
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipModule,
|
|
798
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipModule, imports: [CommonModule, CoreModule, NgbTooltipModule, SubscriptionTooltipComponent], exports: [SubscriptionTooltipComponent] }); }
|
|
767
799
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipModule, imports: [CommonModule, CoreModule, NgbTooltipModule] }); }
|
|
768
800
|
}
|
|
769
801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SubscriptionTooltipModule, decorators: [{
|
|
770
802
|
type: NgModule,
|
|
771
803
|
args: [{
|
|
772
|
-
declarations: [SubscriptionTooltipComponent],
|
|
773
804
|
exports: [SubscriptionTooltipComponent],
|
|
774
|
-
imports: [CommonModule, CoreModule, NgbTooltipModule],
|
|
805
|
+
imports: [CommonModule, CoreModule, NgbTooltipModule, SubscriptionTooltipComponent],
|
|
775
806
|
}]
|
|
776
807
|
}] });
|
|
777
808
|
|
|
778
809
|
class RequestsModule {
|
|
779
810
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
780
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: RequestsModule,
|
|
811
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: RequestsModule, imports: [CommonModule,
|
|
781
812
|
PageModule,
|
|
782
813
|
CoreModule,
|
|
783
814
|
ExtensibleModule,
|
|
@@ -785,7 +816,9 @@ class RequestsModule {
|
|
|
785
816
|
ReactiveFormsModule,
|
|
786
817
|
AdvancedEntityFiltersModule,
|
|
787
818
|
NgbDatepickerModule,
|
|
788
|
-
SubscriptionTooltipModule
|
|
819
|
+
SubscriptionTooltipModule,
|
|
820
|
+
RequestsComponent,
|
|
821
|
+
RequestsSearchFormComponent] }); }
|
|
789
822
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsModule, imports: [CommonModule,
|
|
790
823
|
PageModule,
|
|
791
824
|
CoreModule,
|
|
@@ -794,12 +827,13 @@ class RequestsModule {
|
|
|
794
827
|
ReactiveFormsModule,
|
|
795
828
|
AdvancedEntityFiltersModule,
|
|
796
829
|
NgbDatepickerModule,
|
|
797
|
-
SubscriptionTooltipModule
|
|
830
|
+
SubscriptionTooltipModule,
|
|
831
|
+
RequestsComponent,
|
|
832
|
+
RequestsSearchFormComponent] }); }
|
|
798
833
|
}
|
|
799
834
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RequestsModule, decorators: [{
|
|
800
835
|
type: NgModule,
|
|
801
836
|
args: [{
|
|
802
|
-
declarations: [RequestsComponent, RequestsSearchFormComponent],
|
|
803
837
|
imports: [
|
|
804
838
|
CommonModule,
|
|
805
839
|
PageModule,
|
|
@@ -810,29 +844,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
810
844
|
AdvancedEntityFiltersModule,
|
|
811
845
|
NgbDatepickerModule,
|
|
812
846
|
SubscriptionTooltipModule,
|
|
847
|
+
RequestsComponent,
|
|
848
|
+
RequestsSearchFormComponent,
|
|
813
849
|
],
|
|
814
850
|
}]
|
|
815
851
|
}] });
|
|
816
852
|
|
|
817
853
|
class ProductsModule {
|
|
818
854
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProductsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
819
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: ProductsModule,
|
|
855
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: ProductsModule, imports: [CommonModule,
|
|
820
856
|
PageModule,
|
|
821
857
|
CoreModule,
|
|
822
858
|
ExtensibleModule,
|
|
823
859
|
ThemeSharedModule,
|
|
824
|
-
SubscriptionTooltipModule
|
|
860
|
+
SubscriptionTooltipModule,
|
|
861
|
+
ProductsComponent] }); }
|
|
825
862
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProductsModule, imports: [CommonModule,
|
|
826
863
|
PageModule,
|
|
827
864
|
CoreModule,
|
|
828
865
|
ExtensibleModule,
|
|
829
866
|
ThemeSharedModule,
|
|
830
|
-
SubscriptionTooltipModule
|
|
867
|
+
SubscriptionTooltipModule,
|
|
868
|
+
ProductsComponent] }); }
|
|
831
869
|
}
|
|
832
870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ProductsModule, decorators: [{
|
|
833
871
|
type: NgModule,
|
|
834
872
|
args: [{
|
|
835
|
-
declarations: [ProductsComponent],
|
|
836
873
|
imports: [
|
|
837
874
|
CommonModule,
|
|
838
875
|
PageModule,
|
|
@@ -840,6 +877,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
840
877
|
ExtensibleModule,
|
|
841
878
|
ThemeSharedModule,
|
|
842
879
|
SubscriptionTooltipModule,
|
|
880
|
+
ProductsComponent,
|
|
843
881
|
],
|
|
844
882
|
}]
|
|
845
883
|
}] });
|
|
@@ -873,6 +911,9 @@ class PaymentAdminModule {
|
|
|
873
911
|
],
|
|
874
912
|
};
|
|
875
913
|
}
|
|
914
|
+
/**
|
|
915
|
+
* @deprecated `PaymentAdminModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
|
|
916
|
+
*/
|
|
876
917
|
static forLazy(options = {}) {
|
|
877
918
|
return new LazyModuleFactory(PaymentAdminModule.forChild(options));
|
|
878
919
|
}
|
|
@@ -902,9 +943,96 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
902
943
|
}]
|
|
903
944
|
}] });
|
|
904
945
|
|
|
946
|
+
function createRoutes(config = {}) {
|
|
947
|
+
const paymentProviders = [PaymentInitializer];
|
|
948
|
+
return [
|
|
949
|
+
{
|
|
950
|
+
path: '',
|
|
951
|
+
redirectTo: 'plans',
|
|
952
|
+
pathMatch: 'full',
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
path: '',
|
|
956
|
+
component: RouterOutletComponent,
|
|
957
|
+
providers: [...paymentProviders, providePaymentContributors(config)],
|
|
958
|
+
canActivate: [authGuard, permissionGuard, PaymentInitializer],
|
|
959
|
+
children: [
|
|
960
|
+
{
|
|
961
|
+
path: 'plans',
|
|
962
|
+
component: ReplaceableRouteContainerComponent,
|
|
963
|
+
data: {
|
|
964
|
+
requiredPolicy: 'Payment.Plans',
|
|
965
|
+
replaceableComponent: {
|
|
966
|
+
key: "Payment.Plans" /* ePaymentComponents.Plans */,
|
|
967
|
+
defaultComponent: PaymentPlansComponent,
|
|
968
|
+
},
|
|
969
|
+
},
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
path: 'plans/:planId',
|
|
973
|
+
component: ReplaceableRouteContainerComponent,
|
|
974
|
+
data: {
|
|
975
|
+
requiredPolicy: 'Payment.Plans.GatewayPlans',
|
|
976
|
+
replaceableComponent: {
|
|
977
|
+
key: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
|
|
978
|
+
defaultComponent: GatewayPlansComponent,
|
|
979
|
+
},
|
|
980
|
+
},
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
path: 'requests',
|
|
984
|
+
component: ReplaceableRouteContainerComponent,
|
|
985
|
+
data: {
|
|
986
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
987
|
+
replaceableComponent: {
|
|
988
|
+
key: "Payment.Requests" /* ePaymentComponents.Requests */,
|
|
989
|
+
defaultComponent: RequestsComponent,
|
|
990
|
+
},
|
|
991
|
+
},
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
path: 'requests/:requestId/products',
|
|
995
|
+
component: ReplaceableRouteContainerComponent,
|
|
996
|
+
data: {
|
|
997
|
+
requiredPolicy: 'Payment.PaymentRequests',
|
|
998
|
+
replaceableComponent: {
|
|
999
|
+
key: "Payment.Products" /* ePaymentComponents.Products */,
|
|
1000
|
+
defaultComponent: ProductsComponent,
|
|
1001
|
+
},
|
|
1002
|
+
},
|
|
1003
|
+
},
|
|
1004
|
+
],
|
|
1005
|
+
},
|
|
1006
|
+
];
|
|
1007
|
+
}
|
|
1008
|
+
function providePaymentContributors(options = {}) {
|
|
1009
|
+
return [
|
|
1010
|
+
{
|
|
1011
|
+
provide: PAYMENT_ENTITY_ACTION_CONTRIBUTORS,
|
|
1012
|
+
useValue: options.entityActionContributors,
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
provide: PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
1016
|
+
useValue: options.toolbarActionContributors,
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
provide: PAYMENT_ENTITY_PROP_CONTRIBUTORS,
|
|
1020
|
+
useValue: options.entityPropContributors,
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
provide: PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,
|
|
1024
|
+
useValue: options.createFormPropContributors,
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
provide: PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,
|
|
1028
|
+
useValue: options.editFormPropContributors,
|
|
1029
|
+
},
|
|
1030
|
+
];
|
|
1031
|
+
}
|
|
1032
|
+
|
|
905
1033
|
/**
|
|
906
1034
|
* Generated bundle index. Do not edit.
|
|
907
1035
|
*/
|
|
908
1036
|
|
|
909
|
-
export { DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS, DEFAULT_GATEWAY_PLANS_ENTITY_PROPS, DEFAULT_PAYMENT_CREATE_FORM_PROPS, DEFAULT_PAYMENT_EDIT_FORM_PROPS, DEFAULT_PAYMENT_ENTITY_ACTIONS, DEFAULT_PAYMENT_ENTITY_PROPS, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, DEFAULT_PLANS_CREATE_FORM_PROPS, DEFAULT_PLANS_EDIT_FORM_PROPS, DEFAULT_PLANS_ENTITY_ACTIONS, DEFAULT_PLANS_ENTITY_PROPS, DEFAULT_PLANS_TOOLBAR_ACTIONS, GatewayPlansComponent, GatewayPlansModule, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, PAYMENT_ENTITY_ACTION_CONTRIBUTORS, PAYMENT_ENTITY_PROP_CONTRIBUTORS, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, PaymentAdminModule, PaymentAdminRoutingModule, PaymentInitializer, PaymentPlansComponent, PaymentPlansModule, getSubscriptionStatus };
|
|
1037
|
+
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, createRoutes, getSubscriptionStatus };
|
|
910
1038
|
//# sourceMappingURL=volo-abp.ng.payment-admin.mjs.map
|