@mj-biz-apps/orders-ng 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout-element/main.js +38080 -0
- package/dist/lib/checkout-widget/checkout-draft-line.d.ts +25 -0
- package/dist/lib/checkout-widget/checkout-draft-line.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-draft-line.js +46 -0
- package/dist/lib/checkout-widget/checkout-draft-line.js.map +1 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts +80 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.js +360 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.js.map +1 -0
- package/dist/lib/checkout-widget/checkout-widget.component.d.ts +143 -0
- package/dist/lib/checkout-widget/checkout-widget.component.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-widget.component.js +873 -0
- package/dist/lib/checkout-widget/checkout-widget.component.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +1 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
- package/dist/lib/custom/OrderHeader/order-header-form.component.js +10 -6
- package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +2 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +37 -11
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
- package/dist/lib/form-panels/party-order-stats.js +2 -2
- package/dist/lib/form-panels/party-order-stats.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js +103 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js +136 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js +106 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js +9 -9
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +12 -12
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js +16 -10
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +78 -52
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js +88 -82
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js +3 -3
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js +23 -5
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +75 -69
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js +37 -31
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js +24 -16
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js.map +1 -1
- package/dist/lib/generated/generated-forms.module.d.ts +54 -51
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
- package/dist/lib/generated/generated-forms.module.js +27 -18
- package/dist/lib/generated/generated-forms.module.js.map +1 -1
- package/dist/lib/pages/catalog/pricing.page.d.ts +3 -24
- package/dist/lib/pages/catalog/pricing.page.d.ts.map +1 -1
- package/dist/lib/pages/catalog/pricing.page.js +158 -214
- package/dist/lib/pages/catalog/pricing.page.js.map +1 -1
- package/dist/lib/pages/catalog/products.page.d.ts +6 -29
- package/dist/lib/pages/catalog/products.page.d.ts.map +1 -1
- package/dist/lib/pages/catalog/products.page.js +255 -315
- package/dist/lib/pages/catalog/products.page.js.map +1 -1
- package/dist/lib/pages/orders/fulfillment.page.d.ts +14 -97
- package/dist/lib/pages/orders/fulfillment.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/fulfillment.page.js +93 -258
- package/dist/lib/pages/orders/fulfillment.page.js.map +1 -1
- package/dist/lib/pages/orders/order-document.page.js +1 -1
- package/dist/lib/pages/orders/order-document.page.js.map +1 -1
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts +29 -58
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/orders-dashboard.page.js +602 -352
- package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -1
- package/dist/lib/pages/orders/orders-list.page.d.ts +8 -58
- package/dist/lib/pages/orders/orders-list.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/orders-list.page.js +52 -237
- package/dist/lib/pages/orders/orders-list.page.js.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.d.ts +7 -17
- package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.js +99 -85
- package/dist/lib/pages/payments/account-credit.page.js.map +1 -1
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts +4 -15
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/payments-dashboard.page.js +76 -111
- package/dist/lib/pages/payments/payments-dashboard.page.js.map +1 -1
- package/dist/lib/pages/payments/payments-list.page.d.ts +7 -41
- package/dist/lib/pages/payments/payments-list.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/payments-list.page.js +51 -130
- package/dist/lib/pages/payments/payments-list.page.js.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +6 -8
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.js +112 -100
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -1
- package/dist/lib/pages/receivables/overdue.page.d.ts +6 -3
- package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/overdue.page.js +61 -65
- package/dist/lib/pages/receivables/overdue.page.js.map +1 -1
- package/dist/lib/pages/receivables/subscriptions.page.d.ts +5 -9
- package/dist/lib/pages/receivables/subscriptions.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/subscriptions.page.js +139 -153
- package/dist/lib/pages/receivables/subscriptions.page.js.map +1 -1
- package/dist/lib/panels/order-stages.d.ts +12 -16
- package/dist/lib/panels/order-stages.d.ts.map +1 -1
- package/dist/lib/panels/order-stages.js +6 -42
- package/dist/lib/panels/order-stages.js.map +1 -1
- package/dist/lib/panels/party-orders-overview.component.d.ts +3 -1
- package/dist/lib/panels/party-orders-overview.component.d.ts.map +1 -1
- package/dist/lib/panels/party-orders-overview.component.js +18 -6
- package/dist/lib/panels/party-orders-overview.component.js.map +1 -1
- package/dist/lib/panels/status-stepper.component.d.ts +1 -1
- package/dist/lib/panels/status-stepper.component.d.ts.map +1 -1
- package/dist/lib/services/pricing-scheduler.service.d.ts +3 -4
- package/dist/lib/services/pricing-scheduler.service.d.ts.map +1 -1
- package/dist/lib/services/pricing-scheduler.service.js +3 -4
- package/dist/lib/services/pricing-scheduler.service.js.map +1 -1
- package/dist/public-api.d.ts +3 -2
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +3 -2
- package/dist/public-api.js.map +1 -1
- package/package.json +28 -16
- package/dist/lib/pages/orders/order-editor.page.d.ts +0 -547
- package/dist/lib/pages/orders/order-editor.page.d.ts.map +0 -1
- package/dist/lib/pages/orders/order-editor.page.js +0 -2269
- package/dist/lib/pages/orders/order-editor.page.js.map +0 -1
- package/dist/lib/pages/orders/order-workspace.page.d.ts +0 -120
- package/dist/lib/pages/orders/order-workspace.page.d.ts.map +0 -1
- package/dist/lib/pages/orders/order-workspace.page.js +0 -443
- package/dist/lib/pages/orders/order-workspace.page.js.map +0 -1
|
@@ -2,45 +2,28 @@ import { ChangeDetectorRef, Component, EventEmitter, Output, inject } from '@ang
|
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { MJOStatTileComponent, MJOBarListComponent } from '../../panels/stat-tile.component.js';
|
|
4
4
|
import { MJODayBarsComponent } from '../../panels/day-bars.component.js';
|
|
5
|
-
import { FormatMoney
|
|
5
|
+
import { FormatMoney } from '../../panels/money-format.js';
|
|
6
6
|
import { MJAlertComponent } from '@memberjunction/ng-ui-components';
|
|
7
|
+
import { EntityViewerModule } from '@memberjunction/ng-entity-viewer';
|
|
8
|
+
import { Metadata } from '@memberjunction/core';
|
|
7
9
|
import { GetPayments } from '../../data/orders-queries.js';
|
|
8
10
|
import { LocalDay, ToISODate } from '@mj-biz-apps/orders-entities';
|
|
11
|
+
import { MJO_ENTITIES } from '../../data/entity-names.js';
|
|
9
12
|
import * as i0 from "@angular/core";
|
|
10
|
-
|
|
11
|
-
function
|
|
13
|
+
import * as i1 from "@memberjunction/ng-entity-viewer";
|
|
14
|
+
function MJOPaymentsDashboardPageComponent_Conditional_44_Template(rf, ctx) { if (rf & 1) {
|
|
12
15
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13
|
-
i0.ɵɵelementStart(0, "
|
|
14
|
-
i0.ɵɵlistener("
|
|
15
|
-
i0.ɵɵelementStart(1, "td")(2, "span", 27);
|
|
16
|
-
i0.ɵɵtext(3);
|
|
17
|
-
i0.ɵɵelementEnd()();
|
|
18
|
-
i0.ɵɵelementStart(4, "td");
|
|
19
|
-
i0.ɵɵtext(5);
|
|
16
|
+
i0.ɵɵelementStart(0, "mj-entity-viewer", 26);
|
|
17
|
+
i0.ɵɵlistener("RecordOpened", function MJOPaymentsDashboardPageComponent_Conditional_44_Template_mj_entity_viewer_RecordOpened_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordOpened($event)); });
|
|
20
18
|
i0.ɵɵelementEnd();
|
|
21
|
-
i0.ɵɵelementStart(6, "td");
|
|
22
|
-
i0.ɵɵtext(7);
|
|
23
|
-
i0.ɵɵelementEnd();
|
|
24
|
-
i0.ɵɵelementStart(8, "td", 20);
|
|
25
|
-
i0.ɵɵtext(9);
|
|
26
|
-
i0.ɵɵpipe(10, "mjoMoney");
|
|
27
|
-
i0.ɵɵelementEnd()();
|
|
28
19
|
} if (rf & 2) {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
i0.ɵɵadvance(3);
|
|
32
|
-
i0.ɵɵtextInterpolate(payment_r2.PaymentNumber);
|
|
33
|
-
i0.ɵɵadvance(2);
|
|
34
|
-
i0.ɵɵtextInterpolate(ctx_r2.payerOf(payment_r2));
|
|
35
|
-
i0.ɵɵadvance(2);
|
|
36
|
-
i0.ɵɵtextInterpolate(payment_r2.PaymentType ?? "\u2014");
|
|
37
|
-
i0.ɵɵadvance(2);
|
|
38
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 4, payment_r2.Amount ?? 0));
|
|
20
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
21
|
+
i0.ɵɵproperty("Entity", ctx_r1.PaymentEntityInfo);
|
|
39
22
|
} }
|
|
40
|
-
function
|
|
41
|
-
i0.ɵɵelementStart(0, "
|
|
42
|
-
i0.ɵɵtext(
|
|
43
|
-
i0.ɵɵelementEnd()
|
|
23
|
+
function MJOPaymentsDashboardPageComponent_Conditional_45_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelementStart(0, "div", 21);
|
|
25
|
+
i0.ɵɵtext(1, "Loading payments...");
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
44
27
|
} }
|
|
45
28
|
/**
|
|
46
29
|
* `mjo-payments-dashboard-page` — what came in, and does it tie?
|
|
@@ -57,28 +40,24 @@ function MJOPaymentsDashboardPageComponent_ForEmpty_58_Template(rf, ctx) { if (r
|
|
|
57
40
|
* ```
|
|
58
41
|
*/
|
|
59
42
|
export class MJOPaymentsDashboardPageComponent {
|
|
60
|
-
/**
|
|
61
|
-
* Render what was just loaded.
|
|
62
|
-
*
|
|
63
|
-
* These pages are created imperatively by the section shell through
|
|
64
|
-
* `ViewContainerRef.createComponent`. When an async load assigns across
|
|
65
|
-
* Angular's check/verify boundary, dev mode raises NG0100 and ABORTS the DOM
|
|
66
|
-
* write. Nothing re-renders afterwards, so the recorded "previous" value stays
|
|
67
|
-
* pre-load while the getter returns the loaded one — the mismatch then repeats
|
|
68
|
-
* on every tick and the view is frozen for good. It is not a flicker: the
|
|
69
|
-
* Orders dashboard sat at "0 open orders / $0.00" against 73 real orders, and
|
|
70
|
-
* read as a quiet day rather than a broken screen.
|
|
71
|
-
*
|
|
72
|
-
* Writing the DOM here ends it: the rendered value matches the getter from the
|
|
73
|
-
* first pass on, so later verify passes agree.
|
|
74
|
-
*/
|
|
75
43
|
cdr = inject(ChangeDetectorRef);
|
|
76
44
|
PaymentOpened = new EventEmitter();
|
|
45
|
+
PaymentEntityInfo = null;
|
|
77
46
|
payments = [];
|
|
78
47
|
async ngOnInit() {
|
|
48
|
+
const md = new Metadata();
|
|
49
|
+
this.PaymentEntityInfo = md.Entities.find((e) => e.Name === MJO_ENTITIES.PaymentHeader) || null;
|
|
50
|
+
this.cdr.detectChanges();
|
|
79
51
|
this.payments = await GetPayments({ Preset: 'all' });
|
|
80
52
|
this.cdr.detectChanges();
|
|
81
53
|
}
|
|
54
|
+
OnRecordOpened(event) {
|
|
55
|
+
const id = (event.compositeKey?.GetValueByFieldName('ID') ?? event.record?.['ID']);
|
|
56
|
+
if (id) {
|
|
57
|
+
const surrogate = { ID: id };
|
|
58
|
+
this.PaymentOpened.emit(surrogate);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
82
61
|
get captured() {
|
|
83
62
|
return this.payments.filter((p) => p.Status === 'Captured');
|
|
84
63
|
}
|
|
@@ -165,7 +144,7 @@ export class MJOPaymentsDashboardPageComponent {
|
|
|
165
144
|
.map(([Label, Value]) => ({ Label, Value, Display: FormatMoney(Value, { Round: true }) }));
|
|
166
145
|
}
|
|
167
146
|
static ɵfac = function MJOPaymentsDashboardPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOPaymentsDashboardPageComponent)(); };
|
|
168
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOPaymentsDashboardPageComponent, selectors: [["mjo-payments-dashboard-page"]], outputs: { PaymentOpened: "PaymentOpened" }, decls:
|
|
147
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOPaymentsDashboardPageComponent, selectors: [["mjo-payments-dashboard-page"]], outputs: { PaymentOpened: "PaymentOpened" }, decls: 64, vars: 10, consts: [[1, "mj-stat-grid"], ["Label", "Cash received", "Icon", "fa-solid fa-hand-holding-dollar", 3, "Value", "Detail"], ["Label", "Unallocated", "Icon", "fa-solid fa-equals", "Value", "$0.00", "Detail", "Always \u2014 a payment cannot capture unless it balances"], ["Label", "Awaiting capture", "Icon", "fa-solid fa-clock", 3, "Value", "Detail"], ["Label", "Processor fees", "Icon", "fa-solid fa-receipt", "Detail", "Our cost, never netted against a customer's balance", 3, "Value"], [1, "mjo-pd__split", "mjo-pd__split--three"], [1, "mj-card"], [1, "mj-card-head"], ["aria-hidden", "true", 1, "fa-solid", "fa-credit-card"], [1, "mj-card-pad"], ["Unit", "received", 3, "Bars"], [1, "small", "muted", "mjo-pd__note"], ["EmptyText", "No payments yet.", 3, "Rows"], ["aria-hidden", "true", 1, "fa-solid", "fa-shield-halved"], ["Variant", "success", "Icon", "fa-solid fa-circle-check"], ["Variant", "info", "Icon", "fa-solid fa-circle-info", 1, "mjo-pd__note"], [1, "mjo-pd__split"], [1, "mj-card", "mjo-pd__viewer-card"], ["aria-hidden", "true", 1, "fa-solid", "fa-clock-rotate-left"], [1, "mjo-pd__viewer-host"], [3, "Entity"], [1, "small", "muted", 2, "padding", "24px"], ["aria-hidden", "true", 1, "fa-solid", "fa-receipt"], [1, "mjo-pd__row"], [1, "small", "muted"], [1, "mj-num"], [3, "RecordOpened", "Entity"]], template: function MJOPaymentsDashboardPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
169
148
|
i0.ɵɵelementStart(0, "div", 0);
|
|
170
149
|
i0.ɵɵelement(1, "mjo-stat-tile", 1)(2, "mjo-stat-tile", 2)(3, "mjo-stat-tile", 3)(4, "mjo-stat-tile", 4);
|
|
171
150
|
i0.ɵɵelementEnd();
|
|
@@ -204,45 +183,33 @@ export class MJOPaymentsDashboardPageComponent {
|
|
|
204
183
|
i0.ɵɵelementEnd();
|
|
205
184
|
i0.ɵɵtext(36, ", never an edit of the capture \u2014 so chargebacks and reversals show in the refunds list rather than as a mutated original. ");
|
|
206
185
|
i0.ɵɵelementEnd()()()();
|
|
207
|
-
i0.ɵɵelementStart(37, "div", 16)(38, "div",
|
|
208
|
-
i0.ɵɵelement(40, "i",
|
|
186
|
+
i0.ɵɵelementStart(37, "div", 16)(38, "div", 17)(39, "div", 7);
|
|
187
|
+
i0.ɵɵelement(40, "i", 18);
|
|
209
188
|
i0.ɵɵelementStart(41, "h3");
|
|
210
|
-
i0.ɵɵtext(42, "
|
|
189
|
+
i0.ɵɵtext(42, "Payments List");
|
|
211
190
|
i0.ɵɵelementEnd()();
|
|
212
|
-
i0.ɵɵelementStart(43, "div",
|
|
213
|
-
i0.ɵɵ
|
|
214
|
-
i0.ɵɵelementEnd();
|
|
215
|
-
i0.ɵɵelementStart(49, "th");
|
|
216
|
-
i0.ɵɵtext(50, "Payer");
|
|
217
|
-
i0.ɵɵelementEnd();
|
|
218
|
-
i0.ɵɵelementStart(51, "th");
|
|
219
|
-
i0.ɵɵtext(52, "Tender");
|
|
220
|
-
i0.ɵɵelementEnd();
|
|
221
|
-
i0.ɵɵelementStart(53, "th", 20);
|
|
222
|
-
i0.ɵɵtext(54, "Amount");
|
|
223
|
-
i0.ɵɵelementEnd()()();
|
|
224
|
-
i0.ɵɵelementStart(55, "tbody");
|
|
225
|
-
i0.ɵɵrepeaterCreate(56, MJOPaymentsDashboardPageComponent_For_57_Template, 11, 6, "tr", 21, _forTrack0, false, MJOPaymentsDashboardPageComponent_ForEmpty_58_Template, 3, 0, "tr");
|
|
226
|
-
i0.ɵɵelementEnd()()()();
|
|
227
|
-
i0.ɵɵelementStart(59, "div", 6)(60, "div", 7);
|
|
228
|
-
i0.ɵɵelement(61, "i", 22);
|
|
229
|
-
i0.ɵɵelementStart(62, "h3");
|
|
230
|
-
i0.ɵɵtext(63, "Cost of taking money");
|
|
191
|
+
i0.ɵɵelementStart(43, "div", 19);
|
|
192
|
+
i0.ɵɵconditionalCreate(44, MJOPaymentsDashboardPageComponent_Conditional_44_Template, 1, 1, "mj-entity-viewer", 20)(45, MJOPaymentsDashboardPageComponent_Conditional_45_Template, 2, 0, "div", 21);
|
|
231
193
|
i0.ɵɵelementEnd()();
|
|
232
|
-
i0.ɵɵelementStart(
|
|
233
|
-
i0.ɵɵ
|
|
194
|
+
i0.ɵɵelementStart(46, "div", 6)(47, "div", 7);
|
|
195
|
+
i0.ɵɵelement(48, "i", 22);
|
|
196
|
+
i0.ɵɵelementStart(49, "h3");
|
|
197
|
+
i0.ɵɵtext(50, "Cost of taking money");
|
|
198
|
+
i0.ɵɵelementEnd()();
|
|
199
|
+
i0.ɵɵelementStart(51, "div", 9)(52, "div", 23)(53, "span", 24);
|
|
200
|
+
i0.ɵɵtext(54, "Processor fees, captured payments");
|
|
234
201
|
i0.ɵɵelementEnd();
|
|
235
|
-
i0.ɵɵelementStart(
|
|
236
|
-
i0.ɵɵtext(
|
|
202
|
+
i0.ɵɵelementStart(55, "b", 25);
|
|
203
|
+
i0.ɵɵtext(56);
|
|
237
204
|
i0.ɵɵelementEnd()();
|
|
238
|
-
i0.ɵɵelementStart(
|
|
239
|
-
i0.ɵɵtext(
|
|
205
|
+
i0.ɵɵelementStart(57, "div", 23)(58, "span", 24);
|
|
206
|
+
i0.ɵɵtext(59, "Effective rate on what we took");
|
|
240
207
|
i0.ɵɵelementEnd();
|
|
241
|
-
i0.ɵɵelementStart(
|
|
242
|
-
i0.ɵɵtext(
|
|
208
|
+
i0.ɵɵelementStart(60, "b", 25);
|
|
209
|
+
i0.ɵɵtext(61);
|
|
243
210
|
i0.ɵɵelementEnd()();
|
|
244
|
-
i0.ɵɵelementStart(
|
|
245
|
-
i0.ɵɵtext(
|
|
211
|
+
i0.ɵɵelementStart(62, "div", 11);
|
|
212
|
+
i0.ɵɵtext(63, " Booked as OUR expense against gross A/R, never netted into the customer's balance \u2014 netting would leave a residue no payment could ever clear. ");
|
|
246
213
|
i0.ɵɵelementEnd()()()();
|
|
247
214
|
} if (rf & 2) {
|
|
248
215
|
i0.ɵɵadvance();
|
|
@@ -255,17 +222,29 @@ export class MJOPaymentsDashboardPageComponent {
|
|
|
255
222
|
i0.ɵɵproperty("Bars", ctx.CashPerDay);
|
|
256
223
|
i0.ɵɵadvance(9);
|
|
257
224
|
i0.ɵɵproperty("Rows", ctx.TenderMix);
|
|
258
|
-
i0.ɵɵadvance(
|
|
259
|
-
i0.ɵɵ
|
|
260
|
-
i0.ɵɵadvance(
|
|
225
|
+
i0.ɵɵadvance(23);
|
|
226
|
+
i0.ɵɵconditional(ctx.PaymentEntityInfo ? 44 : 45);
|
|
227
|
+
i0.ɵɵadvance(12);
|
|
261
228
|
i0.ɵɵtextInterpolate(ctx.FeeTotal);
|
|
262
229
|
i0.ɵɵadvance(5);
|
|
263
230
|
i0.ɵɵtextInterpolate(ctx.EffectiveRate);
|
|
264
|
-
} }, dependencies: [CommonModule,
|
|
231
|
+
} }, dependencies: [CommonModule,
|
|
232
|
+
MJOStatTileComponent,
|
|
233
|
+
MJOBarListComponent,
|
|
234
|
+
MJODayBarsComponent,
|
|
235
|
+
MJAlertComponent,
|
|
236
|
+
EntityViewerModule, i1.EntityViewerComponent], styles: ["\n\n\n\n\n\n .mjo-pd__split[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);\n gap: var(--mj-space-4);\n margin-top: var(--mj-space-4);\n }\n .mjo-pd__viewer-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 560px;\n min-height: 480px;\n }\n .mjo-pd__viewer-host[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n height: 100%;\n min-height: 400px;\n display: flex;\n flex-direction: column;\n }\n mj-entity-viewer[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n .mjo-pd__row[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--mj-space-3);\n padding: 3px 0;\n }\n .mjo-pd__note[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n @media (max-width: 1000px) {\n .mjo-pd__split[_ngcontent-%COMP%] { grid-template-columns: 1fr; }\n }\n\n [_nghost-%COMP%] {\n display: block;\n height: 100%;\n overflow: auto;\n padding: var(--mj-space-6);\n box-sizing: border-box;\n }\n .mjo-pd__split--three[_ngcontent-%COMP%] {\n grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));\n margin-top: var(--mj-space-6);\n }\n .mjo-pd__note[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n @media (max-width: 1000px) {\n .mjo-pd__split[_ngcontent-%COMP%] { grid-template-columns: 1fr; }\n }\n @media (max-width: 760px) {\n [_nghost-%COMP%] { padding: var(--mj-space-4); }\n }"] });
|
|
265
237
|
}
|
|
266
238
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOPaymentsDashboardPageComponent, [{
|
|
267
239
|
type: Component,
|
|
268
|
-
args: [{ selector: 'mjo-payments-dashboard-page', standalone: true, imports: [
|
|
240
|
+
args: [{ selector: 'mjo-payments-dashboard-page', standalone: true, imports: [
|
|
241
|
+
CommonModule,
|
|
242
|
+
MJOStatTileComponent,
|
|
243
|
+
MJOBarListComponent,
|
|
244
|
+
MJODayBarsComponent,
|
|
245
|
+
MJAlertComponent,
|
|
246
|
+
EntityViewerModule
|
|
247
|
+
], template: `
|
|
269
248
|
<div class="mj-stat-grid">
|
|
270
249
|
<mjo-stat-tile
|
|
271
250
|
Label="Cash received"
|
|
@@ -334,34 +313,20 @@ export class MJOPaymentsDashboardPageComponent {
|
|
|
334
313
|
</div>
|
|
335
314
|
|
|
336
315
|
<div class="mjo-pd__split">
|
|
337
|
-
<div class="mj-card">
|
|
316
|
+
<div class="mj-card mjo-pd__viewer-card">
|
|
338
317
|
<div class="mj-card-head">
|
|
339
318
|
<i class="fa-solid fa-clock-rotate-left" aria-hidden="true"></i>
|
|
340
|
-
<h3>
|
|
319
|
+
<h3>Payments List</h3>
|
|
341
320
|
</div>
|
|
342
|
-
<div class="
|
|
343
|
-
|
|
344
|
-
<
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
</thead>
|
|
352
|
-
<tbody>
|
|
353
|
-
@for (payment of LatestPayments; track payment.ID) {
|
|
354
|
-
<tr (click)="PaymentOpened.emit(payment)" style="cursor: pointer;">
|
|
355
|
-
<td><span class="mono">{{ payment.PaymentNumber }}</span></td>
|
|
356
|
-
<td>{{ payerOf(payment) }}</td>
|
|
357
|
-
<td>{{ payment.PaymentType ?? '—' }}</td>
|
|
358
|
-
<td class="num">{{ (payment.Amount ?? 0) | mjoMoney }}</td>
|
|
359
|
-
</tr>
|
|
360
|
-
} @empty {
|
|
361
|
-
<tr><td colspan="4" class="small muted">No payments yet.</td></tr>
|
|
362
|
-
}
|
|
363
|
-
</tbody>
|
|
364
|
-
</table>
|
|
321
|
+
<div class="mjo-pd__viewer-host">
|
|
322
|
+
@if (PaymentEntityInfo) {
|
|
323
|
+
<mj-entity-viewer
|
|
324
|
+
[Entity]="PaymentEntityInfo"
|
|
325
|
+
(RecordOpened)="OnRecordOpened($event)">
|
|
326
|
+
</mj-entity-viewer>
|
|
327
|
+
} @else {
|
|
328
|
+
<div class="small muted" style="padding: 24px;">Loading payments...</div>
|
|
329
|
+
}
|
|
365
330
|
</div>
|
|
366
331
|
</div>
|
|
367
332
|
|
|
@@ -386,9 +351,9 @@ export class MJOPaymentsDashboardPageComponent {
|
|
|
386
351
|
</div>
|
|
387
352
|
</div>
|
|
388
353
|
</div>
|
|
389
|
-
`, styles: ["\n /* NOTE: .mjo-pd__split was declared TWICE in this block with different column\n templates, so the later one silently won and BOTH rows rendered as two equal\n columns. The top row has three cards, so the third landed alone and left an empty\n half-width slot beside it \u2014 a hole that read as a card that had failed to load.\n Two layouts need two names. */\n .mjo-pd__split {\n display: grid;\n grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);\n gap: var(--mj-space-4);\n margin-top: var(--mj-space-4);\n }\n .mjo-pd__row {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--mj-space-3);\n padding: 3px 0;\n }\n .mjo-pd__note { margin-top: var(--mj-space-3); }\n @media (max-width: 1000px) {\n .mjo-pd__split { grid-template-columns: 1fr; }\n }\n\n :host {\n display: block;\n height: 100%;\n overflow: auto;\n padding: var(--mj-space-6);\n
|
|
354
|
+
`, styles: ["\n /* NOTE: .mjo-pd__split was declared TWICE in this block with different column\n templates, so the later one silently won and BOTH rows rendered as two equal\n columns. The top row has three cards, so the third landed alone and left an empty\n half-width slot beside it \u2014 a hole that read as a card that had failed to load.\n Two layouts need two names. */\n .mjo-pd__split {\n display: grid;\n grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);\n gap: var(--mj-space-4);\n margin-top: var(--mj-space-4);\n }\n .mjo-pd__viewer-card {\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 560px;\n min-height: 480px;\n }\n .mjo-pd__viewer-host {\n flex: 1 1 auto;\n height: 100%;\n min-height: 400px;\n display: flex;\n flex-direction: column;\n }\n mj-entity-viewer {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n .mjo-pd__row {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--mj-space-3);\n padding: 3px 0;\n }\n .mjo-pd__note { margin-top: var(--mj-space-3); }\n @media (max-width: 1000px) {\n .mjo-pd__split { grid-template-columns: 1fr; }\n }\n\n :host {\n display: block;\n height: 100%;\n overflow: auto;\n padding: var(--mj-space-6);\n box-sizing: border-box;\n }\n .mjo-pd__split--three {\n grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));\n margin-top: var(--mj-space-6);\n }\n .mjo-pd__note { margin-top: var(--mj-space-3); }\n @media (max-width: 1000px) {\n .mjo-pd__split { grid-template-columns: 1fr; }\n }\n @media (max-width: 760px) {\n :host { padding: var(--mj-space-4); }\n }\n "] }]
|
|
390
355
|
}], null, { PaymentOpened: [{
|
|
391
356
|
type: Output
|
|
392
357
|
}] }); })();
|
|
393
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOPaymentsDashboardPageComponent, { className: "MJOPaymentsDashboardPageComponent", filePath: "lib/pages/payments/payments-dashboard.page.ts", lineNumber:
|
|
358
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOPaymentsDashboardPageComponent, { className: "MJOPaymentsDashboardPageComponent", filePath: "lib/pages/payments/payments-dashboard.page.ts", lineNumber: 217 }); })();
|
|
394
359
|
//# sourceMappingURL=payments-dashboard.page.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-dashboard.page.js","sourceRoot":"","sources":["../../../../src/lib/pages/payments/payments-dashboard.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,YAAY,EAAU,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAkB,MAAM,kCAAkC,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAkB,MAAM,iCAAiC,CAAC;AAEtF,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"payments-dashboard.page.js","sourceRoot":"","sources":["../../../../src/lib/pages/payments/payments-dashboard.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,YAAY,EAAU,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,mB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,qCAAmB;YAWnB,eAAkB;YAAlB,oCAAkB;YA8BhC,gBAOC;YAPD,iDAOC;YAYqB,gBAAc;YAAd,kCAAc;YAId,eAAmB;YAAnB,uCAAmB;4BAzGrD,YAAY;YACZ,oBAAoB;YACpB,mBAAmB;YACnB,mBAAmB;YACnB,gBAAgB;YAChB,kBAAkB;;iFAoLb,iCAAiC;cA7L7C,SAAS;2BACI,6BAA6B,cAC3B,IAAI,WACP;oBACL,YAAY;oBACZ,oBAAoB;oBACpB,mBAAmB;oBACnB,mBAAmB;oBACnB,gBAAgB;oBAChB,kBAAkB;iBACrB,YACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2GT;;kBA0EA,MAAM;;kFAHE,iCAAiC"}
|
|
@@ -1,51 +1,17 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { type
|
|
3
|
-
import type
|
|
2
|
+
import { type RecordOpenedEvent } from '@memberjunction/ng-entity-viewer';
|
|
3
|
+
import { type EntityInfo } from '@memberjunction/core';
|
|
4
|
+
import { type mjBizAppsOrdersPaymentHeaderEntity } from '@mj-biz-apps/orders-entities';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
|
-
* `mjo-payments-list-page` —
|
|
7
|
-
*
|
|
8
|
-
* THERE IS NO "UNAPPLIED" COLUMN because there is no unapplied cash. A payment's
|
|
9
|
-
* amount always equals the sum of its allocations, so every row reconciles by
|
|
10
|
-
* construction. A column for something that cannot happen would imply it can.
|
|
11
|
-
*
|
|
12
|
-
* A refund is a NEW payment rather than an edit of the capture, which is why
|
|
13
|
-
* reversals appear as their own rows in their own preset rather than as a state
|
|
14
|
-
* on the original.
|
|
15
|
-
*
|
|
16
|
-
* ## Example
|
|
17
|
-
*
|
|
18
|
-
* ```html
|
|
19
|
-
* <mjo-payments-list-page (PaymentOpened)="openPreview($event)" />
|
|
20
|
-
* ```
|
|
7
|
+
* `mjo-payments-list-page` — All Payments view powered by MemberJunction's native `<mj-entity-viewer>`.
|
|
21
8
|
*/
|
|
22
9
|
export declare class MJOPaymentsListPageComponent implements OnInit {
|
|
23
|
-
/**
|
|
24
|
-
* Render what was just loaded.
|
|
25
|
-
*
|
|
26
|
-
* These pages are created imperatively by the section shell through
|
|
27
|
-
* `ViewContainerRef.createComponent`. When an async load assigns across
|
|
28
|
-
* Angular's check/verify boundary, dev mode raises NG0100 and ABORTS the DOM
|
|
29
|
-
* write. Nothing re-renders afterwards, so the recorded "previous" value stays
|
|
30
|
-
* pre-load while the getter returns the loaded one — the mismatch then repeats
|
|
31
|
-
* on every tick and the view is frozen for good. It is not a flicker: the
|
|
32
|
-
* Orders dashboard sat at "0 open orders / $0.00" against 73 real orders, and
|
|
33
|
-
* read as a quiet day rather than a broken screen.
|
|
34
|
-
*
|
|
35
|
-
* Writing the DOM here ends it: the rendered value matches the getter from the
|
|
36
|
-
* first pass on, so later verify passes agree.
|
|
37
|
-
*/
|
|
38
10
|
private readonly cdr;
|
|
39
11
|
PaymentOpened: EventEmitter<mjBizAppsOrdersPaymentHeaderEntity>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
readonly Presets: MJOPreset[];
|
|
44
|
-
readonly Columns: MJOColumn<mjBizAppsOrdersPaymentHeaderEntity>[];
|
|
45
|
-
ngOnInit(): Promise<void>;
|
|
46
|
-
OnPreset(preset: string): Promise<void>;
|
|
47
|
-
OnSearch(text: string): Promise<void>;
|
|
48
|
-
private load;
|
|
12
|
+
PaymentEntityInfo: EntityInfo | null;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
OnRecordOpened(event: RecordOpenedEvent): void;
|
|
49
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MJOPaymentsListPageComponent, never>;
|
|
50
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<MJOPaymentsListPageComponent, "mjo-payments-list-page", never, {}, { "PaymentOpened": "PaymentOpened"; }, never, never, true, never>;
|
|
51
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-list.page.d.ts","sourceRoot":"","sources":["../../../../src/lib/pages/payments/payments-list.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAC;AAEnG,OAAO,
|
|
1
|
+
{"version":3,"file":"payments-list.page.d.ts","sourceRoot":"","sources":["../../../../src/lib/pages/payments/payments-list.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAC;AAEnG,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;;AAGvF;;GAEG;AACH,qBA6Da,4BAA6B,YAAW,MAAM;IACvD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAEvC,aAAa,mDAA0D;IAE1E,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAQ;IAE5C,QAAQ,IAAI,IAAI;IAMhB,cAAc,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;yCAb5C,4BAA4B;2CAA5B,4BAA4B;CAoBxC"}
|
|
@@ -1,150 +1,71 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Component, EventEmitter, Output, inject } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { EntityViewerModule } from '@memberjunction/ng-entity-viewer';
|
|
4
|
+
import { Metadata } from '@memberjunction/core';
|
|
5
|
+
import { MJO_ENTITIES } from '../../data/entity-names.js';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@memberjunction/ng-entity-viewer";
|
|
8
|
+
function MJOPaymentsListPageComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
10
|
+
i0.ɵɵelementStart(0, "mj-entity-viewer", 4);
|
|
11
|
+
i0.ɵɵlistener("RecordOpened", function MJOPaymentsListPageComponent_Conditional_2_Template_mj_entity_viewer_RecordOpened_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordOpened($event)); });
|
|
12
|
+
i0.ɵɵelementEnd();
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵproperty("Entity", ctx_r1.PaymentEntityInfo);
|
|
16
|
+
} }
|
|
17
|
+
function MJOPaymentsListPageComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
19
|
+
i0.ɵɵtext(1, "Loading payment metadata...");
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
} }
|
|
7
22
|
/**
|
|
8
|
-
* `mjo-payments-list-page` —
|
|
9
|
-
*
|
|
10
|
-
* THERE IS NO "UNAPPLIED" COLUMN because there is no unapplied cash. A payment's
|
|
11
|
-
* amount always equals the sum of its allocations, so every row reconciles by
|
|
12
|
-
* construction. A column for something that cannot happen would imply it can.
|
|
13
|
-
*
|
|
14
|
-
* A refund is a NEW payment rather than an edit of the capture, which is why
|
|
15
|
-
* reversals appear as their own rows in their own preset rather than as a state
|
|
16
|
-
* on the original.
|
|
17
|
-
*
|
|
18
|
-
* ## Example
|
|
19
|
-
*
|
|
20
|
-
* ```html
|
|
21
|
-
* <mjo-payments-list-page (PaymentOpened)="openPreview($event)" />
|
|
22
|
-
* ```
|
|
23
|
+
* `mjo-payments-list-page` — All Payments view powered by MemberJunction's native `<mj-entity-viewer>`.
|
|
23
24
|
*/
|
|
24
25
|
export class MJOPaymentsListPageComponent {
|
|
25
|
-
/**
|
|
26
|
-
* Render what was just loaded.
|
|
27
|
-
*
|
|
28
|
-
* These pages are created imperatively by the section shell through
|
|
29
|
-
* `ViewContainerRef.createComponent`. When an async load assigns across
|
|
30
|
-
* Angular's check/verify boundary, dev mode raises NG0100 and ABORTS the DOM
|
|
31
|
-
* write. Nothing re-renders afterwards, so the recorded "previous" value stays
|
|
32
|
-
* pre-load while the getter returns the loaded one — the mismatch then repeats
|
|
33
|
-
* on every tick and the view is frozen for good. It is not a flicker: the
|
|
34
|
-
* Orders dashboard sat at "0 open orders / $0.00" against 73 real orders, and
|
|
35
|
-
* read as a quiet day rather than a broken screen.
|
|
36
|
-
*
|
|
37
|
-
* Writing the DOM here ends it: the rendered value matches the getter from the
|
|
38
|
-
* first pass on, so later verify passes agree.
|
|
39
|
-
*/
|
|
40
26
|
cdr = inject(ChangeDetectorRef);
|
|
41
27
|
PaymentOpened = new EventEmitter();
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{ Key: 'all', Label: 'All' },
|
|
47
|
-
{ Key: 'captured', Label: 'Captured' },
|
|
48
|
-
{ Key: 'pending', Label: 'Awaiting capture', Icon: 'fa-solid fa-clock' },
|
|
49
|
-
{ Key: 'refunds', Label: 'Refunds', Icon: 'fa-solid fa-arrow-rotate-left' },
|
|
50
|
-
];
|
|
51
|
-
Columns = [
|
|
52
|
-
{ Key: 'PaymentNumber', Label: 'Payment', Kind: 'mono', Width: '118px', Sortable: true },
|
|
53
|
-
{
|
|
54
|
-
Key: 'PaymentDate',
|
|
55
|
-
Label: 'Date',
|
|
56
|
-
Width: '96px',
|
|
57
|
-
Sortable: true,
|
|
58
|
-
Format: (r) => FormatDate(r.PaymentDate, { Short: true }),
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
Key: 'From',
|
|
62
|
-
Label: 'From',
|
|
63
|
-
Format: (r) => (r.BillToOrganization ?? r.BillToPerson ?? '—'),
|
|
64
|
-
},
|
|
65
|
-
{ Key: 'PaymentType', Label: 'Tender', Width: '130px', HideBelow: 760 },
|
|
66
|
-
{ Key: 'Company', Label: 'Into', Width: '96px', HideBelow: 1000 },
|
|
67
|
-
{
|
|
68
|
-
Key: 'Status',
|
|
69
|
-
Label: 'Status',
|
|
70
|
-
Kind: 'chip',
|
|
71
|
-
Width: '110px',
|
|
72
|
-
ChipClass: (r) => r.Status === 'Captured'
|
|
73
|
-
? 'mj-chip--success'
|
|
74
|
-
: r.Status === 'Pending'
|
|
75
|
-
? 'mj-chip--warning'
|
|
76
|
-
: r.Status === 'Refunded'
|
|
77
|
-
? 'mj-chip--violet'
|
|
78
|
-
: r.Status === 'Failed' || r.Status === 'Disputed'
|
|
79
|
-
? 'mj-chip--error'
|
|
80
|
-
: '',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
Key: 'Amount',
|
|
84
|
-
Label: 'Amount',
|
|
85
|
-
Kind: 'money',
|
|
86
|
-
Width: '116px',
|
|
87
|
-
Sortable: true,
|
|
88
|
-
// A refund stores a positive magnitude with negative lines, so the sign
|
|
89
|
-
// here comes from the STATUS rather than from the stored number.
|
|
90
|
-
Format: (r) => (r.Status === 'Refunded' ? '−' : '') + FormatMoney(r.Amount, { Sign: 'absolute' }),
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
Key: 'ProcessingFeeAmount',
|
|
94
|
-
Label: 'Fee',
|
|
95
|
-
Kind: 'money',
|
|
96
|
-
Width: '92px',
|
|
97
|
-
HideBelow: 560,
|
|
98
|
-
Format: (r) => FormatMoney(r.ProcessingFeeAmount, { Zero: '—' }),
|
|
99
|
-
},
|
|
100
|
-
];
|
|
101
|
-
async ngOnInit() {
|
|
102
|
-
await this.load();
|
|
103
|
-
}
|
|
104
|
-
async OnPreset(preset) {
|
|
105
|
-
this.Preset = preset;
|
|
106
|
-
await this.load();
|
|
107
|
-
this.cdr.detectChanges();
|
|
108
|
-
}
|
|
109
|
-
async OnSearch(text) {
|
|
110
|
-
this.Search = text;
|
|
111
|
-
await this.load();
|
|
28
|
+
PaymentEntityInfo = null;
|
|
29
|
+
ngOnInit() {
|
|
30
|
+
const md = new Metadata();
|
|
31
|
+
this.PaymentEntityInfo = md.Entities.find((e) => e.Name === MJO_ENTITIES.PaymentHeader) || null;
|
|
112
32
|
this.cdr.detectChanges();
|
|
113
33
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
34
|
+
OnRecordOpened(event) {
|
|
35
|
+
const id = (event.compositeKey?.GetValueByFieldName('ID') ?? event.record?.['ID']);
|
|
36
|
+
if (id) {
|
|
37
|
+
const surrogate = { ID: id };
|
|
38
|
+
this.PaymentOpened.emit(surrogate);
|
|
39
|
+
}
|
|
117
40
|
}
|
|
118
41
|
static ɵfac = function MJOPaymentsListPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOPaymentsListPageComponent)(); };
|
|
119
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOPaymentsListPageComponent, selectors: [["mjo-payments-list-page"]], outputs: { PaymentOpened: "PaymentOpened" }, decls:
|
|
120
|
-
i0.ɵɵelementStart(0, "
|
|
121
|
-
i0.ɵɵ
|
|
122
|
-
i0.ɵɵelementEnd();
|
|
42
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOPaymentsListPageComponent, selectors: [["mjo-payments-list-page"]], outputs: { PaymentOpened: "PaymentOpened" }, decls: 4, vars: 1, consts: [[1, "mjo-list-page-container"], [1, "mjo-viewer-wrapper"], [3, "Entity"], [1, "small", "muted", 2, "padding", "24px"], [3, "RecordOpened", "Entity"]], template: function MJOPaymentsListPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
44
|
+
i0.ɵɵconditionalCreate(2, MJOPaymentsListPageComponent_Conditional_2_Template, 1, 1, "mj-entity-viewer", 2)(3, MJOPaymentsListPageComponent_Conditional_3_Template, 2, 0, "div", 3);
|
|
45
|
+
i0.ɵɵelementEnd()();
|
|
123
46
|
} if (rf & 2) {
|
|
124
|
-
i0.ɵɵ
|
|
125
|
-
|
|
47
|
+
i0.ɵɵadvance(2);
|
|
48
|
+
i0.ɵɵconditional(ctx.PaymentEntityInfo ? 2 : 3);
|
|
49
|
+
} }, dependencies: [CommonModule, EntityViewerModule, i1.EntityViewerComponent], styles: ["[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n min-height: 0;\n overflow: hidden;\n }\n .mjo-list-page-container[_ngcontent-%COMP%] {\n height: 100%;\n width: 100%;\n min-height: 0;\n display: flex;\n flex-direction: column;\n padding: var(--mj-space-6);\n box-sizing: border-box;\n }\n .mjo-viewer-wrapper[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n height: 100%;\n min-height: 500px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n mj-entity-viewer[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n @media (max-width: 760px) {\n .mjo-list-page-container[_ngcontent-%COMP%] { padding: var(--mj-space-4); }\n }"] });
|
|
126
50
|
}
|
|
127
51
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOPaymentsListPageComponent, [{
|
|
128
52
|
type: Component,
|
|
129
|
-
args: [{ selector: 'mjo-payments-list-page', standalone: true, imports: [CommonModule,
|
|
130
|
-
<mjo-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
(
|
|
143
|
-
(SearchChanged)="OnSearch($event)"
|
|
144
|
-
(RowClicked)="PaymentOpened.emit($any($event))" />
|
|
145
|
-
`, styles: ["\n :host {\n display: block;\n height: 100%;\n overflow: auto;\n padding: var(--mj-space-6);\n }\n @media (max-width: 760px) {\n :host { padding: var(--mj-space-4); }\n }\n "] }]
|
|
53
|
+
args: [{ selector: 'mjo-payments-list-page', standalone: true, imports: [CommonModule, EntityViewerModule], template: `
|
|
54
|
+
<div class="mjo-list-page-container">
|
|
55
|
+
<div class="mjo-viewer-wrapper">
|
|
56
|
+
@if (PaymentEntityInfo) {
|
|
57
|
+
<mj-entity-viewer
|
|
58
|
+
[Entity]="PaymentEntityInfo"
|
|
59
|
+
(RecordOpened)="OnRecordOpened($event)">
|
|
60
|
+
</mj-entity-viewer>
|
|
61
|
+
} @else {
|
|
62
|
+
<div class="small muted" style="padding: 24px;">Loading payment metadata...</div>
|
|
63
|
+
}
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
`, styles: ["\n :host {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n min-height: 0;\n overflow: hidden;\n }\n .mjo-list-page-container {\n height: 100%;\n width: 100%;\n min-height: 0;\n display: flex;\n flex-direction: column;\n padding: var(--mj-space-6);\n box-sizing: border-box;\n }\n .mjo-viewer-wrapper {\n flex: 1 1 auto;\n height: 100%;\n min-height: 500px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n mj-entity-viewer {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n @media (max-width: 760px) {\n .mjo-list-page-container { padding: var(--mj-space-4); }\n }\n "] }]
|
|
146
67
|
}], null, { PaymentOpened: [{
|
|
147
68
|
type: Output
|
|
148
69
|
}] }); })();
|
|
149
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOPaymentsListPageComponent, { className: "MJOPaymentsListPageComponent", filePath: "lib/pages/payments/payments-list.page.ts", lineNumber:
|
|
70
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOPaymentsListPageComponent, { className: "MJOPaymentsListPageComponent", filePath: "lib/pages/payments/payments-list.page.ts", lineNumber: 72 }); })();
|
|
150
71
|
//# sourceMappingURL=payments-list.page.js.map
|