@volo/abp.ng.payment 4.4.1 → 5.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +1 -24
  2. package/admin/components/gateway-plans/gateway-plans.component.d.ts +4 -1
  3. package/admin/components/gateway-plans/gateway-plans.module.d.ts +13 -0
  4. package/admin/components/plans/plans.component.d.ts +4 -1
  5. package/admin/components/plans/plans.module.d.ts +13 -0
  6. package/admin/config/package.json +0 -1
  7. package/admin/config/payment-admin-config.module.d.ts +4 -0
  8. package/admin/config/providers/route.provider.d.ts +1 -1
  9. package/admin/config/volo-abp.ng.payment-admin-config.d.ts +1 -1
  10. package/admin/defaults/default-gateway-plans-entity-actions.d.ts +1 -1
  11. package/admin/defaults/default-gateway-plans-entity-props.d.ts +1 -1
  12. package/admin/defaults/default-gateway-plans-form-props.d.ts +1 -1
  13. package/admin/defaults/default-gateway-plans-toolbar-actions.d.ts +1 -1
  14. package/admin/defaults/default-plans-entity-actions.d.ts +1 -1
  15. package/admin/defaults/default-plans-entity-props.d.ts +1 -1
  16. package/admin/defaults/default-plans-form-props.d.ts +1 -1
  17. package/admin/defaults/default-plans-toolbar-actions.d.ts +1 -1
  18. package/admin/models/config-options.d.ts +1 -1
  19. package/admin/package.json +0 -1
  20. package/admin/payment-admin-routing.module.d.ts +5 -0
  21. package/admin/payment-admin.module.d.ts +7 -0
  22. package/admin/payment.initializer.d.ts +3 -0
  23. package/admin/tokens/extensions.token.d.ts +4 -5
  24. package/admin/volo-abp.ng.payment-admin.d.ts +1 -6
  25. package/bundles/volo-abp.ng.payment-admin-config.umd.js +1 -1
  26. package/bundles/volo-abp.ng.payment-admin.umd.js +1 -1
  27. package/bundles/volo-abp.ng.payment-proxy.umd.js +1 -0
  28. package/bundles/volo-abp.ng.payment.umd.js +1 -1
  29. package/esm2015/admin/components/gateway-plans/gateway-plans.component.js +1 -1
  30. package/esm2015/admin/components/gateway-plans/gateway-plans.module.js +1 -1
  31. package/esm2015/admin/components/plans/plans.component.js +1 -1
  32. package/esm2015/admin/components/plans/plans.module.js +1 -1
  33. package/esm2015/admin/config/payment-admin-config.module.js +1 -1
  34. package/esm2015/admin/config/volo-abp.ng.payment-admin-config.js +1 -1
  35. package/esm2015/admin/defaults/default-gateway-plans-entity-actions.js +1 -1
  36. package/esm2015/admin/defaults/default-gateway-plans-form-props.js +1 -1
  37. package/esm2015/admin/defaults/default-gateway-plans-toolbar-actions.js +1 -1
  38. package/esm2015/admin/defaults/default-plans-entity-actions.js +1 -1
  39. package/esm2015/admin/defaults/default-plans-form-props.js +1 -1
  40. package/esm2015/admin/defaults/default-plans-toolbar-actions.js +1 -1
  41. package/esm2015/admin/payment-admin-routing.module.js +1 -1
  42. package/esm2015/admin/payment-admin.module.js +1 -1
  43. package/esm2015/admin/payment.initializer.js +1 -1
  44. package/esm2015/admin/volo-abp.ng.payment-admin.js +1 -1
  45. package/esm2015/{lib → proxy/lib}/index.js +0 -0
  46. package/esm2015/{lib → proxy/lib}/proxy/admin/plans/index.js +0 -0
  47. package/esm2015/{lib → proxy/lib}/proxy/admin/plans/models.js +0 -0
  48. package/esm2015/{lib → proxy/lib}/proxy/admin/plans/plan-admin.service.js +1 -1
  49. package/esm2015/proxy/lib/proxy/gateways/gateway.service.js +1 -0
  50. package/esm2015/{lib → proxy/lib}/proxy/gateways/index.js +0 -0
  51. package/esm2015/{lib → proxy/lib}/proxy/gateways/models.js +0 -0
  52. package/esm2015/{lib → proxy/lib}/proxy/plans/index.js +0 -0
  53. package/esm2015/{lib → proxy/lib}/proxy/plans/models.js +0 -0
  54. package/esm2015/proxy/lib/proxy/plans/plan.service.js +1 -0
  55. package/esm2015/proxy/public-api.js +1 -0
  56. package/esm2015/proxy/volo-abp.ng.payment-proxy.js +1 -0
  57. package/esm2015/public-api.js +1 -1
  58. package/fesm2015/volo-abp.ng.payment-admin-config.js +9 -4
  59. package/fesm2015/volo-abp.ng.payment-admin.js +216 -165
  60. package/fesm2015/volo-abp.ng.payment-proxy.js +114 -0
  61. package/fesm2015/volo-abp.ng.payment.js +0 -114
  62. package/package.json +6 -7
  63. package/{lib → proxy/lib}/index.d.ts +0 -0
  64. package/{lib → proxy/lib}/proxy/admin/plans/index.d.ts +0 -0
  65. package/proxy/lib/proxy/admin/plans/models.d.ts +20 -0
  66. package/{lib → proxy/lib}/proxy/admin/plans/plan-admin.service.d.ts +6 -3
  67. package/{lib → proxy/lib}/proxy/gateways/gateway.service.d.ts +3 -0
  68. package/{lib → proxy/lib}/proxy/gateways/index.d.ts +0 -0
  69. package/{lib → proxy/lib}/proxy/gateways/models.d.ts +0 -0
  70. package/{lib → proxy/lib}/proxy/plans/index.d.ts +0 -0
  71. package/proxy/lib/proxy/plans/models.d.ts +10 -0
  72. package/{lib → proxy/lib}/proxy/plans/plan.service.d.ts +3 -0
  73. package/proxy/package.json +10 -0
  74. package/proxy/public-api.d.ts +1 -0
  75. package/proxy/volo-abp.ng.payment-proxy.d.ts +5 -0
  76. package/public-api.d.ts +1 -1
  77. package/volo-abp.ng.payment.d.ts +1 -0
  78. package/admin/config/volo-abp.ng.payment-admin-config.metadata.json +0 -1
  79. package/admin/volo-abp.ng.payment-admin.metadata.json +0 -1
  80. package/bundles/volo-abp.ng.payment-admin-config.umd.min.js +0 -1
  81. package/bundles/volo-abp.ng.payment-admin.umd.min.js +0 -1
  82. package/bundles/volo-abp.ng.payment.umd.min.js +0 -1
  83. package/esm2015/lib/proxy/gateways/gateway.service.js +0 -1
  84. package/esm2015/lib/proxy/plans/plan.service.js +0 -1
  85. package/lib/proxy/admin/plans/models.d.ts +0 -18
  86. package/lib/proxy/plans/models.d.ts +0 -10
  87. package/volo-abp.ng.payment.metadata.json +0 -1
@@ -1,17 +1,27 @@
1
- import { Component, ViewEncapsulation, Injector, InjectionToken, Injectable, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewEncapsulation, InjectionToken, Injectable, NgModule } from '@angular/core';
3
+ import * as i2 from '@abp/ng.core';
2
4
  import { ListService, ConfigStateService, DynamicLayoutComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, CoreModule, LazyModuleFactory } from '@abp/ng.core';
3
- import { ActivatedRoute, Router, RouterModule } from '@angular/router';
5
+ import * as i3$1 from '@angular/router';
6
+ import { RouterModule } from '@angular/router';
7
+ import * as i7 from '@abp/ng.theme.shared/extensions';
4
8
  import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, FormProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
5
9
  import { take, finalize, map, tap, mapTo } from 'rxjs/operators';
6
- import { Confirmation, ConfirmationService, ThemeSharedModule } from '@abp/ng.theme.shared';
7
- import { PlanAdminService, PlanService, GatewayService } from '@volo/abp.ng.payment';
8
- import { Validators, ReactiveFormsModule } from '@angular/forms';
9
- import { CommonModule } from '@angular/common';
10
+ import * as i3 from '@abp/ng.theme.shared';
11
+ import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
12
+ import * as i1 from '@volo/abp.ng.payment/proxy';
13
+ import { PlanAdminService, GatewayService } from '@volo/abp.ng.payment/proxy';
14
+ import * as i5 from '@abp/ng.components/page';
10
15
  import { PageModule } from '@abp/ng.components/page';
16
+ import * as i6 from '@volo/abp.commercial.ng.ui';
17
+ import { AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
18
+ import * as i8 from '@angular/common';
19
+ import { CommonModule } from '@angular/common';
20
+ import * as i9 from '@angular/forms';
21
+ import { Validators, ReactiveFormsModule } from '@angular/forms';
22
+ import * as i10 from '@ngx-validate/core';
11
23
  import { NgxValidateCoreModule } from '@ngx-validate/core';
12
- import { EntityFilterModule } from '@volo/abp.commercial.ng.ui';
13
24
 
14
- const ɵ0$8 = "Payment.GatewayPlans" /* GatewayPlans */;
15
25
  class GatewayPlansComponent {
16
26
  constructor(planService, list, injector, confirmationService, activatedRoute) {
17
27
  this.planService = planService;
@@ -76,44 +86,45 @@ class GatewayPlansComponent {
76
86
  this.form = generateFormFromProps(data);
77
87
  }
78
88
  }
79
- GatewayPlansComponent.decorators = [
80
- { type: Component, args: [{
81
- selector: 'abp-gateway-plans',
82
- template: "<ng-container *ngIf=\"data$ | async; let data\">\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\n <abp-entity-filter [list]=\"list\"></abp-entity-filter>\n\n <div class=\"card\">\n <div class=\"card-body\">\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal size=\"md\" [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\n </h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpUi::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpUi::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n",
83
- encapsulation: ViewEncapsulation.None,
84
- providers: [
85
- ListService,
86
- {
87
- provide: EXTENSIONS_IDENTIFIER,
88
- useValue: ɵ0$8,
89
- },
90
- ]
91
- },] }
92
- ];
93
- GatewayPlansComponent.ctorParameters = () => [
94
- { type: PlanService },
95
- { type: ListService },
96
- { type: Injector },
97
- { type: ConfirmationService },
98
- { type: ActivatedRoute }
99
- ];
89
+ GatewayPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansComponent, deps: [{ token: i1.PlanService }, { token: i2.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
90
+ GatewayPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: GatewayPlansComponent, selector: "abp-gateway-plans", providers: [
91
+ ListService,
92
+ {
93
+ provide: EXTENSIONS_IDENTIFIER,
94
+ useValue: "Payment.GatewayPlans" /* GatewayPlans */,
95
+ },
96
+ ], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\n <abp-page [title]=\"'Payment::GatewayPlans' | abpLocalization\" [toolbar]=\"data.items\">\n <abp-advanced-entity-filters\n localizationSourceName=\"Payment\"\n [list]=\"list\"\n ></abp-advanced-entity-filters>\n\n <div class=\"card\">\n <div class=\"card-body\">\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>\n {{ (selected?.gateway ? 'Payment::Edit' : 'Payment::NewGatewayPlan') | abpLocalization }}\n </h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpUi::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpUi::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n", components: [{ type: i5.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i7.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i10.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i3.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i2.LocalizationPipe }, encapsulation: i0.ViewEncapsulation.None });
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansComponent, decorators: [{
98
+ type: Component,
99
+ args: [{
100
+ selector: 'abp-gateway-plans',
101
+ templateUrl: './gateway-plans.component.html',
102
+ encapsulation: ViewEncapsulation.None,
103
+ providers: [
104
+ ListService,
105
+ {
106
+ provide: EXTENSIONS_IDENTIFIER,
107
+ useValue: "Payment.GatewayPlans" /* GatewayPlans */,
108
+ },
109
+ ],
110
+ }]
111
+ }], ctorParameters: function () { return [{ type: i1.PlanService }, { type: i2.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.ActivatedRoute }]; } });
100
112
 
101
- const ɵ0$7 = data => {
102
- const component = data.getInjected(GatewayPlansComponent);
103
- component.onEdit(data.record.gateway);
104
- }, ɵ1$3 = data => {
105
- const component = data.getInjected(GatewayPlansComponent);
106
- component.onDelete(data.record.gateway);
107
- };
108
113
  const DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
109
114
  {
110
115
  text: 'Payment::Edit',
111
- action: ɵ0$7,
116
+ action: data => {
117
+ const component = data.getInjected(GatewayPlansComponent);
118
+ component.onEdit(data.record.gateway);
119
+ },
112
120
  permission: 'Payment.Plans.GatewayPlans.Update',
113
121
  },
114
122
  {
115
123
  text: 'Payment::Delete',
116
- action: ɵ1$3,
124
+ action: data => {
125
+ const component = data.getInjected(GatewayPlansComponent);
126
+ component.onDelete(data.record.gateway);
127
+ },
117
128
  permission: 'Payment.Plans.GatewayPlans.Delete',
118
129
  },
119
130
  ]);
@@ -133,59 +144,54 @@ const DEFAULT_GATEWAY_PLANS_ENTITY_PROPS = EntityProp.createMany([
133
144
  },
134
145
  ]);
135
146
 
136
- const ɵ0$6 = () => [Validators.required];
137
147
  const externalIdField = {
138
148
  type: "string" /* String */,
139
149
  name: 'externalId',
140
150
  displayName: 'Payment::DisplayName:ExternalId',
141
151
  id: 'external-id',
142
- validators: ɵ0$6,
152
+ validators: () => [Validators.required],
143
153
  };
144
- const ɵ1$2 = data => {
145
- const service = data.getInjected(GatewayService);
146
- return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
147
- key: opt.displayName,
148
- value: opt.name,
149
- }))));
150
- }, ɵ2$1 = () => [Validators.required];
151
154
  const DEFAULT_GATEWAY_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
152
155
  {
153
156
  type: "string" /* String */,
154
157
  name: 'gateway',
155
158
  displayName: 'Payment::DisplayName:Gateway',
156
159
  id: 'gateway',
157
- options: ɵ1$2,
158
- validators: ɵ2$1,
160
+ options: data => {
161
+ const service = data.getInjected(GatewayService);
162
+ return service.getSubscriptionSupportedGateways().pipe(map(options => options.map(opt => ({
163
+ key: opt.displayName,
164
+ value: opt.name,
165
+ }))));
166
+ },
167
+ validators: () => [Validators.required],
159
168
  },
160
169
  externalIdField,
161
170
  ]);
162
- const ɵ3 = () => [Validators.required], ɵ4 = () => true;
163
171
  const DEFAULT_GATEWAY_PLANS_EDIT_FORM_PROPS = FormProp.createMany([
164
172
  {
165
173
  type: "string" /* String */,
166
174
  name: 'gateway',
167
175
  displayName: 'Payment::DisplayName:Gateway',
168
176
  id: 'gateway',
169
- validators: ɵ3,
170
- disabled: ɵ4,
177
+ validators: () => [Validators.required],
178
+ disabled: () => true,
171
179
  },
172
180
  externalIdField,
173
181
  ]);
174
182
 
175
- const ɵ0$5 = data => {
176
- const component = data.getInjected(GatewayPlansComponent);
177
- component.onAdd();
178
- };
179
183
  const DEFAULT_GATEWAY_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
180
184
  {
181
185
  text: 'Payment::NewGatewayPlan',
182
- action: ɵ0$5,
186
+ action: data => {
187
+ const component = data.getInjected(GatewayPlansComponent);
188
+ component.onAdd();
189
+ },
183
190
  permission: 'Payment.Plans.GatewayPlans.Create',
184
191
  icon: 'fa fa-plus',
185
192
  },
186
193
  ]);
187
194
 
188
- const ɵ0$4 = "Payment.Plans" /* Plans */;
189
195
  class PaymentPlansComponent {
190
196
  constructor(list, injector, confirmationService, router, activatedRoute) {
191
197
  this.list = list;
@@ -250,52 +256,53 @@ class PaymentPlansComponent {
250
256
  this.form = generateFormFromProps(data);
251
257
  }
252
258
  }
253
- PaymentPlansComponent.decorators = [
254
- { type: Component, args: [{
255
- selector: 'abp-payment-plans',
256
- template: "<ng-container *ngIf=\"data$ | async; let data\">\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\n <abp-entity-filter [list]=\"list\"></abp-entity-filter>\n\n <div class=\"card\">\n <div class=\"card-body\">\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal size=\"md\" [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpUi::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpUi::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n",
257
- encapsulation: ViewEncapsulation.None,
258
- providers: [
259
- ListService,
260
- {
261
- provide: EXTENSIONS_IDENTIFIER,
262
- useValue: ɵ0$4,
263
- },
264
- ]
265
- },] }
266
- ];
267
- PaymentPlansComponent.ctorParameters = () => [
268
- { type: ListService },
269
- { type: Injector },
270
- { type: ConfirmationService },
271
- { type: Router },
272
- { type: ActivatedRoute }
273
- ];
259
+ PaymentPlansComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansComponent, deps: [{ token: i2.ListService }, { token: i0.Injector }, { token: i3.ConfirmationService }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
260
+ PaymentPlansComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: PaymentPlansComponent, selector: "abp-payment-plans", providers: [
261
+ ListService,
262
+ {
263
+ provide: EXTENSIONS_IDENTIFIER,
264
+ useValue: "Payment.Plans" /* Plans */,
265
+ },
266
+ ], ngImport: i0, template: "<ng-container *ngIf=\"data$ | async; let data\">\n <abp-page [title]=\"'Payment::Plans' | abpLocalization\" [toolbar]=\"data.items\">\n <abp-advanced-entity-filters\n localizationSourceName=\"Payment\"\n [list]=\"list\"\n ></abp-advanced-entity-filters>\n\n <div class=\"card\">\n <div class=\"card-body\">\n <abp-extensible-table [list]=\"list\" [data]=\"data.items\" [recordsTotal]=\"data.totalCount\">\n </abp-extensible-table>\n </div>\n </div>\n </abp-page>\n\n <abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'Payment::Edit' : 'Payment::NewPlan') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpUi::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpUi::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n </abp-modal>\n</ng-container>\n", components: [{ type: i5.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i7.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i7.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i3.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i10.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i3.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "async": i8.AsyncPipe, "abpLocalization": i2.LocalizationPipe }, encapsulation: i0.ViewEncapsulation.None });
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansComponent, decorators: [{
268
+ type: Component,
269
+ args: [{
270
+ selector: 'abp-payment-plans',
271
+ templateUrl: './plans.component.html',
272
+ encapsulation: ViewEncapsulation.None,
273
+ providers: [
274
+ ListService,
275
+ {
276
+ provide: EXTENSIONS_IDENTIFIER,
277
+ useValue: "Payment.Plans" /* Plans */,
278
+ },
279
+ ],
280
+ }]
281
+ }], ctorParameters: function () { return [{ type: i2.ListService }, { type: i0.Injector }, { type: i3.ConfirmationService }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
274
282
 
275
- const ɵ0$3 = data => {
276
- const component = data.getInjected(PaymentPlansComponent);
277
- component.goToGatewayPlans(data.record.id);
278
- }, ɵ1$1 = data => {
279
- const component = data.getInjected(PaymentPlansComponent);
280
- component.onEdit(data.record.id);
281
- }, ɵ2 = data => {
282
- const component = data.getInjected(PaymentPlansComponent);
283
- component.onDelete(data.record.id, data.record.name);
284
- };
285
283
  const DEFAULT_PLANS_ENTITY_ACTIONS = EntityAction.createMany([
286
284
  {
287
285
  text: 'Payment::GatewayPlans',
288
- action: ɵ0$3,
286
+ action: data => {
287
+ const component = data.getInjected(PaymentPlansComponent);
288
+ component.goToGatewayPlans(data.record.id);
289
+ },
289
290
  permission: 'Payment.Plans.GatewayPlans',
290
291
  },
291
292
  {
292
293
  text: 'Payment::Edit',
293
- action: ɵ1$1,
294
+ action: data => {
295
+ const component = data.getInjected(PaymentPlansComponent);
296
+ component.onEdit(data.record.id);
297
+ },
294
298
  permission: 'Payment.Plans.Update',
295
299
  },
296
300
  {
297
301
  text: 'Payment::Delete',
298
- action: ɵ2,
302
+ action: data => {
303
+ const component = data.getInjected(PaymentPlansComponent);
304
+ component.onDelete(data.record.id, data.record.name);
305
+ },
299
306
  permission: 'Payment.Plans.Delete',
300
307
  },
301
308
  ]);
@@ -309,26 +316,24 @@ const DEFAULT_PLANS_ENTITY_PROPS = EntityProp.createMany([
309
316
  },
310
317
  ]);
311
318
 
312
- const ɵ0$2 = () => [Validators.required];
313
319
  const DEFAULT_PLANS_CREATE_FORM_PROPS = FormProp.createMany([
314
320
  {
315
321
  type: "string" /* String */,
316
322
  name: 'name',
317
323
  displayName: 'Payment::Name',
318
324
  id: 'payment-name',
319
- validators: ɵ0$2,
325
+ validators: () => [Validators.required],
320
326
  },
321
327
  ]);
322
328
  const DEFAULT_PLANS_EDIT_FORM_PROPS = DEFAULT_PLANS_CREATE_FORM_PROPS;
323
329
 
324
- const ɵ0$1 = data => {
325
- const component = data.getInjected(PaymentPlansComponent);
326
- component.onAdd();
327
- };
328
330
  const DEFAULT_PLANS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
329
331
  {
330
332
  text: 'Payment::NewPlan',
331
- action: ɵ0$1,
333
+ action: data => {
334
+ const component = data.getInjected(PaymentPlansComponent);
335
+ component.onAdd();
336
+ },
332
337
  permission: 'Payment.Plans.Create',
333
338
  icon: 'fa fa-plus',
334
339
  },
@@ -384,26 +389,12 @@ class PaymentInitializer {
384
389
  }), mapTo(true));
385
390
  }
386
391
  }
387
- PaymentInitializer.decorators = [
388
- { type: Injectable }
389
- ];
390
- PaymentInitializer.ctorParameters = () => [
391
- { type: Injector }
392
- ];
392
+ PaymentInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
393
+ PaymentInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentInitializer });
394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentInitializer, decorators: [{
395
+ type: Injectable
396
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
393
397
 
394
- const ɵ0 = {
395
- requiredPolicy: 'Payment.Plans',
396
- replaceableComponent: {
397
- key: "Payment.Plans" /* Plans */,
398
- defaultComponent: PaymentPlansComponent,
399
- },
400
- }, ɵ1 = {
401
- requiredPolicy: 'Payment.Plans.GatewayPlans',
402
- replaceableComponent: {
403
- key: "Payment.GatewayPlans" /* GatewayPlans */,
404
- defaultComponent: GatewayPlansComponent,
405
- },
406
- };
407
398
  const routes = [
408
399
  {
409
400
  path: '',
@@ -418,63 +409,119 @@ const routes = [
418
409
  {
419
410
  path: 'plans',
420
411
  component: ReplaceableRouteContainerComponent,
421
- data: ɵ0,
412
+ data: {
413
+ requiredPolicy: 'Payment.Plans',
414
+ replaceableComponent: {
415
+ key: "Payment.Plans" /* Plans */,
416
+ defaultComponent: PaymentPlansComponent,
417
+ },
418
+ },
422
419
  },
423
420
  {
424
421
  path: 'plans/:planId',
425
422
  component: ReplaceableRouteContainerComponent,
426
- data: ɵ1,
423
+ data: {
424
+ requiredPolicy: 'Payment.Plans.GatewayPlans',
425
+ replaceableComponent: {
426
+ key: "Payment.GatewayPlans" /* GatewayPlans */,
427
+ defaultComponent: GatewayPlansComponent,
428
+ },
429
+ },
427
430
  },
428
431
  ],
429
432
  },
430
433
  ];
431
434
  class PaymentAdminRoutingModule {
432
435
  }
433
- PaymentAdminRoutingModule.decorators = [
434
- { type: NgModule, args: [{
435
- imports: [RouterModule.forChild(routes)],
436
- },] }
437
- ];
436
+ PaymentAdminRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
437
+ PaymentAdminRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [i3$1.RouterModule] });
438
+ PaymentAdminRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, imports: [[RouterModule.forChild(routes)]] });
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminRoutingModule, decorators: [{
440
+ type: NgModule,
441
+ args: [{
442
+ imports: [RouterModule.forChild(routes)],
443
+ }]
444
+ }] });
438
445
 
439
446
  class PaymentPlansModule {
440
447
  }
441
- PaymentPlansModule.decorators = [
442
- { type: NgModule, args: [{
443
- imports: [
444
- CommonModule,
445
- PageModule,
446
- CoreModule,
447
- UiExtensionsModule,
448
- ThemeSharedModule,
449
- ReactiveFormsModule,
450
- NgxValidateCoreModule,
451
- EntityFilterModule,
452
- ],
453
- exports: [],
454
- declarations: [PaymentPlansComponent],
455
- providers: [],
456
- },] }
457
- ];
448
+ PaymentPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
449
+ PaymentPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, declarations: [PaymentPlansComponent], imports: [CommonModule,
450
+ PageModule,
451
+ CoreModule,
452
+ UiExtensionsModule,
453
+ ThemeSharedModule,
454
+ ReactiveFormsModule,
455
+ NgxValidateCoreModule,
456
+ AdvancedEntityFiltersModule] });
457
+ PaymentPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, providers: [], imports: [[
458
+ CommonModule,
459
+ PageModule,
460
+ CoreModule,
461
+ UiExtensionsModule,
462
+ ThemeSharedModule,
463
+ ReactiveFormsModule,
464
+ NgxValidateCoreModule,
465
+ AdvancedEntityFiltersModule,
466
+ ]] });
467
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentPlansModule, decorators: [{
468
+ type: NgModule,
469
+ args: [{
470
+ imports: [
471
+ CommonModule,
472
+ PageModule,
473
+ CoreModule,
474
+ UiExtensionsModule,
475
+ ThemeSharedModule,
476
+ ReactiveFormsModule,
477
+ NgxValidateCoreModule,
478
+ AdvancedEntityFiltersModule,
479
+ ],
480
+ exports: [],
481
+ declarations: [PaymentPlansComponent],
482
+ providers: [],
483
+ }]
484
+ }] });
458
485
 
459
486
  class GatewayPlansModule {
460
487
  }
461
- GatewayPlansModule.decorators = [
462
- { type: NgModule, args: [{
463
- imports: [
464
- CommonModule,
465
- PageModule,
466
- CoreModule,
467
- UiExtensionsModule,
468
- ThemeSharedModule,
469
- ReactiveFormsModule,
470
- NgxValidateCoreModule,
471
- EntityFilterModule,
472
- ],
473
- exports: [],
474
- declarations: [GatewayPlansComponent],
475
- providers: [],
476
- },] }
477
- ];
488
+ GatewayPlansModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
489
+ GatewayPlansModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, declarations: [GatewayPlansComponent], imports: [CommonModule,
490
+ PageModule,
491
+ CoreModule,
492
+ UiExtensionsModule,
493
+ ThemeSharedModule,
494
+ ReactiveFormsModule,
495
+ NgxValidateCoreModule,
496
+ AdvancedEntityFiltersModule] });
497
+ GatewayPlansModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, providers: [], imports: [[
498
+ CommonModule,
499
+ PageModule,
500
+ CoreModule,
501
+ UiExtensionsModule,
502
+ ThemeSharedModule,
503
+ ReactiveFormsModule,
504
+ NgxValidateCoreModule,
505
+ AdvancedEntityFiltersModule,
506
+ ]] });
507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: GatewayPlansModule, decorators: [{
508
+ type: NgModule,
509
+ args: [{
510
+ imports: [
511
+ CommonModule,
512
+ PageModule,
513
+ CoreModule,
514
+ UiExtensionsModule,
515
+ ThemeSharedModule,
516
+ ReactiveFormsModule,
517
+ NgxValidateCoreModule,
518
+ AdvancedEntityFiltersModule,
519
+ ],
520
+ exports: [],
521
+ declarations: [GatewayPlansComponent],
522
+ providers: [],
523
+ }]
524
+ }] });
478
525
 
479
526
  class PaymentAdminModule {
480
527
  static forChild(options = {}) {
@@ -509,15 +556,19 @@ class PaymentAdminModule {
509
556
  return new LazyModuleFactory(PaymentAdminModule.forChild(options));
510
557
  }
511
558
  }
512
- PaymentAdminModule.decorators = [
513
- { type: NgModule, args: [{
514
- imports: [PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule],
515
- },] }
516
- ];
559
+ PaymentAdminModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
560
+ PaymentAdminModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, imports: [PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule] });
561
+ PaymentAdminModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, imports: [[PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule]] });
562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: PaymentAdminModule, decorators: [{
563
+ type: NgModule,
564
+ args: [{
565
+ imports: [PaymentAdminRoutingModule, PaymentPlansModule, GatewayPlansModule],
566
+ }]
567
+ }] });
517
568
 
518
569
  /**
519
570
  * Generated bundle index. Do not edit.
520
571
  */
521
572
 
522
- export { DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS, DEFAULT_GATEWAY_PLANS_ENTITY_PROPS, DEFAULT_PAYMENT_CREATE_FORM_PROPS, DEFAULT_PAYMENT_EDIT_FORM_PROPS, DEFAULT_PAYMENT_ENTITY_ACTIONS, DEFAULT_PAYMENT_ENTITY_PROPS, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, DEFAULT_PLANS_CREATE_FORM_PROPS, DEFAULT_PLANS_EDIT_FORM_PROPS, DEFAULT_PLANS_ENTITY_ACTIONS, DEFAULT_PLANS_ENTITY_PROPS, DEFAULT_PLANS_TOOLBAR_ACTIONS, GatewayPlansComponent, GatewayPlansModule, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, PAYMENT_ENTITY_ACTION_CONTRIBUTORS, PAYMENT_ENTITY_PROP_CONTRIBUTORS, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, PaymentAdminModule, PaymentAdminRoutingModule, PaymentInitializer, PaymentPlansComponent, PaymentPlansModule, ɵ0, ɵ1, ɵ2, PaymentPlansComponent as ɵb, GatewayPlansComponent as ɵc, PaymentPlansModule as ɵd, GatewayPlansModule as ɵe, PAYMENT_ENTITY_ACTION_CONTRIBUTORS as ɵf, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS as ɵg, PAYMENT_ENTITY_PROP_CONTRIBUTORS as ɵh, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS as ɵi, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS as ɵj };
573
+ export { DEFAULT_GATEWAY_PLANS_ENTITY_ACTIONS, DEFAULT_GATEWAY_PLANS_ENTITY_PROPS, DEFAULT_PAYMENT_CREATE_FORM_PROPS, DEFAULT_PAYMENT_EDIT_FORM_PROPS, DEFAULT_PAYMENT_ENTITY_ACTIONS, DEFAULT_PAYMENT_ENTITY_PROPS, DEFAULT_PAYMENT_TOOLBAR_ACTIONS, DEFAULT_PLANS_CREATE_FORM_PROPS, DEFAULT_PLANS_EDIT_FORM_PROPS, DEFAULT_PLANS_ENTITY_ACTIONS, DEFAULT_PLANS_ENTITY_PROPS, DEFAULT_PLANS_TOOLBAR_ACTIONS, GatewayPlansComponent, GatewayPlansModule, PAYMENT_CREATE_FORM_PROP_CONTRIBUTORS, PAYMENT_EDIT_FORM_PROP_CONTRIBUTORS, PAYMENT_ENTITY_ACTION_CONTRIBUTORS, PAYMENT_ENTITY_PROP_CONTRIBUTORS, PAYMENT_TOOLBAR_ACTION_CONTRIBUTORS, PaymentAdminModule, PaymentAdminRoutingModule, PaymentInitializer, PaymentPlansComponent, PaymentPlansModule };
523
574
  //# sourceMappingURL=volo-abp.ng.payment-admin.js.map