@volo/abp.ng.payment 7.2.1 → 7.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.
Files changed (181) hide show
  1. package/admin/components/gateway-plans/gateway-plans.component.d.ts +31 -31
  2. package/admin/components/gateway-plans/gateway-plans.module.d.ts +15 -15
  3. package/admin/components/gateway-plans/index.d.ts +2 -2
  4. package/admin/components/index.d.ts +2 -2
  5. package/admin/components/plans/index.d.ts +2 -2
  6. package/admin/components/plans/plans.component.d.ts +31 -31
  7. package/admin/components/plans/plans.module.d.ts +15 -15
  8. package/admin/components/products/products.component.d.ts +22 -22
  9. package/admin/components/products/products.module.d.ts +13 -13
  10. package/admin/components/requests/requests-search-form/requests-search-form.component.d.ts +14 -14
  11. package/admin/components/requests/requests.component.d.ts +17 -17
  12. package/admin/components/requests/requests.module.d.ts +17 -17
  13. package/admin/components/subscription-tooltip/subscription-tooltip.component.d.ts +9 -9
  14. package/admin/components/subscription-tooltip/subscription-tooltip.module.d.ts +10 -10
  15. package/admin/config/enums/index.d.ts +2 -2
  16. package/admin/config/enums/policy-names.d.ts +11 -11
  17. package/admin/config/enums/route-names.d.ts +5 -5
  18. package/admin/config/index.d.ts +5 -5
  19. package/admin/config/payment-admin-config.module.d.ts +8 -8
  20. package/admin/config/providers/index.d.ts +1 -1
  21. package/admin/config/providers/route.provider.d.ts +8 -8
  22. package/admin/config/public-api.d.ts +3 -3
  23. package/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.d.ts +3 -3
  24. package/admin/defaults/gateway-plans/default-gateway-plans-entity-props.d.ts +3 -3
  25. package/admin/defaults/gateway-plans/default-gateway-plans-form-props.d.ts +4 -4
  26. package/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.d.ts +3 -3
  27. package/admin/defaults/gateway-plans/index.d.ts +2 -2
  28. package/admin/defaults/index.d.ts +2 -2
  29. package/admin/defaults/plans/default-plans-entity-actions.d.ts +3 -3
  30. package/admin/defaults/plans/default-plans-entity-props.d.ts +3 -3
  31. package/admin/defaults/plans/default-plans-form-props.d.ts +4 -4
  32. package/admin/defaults/plans/default-plans-toolbar-actions.d.ts +3 -3
  33. package/admin/defaults/plans/index.d.ts +4 -4
  34. package/admin/defaults/products/default-products-entity-props.d.ts +2 -2
  35. package/admin/defaults/products/index.d.ts +1 -1
  36. package/admin/defaults/requests/default-requests-entity-actions.d.ts +3 -3
  37. package/admin/defaults/requests/default-requests-entity-props.d.ts +3 -3
  38. package/admin/enums/components.d.ts +6 -6
  39. package/admin/enums/index.d.ts +1 -1
  40. package/admin/index.d.ts +5 -5
  41. package/admin/models/config-options.d.ts +30 -30
  42. package/admin/models/index.d.ts +1 -1
  43. package/admin/models/subscription-tooltip-data.d.ts +4 -4
  44. package/admin/payment-admin-routing.module.d.ts +7 -7
  45. package/admin/payment-admin.module.d.ts +15 -15
  46. package/admin/payment.initializer.d.ts +10 -11
  47. package/admin/public-api.d.ts +9 -9
  48. package/admin/tokens/extensions.token.d.ts +49 -49
  49. package/admin/tokens/index.d.ts +1 -1
  50. package/admin/utils/get-subscription-status.d.ts +4 -4
  51. package/admin/utils/index.d.ts +1 -1
  52. package/esm2022/admin/components/gateway-plans/gateway-plans.component.mjs +102 -0
  53. package/esm2022/admin/components/gateway-plans/gateway-plans.module.mjs +50 -0
  54. package/{esm2020 → esm2022}/admin/components/gateway-plans/index.mjs +2 -2
  55. package/{esm2020 → esm2022}/admin/components/index.mjs +2 -2
  56. package/{esm2020 → esm2022}/admin/components/plans/index.mjs +2 -2
  57. package/esm2022/admin/components/plans/plans.component.mjs +101 -0
  58. package/esm2022/admin/components/plans/plans.module.mjs +50 -0
  59. package/esm2022/admin/components/products/products.component.mjs +60 -0
  60. package/esm2022/admin/components/products/products.module.mjs +40 -0
  61. package/esm2022/admin/components/requests/requests-search-form/requests-search-form.component.mjs +34 -0
  62. package/esm2022/admin/components/requests/requests.component.mjs +47 -0
  63. package/esm2022/admin/components/requests/requests.module.mjs +53 -0
  64. package/esm2022/admin/components/subscription-tooltip/subscription-tooltip.component.mjs +24 -0
  65. package/esm2022/admin/components/subscription-tooltip/subscription-tooltip.module.mjs +21 -0
  66. package/{esm2020 → esm2022}/admin/config/enums/index.mjs +2 -2
  67. package/{esm2020 → esm2022}/admin/config/enums/policy-names.mjs +1 -1
  68. package/{esm2020 → esm2022}/admin/config/enums/route-names.mjs +1 -1
  69. package/esm2022/admin/config/payment-admin-config.module.mjs +20 -0
  70. package/{esm2020 → esm2022}/admin/config/providers/index.mjs +1 -1
  71. package/{esm2020 → esm2022}/admin/config/providers/route.provider.mjs +38 -38
  72. package/{esm2020 → esm2022}/admin/config/public-api.mjs +3 -3
  73. package/{esm2020 → esm2022}/admin/config/volo-abp.ng.payment-admin-config.mjs +4 -4
  74. package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-entity-actions.mjs +20 -20
  75. package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-entity-props.mjs +15 -15
  76. package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-form-props.mjs +39 -39
  77. package/{esm2020 → esm2022}/admin/defaults/gateway-plans/default-gateway-plans-toolbar-actions.mjs +13 -13
  78. package/{esm2020 → esm2022}/admin/defaults/gateway-plans/index.mjs +2 -2
  79. package/{esm2020 → esm2022}/admin/defaults/index.mjs +2 -2
  80. package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-entity-actions.mjs +28 -28
  81. package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-entity-props.mjs +9 -9
  82. package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-form-props.mjs +12 -12
  83. package/{esm2020 → esm2022}/admin/defaults/plans/default-plans-toolbar-actions.mjs +13 -13
  84. package/{esm2020 → esm2022}/admin/defaults/plans/index.mjs +4 -4
  85. package/{esm2020 → esm2022}/admin/defaults/products/default-products-entity-props.mjs +42 -42
  86. package/{esm2020 → esm2022}/admin/defaults/products/index.mjs +1 -1
  87. package/{esm2020 → esm2022}/admin/defaults/requests/default-requests-entity-actions.mjs +12 -12
  88. package/{esm2020 → esm2022}/admin/defaults/requests/default-requests-entity-props.mjs +43 -43
  89. package/{esm2020 → esm2022}/admin/enums/components.mjs +1 -1
  90. package/{esm2020 → esm2022}/admin/enums/index.mjs +1 -1
  91. package/{esm2020 → esm2022}/admin/models/config-options.mjs +1 -1
  92. package/{esm2020 → esm2022}/admin/models/index.mjs +1 -1
  93. package/{esm2020 → esm2022}/admin/models/subscription-tooltip-data.mjs +1 -1
  94. package/{esm2020 → esm2022}/admin/payment-admin-routing.module.mjs +81 -80
  95. package/esm2022/admin/payment-admin.module.mjs +69 -0
  96. package/esm2022/admin/payment.initializer.mjs +37 -0
  97. package/{esm2020 → esm2022}/admin/public-api.mjs +9 -9
  98. package/{esm2020 → esm2022}/admin/tokens/extensions.token.mjs +40 -40
  99. package/{esm2020 → esm2022}/admin/tokens/index.mjs +1 -1
  100. package/{esm2020 → esm2022}/admin/utils/get-subscription-status.mjs +4 -4
  101. package/{esm2020 → esm2022}/admin/utils/index.mjs +1 -1
  102. package/{esm2020 → esm2022}/admin/volo-abp.ng.payment-admin.mjs +4 -4
  103. package/{esm2020 → esm2022}/proxy/lib/index.mjs +5 -5
  104. package/{esm2020 → esm2022}/proxy/lib/proxy/admin/plans/index.mjs +2 -2
  105. package/{esm2020 → esm2022}/proxy/lib/proxy/admin/plans/models.mjs +1 -1
  106. package/esm2022/proxy/lib/proxy/admin/plans/plan-admin.service.mjs +63 -0
  107. package/{esm2020 → esm2022}/proxy/lib/proxy/admin/requests/index.mjs +2 -2
  108. package/{esm2020 → esm2022}/proxy/lib/proxy/admin/requests/models.mjs +1 -1
  109. package/esm2022/proxy/lib/proxy/admin/requests/payment-request-admin.service.mjs +29 -0
  110. package/esm2022/proxy/lib/proxy/gateways/gateway.service.mjs +28 -0
  111. package/{esm2020 → esm2022}/proxy/lib/proxy/gateways/index.mjs +2 -2
  112. package/{esm2020 → esm2022}/proxy/lib/proxy/gateways/models.mjs +1 -1
  113. package/{esm2020 → esm2022}/proxy/lib/proxy/plans/index.mjs +2 -2
  114. package/{esm2020 → esm2022}/proxy/lib/proxy/plans/models.mjs +1 -1
  115. package/esm2022/proxy/lib/proxy/plans/plan.service.mjs +28 -0
  116. package/{esm2020 → esm2022}/proxy/lib/proxy/requests/index.mjs +3 -3
  117. package/{esm2020 → esm2022}/proxy/lib/proxy/requests/models.mjs +1 -1
  118. package/{esm2020 → esm2022}/proxy/lib/proxy/requests/payment-request-state.enum.mjs +9 -9
  119. package/{esm2020 → esm2022}/proxy/lib/proxy/requests/payment-type.enum.mjs +7 -7
  120. package/{esm2020 → esm2022}/proxy/public-api.mjs +1 -1
  121. package/{esm2020 → esm2022}/proxy/volo-abp.ng.payment-proxy.mjs +4 -4
  122. package/{esm2020 → esm2022}/public-api.mjs +1 -1
  123. package/{esm2020 → esm2022}/volo-abp.ng.payment.mjs +4 -4
  124. package/{fesm2020 → fesm2022}/volo-abp.ng.payment-admin-config.mjs +51 -51
  125. package/{fesm2020 → fesm2022}/volo-abp.ng.payment-admin-config.mjs.map +1 -1
  126. package/{fesm2020 → fesm2022}/volo-abp.ng.payment-admin.mjs +811 -811
  127. package/fesm2022/volo-abp.ng.payment-admin.mjs.map +1 -0
  128. package/{fesm2020 → fesm2022}/volo-abp.ng.payment-proxy.mjs +134 -134
  129. package/{fesm2015 → fesm2022}/volo-abp.ng.payment-proxy.mjs.map +1 -1
  130. package/{fesm2015 → fesm2022}/volo-abp.ng.payment.mjs +2 -2
  131. package/index.d.ts +5 -5
  132. package/package.json +20 -32
  133. package/proxy/index.d.ts +5 -5
  134. package/proxy/lib/index.d.ts +5 -5
  135. package/proxy/lib/proxy/admin/plans/index.d.ts +2 -2
  136. package/proxy/lib/proxy/admin/plans/models.d.ts +20 -20
  137. package/proxy/lib/proxy/admin/plans/plan-admin.service.d.ts +21 -21
  138. package/proxy/lib/proxy/admin/requests/index.d.ts +2 -2
  139. package/proxy/lib/proxy/admin/requests/models.d.ts +10 -10
  140. package/proxy/lib/proxy/admin/requests/payment-request-admin.service.d.ts +14 -14
  141. package/proxy/lib/proxy/gateways/gateway.service.d.ts +12 -12
  142. package/proxy/lib/proxy/gateways/index.d.ts +2 -2
  143. package/proxy/lib/proxy/gateways/models.d.ts +5 -5
  144. package/proxy/lib/proxy/plans/index.d.ts +2 -2
  145. package/proxy/lib/proxy/plans/models.d.ts +10 -10
  146. package/proxy/lib/proxy/plans/plan.service.d.ts +12 -12
  147. package/proxy/lib/proxy/requests/index.d.ts +3 -3
  148. package/proxy/lib/proxy/requests/models.d.ts +25 -25
  149. package/proxy/lib/proxy/requests/payment-request-state.enum.d.ts +7 -7
  150. package/proxy/lib/proxy/requests/payment-type.enum.d.ts +5 -5
  151. package/proxy/public-api.d.ts +1 -1
  152. package/public-api.d.ts +1 -1
  153. package/esm2020/admin/components/gateway-plans/gateway-plans.component.mjs +0 -101
  154. package/esm2020/admin/components/gateway-plans/gateway-plans.module.mjs +0 -49
  155. package/esm2020/admin/components/plans/plans.component.mjs +0 -100
  156. package/esm2020/admin/components/plans/plans.module.mjs +0 -49
  157. package/esm2020/admin/components/products/products.component.mjs +0 -59
  158. package/esm2020/admin/components/products/products.module.mjs +0 -39
  159. package/esm2020/admin/components/requests/requests-search-form/requests-search-form.component.mjs +0 -33
  160. package/esm2020/admin/components/requests/requests.component.mjs +0 -46
  161. package/esm2020/admin/components/requests/requests.module.mjs +0 -52
  162. package/esm2020/admin/components/subscription-tooltip/subscription-tooltip.component.mjs +0 -23
  163. package/esm2020/admin/components/subscription-tooltip/subscription-tooltip.module.mjs +0 -20
  164. package/esm2020/admin/config/payment-admin-config.module.mjs +0 -19
  165. package/esm2020/admin/payment-admin.module.mjs +0 -68
  166. package/esm2020/admin/payment.initializer.mjs +0 -36
  167. package/esm2020/proxy/lib/proxy/admin/plans/plan-admin.service.mjs +0 -62
  168. package/esm2020/proxy/lib/proxy/admin/requests/payment-request-admin.service.mjs +0 -28
  169. package/esm2020/proxy/lib/proxy/gateways/gateway.service.mjs +0 -27
  170. package/esm2020/proxy/lib/proxy/plans/plan.service.mjs +0 -27
  171. package/fesm2015/volo-abp.ng.payment-admin-config.mjs +0 -63
  172. package/fesm2015/volo-abp.ng.payment-admin-config.mjs.map +0 -1
  173. package/fesm2015/volo-abp.ng.payment-admin.mjs +0 -899
  174. package/fesm2015/volo-abp.ng.payment-admin.mjs.map +0 -1
  175. package/fesm2015/volo-abp.ng.payment-proxy.mjs +0 -155
  176. package/fesm2020/volo-abp.ng.payment-admin.mjs.map +0 -1
  177. package/fesm2020/volo-abp.ng.payment-proxy.mjs.map +0 -1
  178. package/fesm2020/volo-abp.ng.payment.mjs +0 -4
  179. package/fesm2020/volo-abp.ng.payment.mjs.map +0 -1
  180. package/proxy/src/lib/proxy/README.md +0 -17
  181. /package/{fesm2015 → fesm2022}/volo-abp.ng.payment.mjs.map +0 -0
@@ -1,899 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, EventEmitter, Input, Output, Inject, InjectionToken, Injectable, NgModule } from '@angular/core';
3
- import * as i1 from '@abp/ng.core';
4
- import { ListService, ConfigStateService, RouterOutletComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, CoreModule, LazyModuleFactory } from '@abp/ng.core';
5
- import * as i3$1 from '@angular/router';
6
- import { RouterModule } from '@angular/router';
7
- import * as i3 from '@abp/ng.theme.shared';
8
- import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
9
- import * as i6 from '@abp/ng.theme.shared/extensions';
10
- import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, DateAdapter, EntityAction, EntityProp, FormProp, ToolbarAction, PROP_DATA_STREAM, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
11
- import * as i2 from '@volo/abp.ng.payment/proxy';
12
- import { PlanAdminService, paymentTypeOptions, paymentRequestStateOptions, GatewayService, PaymentType } from '@volo/abp.ng.payment/proxy';
13
- import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
14
- import * as i4 from '@angular/common';
15
- import { CommonModule } from '@angular/common';
16
- import * as i4$1 from '@abp/ng.components/page';
17
- import { PageModule } from '@abp/ng.components/page';
18
- import * as i2$1 from '@angular/forms';
19
- import { Validators, ReactiveFormsModule } from '@angular/forms';
20
- import * as i9 from '@ngx-validate/core';
21
- import { NgxValidateCoreModule } from '@ngx-validate/core';
22
- import * as i7 from '@volo/abp.commercial.ng.ui';
23
- import { AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
24
- import * as i3$2 from '@ng-bootstrap/ng-bootstrap';
25
- import { NgbDateAdapter, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
26
- import * as i4$2 from 'rxjs';
27
- import { of } from 'rxjs';
28
-
29
- class GatewayPlansComponent {
30
- constructor(planService, list, injector, confirmationService, activatedRoute) {
31
- this.planService = planService;
32
- this.list = list;
33
- this.injector = injector;
34
- this.confirmationService = confirmationService;
35
- this.activatedRoute = activatedRoute;
36
- this.isModalVisible = false;
37
- this.modalBusy = false;
38
- this.service = injector.get(PlanAdminService);
39
- this.data$ = this.list.hookToQuery(input => this.service.getGatewayPlans(this.planId, input));
40
- }
41
- get planId() {
42
- return this.activatedRoute.snapshot.params.planId;
43
- }
44
- onEdit(id) {
45
- this.planService
46
- .getGatewayPlan(this.planId, id)
47
- .pipe(take(1))
48
- .subscribe(selectedGatewayPlan => {
49
- this.selected = selectedGatewayPlan;
50
- this.openModal();
51
- });
52
- }
53
- onDelete(gateway) {
54
- this.confirmationService
55
- .warn('Payment::GatewayPlanDeletionConfirmationMessage', 'AbpUi::AreYouSure', {
56
- messageLocalizationParams: [gateway],
57
- })
58
- .subscribe((status) => {
59
- if (status === Confirmation.Status.confirm) {
60
- this.service.deleteGatewayPlan(this.planId, gateway).subscribe(() => this.list.get());
61
- }
62
- });
63
- }
64
- onAdd() {
65
- this.selected = {};
66
- this.openModal();
67
- }
68
- openModal() {
69
- this.createForm();
70
- this.isModalVisible = true;
71
- }
72
- save() {
73
- if (!this.form.valid)
74
- return;
75
- this.modalBusy = true;
76
- let stream;
77
- if (this.selected.gateway) {
78
- stream = this.service.updateGatewayPlan(this.planId, this.selected.gateway, this.form.value);
79
- }
80
- else {
81
- stream = this.service.createGatewayPlan(this.planId, this.form.value);
82
- }
83
- stream.pipe(finalize(() => (this.modalBusy = false))).subscribe(() => {
84
- this.list.get();
85
- this.isModalVisible = false;
86
- });
87
- }
88
- createForm() {
89
- const data = new FormPropData(this.injector, this.selected);
90
- this.form = generateFormFromProps(data);
91
- }
92
- }
93
- GatewayPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: GatewayPlansComponent, deps: [{ token: i2.PlanService }, { token: i1.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
94
- GatewayPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: GatewayPlansComponent, selector: "abp-gateway-plans", providers: [
95
- ListService,
96
- {
97
- provide: EXTENSIONS_IDENTIFIER,
98
- useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
99
- },
100
- ], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i7.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], encapsulation: i0.ViewEncapsulation.None });
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: GatewayPlansComponent, decorators: [{
102
- type: Component,
103
- args: [{ selector: 'abp-gateway-plans', encapsulation: ViewEncapsulation.None, providers: [
104
- ListService,
105
- {
106
- provide: EXTENSIONS_IDENTIFIER,
107
- useValue: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
108
- },
109
- ], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
110
- }], ctorParameters: function () { return [{ type: i2.PlanService }, { type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.ActivatedRoute }]; } });
111
-
112
- class PaymentPlansComponent {
113
- constructor(list, injector, confirmationService, router, activatedRoute) {
114
- this.list = list;
115
- this.injector = injector;
116
- this.confirmationService = confirmationService;
117
- this.router = router;
118
- this.activatedRoute = activatedRoute;
119
- this.isModalVisible = false;
120
- this.modalBusy = false;
121
- this.service = injector.get(PlanAdminService);
122
- this.data$ = this.list.hookToQuery(this.service.getList);
123
- }
124
- onEdit(id) {
125
- this.service
126
- .get(id)
127
- .pipe(take(1))
128
- .subscribe(selectedPlan => {
129
- this.selected = selectedPlan;
130
- this.openModal();
131
- });
132
- }
133
- goToGatewayPlans(id) {
134
- this.router.navigate(['./', id], { relativeTo: this.activatedRoute });
135
- }
136
- onDelete(id, name) {
137
- this.confirmationService
138
- .warn('Payment::PlanDeletionConfirmationMessage', 'AbpUi::AreYouSure', {
139
- messageLocalizationParams: [name],
140
- })
141
- .subscribe((status) => {
142
- if (status === Confirmation.Status.confirm) {
143
- this.service.delete(id).subscribe(() => this.list.get());
144
- }
145
- });
146
- }
147
- onAdd() {
148
- this.selected = {};
149
- this.openModal();
150
- }
151
- openModal() {
152
- this.createForm();
153
- this.isModalVisible = true;
154
- }
155
- save() {
156
- if (!this.form.valid)
157
- return;
158
- this.modalBusy = true;
159
- let stream;
160
- if (this.selected.id) {
161
- stream = this.service.update(this.selected.id, this.form.value);
162
- }
163
- else {
164
- stream = this.service.create(this.form.value);
165
- }
166
- stream.pipe(finalize(() => (this.modalBusy = false))).subscribe(() => {
167
- this.list.get();
168
- this.isModalVisible = false;
169
- });
170
- }
171
- createForm() {
172
- const data = new FormPropData(this.injector, this.selected);
173
- this.form = generateFormFromProps(data);
174
- }
175
- }
176
- PaymentPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentPlansComponent, deps: [{ token: i1.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
177
- PaymentPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: PaymentPlansComponent, selector: "abp-payment-plans", providers: [
178
- ListService,
179
- {
180
- provide: EXTENSIONS_IDENTIFIER,
181
- useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
182
- },
183
- ], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i9.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i7.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], encapsulation: i0.ViewEncapsulation.None });
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentPlansComponent, decorators: [{
185
- type: Component,
186
- args: [{ selector: 'abp-payment-plans', encapsulation: ViewEncapsulation.None, providers: [
187
- ListService,
188
- {
189
- provide: EXTENSIONS_IDENTIFIER,
190
- useValue: "Payment.Plans" /* ePaymentComponents.Plans */,
191
- },
192
- ], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n </abp-modal>\r\n</ng-container>\r\n" }]
193
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
194
-
195
- class ProductsComponent {
196
- constructor(route, service, list) {
197
- this.route = route;
198
- this.service = service;
199
- this.list = list;
200
- this.data = [];
201
- this.breadCrumbItems = [
202
- {
203
- name: "Payment::Menu:PaymentManagement" /* ePaymentRouteNames.Payment */,
204
- },
205
- {
206
- name: "Payment::Menu:PaymentRequests" /* ePaymentRouteNames.Requests */,
207
- path: '/payment/requests',
208
- },
209
- {
210
- name: this.requestId,
211
- },
212
- {
213
- name: 'Payment::Products',
214
- },
215
- ];
216
- list.hookToQuery(() => this.service.get(this.requestId).pipe(map(request => request.products))).subscribe((data) => (this.data = data));
217
- }
218
- get requestId() {
219
- return this.route.snapshot.params.requestId;
220
- }
221
- }
222
- ProductsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ProductsComponent, deps: [{ token: i3$1.ActivatedRoute }, { token: i2.PaymentRequestAdminService }, { token: i1.ListService }], target: i0.ɵɵFactoryTarget.Component });
223
- ProductsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ProductsComponent, selector: "abp-products", providers: [
224
- ListService,
225
- {
226
- provide: EXTENSIONS_IDENTIFIER,
227
- useValue: "Payment.Products" /* ePaymentComponents.Products */,
228
- },
229
- ], ngImport: i0, template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n", dependencies: [{ kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4$1.PageBreadcrumbContainerComponent, selector: "abp-page-breadcrumb-container" }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3.BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ProductsComponent, decorators: [{
231
- type: Component,
232
- args: [{ selector: 'abp-products', providers: [
233
- ListService,
234
- {
235
- provide: EXTENSIONS_IDENTIFIER,
236
- useValue: "Payment.Products" /* ePaymentComponents.Products */,
237
- },
238
- ], template: "<ng-container>\r\n <abp-page [title]=\"'Payment::Products' | abpLocalization\" [toolbar]=\"data\">\r\n <abp-page-breadcrumb-container>\r\n <abp-breadcrumb-items [items]=\"breadCrumbItems\"></abp-breadcrumb-items>\r\n </abp-page-breadcrumb-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data\" [recordsTotal]=\"data.length\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</ng-container>\r\n" }]
239
- }], ctorParameters: function () { return [{ type: i3$1.ActivatedRoute }, { type: i2.PaymentRequestAdminService }, { type: i1.ListService }]; } });
240
-
241
- class RequestsSearchFormComponent {
242
- constructor() {
243
- this.pageQueryChange = new EventEmitter();
244
- this.paymentTypes = paymentTypeOptions;
245
- this.states = paymentRequestStateOptions;
246
- }
247
- emit() {
248
- this.pageQueryChange.emit(this.pageQuery);
249
- }
250
- }
251
- RequestsSearchFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsSearchFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
252
- RequestsSearchFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: { list: "list", pageQuery: "pageQuery" }, outputs: { pageQueryChange: "pageQueryChange" }, providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], ngImport: i0, template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let paymentType of paymentTypes\" [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let state of states\" [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "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: i1.LocalizationPipe, name: "abpLocalization" }] });
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsSearchFormComponent, decorators: [{
254
- type: Component,
255
- args: [{ selector: 'abp-payment-requests-search-form', providers: [{ provide: NgbDateAdapter, useClass: DateAdapter }], template: "<form id=\"FilterFormId\" (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMin\">{{\r\n 'Payment::PaymentRequests:CreationDateMin' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMin=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMin\"\r\n name=\"CreationDateMin\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMin\"\r\n ngbDatepicker\r\n (click)=\"dateMin.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"CreationDateMax\">{{\r\n 'Payment::PaymentRequests:CreationDateMax' | abpLocalization\r\n }}</label>\r\n <input\r\n #dateMax=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"CreationDateMax\"\r\n name=\"CreationDateMax\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.creationDateMax\"\r\n ngbDatepicker\r\n (click)=\"dateMax.toggle()\"\r\n (ngModelChange)=\"emit()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{\r\n 'Payment::PaymentRequests:PaymentType' | abpLocalization\r\n }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"PaymentType\"\r\n name=\"PaymentType\"\r\n [(ngModel)]=\"pageQuery.paymentType\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let paymentType of paymentTypes\" [ngValue]=\"paymentType.value\">\r\n {{ paymentType.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3\">\r\n <div class=\"form-group\">\r\n <label for=\"PaymentType\">{{ 'Payment::PaymentRequests:Status' | abpLocalization }}</label>\r\n <!-- TODO: BS5 custom select class replace -->\r\n <select\r\n class=\"custom-select form-control\"\r\n id=\"Status\"\r\n name=\"Status\"\r\n [(ngModel)]=\"pageQuery.status\"\r\n (change)=\"list.get()\"\r\n (ngModelChange)=\"emit()\"\r\n >\r\n <option [ngValue]=\"undefined\"></option>\r\n <option *ngFor=\"let state of states\" [ngValue]=\"state.value\">\r\n {{ state.key }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
256
- }], propDecorators: { list: [{
257
- type: Input
258
- }], pageQuery: [{
259
- type: Input
260
- }], pageQueryChange: [{
261
- type: Output
262
- }] } });
263
-
264
- class RequestsComponent {
265
- constructor(list, paymentRequestAdminService, router, route) {
266
- this.list = list;
267
- this.paymentRequestAdminService = paymentRequestAdminService;
268
- this.router = router;
269
- this.route = route;
270
- this.pageQuery = {};
271
- this.data$ = this.list.hookToQuery(query => this.paymentRequestAdminService.getList(Object.assign(Object.assign({}, query), this.pageQuery)));
272
- }
273
- goToProducts(id) {
274
- this.router.navigate([id, 'products'], { relativeTo: this.route });
275
- }
276
- }
277
- RequestsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsComponent, deps: [{ token: i1.ListService }, { token: i2.PaymentRequestAdminService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
278
- RequestsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: RequestsComponent, selector: "abp-payment-requests", providers: [
279
- ListService,
280
- {
281
- provide: EXTENSIONS_IDENTIFIER,
282
- useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
283
- },
284
- ], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n >\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\"></abp-payment-requests-search-form>\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i7.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i7.AdvancedEntityFiltersAboveSearchComponent, selector: "abp-advanced-entity-filters-above-search" }, { kind: "component", type: RequestsSearchFormComponent, selector: "abp-payment-requests-search-form", inputs: ["list", "pageQuery"], outputs: ["pageQueryChange"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsComponent, decorators: [{
286
- type: Component,
287
- args: [{ selector: 'abp-payment-requests', providers: [
288
- ListService,
289
- {
290
- provide: EXTENSIONS_IDENTIFIER,
291
- useValue: "Payment.Requests" /* ePaymentComponents.Requests */,
292
- },
293
- ], template: "<ng-container *ngIf=\"data$ | async; let data\">\r\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"Payment\"\r\n [list]=\"list\"\r\n >\r\n <abp-advanced-entity-filters-above-search>\r\n <abp-payment-requests-search-form [(pageQuery)]=\"pageQuery\"></abp-payment-requests-search-form>\r\n </abp-advanced-entity-filters-above-search>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\r\n </abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n\r\n</ng-container>\r\n" }]
294
- }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.PaymentRequestAdminService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
295
-
296
- const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
297
- {
298
- text: 'Payment::Edit',
299
- action: data => {
300
- const component = data.getInjected(GatewayPlansComponent);
301
- component.onEdit(data.record.gateway);
302
- },
303
- permission: 'Payment.Plans.GatewayPlans.Update',
304
- },
305
- {
306
- text: 'Payment::Delete',
307
- action: data => {
308
- const component = data.getInjected(GatewayPlansComponent);
309
- component.onDelete(data.record.gateway);
310
- },
311
- permission: 'Payment.Plans.GatewayPlans.Delete',
312
- },
313
- ]);
314
-
315
- const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
316
- {
317
- type: "string" /* ePropType.String */,
318
- name: 'gateway',
319
- displayName: 'Payment::DisplayName:Gateway',
320
- sortable: true,
321
- },
322
- {
323
- type: "string" /* ePropType.String */,
324
- name: 'externalId',
325
- displayName: 'Payment::DisplayName:ExternalId',
326
- sortable: true,
327
- },
328
- ]);
329
-
330
- const externalIdField = {
331
- type: "string" /* ePropType.String */,
332
- name: 'externalId',
333
- displayName: 'Payment::DisplayName:ExternalId',
334
- id: 'external-id',
335
- validators: () => [Validators.required],
336
- };
337
- const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
338
- {
339
- type: "string" /* ePropType.String */,
340
- name: 'gateway',
341
- displayName: 'Payment::DisplayName:Gateway',
342
- id: 'gateway',
343
- options: data => {
344
- const service = data.getInjected(GatewayService);
345
- return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
346
- key: opt.displayName,
347
- value: opt.name,
348
- }))));
349
- },
350
- validators: () => [Validators.required],
351
- },
352
- externalIdField,
353
- ]);
354
- const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
355
- {
356
- type: "string" /* ePropType.String */,
357
- name: 'gateway',
358
- displayName: 'Payment::DisplayName:Gateway',
359
- id: 'gateway',
360
- validators: () => [Validators.required],
361
- disabled: () => true,
362
- },
363
- externalIdField,
364
- ]);
365
-
366
- const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
367
- {
368
- text: 'Payment::NewGatewayPlan',
369
- action: data => {
370
- const component = data.getInjected(GatewayPlansComponent);
371
- component.onAdd();
372
- },
373
- permission: 'Payment.Plans.GatewayPlans.Create',
374
- icon: 'fa fa-plus',
375
- },
376
- ]);
377
-
378
- const DEFAULT_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
379
- {
380
- text: 'Payment::GatewayPlans',
381
- action: data => {
382
- const component = data.getInjected(PaymentPlansComponent);
383
- component.goToGatewayPlans(data.record.id);
384
- },
385
- permission: 'Payment.Plans.GatewayPlans',
386
- },
387
- {
388
- text: 'Payment::Edit',
389
- action: data => {
390
- const component = data.getInjected(PaymentPlansComponent);
391
- component.onEdit(data.record.id);
392
- },
393
- permission: 'Payment.Plans.Update',
394
- },
395
- {
396
- text: 'Payment::Delete',
397
- action: data => {
398
- const component = data.getInjected(PaymentPlansComponent);
399
- component.onDelete(data.record.id, data.record.name);
400
- },
401
- permission: 'Payment.Plans.Delete',
402
- },
403
- ]);
404
-
405
- const DEFAULT_PLANS_ENTITY_PROPS = EntityProp.createMany([
406
- {
407
- type: "string" /* ePropType.String */,
408
- name: 'name',
409
- displayName: 'Payment::DisplayName:Name',
410
- sortable: true,
411
- },
412
- ]);
413
-
414
- const DEFAULT_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
415
- {
416
- type: "string" /* ePropType.String */,
417
- name: 'name',
418
- displayName: 'Payment::Name',
419
- id: 'payment-name',
420
- validators: () => [Validators.required],
421
- },
422
- ]);
423
- const DEFAULT_PLANS_EDIT_FORM_PROPS = DEFAULT_PLANS_CREATE_FORM_PROPS;
424
-
425
- const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
426
- {
427
- text: 'Payment::NewPlan',
428
- action: data => {
429
- const component = data.getInjected(PaymentPlansComponent);
430
- component.onAdd();
431
- },
432
- permission: 'Payment.Plans.Create',
433
- icon: 'fa fa-plus',
434
- },
435
- ]);
436
-
437
- class SubscriptionTooltipComponent {
438
- constructor(value$) {
439
- this.value$ = value$;
440
- }
441
- }
442
- SubscriptionTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SubscriptionTooltipComponent, deps: [{ token: PROP_DATA_STREAM }], target: i0.ɵɵFactoryTarget.Component });
443
- SubscriptionTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: SubscriptionTooltipComponent, selector: "abp-subscription-tooltip", ngImport: i0, template: "<ng-container *ngIf=\"value$ | async as value\">\r\n <i\r\n *ngIf=\"value.isSubscription; else valueTmp\"\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
444
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SubscriptionTooltipComponent, decorators: [{
445
- type: Component,
446
- args: [{ selector: 'abp-subscription-tooltip', template: "<ng-container *ngIf=\"value$ | async as value\">\r\n <i\r\n *ngIf=\"value.isSubscription; else valueTmp\"\r\n class=\"fa fa-info-circle text-warning\"\r\n placement=\"top\"\r\n container=\"body\"\r\n [ngbTooltip]=\"'Payment::PriceSubscriptionTooltip' | abpLocalization\"\r\n ></i>\r\n <ng-template #valueTmp>\r\n {{ value.defaultValue }}\r\n </ng-template>\r\n</ng-container>\r\n" }]
447
- }], ctorParameters: function () {
448
- return [{ type: i4$2.Observable, decorators: [{
449
- type: Inject,
450
- args: [PROP_DATA_STREAM]
451
- }] }];
452
- } });
453
-
454
- const getSubscriptionStatus = (condition, defaultValue) => {
455
- return of({ isSubscription: condition, defaultValue });
456
- };
457
-
458
- const DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS = EntityProp.createMany([
459
- {
460
- type: "string" /* ePropType.String */,
461
- name: 'code',
462
- displayName: 'Payment::DisplayName:Code',
463
- sortable: false,
464
- },
465
- {
466
- type: "string" /* ePropType.String */,
467
- name: 'name',
468
- displayName: 'Payment::DisplayName:Name',
469
- },
470
- {
471
- type: "number" /* ePropType.Number */,
472
- name: 'count',
473
- displayName: 'Payment::DisplayName:Count',
474
- },
475
- {
476
- type: "number" /* ePropType.Number */,
477
- name: 'unitPrice',
478
- displayName: 'Payment::DisplayName:UnitPrice',
479
- component: SubscriptionTooltipComponent,
480
- valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.unitPrice),
481
- },
482
- {
483
- type: "number" /* ePropType.Number */,
484
- name: 'totalPrice',
485
- displayName: 'Payment::DisplayName:TotalPrice',
486
- component: SubscriptionTooltipComponent,
487
- valueResolver: data => getSubscriptionStatus(data.record.paymentType === PaymentType.Subscription, data.record.totalPrice),
488
- },
489
- {
490
- type: "enum" /* ePropType.Enum */,
491
- name: 'paymentType',
492
- displayName: 'Payment::DisplayName:PaymentType',
493
- enumList: paymentTypeOptions,
494
- },
495
- ]);
496
-
497
- const DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS = EntityAction.createMany([
498
- {
499
- text: 'Payment::Products',
500
- action: data => {
501
- const component = data.getInjected(RequestsComponent);
502
- component.goToProducts(data.record.id);
503
- },
504
- permission: 'Payment.PaymentRequests',
505
- },
506
- ]);
507
-
508
- const DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS = EntityProp.createMany([
509
- {
510
- type: "datetime" /* ePropType.DateTime */,
511
- name: 'creationTime',
512
- displayName: 'Payment::DisplayName:CreationTime',
513
- sortable: true,
514
- },
515
- {
516
- type: "number" /* ePropType.Number */,
517
- name: 'totalPrice',
518
- displayName: 'Payment::DisplayName:TotalPrice',
519
- sortable: true,
520
- component: SubscriptionTooltipComponent,
521
- valueResolver: data => getSubscriptionStatus(!!data.record.externalSubscriptionId, data.record.totalPrice),
522
- },
523
- {
524
- type: "string" /* ePropType.String */,
525
- name: 'currency',
526
- displayName: 'Payment::DisplayName:Currency',
527
- },
528
- {
529
- type: "enum" /* ePropType.Enum */,
530
- name: 'state',
531
- displayName: 'Payment::DisplayName:State',
532
- sortable: true,
533
- enumList: paymentRequestStateOptions,
534
- },
535
- {
536
- type: "string" /* ePropType.String */,
537
- name: 'gateway',
538
- displayName: 'Payment::DisplayName:Gateway',
539
- sortable: true,
540
- },
541
- {
542
- type: "string" /* ePropType.String */,
543
- name: 'externalSubscriptionId',
544
- displayName: 'Payment::DisplayName:ExternalSubscriptionId',
545
- },
546
- ]);
547
-
548
- const DEFAULT_PAYMENT_ENTITY_ACTIONS = {
549
- ["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_ENTITY_ACTIONS,
550
- ["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS,
551
- ["Payment.Requests" /* ePaymentComponents.Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_ACTIONS,
552
- };
553
- const DEFAULT_PAYMENT_TOOLBAR_ACTIONS = {
554
- ["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_TOOLBAR_ACTIONS,
555
- ["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS,
556
- };
557
- const DEFAULT_PAYMENT_ENTITY_PROPS = {
558
- ["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_ENTITY_PROPS,
559
- ["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_ENTITY_PROPS,
560
- ["Payment.Products" /* ePaymentComponents.Products */]: DEFAULT_PAYMENT_PRODUCTS_ENTITY_PROPS,
561
- ["Payment.Requests" /* ePaymentComponents.Requests */]: DEFAULT_PAYMENT_REQUESTS_ENTITY_PROPS,
562
- };
563
- const DEFAULT_PAYMENT_CREATE_FORM_PROPS = {
564
- ["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_CREATE_FORM_PROPS,
565
- ["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS,
566
- };
567
- const DEFAULT_PAYMENT_EDIT_FORM_PROPS = {
568
- ["Payment.Plans" /* ePaymentComponents.Plans */]: DEFAULT_PLANS_EDIT_FORM_PROPS,
569
- ["Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */]: DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS,
570
- };
571
- const PAYMENT_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_ACTION_CONTRIBUTORS');
572
- const PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS');
573
- const PAYMENT_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_ENTITY_PROP_CONTRIBUTORS');
574
- const PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS');
575
- const PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken('PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS');
576
-
577
- class PaymentInitializer {
578
- constructor(injector) {
579
- this.injector = injector;
580
- }
581
- canActivate() {
582
- const extensions = this.injector.get(ExtensionsService);
583
- const actionContributors = this.injector.get(PAYMENT_ENTITY_ACTION_CONTRIBUTORS, null) || {};
584
- const toolbarContributors = this.injector.get(PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
585
- const propContributors = this.injector.get(PAYMENT_ENTITY_PROP_CONTRIBUTORS, null) || {};
586
- const createFormContributors = this.injector.get(PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
587
- const editFormContributors = this.injector.get(PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
588
- const configState = this.injector.get(ConfigStateService);
589
- return getObjectExtensionEntitiesFromStore(configState, 'Payment').pipe(map(entities => ({
590
- // TODO: find out following entity name
591
- // [ePaymentComponents.Plans]: entities.PaymentPlans,
592
- })), mapEntitiesToContributors(configState, 'Payment'), tap(objectExtensionContributors => {
593
- mergeWithDefaultActions(extensions.entityActions, DEFAULT_PAYMENT_ENTITY_ACTIONS, actionContributors);
594
- mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, toolbarContributors);
595
- mergeWithDefaultProps(extensions.entityProps, DEFAULT_PAYMENT_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
596
- mergeWithDefaultProps(extensions.createFormProps, DEFAULT_PAYMENT_CREATE_FORM_PROPS, objectExtensionContributors.createForm, createFormContributors);
597
- mergeWithDefaultProps(extensions.editFormProps, DEFAULT_PAYMENT_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
598
- }), mapTo(true));
599
- }
600
- }
601
- PaymentInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
602
- PaymentInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentInitializer });
603
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentInitializer, decorators: [{
604
- type: Injectable
605
- }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
606
-
607
- const routes = [
608
- {
609
- path: '',
610
- redirectTo: 'plans',
611
- pathMatch: 'full',
612
- },
613
- {
614
- path: '',
615
- component: RouterOutletComponent,
616
- canActivate: [AuthGuard, PermissionGuard, PaymentInitializer],
617
- children: [
618
- {
619
- path: 'plans',
620
- component: ReplaceableRouteContainerComponent,
621
- data: {
622
- requiredPolicy: 'Payment.Plans',
623
- replaceableComponent: {
624
- key: "Payment.Plans" /* ePaymentComponents.Plans */,
625
- defaultComponent: PaymentPlansComponent,
626
- },
627
- },
628
- },
629
- {
630
- path: 'plans/:planId',
631
- component: ReplaceableRouteContainerComponent,
632
- data: {
633
- requiredPolicy: 'Payment.Plans.GatewayPlans',
634
- replaceableComponent: {
635
- key: "Payment.GatewayPlans" /* ePaymentComponents.GatewayPlans */,
636
- defaultComponent: GatewayPlansComponent,
637
- },
638
- },
639
- },
640
- {
641
- path: 'requests',
642
- component: ReplaceableRouteContainerComponent,
643
- data: {
644
- requiredPolicy: 'Payment.PaymentRequests',
645
- replaceableComponent: {
646
- key: "Payment.Requests" /* ePaymentComponents.Requests */,
647
- defaultComponent: RequestsComponent,
648
- },
649
- },
650
- },
651
- {
652
- path: 'requests/:requestId/products',
653
- component: ReplaceableRouteContainerComponent,
654
- data: {
655
- requiredPolicy: 'Payment.PaymentRequests',
656
- replaceableComponent: {
657
- key: "Payment.Products" /* ePaymentComponents.Products */,
658
- defaultComponent: ProductsComponent,
659
- },
660
- },
661
- },
662
- ],
663
- },
664
- ];
665
- class PaymentAdminRoutingModule {
666
- }
667
- PaymentAdminRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
668
- PaymentAdminRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i3$1.RouterModule] });
669
- PaymentAdminRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminRoutingModule, imports: [RouterModule.forChild(routes)] });
670
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
671
- type: NgModule,
672
- args: [{
673
- imports: [RouterModule.forChild(routes)],
674
- }]
675
- }] });
676
-
677
- class PaymentPlansModule {
678
- }
679
- PaymentPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
680
- PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: PaymentPlansModule, declarations: [PaymentPlansComponent], imports: [CommonModule,
681
- PageModule,
682
- CoreModule,
683
- UiExtensionsModule,
684
- ThemeSharedModule,
685
- ReactiveFormsModule,
686
- NgxValidateCoreModule,
687
- AdvancedEntityFiltersModule] });
688
- PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentPlansModule, imports: [CommonModule,
689
- PageModule,
690
- CoreModule,
691
- UiExtensionsModule,
692
- ThemeSharedModule,
693
- ReactiveFormsModule,
694
- NgxValidateCoreModule,
695
- AdvancedEntityFiltersModule] });
696
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentPlansModule, decorators: [{
697
- type: NgModule,
698
- args: [{
699
- imports: [
700
- CommonModule,
701
- PageModule,
702
- CoreModule,
703
- UiExtensionsModule,
704
- ThemeSharedModule,
705
- ReactiveFormsModule,
706
- NgxValidateCoreModule,
707
- AdvancedEntityFiltersModule,
708
- ],
709
- exports: [],
710
- declarations: [PaymentPlansComponent],
711
- providers: [],
712
- }]
713
- }] });
714
-
715
- class GatewayPlansModule {
716
- }
717
- GatewayPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
718
- GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: GatewayPlansModule, declarations: [GatewayPlansComponent], imports: [CommonModule,
719
- PageModule,
720
- CoreModule,
721
- UiExtensionsModule,
722
- ThemeSharedModule,
723
- ReactiveFormsModule,
724
- NgxValidateCoreModule,
725
- AdvancedEntityFiltersModule] });
726
- GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: GatewayPlansModule, imports: [CommonModule,
727
- PageModule,
728
- CoreModule,
729
- UiExtensionsModule,
730
- ThemeSharedModule,
731
- ReactiveFormsModule,
732
- NgxValidateCoreModule,
733
- AdvancedEntityFiltersModule] });
734
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: GatewayPlansModule, decorators: [{
735
- type: NgModule,
736
- args: [{
737
- imports: [
738
- CommonModule,
739
- PageModule,
740
- CoreModule,
741
- UiExtensionsModule,
742
- ThemeSharedModule,
743
- ReactiveFormsModule,
744
- NgxValidateCoreModule,
745
- AdvancedEntityFiltersModule,
746
- ],
747
- exports: [],
748
- declarations: [GatewayPlansComponent],
749
- providers: [],
750
- }]
751
- }] });
752
-
753
- class SubscriptionTooltipModule {
754
- }
755
- SubscriptionTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SubscriptionTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
756
- SubscriptionTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: SubscriptionTooltipModule, declarations: [SubscriptionTooltipComponent], imports: [CommonModule, CoreModule, NgbTooltipModule], exports: [SubscriptionTooltipComponent] });
757
- SubscriptionTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SubscriptionTooltipModule, imports: [CommonModule, CoreModule, NgbTooltipModule] });
758
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SubscriptionTooltipModule, decorators: [{
759
- type: NgModule,
760
- args: [{
761
- declarations: [SubscriptionTooltipComponent],
762
- exports: [SubscriptionTooltipComponent],
763
- imports: [CommonModule, CoreModule, NgbTooltipModule],
764
- }]
765
- }] });
766
-
767
- class RequestsModule {
768
- }
769
- RequestsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
770
- RequestsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: RequestsModule, declarations: [RequestsComponent, RequestsSearchFormComponent], imports: [CommonModule,
771
- PageModule,
772
- CoreModule,
773
- UiExtensionsModule,
774
- ThemeSharedModule,
775
- ReactiveFormsModule,
776
- AdvancedEntityFiltersModule,
777
- NgbDatepickerModule,
778
- SubscriptionTooltipModule] });
779
- RequestsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsModule, imports: [CommonModule,
780
- PageModule,
781
- CoreModule,
782
- UiExtensionsModule,
783
- ThemeSharedModule,
784
- ReactiveFormsModule,
785
- AdvancedEntityFiltersModule,
786
- NgbDatepickerModule,
787
- SubscriptionTooltipModule] });
788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: RequestsModule, decorators: [{
789
- type: NgModule,
790
- args: [{
791
- declarations: [RequestsComponent, RequestsSearchFormComponent],
792
- imports: [
793
- CommonModule,
794
- PageModule,
795
- CoreModule,
796
- UiExtensionsModule,
797
- ThemeSharedModule,
798
- ReactiveFormsModule,
799
- AdvancedEntityFiltersModule,
800
- NgbDatepickerModule,
801
- SubscriptionTooltipModule,
802
- ],
803
- }]
804
- }] });
805
-
806
- class ProductsModule {
807
- }
808
- ProductsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ProductsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
809
- ProductsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: ProductsModule, declarations: [ProductsComponent], imports: [CommonModule,
810
- PageModule,
811
- CoreModule,
812
- UiExtensionsModule,
813
- ThemeSharedModule,
814
- SubscriptionTooltipModule] });
815
- ProductsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ProductsModule, imports: [CommonModule,
816
- PageModule,
817
- CoreModule,
818
- UiExtensionsModule,
819
- ThemeSharedModule,
820
- SubscriptionTooltipModule] });
821
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ProductsModule, decorators: [{
822
- type: NgModule,
823
- args: [{
824
- declarations: [ProductsComponent],
825
- imports: [
826
- CommonModule,
827
- PageModule,
828
- CoreModule,
829
- UiExtensionsModule,
830
- ThemeSharedModule,
831
- SubscriptionTooltipModule,
832
- ],
833
- }]
834
- }] });
835
-
836
- class PaymentAdminModule {
837
- static forChild(options = {}) {
838
- return {
839
- ngModule: PaymentAdminModule,
840
- providers: [
841
- {
842
- provide: PAYMENT_ENTITY_ACTION_CONTRIBUTORS,
843
- useValue: options.entityActionContributors,
844
- },
845
- {
846
- provide: PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS,
847
- useValue: options.toolbarActionContributors,
848
- },
849
- {
850
- provide: PAYMENT_ENTITY_PROP_CONTRIBUTORS,
851
- useValue: options.entityPropContributors,
852
- },
853
- {
854
- provide: PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS,
855
- useValue: options.createFormPropContributors,
856
- },
857
- {
858
- provide: PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS,
859
- useValue: options.editFormPropContributors,
860
- },
861
- PaymentInitializer,
862
- ],
863
- };
864
- }
865
- static forLazy(options = {}) {
866
- return new LazyModuleFactory(PaymentAdminModule.forChild(options));
867
- }
868
- }
869
- PaymentAdminModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
870
- PaymentAdminModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule,
871
- PaymentPlansModule,
872
- GatewayPlansModule,
873
- RequestsModule,
874
- ProductsModule] });
875
- PaymentAdminModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule,
876
- PaymentPlansModule,
877
- GatewayPlansModule,
878
- RequestsModule,
879
- ProductsModule] });
880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PaymentAdminModule, decorators: [{
881
- type: NgModule,
882
- args: [{
883
- imports: [
884
- PaymentAdminRoutingModule,
885
- PaymentPlansModule,
886
- GatewayPlansModule,
887
- RequestsModule,
888
- ProductsModule,
889
- ],
890
- declarations: [],
891
- }]
892
- }] });
893
-
894
- /**
895
- * Generated bundle index. Do not edit.
896
- */
897
-
898
- 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 };
899
- //# sourceMappingURL=volo-abp.ng.payment-admin.mjs.map