@mj-biz-apps/orders-ng 5.52.0 → 5.53.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/lib/pages/payments/account-credit.page.d.ts +21 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -1
- package/dist/lib/pages/payments/account-credit.page.js +145 -82
- package/dist/lib/pages/payments/account-credit.page.js.map +1 -1
- package/dist/lib/pages/receivables/billing-issue.d.ts +14 -0
- package/dist/lib/pages/receivables/billing-issue.d.ts.map +1 -0
- package/dist/lib/pages/receivables/billing-issue.js +17 -0
- package/dist/lib/pages/receivables/billing-issue.js.map +1 -0
- package/dist/lib/pages/receivables/billing.page.d.ts +135 -19
- package/dist/lib/pages/receivables/billing.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/billing.page.js +748 -163
- package/dist/lib/pages/receivables/billing.page.js.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +12 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.js +40 -14
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts +157 -26
- package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js +1278 -316
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
- package/dist/lib/pages/receivables/overdue-page.model.d.ts +55 -0
- package/dist/lib/pages/receivables/overdue-page.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/overdue-page.model.js +112 -0
- package/dist/lib/pages/receivables/overdue-page.model.js.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts +104 -16
- package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/overdue.page.js +476 -125
- package/dist/lib/pages/receivables/overdue.page.js.map +1 -1
- package/dist/lib/pages/receivables/progress.page.d.ts +69 -8
- package/dist/lib/pages/receivables/progress.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/progress.page.js +574 -248
- package/dist/lib/pages/receivables/progress.page.js.map +1 -1
- package/dist/lib/pages/receivables/worklist-view.model.d.ts +229 -0
- package/dist/lib/pages/receivables/worklist-view.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/worklist-view.model.js +402 -0
- package/dist/lib/pages/receivables/worklist-view.model.js.map +1 -0
- package/dist/lib/panels/aging-bar.component.d.ts +7 -1
- package/dist/lib/panels/aging-bar.component.d.ts.map +1 -1
- package/dist/lib/panels/aging-bar.component.js +89 -33
- package/dist/lib/panels/aging-bar.component.js.map +1 -1
- package/dist/lib/panels/side-panel.component.d.ts +41 -0
- package/dist/lib/panels/side-panel.component.d.ts.map +1 -0
- package/dist/lib/panels/side-panel.component.js +126 -0
- package/dist/lib/panels/side-panel.component.js.map +1 -0
- package/dist/lib/panels/worklist-bar.component.d.ts +81 -0
- package/dist/lib/panels/worklist-bar.component.d.ts.map +1 -0
- package/dist/lib/panels/worklist-bar.component.js +291 -0
- package/dist/lib/panels/worklist-bar.component.js.map +1 -0
- package/dist/lib/panels/worklist-table.component.d.ts +47 -5
- package/dist/lib/panels/worklist-table.component.d.ts.map +1 -1
- package/dist/lib/panels/worklist-table.component.js +283 -79
- package/dist/lib/panels/worklist-table.component.js.map +1 -1
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
- package/dist/lib/sections/orders-sections.component.js +13 -5
- package/dist/lib/sections/orders-sections.component.js.map +1 -1
- package/dist/lib/sections/section-nav.model.js +1 -1
- package/dist/lib/sections/section-nav.model.js.map +1 -1
- package/dist/lib/sections/section-shell.component.js +2 -2
- package/dist/lib/styles/orders-kit.css +10 -0
- package/dist/public-api.d.ts +2 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +2 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { DaysSince, FormatMoney } from './money-format.js';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -6,60 +6,87 @@ const _forTrack0 = ($index, $item) => $item.Key;
|
|
|
6
6
|
function MJOAgingBarComponent_Conditional_0_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
7
7
|
i0.ɵɵtext(0);
|
|
8
8
|
} if (rf & 2) {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
9
|
+
const seg_r2 = i0.ɵɵnextContext().$implicit;
|
|
10
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
11
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.money(seg_r2.Amount), " ");
|
|
12
12
|
} }
|
|
13
13
|
function MJOAgingBarComponent_Conditional_0_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
14
15
|
i0.ɵɵdomElementStart(0, "span", 5);
|
|
16
|
+
i0.ɵɵdomListener("click", function MJOAgingBarComponent_Conditional_0_For_3_Template_span_click_0_listener() { const seg_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.pick(seg_r2.Key)); });
|
|
15
17
|
i0.ɵɵconditionalCreate(1, MJOAgingBarComponent_Conditional_0_For_3_Conditional_1_Template, 1, 1);
|
|
16
18
|
i0.ɵɵdomElementEnd();
|
|
17
19
|
} if (rf & 2) {
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
i0.ɵɵclassMap(
|
|
21
|
-
i0.ɵɵstyleProp("width",
|
|
22
|
-
i0.ɵɵ
|
|
20
|
+
const seg_r2 = ctx.$implicit;
|
|
21
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
22
|
+
i0.ɵɵclassMap(seg_r2.ClassName);
|
|
23
|
+
i0.ɵɵstyleProp("width", seg_r2.Percent, "%");
|
|
24
|
+
i0.ɵɵclassProp("mjo-aging--pick", ctx_r2.BucketClicked.observed)("mjo-aging--dim", ctx_r2.Active !== null && ctx_r2.Active !== seg_r2.Key);
|
|
25
|
+
i0.ɵɵdomProperty("title", seg_r2.Label + ": " + ctx_r2.money(seg_r2.Amount));
|
|
23
26
|
i0.ɵɵadvance();
|
|
24
|
-
i0.ɵɵconditional(
|
|
27
|
+
i0.ɵɵconditional(seg_r2.Percent > 13 ? 1 : -1);
|
|
25
28
|
} }
|
|
26
|
-
function
|
|
29
|
+
function MJOAgingBarComponent_Conditional_0_For_6_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
31
|
+
i0.ɵɵdomElementStart(0, "button", 7);
|
|
32
|
+
i0.ɵɵdomListener("click", function MJOAgingBarComponent_Conditional_0_For_6_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const seg_r5 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.pick(seg_r5.Key)); });
|
|
33
|
+
i0.ɵɵdomElement(1, "i", 8);
|
|
34
|
+
i0.ɵɵtext(2);
|
|
35
|
+
i0.ɵɵdomElementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const seg_r5 = i0.ɵɵnextContext().$implicit;
|
|
38
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
39
|
+
i0.ɵɵclassProp("is-on", ctx_r2.Active === seg_r5.Key);
|
|
40
|
+
i0.ɵɵattribute("aria-pressed", ctx_r2.Active === seg_r5.Key)("title", ctx_r2.Active === seg_r5.Key ? "Show every age" : "Show only " + seg_r5.Label);
|
|
41
|
+
i0.ɵɵadvance();
|
|
42
|
+
i0.ɵɵstyleProp("background", seg_r5.Colour);
|
|
43
|
+
i0.ɵɵadvance();
|
|
44
|
+
i0.ɵɵtextInterpolate2(" ", seg_r5.Label, " ", ctx_r2.money(seg_r5.Amount), " ");
|
|
45
|
+
} }
|
|
46
|
+
function MJOAgingBarComponent_Conditional_0_For_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
27
47
|
i0.ɵɵdomElementStart(0, "span");
|
|
28
|
-
i0.ɵɵdomElement(1, "i",
|
|
48
|
+
i0.ɵɵdomElement(1, "i", 8);
|
|
29
49
|
i0.ɵɵtext(2);
|
|
30
50
|
i0.ɵɵdomElementEnd();
|
|
31
51
|
} if (rf & 2) {
|
|
32
|
-
const
|
|
33
|
-
const
|
|
52
|
+
const seg_r5 = i0.ɵɵnextContext().$implicit;
|
|
53
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
34
54
|
i0.ɵɵadvance();
|
|
35
|
-
i0.ɵɵstyleProp("background",
|
|
55
|
+
i0.ɵɵstyleProp("background", seg_r5.Colour);
|
|
36
56
|
i0.ɵɵadvance();
|
|
37
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
57
|
+
i0.ɵɵtextInterpolate2(" ", seg_r5.Label, " ", ctx_r2.money(seg_r5.Amount), " ");
|
|
58
|
+
} }
|
|
59
|
+
function MJOAgingBarComponent_Conditional_0_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵconditionalCreate(0, MJOAgingBarComponent_Conditional_0_For_6_Conditional_0_Template, 3, 8, "button", 6)(1, MJOAgingBarComponent_Conditional_0_For_6_Conditional_1_Template, 3, 4, "span");
|
|
61
|
+
} if (rf & 2) {
|
|
62
|
+
const seg_r5 = ctx.$implicit;
|
|
63
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
64
|
+
i0.ɵɵconditional(ctx_r2.BucketClicked.observed && (seg_r5.Amount > 0 || ctx_r2.Active === seg_r5.Key) ? 0 : 1);
|
|
38
65
|
} }
|
|
39
66
|
function MJOAgingBarComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
40
67
|
i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 2);
|
|
41
|
-
i0.ɵɵrepeaterCreate(2, MJOAgingBarComponent_Conditional_0_For_3_Template, 2,
|
|
68
|
+
i0.ɵɵrepeaterCreate(2, MJOAgingBarComponent_Conditional_0_For_3_Template, 2, 10, "span", 3, _forTrack0);
|
|
42
69
|
i0.ɵɵdomElementEnd();
|
|
43
70
|
i0.ɵɵdomElementStart(4, "div", 4);
|
|
44
|
-
i0.ɵɵrepeaterCreate(5, MJOAgingBarComponent_Conditional_0_For_6_Template,
|
|
71
|
+
i0.ɵɵrepeaterCreate(5, MJOAgingBarComponent_Conditional_0_For_6_Template, 2, 1, null, null, _forTrack0);
|
|
45
72
|
i0.ɵɵdomElementEnd()();
|
|
46
73
|
} if (rf & 2) {
|
|
47
|
-
const
|
|
74
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
48
75
|
i0.ɵɵadvance();
|
|
49
|
-
i0.ɵɵattribute("aria-label",
|
|
76
|
+
i0.ɵɵattribute("aria-label", ctx_r2.ariaLabel);
|
|
50
77
|
i0.ɵɵadvance();
|
|
51
|
-
i0.ɵɵrepeater(
|
|
78
|
+
i0.ɵɵrepeater(ctx_r2.segments);
|
|
52
79
|
i0.ɵɵadvance(3);
|
|
53
|
-
i0.ɵɵrepeater(
|
|
80
|
+
i0.ɵɵrepeater(ctx_r2.allSegments);
|
|
54
81
|
} }
|
|
55
82
|
function MJOAgingBarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
56
83
|
i0.ɵɵdomElementStart(0, "div", 1);
|
|
57
84
|
i0.ɵɵtext(1);
|
|
58
85
|
i0.ɵɵdomElementEnd();
|
|
59
86
|
} if (rf & 2) {
|
|
60
|
-
const
|
|
87
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
61
88
|
i0.ɵɵadvance();
|
|
62
|
-
i0.ɵɵtextInterpolate(
|
|
89
|
+
i0.ɵɵtextInterpolate(ctx_r2.EmptyText);
|
|
63
90
|
} }
|
|
64
91
|
/** A zeroed set of buckets, so no caller has to remember the four keys. */
|
|
65
92
|
export function EmptyAgingBuckets() {
|
|
@@ -196,6 +223,14 @@ export class MJOAgingBarComponent {
|
|
|
196
223
|
Buckets = { Current: 0, Days1To30: 0, Days31To60: 0, Days61Plus: 0 };
|
|
197
224
|
/** Shown when nothing is outstanding. */
|
|
198
225
|
EmptyText = 'Nothing outstanding.';
|
|
226
|
+
/** The bucket a filter is on, if the host filters by one; the others are dimmed. */
|
|
227
|
+
Active = null;
|
|
228
|
+
/** A bucket was clicked, on the bar or in the legend. Only offered when something listens. */
|
|
229
|
+
BucketClicked = new EventEmitter();
|
|
230
|
+
pick(key) {
|
|
231
|
+
if (this.BucketClicked.observed)
|
|
232
|
+
this.BucketClicked.emit(key);
|
|
233
|
+
}
|
|
199
234
|
get total() {
|
|
200
235
|
const b = this.Buckets;
|
|
201
236
|
return b.Current + b.Days1To30 + b.Days31To60 + b.Days61Plus;
|
|
@@ -235,11 +270,11 @@ export class MJOAgingBarComponent {
|
|
|
235
270
|
return FormatMoney(value);
|
|
236
271
|
}
|
|
237
272
|
static ɵfac = function MJOAgingBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOAgingBarComponent)(); };
|
|
238
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOAgingBarComponent, selectors: [["mjo-aging-bar"]], inputs: { Buckets: "Buckets", EmptyText: "EmptyText" }, decls: 2, vars: 1, consts: [[1, "mj-aging"], [1, "small", "muted"], ["role", "img", 1, "mj-aging-bar"], [3, "class", "width", "title"], [1, "mj-aging-legend"], [3, "title"], ["aria-hidden", "true"]], template: function MJOAgingBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
273
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOAgingBarComponent, selectors: [["mjo-aging-bar"]], inputs: { Buckets: "Buckets", EmptyText: "EmptyText", Active: "Active" }, outputs: { BucketClicked: "BucketClicked" }, decls: 2, vars: 1, consts: [[1, "mj-aging"], [1, "small", "muted"], ["role", "img", 1, "mj-aging-bar"], [3, "class", "mjo-aging--pick", "mjo-aging--dim", "width", "title"], [1, "mj-aging-legend"], [3, "click", "title"], ["type", "button", 1, "mjo-aging__legend-pick", 3, "is-on"], ["type", "button", 1, "mjo-aging__legend-pick", 3, "click"], ["aria-hidden", "true"]], template: function MJOAgingBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
239
274
|
i0.ɵɵconditionalCreate(0, MJOAgingBarComponent_Conditional_0_Template, 7, 1, "div", 0)(1, MJOAgingBarComponent_Conditional_1_Template, 2, 1, "div", 1);
|
|
240
275
|
} if (rf & 2) {
|
|
241
276
|
i0.ɵɵconditional(ctx.total > 0 ? 0 : 1);
|
|
242
|
-
} }, dependencies: [CommonModule], styles: ["@media (max-width: 560px) {\n [_nghost-%COMP%] .mj-aging-legend {\n gap: var(--mj-space-2);\n }\n \n\n\n [_nghost-%COMP%] .mj-aging-bar > span {\n font-size: 0;\n }\n }"] });
|
|
277
|
+
} }, dependencies: [CommonModule], styles: [".mjo-aging--pick[_ngcontent-%COMP%] { cursor: pointer; }\n .mjo-aging--dim[_ngcontent-%COMP%] { opacity: 0.35; }\n .mjo-aging__legend-pick[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font: inherit;\n color: inherit;\n padding: 2px 8px;\n border: 1px solid transparent;\n border-radius: 999px;\n background: none;\n cursor: pointer;\n }\n .mjo-aging__legend-pick[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }\n .mjo-aging__legend-pick[_ngcontent-%COMP%]:hover, .mjo-aging__legend-pick[_ngcontent-%COMP%]:focus-visible { border-color: var(--mj-border-strong); outline: none; }\n .mjo-aging__legend-pick.is-on[_ngcontent-%COMP%] { border-color: var(--mj-brand-primary); color: var(--mj-brand-primary); }\n @media (max-width: 560px) {\n [_nghost-%COMP%] .mj-aging-legend {\n gap: var(--mj-space-2);\n }\n \n\n\n [_nghost-%COMP%] .mj-aging-bar > span {\n font-size: 0;\n }\n }"] });
|
|
243
278
|
}
|
|
244
279
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOAgingBarComponent, [{
|
|
245
280
|
type: Component,
|
|
@@ -253,8 +288,11 @@ export class MJOAgingBarComponent {
|
|
|
253
288
|
@for (seg of segments; track seg.Key) {
|
|
254
289
|
<span
|
|
255
290
|
[class]="seg.ClassName"
|
|
291
|
+
[class.mjo-aging--pick]="BucketClicked.observed"
|
|
292
|
+
[class.mjo-aging--dim]="Active !== null && Active !== seg.Key"
|
|
256
293
|
[style.width.%]="seg.Percent"
|
|
257
|
-
[title]="seg.Label + ': ' + money(seg.Amount)"
|
|
294
|
+
[title]="seg.Label + ': ' + money(seg.Amount)"
|
|
295
|
+
(click)="pick(seg.Key)">
|
|
258
296
|
@if (seg.Percent > 13) {
|
|
259
297
|
{{ money(seg.Amount) }}
|
|
260
298
|
}
|
|
@@ -264,21 +302,39 @@ export class MJOAgingBarComponent {
|
|
|
264
302
|
|
|
265
303
|
<div class="mj-aging-legend">
|
|
266
304
|
@for (seg of allSegments; track seg.Key) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
305
|
+
@if (BucketClicked.observed && (seg.Amount > 0 || Active === seg.Key)) {
|
|
306
|
+
<!-- The legend carries the keyboard and screen-reader path: the bar itself is one image. -->
|
|
307
|
+
<button
|
|
308
|
+
type="button"
|
|
309
|
+
class="mjo-aging__legend-pick"
|
|
310
|
+
[class.is-on]="Active === seg.Key"
|
|
311
|
+
[attr.aria-pressed]="Active === seg.Key"
|
|
312
|
+
[attr.title]="Active === seg.Key ? 'Show every age' : 'Show only ' + seg.Label"
|
|
313
|
+
(click)="pick(seg.Key)">
|
|
314
|
+
<i [style.background]="seg.Colour" aria-hidden="true"></i>
|
|
315
|
+
{{ seg.Label }} {{ money(seg.Amount) }}
|
|
316
|
+
</button>
|
|
317
|
+
} @else {
|
|
318
|
+
<span>
|
|
319
|
+
<i [style.background]="seg.Colour" aria-hidden="true"></i>
|
|
320
|
+
{{ seg.Label }} {{ money(seg.Amount) }}
|
|
321
|
+
</span>
|
|
322
|
+
}
|
|
271
323
|
}
|
|
272
324
|
</div>
|
|
273
325
|
</div>
|
|
274
326
|
} @else {
|
|
275
327
|
<div class="small muted">{{ EmptyText }}</div>
|
|
276
328
|
}
|
|
277
|
-
`, styles: ["\n @media (max-width: 560px) {\n :host ::ng-deep .mj-aging-legend {\n gap: var(--mj-space-2);\n }\n /* Amounts inside the segments become unreadable once the bar is\n narrow; the legend still carries every number. */\n :host ::ng-deep .mj-aging-bar > span {\n font-size: 0;\n }\n }\n "] }]
|
|
329
|
+
`, styles: ["\n .mjo-aging--pick { cursor: pointer; }\n .mjo-aging--dim { opacity: 0.35; }\n .mjo-aging__legend-pick {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font: inherit;\n color: inherit;\n padding: 2px 8px;\n border: 1px solid transparent;\n border-radius: 999px;\n background: none;\n cursor: pointer;\n }\n .mjo-aging__legend-pick i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }\n .mjo-aging__legend-pick:hover, .mjo-aging__legend-pick:focus-visible { border-color: var(--mj-border-strong); outline: none; }\n .mjo-aging__legend-pick.is-on { border-color: var(--mj-brand-primary); color: var(--mj-brand-primary); }\n @media (max-width: 560px) {\n :host ::ng-deep .mj-aging-legend {\n gap: var(--mj-space-2);\n }\n /* Amounts inside the segments become unreadable once the bar is\n narrow; the legend still carries every number. */\n :host ::ng-deep .mj-aging-bar > span {\n font-size: 0;\n }\n }\n "] }]
|
|
278
330
|
}], null, { Buckets: [{
|
|
279
331
|
type: Input
|
|
280
332
|
}], EmptyText: [{
|
|
281
333
|
type: Input
|
|
334
|
+
}], Active: [{
|
|
335
|
+
type: Input
|
|
336
|
+
}], BucketClicked: [{
|
|
337
|
+
type: Output
|
|
282
338
|
}] }); })();
|
|
283
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOAgingBarComponent, { className: "MJOAgingBarComponent", filePath: "lib/panels/aging-bar.component.ts", lineNumber:
|
|
339
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOAgingBarComponent, { className: "MJOAgingBarComponent", filePath: "lib/panels/aging-bar.component.ts", lineNumber: 256 }); })();
|
|
284
340
|
//# sourceMappingURL=aging-bar.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aging-bar.component.js","sourceRoot":"","sources":["../../../src/lib/panels/aging-bar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"aging-bar.component.js","sourceRoot":"","sources":["../../../src/lib/panels/aging-bar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;;;IA2LxB,YACJ;;;;IADI,4DACJ;;;;IATJ,kCAM4B;IAAxB,yNAAS,uBAAa,KAAC;IACvB,gGAAwB;IAG5B,oBAAO;;;;IATH,+BAAuB;IAGvB,4CAA6B;IAD7B,AADA,gEAAgD,0EACc;IAE9D,4EAA8C;IAE9C,cAEC;IAFD,8CAEC;;;;IASD,oCAM4B;IAAxB,6PAAS,uBAAa,KAAC;IACvB,0BAA0D;IAC1D,YACJ;IAAA,oBAAS;;;;IANL,qDAAkC;;IAI/B,cAA+B;IAA/B,2CAA+B;IAClC,cACJ;IADI,+EACJ;;;IAEA,+B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gEA4CR;;YA5CT,uCA8CC;4BAhDK,YAAY;;iFAkFb,oBAAoB;cArFhC,SAAS;2BACI,eAAe,cACb,IAAI,WACP,CAAC,YAAY,CAAC,YACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgDT;;kBAmCA,KAAK;;kBAGL,KAAK;;kBAEL,KAAK;;kBAEL,MAAM;;kFATE,oBAAoB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview `mjo-side-panel` — the selected row, opened beside its list.
|
|
3
|
+
*
|
|
4
|
+
* A worklist row carries more than its columns show, and the acts on it (issue, send, attest) read
|
|
5
|
+
* better next to its facts than in a toolbar above forty other rows. This is the frame for that: a
|
|
6
|
+
* card with the row's name, an optional status chip, a close button, and whatever the page puts
|
|
7
|
+
* inside. `mjo-side-panel__facts` lays out label and value pairs; `mjo-side-panel__actions` is the
|
|
8
|
+
* button row at the foot. The list-beside-panel layout (`mjo-split`) is in `styles/orders-kit.css`,
|
|
9
|
+
* since it wraps the list whether or not a panel is open.
|
|
10
|
+
*
|
|
11
|
+
* Escape closes it, unless the key was pressed in a field or a menu, where it belongs to that.
|
|
12
|
+
*
|
|
13
|
+
* ## Example
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <mjo-side-panel Icon="fa-solid fa-file-invoice" [Title]="row.OrderNumber" (Closed)="Selected = null">
|
|
17
|
+
* <dl class="mjo-side-panel__facts">
|
|
18
|
+
* <dt>Customer</dt><dd>{{ row.CustomerName }}</dd>
|
|
19
|
+
* </dl>
|
|
20
|
+
* <div class="mjo-side-panel__actions">
|
|
21
|
+
* <button mjButton variant="primary">Issue invoice</button>
|
|
22
|
+
* </div>
|
|
23
|
+
* </mjo-side-panel>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @module @mj-biz-apps/orders-ng
|
|
27
|
+
*/
|
|
28
|
+
import { EventEmitter } from '@angular/core';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
export declare class MJOSidePanelComponent {
|
|
31
|
+
Title: string;
|
|
32
|
+
Icon: string | null;
|
|
33
|
+
/** A status chip beside the title, and its variant class. */
|
|
34
|
+
Chip: string | null;
|
|
35
|
+
ChipClass: string;
|
|
36
|
+
Closed: EventEmitter<void>;
|
|
37
|
+
protected onEscape(event: Event): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJOSidePanelComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJOSidePanelComponent, "mjo-side-panel", never, { "Title": { "alias": "Title"; "required": false; }; "Icon": { "alias": "Icon"; "required": false; }; "Chip": { "alias": "Chip"; "required": false; }; "ChipClass": { "alias": "ChipClass"; "required": false; }; }, { "Closed": "Closed"; }, never, ["*"], true, never>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=side-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/side-panel.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAa,YAAY,EAAoC,MAAM,eAAe,CAAC;;AAG1F,qBAiEa,qBAAqB;IACrB,KAAK,SAAM;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,6DAA6D;IACpD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC3B,SAAS,SAAuB;IAE/B,MAAM,qBAA4B;IAE5C,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCAT7B,qBAAqB;2CAArB,qBAAqB;CAejC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview `mjo-side-panel` — the selected row, opened beside its list.
|
|
3
|
+
*
|
|
4
|
+
* A worklist row carries more than its columns show, and the acts on it (issue, send, attest) read
|
|
5
|
+
* better next to its facts than in a toolbar above forty other rows. This is the frame for that: a
|
|
6
|
+
* card with the row's name, an optional status chip, a close button, and whatever the page puts
|
|
7
|
+
* inside. `mjo-side-panel__facts` lays out label and value pairs; `mjo-side-panel__actions` is the
|
|
8
|
+
* button row at the foot. The list-beside-panel layout (`mjo-split`) is in `styles/orders-kit.css`,
|
|
9
|
+
* since it wraps the list whether or not a panel is open.
|
|
10
|
+
*
|
|
11
|
+
* Escape closes it, unless the key was pressed in a field or a menu, where it belongs to that.
|
|
12
|
+
*
|
|
13
|
+
* ## Example
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <mjo-side-panel Icon="fa-solid fa-file-invoice" [Title]="row.OrderNumber" (Closed)="Selected = null">
|
|
17
|
+
* <dl class="mjo-side-panel__facts">
|
|
18
|
+
* <dt>Customer</dt><dd>{{ row.CustomerName }}</dd>
|
|
19
|
+
* </dl>
|
|
20
|
+
* <div class="mjo-side-panel__actions">
|
|
21
|
+
* <button mjButton variant="primary">Issue invoice</button>
|
|
22
|
+
* </div>
|
|
23
|
+
* </mjo-side-panel>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @module @mj-biz-apps/orders-ng
|
|
27
|
+
*/
|
|
28
|
+
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
29
|
+
import { CommonModule } from '@angular/common';
|
|
30
|
+
import * as i0 from "@angular/core";
|
|
31
|
+
const _c0 = ["*"];
|
|
32
|
+
function MJOSidePanelComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵdomElement(0, "i", 8);
|
|
34
|
+
} if (rf & 2) {
|
|
35
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
36
|
+
i0.ɵɵclassMap(ctx_r0.Icon);
|
|
37
|
+
} }
|
|
38
|
+
function MJOSidePanelComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
i0.ɵɵdomElementStart(0, "span", 9);
|
|
40
|
+
i0.ɵɵtext(1);
|
|
41
|
+
i0.ɵɵdomElementEnd();
|
|
42
|
+
} if (rf & 2) {
|
|
43
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
44
|
+
i0.ɵɵclassMap(ctx_r0.ChipClass);
|
|
45
|
+
i0.ɵɵadvance();
|
|
46
|
+
i0.ɵɵtextInterpolate(ctx_r0.Chip);
|
|
47
|
+
} }
|
|
48
|
+
export class MJOSidePanelComponent {
|
|
49
|
+
Title = '';
|
|
50
|
+
Icon = null;
|
|
51
|
+
/** A status chip beside the title, and its variant class. */
|
|
52
|
+
Chip = null;
|
|
53
|
+
ChipClass = 'mjo-chip--outline';
|
|
54
|
+
Closed = new EventEmitter();
|
|
55
|
+
onEscape(event) {
|
|
56
|
+
const target = event.target;
|
|
57
|
+
if (target?.closest?.('input, textarea, select, [contenteditable], [role="menu"], [role="listbox"]'))
|
|
58
|
+
return;
|
|
59
|
+
event.stopPropagation();
|
|
60
|
+
this.Closed.emit();
|
|
61
|
+
}
|
|
62
|
+
static ɵfac = function MJOSidePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOSidePanelComponent)(); };
|
|
63
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOSidePanelComponent, selectors: [["mjo-side-panel"]], inputs: { Title: "Title", Icon: "Icon", Chip: "Chip", ChipClass: "ChipClass" }, outputs: { Closed: "Closed" }, ngContentSelectors: _c0, decls: 11, vars: 4, consts: [[1, "mj-card", "mjo-side-panel", 3, "keydown.escape"], [1, "mj-card-head"], ["aria-hidden", "true", 3, "class"], [1, "right"], [1, "mjo-chip", 3, "class"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "mjo-side-panel__close", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-xmark"], [1, "mj-card-pad"], ["aria-hidden", "true"], [1, "mjo-chip"]], template: function MJOSidePanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵprojectionDef();
|
|
65
|
+
i0.ɵɵdomElementStart(0, "aside", 0);
|
|
66
|
+
i0.ɵɵdomListener("keydown.escape", function MJOSidePanelComponent_Template_aside_keydown_escape_0_listener($event) { return ctx.onEscape($event); });
|
|
67
|
+
i0.ɵɵdomElementStart(1, "div", 1);
|
|
68
|
+
i0.ɵɵconditionalCreate(2, MJOSidePanelComponent_Conditional_2_Template, 1, 2, "i", 2);
|
|
69
|
+
i0.ɵɵdomElementStart(3, "h3");
|
|
70
|
+
i0.ɵɵtext(4);
|
|
71
|
+
i0.ɵɵdomElementEnd();
|
|
72
|
+
i0.ɵɵdomElementStart(5, "span", 3);
|
|
73
|
+
i0.ɵɵconditionalCreate(6, MJOSidePanelComponent_Conditional_6_Template, 2, 3, "span", 4);
|
|
74
|
+
i0.ɵɵdomElementStart(7, "button", 5);
|
|
75
|
+
i0.ɵɵdomListener("click", function MJOSidePanelComponent_Template_button_click_7_listener() { return ctx.Closed.emit(); });
|
|
76
|
+
i0.ɵɵdomElement(8, "i", 6);
|
|
77
|
+
i0.ɵɵdomElementEnd()()();
|
|
78
|
+
i0.ɵɵdomElementStart(9, "div", 7);
|
|
79
|
+
i0.ɵɵprojection(10);
|
|
80
|
+
i0.ɵɵdomElementEnd()();
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
i0.ɵɵattribute("aria-label", ctx.Title);
|
|
83
|
+
i0.ɵɵadvance(2);
|
|
84
|
+
i0.ɵɵconditional(ctx.Icon ? 2 : -1);
|
|
85
|
+
i0.ɵɵadvance(2);
|
|
86
|
+
i0.ɵɵtextInterpolate(ctx.Title);
|
|
87
|
+
i0.ɵɵadvance(2);
|
|
88
|
+
i0.ɵɵconditional(ctx.Chip ? 6 : -1);
|
|
89
|
+
} }, dependencies: [CommonModule], styles: ["\n mjo-side-panel { display: block; }\n .mjo-side-panel { position: sticky; top: 0; }\n .mjo-side-panel__close {\n border: none;\n background: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px 6px;\n border-radius: var(--mj-radius-sm, 4px);\n }\n .mjo-side-panel__close:hover, .mjo-side-panel__close:focus-visible { background: var(--mj-bg-surface-sunken); color: var(--mj-text-primary); outline: none; }\n .mjo-side-panel__facts {\n display: grid;\n grid-template-columns: max-content 1fr;\n column-gap: var(--mj-space-4);\n row-gap: 8px;\n margin: 0 0 var(--mj-space-4);\n font-size: 13px;\n }\n .mjo-side-panel__facts dt { color: var(--mj-text-muted); }\n .mjo-side-panel__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }\n .mjo-side-panel__amount { font-size: 22px; font-weight: var(--mj-font-bold, 700); font-variant-numeric: tabular-nums; margin-bottom: var(--mj-space-3); }\n .mjo-side-panel__actions { display: flex; flex-wrap: wrap; gap: var(--mj-space-2); }\n .mjo-side-panel__note { margin: var(--mj-space-3) 0 0; }\n .mjo-side-panel__link {\n font: inherit;\n padding: 0;\n border: none;\n background: none;\n color: var(--mj-brand-primary);\n cursor: pointer;\n }\n .mjo-side-panel__link:hover, .mjo-side-panel__link:focus-visible { text-decoration: underline; outline: none; }\n "], encapsulation: 2 });
|
|
90
|
+
}
|
|
91
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOSidePanelComponent, [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{ selector: 'mjo-side-panel', standalone: true, imports: [CommonModule], encapsulation: ViewEncapsulation.None, template: `
|
|
94
|
+
<aside class="mj-card mjo-side-panel" [attr.aria-label]="Title" (keydown.escape)="onEscape($event)">
|
|
95
|
+
<div class="mj-card-head">
|
|
96
|
+
@if (Icon) {
|
|
97
|
+
<i [class]="Icon" aria-hidden="true"></i>
|
|
98
|
+
}
|
|
99
|
+
<h3>{{ Title }}</h3>
|
|
100
|
+
<span class="right">
|
|
101
|
+
@if (Chip) {
|
|
102
|
+
<span class="mjo-chip" [class]="ChipClass">{{ Chip }}</span>
|
|
103
|
+
}
|
|
104
|
+
<button type="button" class="mjo-side-panel__close" (click)="Closed.emit()" title="Close" aria-label="Close">
|
|
105
|
+
<i class="fa-solid fa-xmark" aria-hidden="true"></i>
|
|
106
|
+
</button>
|
|
107
|
+
</span>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="mj-card-pad">
|
|
110
|
+
<ng-content />
|
|
111
|
+
</div>
|
|
112
|
+
</aside>
|
|
113
|
+
`, styles: ["\n mjo-side-panel { display: block; }\n .mjo-side-panel { position: sticky; top: 0; }\n .mjo-side-panel__close {\n border: none;\n background: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px 6px;\n border-radius: var(--mj-radius-sm, 4px);\n }\n .mjo-side-panel__close:hover, .mjo-side-panel__close:focus-visible { background: var(--mj-bg-surface-sunken); color: var(--mj-text-primary); outline: none; }\n .mjo-side-panel__facts {\n display: grid;\n grid-template-columns: max-content 1fr;\n column-gap: var(--mj-space-4);\n row-gap: 8px;\n margin: 0 0 var(--mj-space-4);\n font-size: 13px;\n }\n .mjo-side-panel__facts dt { color: var(--mj-text-muted); }\n .mjo-side-panel__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }\n .mjo-side-panel__amount { font-size: 22px; font-weight: var(--mj-font-bold, 700); font-variant-numeric: tabular-nums; margin-bottom: var(--mj-space-3); }\n .mjo-side-panel__actions { display: flex; flex-wrap: wrap; gap: var(--mj-space-2); }\n .mjo-side-panel__note { margin: var(--mj-space-3) 0 0; }\n .mjo-side-panel__link {\n font: inherit;\n padding: 0;\n border: none;\n background: none;\n color: var(--mj-brand-primary);\n cursor: pointer;\n }\n .mjo-side-panel__link:hover, .mjo-side-panel__link:focus-visible { text-decoration: underline; outline: none; }\n "] }]
|
|
114
|
+
}], null, { Title: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], Icon: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], Chip: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], ChipClass: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], Closed: [{
|
|
123
|
+
type: Output
|
|
124
|
+
}] }); })();
|
|
125
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOSidePanelComponent, { className: "MJOSidePanelComponent", filePath: "lib/panels/side-panel.component.ts", lineNumber: 96 }); })();
|
|
126
|
+
//# sourceMappingURL=side-panel.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-panel.component.js","sourceRoot":"","sources":["../../../src/lib/panels/side-panel.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;;IAY3B,0BAAyC;;;IAAtC,0BAAc;;;IAKb,kCAA2C;IAAA,YAAU;IAAA,oBAAO;;;IAArC,+BAAmB;IAAC,cAAU;IAAV,iCAAU;;AAkD7E,MAAM,OAAO,qBAAqB;IACrB,KAAK,GAAG,EAAE,CAAC;IACX,IAAI,GAAkB,IAAI,CAAC;IACpC,6DAA6D;IACpD,IAAI,GAAkB,IAAI,CAAC;IAC3B,SAAS,GAAG,mBAAmB,CAAC;IAE/B,MAAM,GAAG,IAAI,YAAY,EAAQ,CAAC;IAElC,QAAQ,CAAC,KAAY;QAC3B,MAAM,MAAM,GAAG,KAAK,CAAC,MAA4B,CAAC;QAClD,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC,6EAA6E,CAAC;YAAE,OAAO;QAC7G,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;+GAdQ,qBAAqB;6DAArB,qBAAqB;;YA1D1B,mCAAoG;YAApC,4HAAkB,oBAAgB,IAAC;YAC/F,iCAA0B;YACtB,qFAAY;YAGZ,6BAAI;YAAA,YAAW;YAAA,oBAAK;YACpB,kCAAoB;YAChB,wFAAY;YAGZ,oCAA6G;YAAzD,qGAAS,iBAAa,IAAC;YACvE,0BAAoD;YAGhE,AADI,AADI,oBAAS,EACN,EACL;YACN,iCAAyB;YACrB,mBAAc;YAEtB,AADI,oBAAM,EACF;;;YAhBA,eAEC;YAFD,mCAEC;YACG,eAAW;YAAX,+BAAW;YAEX,eAEC;YAFD,mCAEC;4BAbP,YAAY;;iFA8Db,qBAAqB;cAjEjC,SAAS;2BACI,gBAAgB,cACd,IAAI,WACP,CAAC,YAAY,CAAC,iBAER,iBAAiB,CAAC,IAAI,YAC3B;;;;;;;;;;;;;;;;;;;;KAoBT;;kBAwCA,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFAPE,qBAAqB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview `mjo-worklist-bar` — the filter row above a Receivables worklist.
|
|
3
|
+
*
|
|
4
|
+
* Company, the page's own controls (a date window, usually), search, how many rows are listed,
|
|
5
|
+
* Refresh and Export, in that order on every worklist, so a person who has learned one screen has
|
|
6
|
+
* learned them all. The bar owns no rows: the host passes the choices and hears each change, and
|
|
7
|
+
* hands over a function that builds the export when it is asked for.
|
|
8
|
+
*
|
|
9
|
+
* The export is the rows as listed: what the filters hide is left out, and the order is the order
|
|
10
|
+
* on screen.
|
|
11
|
+
*
|
|
12
|
+
* ## Example
|
|
13
|
+
*
|
|
14
|
+
* ```html
|
|
15
|
+
* <mjo-worklist-bar
|
|
16
|
+
* [Companies]="Companies"
|
|
17
|
+
* [CompanyPicks]="CompanyPicks"
|
|
18
|
+
* [Search]="Search"
|
|
19
|
+
* SearchPlaceholder="Search customer or order number"
|
|
20
|
+
* [Summary]="Summary"
|
|
21
|
+
* [Loading]="Loading"
|
|
22
|
+
* [BuildExport]="BuildExport"
|
|
23
|
+
* [CanExport]="Rows.length > 0"
|
|
24
|
+
* (CompanyPicksChange)="OnCompanies($event)"
|
|
25
|
+
* (SearchChange)="OnSearch($event)"
|
|
26
|
+
* (RefreshRequested)="Refresh()">
|
|
27
|
+
* <select ...>…</select>
|
|
28
|
+
* </mjo-worklist-bar>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @module @mj-biz-apps/orders-ng
|
|
32
|
+
*/
|
|
33
|
+
import { EventEmitter } from '@angular/core';
|
|
34
|
+
import { type MJOMultiSelectOption } from './multi-select.component.js';
|
|
35
|
+
import * as i0 from "@angular/core";
|
|
36
|
+
/** One export file: its name, its columns as MJ's export service takes them, and its rows. */
|
|
37
|
+
export interface MJOWorklistExport {
|
|
38
|
+
FileName: string;
|
|
39
|
+
Columns: Array<{
|
|
40
|
+
name: string;
|
|
41
|
+
displayName: string;
|
|
42
|
+
dataType: 'string' | 'number' | 'dateonly';
|
|
43
|
+
numberFormat?: string;
|
|
44
|
+
}>;
|
|
45
|
+
Rows: Array<Record<string, string | number | null>>;
|
|
46
|
+
}
|
|
47
|
+
export declare class MJOWorklistBarComponent {
|
|
48
|
+
private readonly cdr;
|
|
49
|
+
private readonly exporter;
|
|
50
|
+
/** Whether the page filters by company. The filter is then always shown, reading "All" when nothing is chosen, even with one company or none to offer. */
|
|
51
|
+
ShowCompanies: boolean;
|
|
52
|
+
/** The companies offered: the ones with rows on the page. */
|
|
53
|
+
Companies: MJOMultiSelectOption[];
|
|
54
|
+
/** The chosen companies. Owned by the host. */
|
|
55
|
+
CompanyPicks: ReadonlyArray<string>;
|
|
56
|
+
Searchable: boolean;
|
|
57
|
+
/** Current search text, controlled by the host. */
|
|
58
|
+
Search: string;
|
|
59
|
+
SearchPlaceholder: string;
|
|
60
|
+
/** The quick filter that is on, by name ("Past due"), shown as a chip that clears it. Null when none is. */
|
|
61
|
+
ActiveFilter: string | null;
|
|
62
|
+
ActiveFilterCleared: EventEmitter<void>;
|
|
63
|
+
/** How many rows are listed, in words: "12 of 40 installments shown". */
|
|
64
|
+
Summary: string;
|
|
65
|
+
/** A reload is running: the Refresh button spins and waits. */
|
|
66
|
+
Loading: boolean;
|
|
67
|
+
/** Builds the export of the rows listed. Omit to offer no export. */
|
|
68
|
+
BuildExport: ((format: 'excel' | 'csv') => MJOWorklistExport) | null;
|
|
69
|
+
/** Whether there is anything to export. */
|
|
70
|
+
CanExport: boolean;
|
|
71
|
+
CompanyPicksChange: EventEmitter<string[]>;
|
|
72
|
+
SearchChange: EventEmitter<string>;
|
|
73
|
+
RefreshRequested: EventEmitter<void>;
|
|
74
|
+
Exporting: boolean;
|
|
75
|
+
/** Why the last export failed, shown beside the row count until the next one. */
|
|
76
|
+
ExportError: string | null;
|
|
77
|
+
Export(format: 'excel' | 'csv'): Promise<void>;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJOWorklistBarComponent, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJOWorklistBarComponent, "mjo-worklist-bar", never, { "ShowCompanies": { "alias": "ShowCompanies"; "required": false; }; "Companies": { "alias": "Companies"; "required": false; }; "CompanyPicks": { "alias": "CompanyPicks"; "required": false; }; "Searchable": { "alias": "Searchable"; "required": false; }; "Search": { "alias": "Search"; "required": false; }; "SearchPlaceholder": { "alias": "SearchPlaceholder"; "required": false; }; "ActiveFilter": { "alias": "ActiveFilter"; "required": false; }; "Summary": { "alias": "Summary"; "required": false; }; "Loading": { "alias": "Loading"; "required": false; }; "BuildExport": { "alias": "BuildExport"; "required": false; }; "CanExport": { "alias": "CanExport"; "required": false; }; }, { "ActiveFilterCleared": "ActiveFilterCleared"; "CompanyPicksChange": "CompanyPicksChange"; "SearchChange": "SearchChange"; "RefreshRequested": "RefreshRequested"; }, never, ["*"], true, never>;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=worklist-bar.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worklist-bar.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/worklist-bar.component.ts"],"names":[],"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