@mj-biz-apps/orders-ng 5.48.0 → 5.49.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/form-panels/external-invoices.panel.d.ts +2 -1
- package/dist/lib/form-panels/external-invoices.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/external-invoices.panel.js +5 -4
- package/dist/lib/form-panels/external-invoices.panel.js.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js +5 -5
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
- package/dist/lib/pages/subscriptions/renewals-page.model.d.ts +214 -0
- package/dist/lib/pages/subscriptions/renewals-page.model.d.ts.map +1 -0
- package/dist/lib/pages/subscriptions/renewals-page.model.js +663 -0
- package/dist/lib/pages/subscriptions/renewals-page.model.js.map +1 -0
- package/dist/lib/pages/subscriptions/renewals.page.d.ts +236 -0
- package/dist/lib/pages/subscriptions/renewals.page.d.ts.map +1 -0
- package/dist/lib/pages/subscriptions/renewals.page.js +2249 -0
- package/dist/lib/pages/subscriptions/renewals.page.js.map +1 -0
- package/dist/lib/pages/subscriptions/subscriptions.page.d.ts.map +1 -0
- package/dist/lib/pages/{receivables → subscriptions}/subscriptions.page.js +1 -1
- package/dist/lib/pages/subscriptions/subscriptions.page.js.map +1 -0
- package/dist/lib/panels/external-invoice-view.d.ts +13 -3
- package/dist/lib/panels/external-invoice-view.d.ts.map +1 -1
- package/dist/lib/panels/external-invoice-view.js +20 -4
- package/dist/lib/panels/external-invoice-view.js.map +1 -1
- package/dist/lib/panels/money-format.d.ts +16 -6
- package/dist/lib/panels/money-format.d.ts.map +1 -1
- package/dist/lib/panels/money-format.js +6 -5
- package/dist/lib/panels/money-format.js.map +1 -1
- package/dist/lib/panels/multi-select.component.d.ts +60 -0
- package/dist/lib/panels/multi-select.component.d.ts.map +1 -0
- package/dist/lib/panels/multi-select.component.js +293 -0
- package/dist/lib/panels/multi-select.component.js.map +1 -0
- package/dist/lib/panels/stat-tile.component.d.ts +3 -1
- package/dist/lib/panels/stat-tile.component.d.ts.map +1 -1
- package/dist/lib/panels/stat-tile.component.js +64 -17
- package/dist/lib/panels/stat-tile.component.js.map +1 -1
- package/dist/lib/panels/worklist-table.component.d.ts +35 -12
- package/dist/lib/panels/worklist-table.component.d.ts.map +1 -1
- package/dist/lib/panels/worklist-table.component.js +126 -67
- package/dist/lib/panels/worklist-table.component.js.map +1 -1
- package/dist/lib/sections/orders-sections.component.d.ts +23 -6
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
- package/dist/lib/sections/orders-sections.component.js +146 -16
- package/dist/lib/sections/orders-sections.component.js.map +1 -1
- package/dist/lib/sections/section-nav.model.d.ts +14 -5
- package/dist/lib/sections/section-nav.model.d.ts.map +1 -1
- package/dist/lib/sections/section-nav.model.js +18 -7
- package/dist/lib/sections/section-nav.model.js.map +1 -1
- package/dist/public-api.d.ts +7 -4
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +10 -7
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
- package/dist/lib/pages/receivables/subscriptions.page.d.ts.map +0 -1
- package/dist/lib/pages/receivables/subscriptions.page.js.map +0 -1
- /package/dist/lib/pages/{receivables → subscriptions}/subscriptions.page.d.ts +0 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview `mjo-multi-select` — a compact "pick several" dropdown for narrowing a list.
|
|
3
|
+
*
|
|
4
|
+
* MJ's `mj-dropdown` picks one value and `mj-filter-panel`'s multi mode renders chips, which is
|
|
5
|
+
* right for three options and wrong for fourteen products. This is the piece in between: a trigger
|
|
6
|
+
* that reads like a field ("Company · All", "Company · 2 of 7"), and a panel of checkboxes with a
|
|
7
|
+
* count beside each, a search box once the list is long, and a Clear link. It owns no data: the
|
|
8
|
+
* host passes the options and the selection and hears the new selection back.
|
|
9
|
+
*
|
|
10
|
+
* The options carry a count because a filter is a question about the data ("how many of these are
|
|
11
|
+
* Blue Cypress?"), and answering it before the click saves the click.
|
|
12
|
+
*
|
|
13
|
+
* ## Example
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <mjo-multi-select
|
|
17
|
+
* Label="Company"
|
|
18
|
+
* Icon="fa-solid fa-building"
|
|
19
|
+
* [Options]="CompanyOptions"
|
|
20
|
+
* [Selected]="Facets.Companies"
|
|
21
|
+
* (SelectedChange)="OnCompanies($event)" />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @module @mj-biz-apps/orders-ng
|
|
25
|
+
*/
|
|
26
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
27
|
+
import { CommonModule } from '@angular/common';
|
|
28
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
31
|
+
const _forTrack0 = ($index, $item) => $item.Value;
|
|
32
|
+
function MJOMultiSelectComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelement(0, "i", 7);
|
|
34
|
+
} if (rf & 2) {
|
|
35
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
36
|
+
i0.ɵɵclassMap(ctx_r1.Icon);
|
|
37
|
+
} }
|
|
38
|
+
function MJOMultiSelectComponent_ng_template_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
41
|
+
i0.ɵɵelement(1, "i", 16);
|
|
42
|
+
i0.ɵɵelementStart(2, "input", 17);
|
|
43
|
+
i0.ɵɵlistener("input", function MJOMultiSelectComponent_ng_template_8_Conditional_1_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.Filter = $event.target.value); });
|
|
44
|
+
i0.ɵɵelementEnd()();
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
47
|
+
i0.ɵɵadvance(2);
|
|
48
|
+
i0.ɵɵproperty("value", ctx_r1.Filter)("placeholder", "Find a " + ctx_r1.Label.toLowerCase() + "\u2026");
|
|
49
|
+
i0.ɵɵattribute("aria-label", "Find a " + ctx_r1.Label.toLowerCase());
|
|
50
|
+
} }
|
|
51
|
+
function MJOMultiSelectComponent_ng_template_8_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
53
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
54
|
+
i0.ɵɵlistener("click", function MJOMultiSelectComponent_ng_template_8_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.Clear()); });
|
|
55
|
+
i0.ɵɵtext(1, "Clear");
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
} }
|
|
58
|
+
function MJOMultiSelectComponent_ng_template_8_For_8_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
+
i0.ɵɵelementStart(0, "span", 23);
|
|
60
|
+
i0.ɵɵtext(1);
|
|
61
|
+
i0.ɵɵelementEnd();
|
|
62
|
+
} if (rf & 2) {
|
|
63
|
+
const option_r6 = i0.ɵɵnextContext().$implicit;
|
|
64
|
+
i0.ɵɵclassProp("mjo-ms__count--none", option_r6.Count === 0);
|
|
65
|
+
i0.ɵɵadvance();
|
|
66
|
+
i0.ɵɵtextInterpolate(option_r6.Count);
|
|
67
|
+
} }
|
|
68
|
+
function MJOMultiSelectComponent_ng_template_8_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
70
|
+
i0.ɵɵelementStart(0, "li", 14)(1, "label", 19)(2, "input", 20);
|
|
71
|
+
i0.ɵɵlistener("change", function MJOMultiSelectComponent_ng_template_8_For_8_Template_input_change_2_listener($event) { const option_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.Toggle(option_r6.Value, $event.target.checked)); });
|
|
72
|
+
i0.ɵɵelementEnd();
|
|
73
|
+
i0.ɵɵelementStart(3, "span", 21);
|
|
74
|
+
i0.ɵɵtext(4);
|
|
75
|
+
i0.ɵɵelementEnd();
|
|
76
|
+
i0.ɵɵconditionalCreate(5, MJOMultiSelectComponent_ng_template_8_For_8_Conditional_5_Template, 2, 3, "span", 22);
|
|
77
|
+
i0.ɵɵelementEnd()();
|
|
78
|
+
} if (rf & 2) {
|
|
79
|
+
const option_r6 = ctx.$implicit;
|
|
80
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
81
|
+
i0.ɵɵattribute("aria-selected", ctx_r1.IsTicked(option_r6.Value));
|
|
82
|
+
i0.ɵɵadvance(2);
|
|
83
|
+
i0.ɵɵproperty("checked", ctx_r1.IsTicked(option_r6.Value));
|
|
84
|
+
i0.ɵɵadvance(2);
|
|
85
|
+
i0.ɵɵtextInterpolate(option_r6.Text);
|
|
86
|
+
i0.ɵɵadvance();
|
|
87
|
+
i0.ɵɵconditional(option_r6.Count != null ? 5 : -1);
|
|
88
|
+
} }
|
|
89
|
+
function MJOMultiSelectComponent_ng_template_8_ForEmpty_9_Template(rf, ctx) { if (rf & 1) {
|
|
90
|
+
i0.ɵɵelementStart(0, "li", 15);
|
|
91
|
+
i0.ɵɵtext(1);
|
|
92
|
+
i0.ɵɵelementEnd();
|
|
93
|
+
} if (rf & 2) {
|
|
94
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
95
|
+
i0.ɵɵadvance();
|
|
96
|
+
i0.ɵɵtextInterpolate1("Nothing matches \"", ctx_r1.Filter, "\"");
|
|
97
|
+
} }
|
|
98
|
+
function MJOMultiSelectComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
99
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
100
|
+
i0.ɵɵconditionalCreate(1, MJOMultiSelectComponent_ng_template_8_Conditional_1_Template, 3, 3, "div", 9);
|
|
101
|
+
i0.ɵɵelementStart(2, "div", 10)(3, "span", 11);
|
|
102
|
+
i0.ɵɵtext(4);
|
|
103
|
+
i0.ɵɵelementEnd();
|
|
104
|
+
i0.ɵɵconditionalCreate(5, MJOMultiSelectComponent_ng_template_8_Conditional_5_Template, 2, 0, "button", 12);
|
|
105
|
+
i0.ɵɵelementEnd();
|
|
106
|
+
i0.ɵɵelementStart(6, "ul", 13);
|
|
107
|
+
i0.ɵɵrepeaterCreate(7, MJOMultiSelectComponent_ng_template_8_For_8_Template, 6, 4, "li", 14, _forTrack0, false, MJOMultiSelectComponent_ng_template_8_ForEmpty_9_Template, 2, 1, "li", 15);
|
|
108
|
+
i0.ɵɵelementEnd()();
|
|
109
|
+
} if (rf & 2) {
|
|
110
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
111
|
+
i0.ɵɵattribute("aria-label", ctx_r1.Label);
|
|
112
|
+
i0.ɵɵadvance();
|
|
113
|
+
i0.ɵɵconditional(ctx_r1.Options.length > ctx_r1.SearchThreshold ? 1 : -1);
|
|
114
|
+
i0.ɵɵadvance(3);
|
|
115
|
+
i0.ɵɵtextInterpolate(ctx_r1.Selected.length ? ctx_r1.Selected.length + " of " + ctx_r1.Options.length + " selected" : "Showing all " + ctx_r1.Options.length);
|
|
116
|
+
i0.ɵɵadvance();
|
|
117
|
+
i0.ɵɵconditional(ctx_r1.Selected.length ? 5 : -1);
|
|
118
|
+
i0.ɵɵadvance(2);
|
|
119
|
+
i0.ɵɵrepeater(ctx_r1.FilteredOptions);
|
|
120
|
+
} }
|
|
121
|
+
export class MJOMultiSelectComponent {
|
|
122
|
+
/** The dimension being narrowed: "Company", "Product". */
|
|
123
|
+
Label = '';
|
|
124
|
+
Icon = null;
|
|
125
|
+
Options = [];
|
|
126
|
+
/** The ticked values. The host owns it; this component only proposes the next one. */
|
|
127
|
+
Selected = [];
|
|
128
|
+
/** A search box appears once there are more options than this. */
|
|
129
|
+
SearchThreshold = 8;
|
|
130
|
+
SelectedChange = new EventEmitter();
|
|
131
|
+
IsOpen = false;
|
|
132
|
+
Filter = '';
|
|
133
|
+
Positions = [
|
|
134
|
+
{ originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },
|
|
135
|
+
{ originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },
|
|
136
|
+
];
|
|
137
|
+
/** "All", the one name when one is ticked, else "2 of 7". */
|
|
138
|
+
get Summary() {
|
|
139
|
+
if (!this.Selected.length)
|
|
140
|
+
return 'All';
|
|
141
|
+
if (this.Selected.length === 1) {
|
|
142
|
+
const only = this.Options.find((o) => o.Value === this.Selected[0]);
|
|
143
|
+
if (only)
|
|
144
|
+
return only.Text;
|
|
145
|
+
}
|
|
146
|
+
return `${this.Selected.length} of ${this.Options.length}`;
|
|
147
|
+
}
|
|
148
|
+
get FilteredOptions() {
|
|
149
|
+
const needle = this.Filter.trim().toLowerCase();
|
|
150
|
+
return needle ? this.Options.filter((o) => o.Text.toLowerCase().includes(needle)) : this.Options;
|
|
151
|
+
}
|
|
152
|
+
IsTicked(value) {
|
|
153
|
+
return this.Selected.includes(value);
|
|
154
|
+
}
|
|
155
|
+
/** Toggle one value; or, with one argument, open/close the panel. */
|
|
156
|
+
Toggle(value, ticked) {
|
|
157
|
+
if (value === undefined) {
|
|
158
|
+
this.IsOpen = !this.IsOpen;
|
|
159
|
+
if (!this.IsOpen)
|
|
160
|
+
this.Filter = '';
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
const on = ticked ?? !this.IsTicked(value);
|
|
164
|
+
const next = on ? [...this.Selected.filter((v) => v !== value), value] : this.Selected.filter((v) => v !== value);
|
|
165
|
+
this.SelectedChange.emit(next);
|
|
166
|
+
}
|
|
167
|
+
Clear() {
|
|
168
|
+
if (this.Selected.length)
|
|
169
|
+
this.SelectedChange.emit([]);
|
|
170
|
+
}
|
|
171
|
+
Close() {
|
|
172
|
+
this.IsOpen = false;
|
|
173
|
+
this.Filter = '';
|
|
174
|
+
}
|
|
175
|
+
OnKey(event) {
|
|
176
|
+
if (event.key === 'Escape') {
|
|
177
|
+
event.stopPropagation();
|
|
178
|
+
this.Close();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
static ɵfac = function MJOMultiSelectComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOMultiSelectComponent)(); };
|
|
182
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOMultiSelectComponent, selectors: [["mjo-multi-select"]], inputs: { Label: "Label", Icon: "Icon", Options: "Options", Selected: "Selected", SearchThreshold: "SearchThreshold" }, outputs: { SelectedChange: "SelectedChange" }, decls: 9, vars: 13, consts: [["origin", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", "aria-haspopup", "listbox", 1, "mjo-ms__trigger", 3, "click"], ["aria-hidden", "true", 3, "class"], [1, "mjo-ms__label"], [1, "mjo-ms__value"], ["aria-hidden", "true", 1, "fa-solid", "fa-chevron-down", "mjo-ms__caret"], ["cdkConnectedOverlay", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "backdropClick", "detach", "overlayKeydown", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayHasBackdrop"], ["aria-hidden", "true"], ["role", "group", 1, "mjo-ms__panel"], [1, "mjo-search", "mjo-ms__search"], [1, "mjo-ms__head"], [1, "small", "muted"], ["type", "button", 1, "mjo-ms__link"], ["role", "listbox", "aria-multiselectable", "true", 1, "mjo-ms__list"], ["role", "option"], [1, "small", "muted", "mjo-ms__empty"], ["aria-hidden", "true", 1, "fa-solid", "fa-magnifying-glass"], ["type", "text", 3, "input", "value", "placeholder"], ["type", "button", 1, "mjo-ms__link", 3, "click"], [1, "mjo-ms__option"], ["type", "checkbox", 3, "change", "checked"], [1, "mjo-ms__text"], [1, "mjo-ms__count", 3, "mjo-ms__count--none"], [1, "mjo-ms__count"]], template: function MJOMultiSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
183
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
184
|
+
i0.ɵɵelementStart(0, "button", 1, 0);
|
|
185
|
+
i0.ɵɵlistener("click", function MJOMultiSelectComponent_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.Toggle()); });
|
|
186
|
+
i0.ɵɵconditionalCreate(2, MJOMultiSelectComponent_Conditional_2_Template, 1, 2, "i", 2);
|
|
187
|
+
i0.ɵɵelementStart(3, "span", 3);
|
|
188
|
+
i0.ɵɵtext(4);
|
|
189
|
+
i0.ɵɵelementEnd();
|
|
190
|
+
i0.ɵɵelementStart(5, "span", 4);
|
|
191
|
+
i0.ɵɵtext(6);
|
|
192
|
+
i0.ɵɵelementEnd();
|
|
193
|
+
i0.ɵɵelement(7, "i", 5);
|
|
194
|
+
i0.ɵɵelementEnd();
|
|
195
|
+
i0.ɵɵtemplate(8, MJOMultiSelectComponent_ng_template_8_Template, 10, 5, "ng-template", 6);
|
|
196
|
+
i0.ɵɵlistener("backdropClick", function MJOMultiSelectComponent_Template_ng_template_backdropClick_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.Close()); })("detach", function MJOMultiSelectComponent_Template_ng_template_detach_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.Close()); })("overlayKeydown", function MJOMultiSelectComponent_Template_ng_template_overlayKeydown_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnKey($event)); });
|
|
197
|
+
} if (rf & 2) {
|
|
198
|
+
const origin_r7 = i0.ɵɵreference(1);
|
|
199
|
+
i0.ɵɵclassProp("mjo-ms__trigger--active", ctx.Selected.length > 0)("mjo-ms__trigger--open", ctx.IsOpen);
|
|
200
|
+
i0.ɵɵattribute("aria-expanded", ctx.IsOpen)("aria-label", ctx.Label + ": " + ctx.Summary);
|
|
201
|
+
i0.ɵɵadvance(2);
|
|
202
|
+
i0.ɵɵconditional(ctx.Icon ? 2 : -1);
|
|
203
|
+
i0.ɵɵadvance(2);
|
|
204
|
+
i0.ɵɵtextInterpolate(ctx.Label);
|
|
205
|
+
i0.ɵɵadvance(2);
|
|
206
|
+
i0.ɵɵtextInterpolate(ctx.Summary);
|
|
207
|
+
i0.ɵɵadvance(2);
|
|
208
|
+
i0.ɵɵproperty("cdkConnectedOverlayOrigin", origin_r7)("cdkConnectedOverlayOpen", ctx.IsOpen)("cdkConnectedOverlayPositions", ctx.Positions)("cdkConnectedOverlayHasBackdrop", true);
|
|
209
|
+
} }, dependencies: [CommonModule, OverlayModule, i1.CdkConnectedOverlay, i1.CdkOverlayOrigin], styles: ["[_nghost-%COMP%] { display: inline-block; }\n .mjo-ms__trigger[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font: inherit;\n font-size: 13px;\n padding: 5px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: inherit;\n cursor: pointer;\n max-width: 280px;\n }\n .mjo-ms__trigger[_ngcontent-%COMP%]:hover, .mjo-ms__trigger--open[_ngcontent-%COMP%] { border-color: var(--mj-border-strong); }\n .mjo-ms__trigger--active[_ngcontent-%COMP%] { border-color: var(--mj-brand-primary); }\n .mjo-ms__trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-text-muted); font-size: 12px; }\n .mjo-ms__label[_ngcontent-%COMP%] { color: var(--mj-text-muted); }\n .mjo-ms__value[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-medium);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .mjo-ms__trigger--active[_ngcontent-%COMP%] .mjo-ms__value[_ngcontent-%COMP%] { color: var(--mj-brand-primary); }\n .mjo-ms__caret[_ngcontent-%COMP%] { font-size: 10px; }\n\n .mjo-ms__panel[_ngcontent-%COMP%] {\n min-width: 260px;\n max-width: 360px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));\n padding: var(--mj-space-2);\n }\n .mjo-ms__search[_ngcontent-%COMP%] { min-width: 0; margin-bottom: var(--mj-space-2); }\n .mjo-ms__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 2px 6px 6px;\n }\n .mjo-ms__link[_ngcontent-%COMP%] {\n font: inherit;\n font-size: 12px;\n border: none;\n background: none;\n color: var(--mj-brand-primary);\n cursor: pointer;\n padding: 0;\n }\n .mjo-ms__list[_ngcontent-%COMP%] {\n list-style: none;\n margin: 0;\n padding: 0;\n max-height: 320px;\n overflow: auto;\n }\n .mjo-ms__option[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n padding: 6px;\n border-radius: var(--mj-radius-sm, 4px);\n cursor: pointer;\n font-size: 13px;\n }\n .mjo-ms__option[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-sunken); }\n .mjo-ms__text[_ngcontent-%COMP%] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .mjo-ms__count[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-size: 12px;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-sunken);\n border-radius: 999px;\n padding: 0 7px;\n }\n .mjo-ms__count--none[_ngcontent-%COMP%] { opacity: 0.5; }\n .mjo-ms__empty[_ngcontent-%COMP%] { padding: 8px 6px; }"] });
|
|
210
|
+
}
|
|
211
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOMultiSelectComponent, [{
|
|
212
|
+
type: Component,
|
|
213
|
+
args: [{ selector: 'mjo-multi-select', standalone: true, imports: [CommonModule, OverlayModule], template: `
|
|
214
|
+
<button
|
|
215
|
+
type="button"
|
|
216
|
+
class="mjo-ms__trigger"
|
|
217
|
+
[class.mjo-ms__trigger--active]="Selected.length > 0"
|
|
218
|
+
[class.mjo-ms__trigger--open]="IsOpen"
|
|
219
|
+
cdkOverlayOrigin
|
|
220
|
+
#origin="cdkOverlayOrigin"
|
|
221
|
+
(click)="Toggle()"
|
|
222
|
+
[attr.aria-expanded]="IsOpen"
|
|
223
|
+
[attr.aria-label]="Label + ': ' + Summary"
|
|
224
|
+
aria-haspopup="listbox">
|
|
225
|
+
@if (Icon) {
|
|
226
|
+
<i [class]="Icon" aria-hidden="true"></i>
|
|
227
|
+
}
|
|
228
|
+
<span class="mjo-ms__label">{{ Label }}</span>
|
|
229
|
+
<span class="mjo-ms__value">{{ Summary }}</span>
|
|
230
|
+
<i class="fa-solid fa-chevron-down mjo-ms__caret" aria-hidden="true"></i>
|
|
231
|
+
</button>
|
|
232
|
+
|
|
233
|
+
<ng-template
|
|
234
|
+
cdkConnectedOverlay
|
|
235
|
+
[cdkConnectedOverlayOrigin]="origin"
|
|
236
|
+
[cdkConnectedOverlayOpen]="IsOpen"
|
|
237
|
+
[cdkConnectedOverlayPositions]="Positions"
|
|
238
|
+
[cdkConnectedOverlayHasBackdrop]="true"
|
|
239
|
+
cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
|
|
240
|
+
(backdropClick)="Close()"
|
|
241
|
+
(detach)="Close()"
|
|
242
|
+
(overlayKeydown)="OnKey($event)">
|
|
243
|
+
<div class="mjo-ms__panel" role="group" [attr.aria-label]="Label">
|
|
244
|
+
@if (Options.length > SearchThreshold) {
|
|
245
|
+
<div class="mjo-search mjo-ms__search">
|
|
246
|
+
<i class="fa-solid fa-magnifying-glass" aria-hidden="true"></i>
|
|
247
|
+
<input
|
|
248
|
+
type="text"
|
|
249
|
+
[value]="Filter"
|
|
250
|
+
(input)="Filter = $any($event.target).value"
|
|
251
|
+
[placeholder]="'Find a ' + Label.toLowerCase() + '…'"
|
|
252
|
+
[attr.aria-label]="'Find a ' + Label.toLowerCase()" />
|
|
253
|
+
</div>
|
|
254
|
+
}
|
|
255
|
+
<div class="mjo-ms__head">
|
|
256
|
+
<span class="small muted">{{ Selected.length ? Selected.length + ' of ' + Options.length + ' selected' : 'Showing all ' + Options.length }}</span>
|
|
257
|
+
@if (Selected.length) {
|
|
258
|
+
<button type="button" class="mjo-ms__link" (click)="Clear()">Clear</button>
|
|
259
|
+
}
|
|
260
|
+
</div>
|
|
261
|
+
<ul class="mjo-ms__list" role="listbox" aria-multiselectable="true">
|
|
262
|
+
@for (option of FilteredOptions; track option.Value) {
|
|
263
|
+
<li role="option" [attr.aria-selected]="IsTicked(option.Value)">
|
|
264
|
+
<label class="mjo-ms__option">
|
|
265
|
+
<input type="checkbox" [checked]="IsTicked(option.Value)" (change)="Toggle(option.Value, $any($event.target).checked)" />
|
|
266
|
+
<span class="mjo-ms__text">{{ option.Text }}</span>
|
|
267
|
+
@if (option.Count != null) {
|
|
268
|
+
<span class="mjo-ms__count" [class.mjo-ms__count--none]="option.Count === 0">{{ option.Count }}</span>
|
|
269
|
+
}
|
|
270
|
+
</label>
|
|
271
|
+
</li>
|
|
272
|
+
} @empty {
|
|
273
|
+
<li class="small muted mjo-ms__empty">Nothing matches "{{ Filter }}"</li>
|
|
274
|
+
}
|
|
275
|
+
</ul>
|
|
276
|
+
</div>
|
|
277
|
+
</ng-template>
|
|
278
|
+
`, styles: ["\n :host { display: inline-block; }\n .mjo-ms__trigger {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font: inherit;\n font-size: 13px;\n padding: 5px 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: inherit;\n cursor: pointer;\n max-width: 280px;\n }\n .mjo-ms__trigger:hover, .mjo-ms__trigger--open { border-color: var(--mj-border-strong); }\n .mjo-ms__trigger--active { border-color: var(--mj-brand-primary); }\n .mjo-ms__trigger i { color: var(--mj-text-muted); font-size: 12px; }\n .mjo-ms__label { color: var(--mj-text-muted); }\n .mjo-ms__value {\n font-weight: var(--mj-font-medium);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .mjo-ms__trigger--active .mjo-ms__value { color: var(--mj-brand-primary); }\n .mjo-ms__caret { font-size: 10px; }\n\n .mjo-ms__panel {\n min-width: 260px;\n max-width: 360px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));\n padding: var(--mj-space-2);\n }\n .mjo-ms__search { min-width: 0; margin-bottom: var(--mj-space-2); }\n .mjo-ms__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 2px 6px 6px;\n }\n .mjo-ms__link {\n font: inherit;\n font-size: 12px;\n border: none;\n background: none;\n color: var(--mj-brand-primary);\n cursor: pointer;\n padding: 0;\n }\n .mjo-ms__list {\n list-style: none;\n margin: 0;\n padding: 0;\n max-height: 320px;\n overflow: auto;\n }\n .mjo-ms__option {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n padding: 6px;\n border-radius: var(--mj-radius-sm, 4px);\n cursor: pointer;\n font-size: 13px;\n }\n .mjo-ms__option:hover { background: var(--mj-bg-surface-sunken); }\n .mjo-ms__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .mjo-ms__count {\n font-variant-numeric: tabular-nums;\n font-size: 12px;\n color: var(--mj-text-muted);\n background: var(--mj-bg-surface-sunken);\n border-radius: 999px;\n padding: 0 7px;\n }\n .mjo-ms__count--none { opacity: 0.5; }\n .mjo-ms__empty { padding: 8px 6px; }\n "] }]
|
|
279
|
+
}], null, { Label: [{
|
|
280
|
+
type: Input
|
|
281
|
+
}], Icon: [{
|
|
282
|
+
type: Input
|
|
283
|
+
}], Options: [{
|
|
284
|
+
type: Input
|
|
285
|
+
}], Selected: [{
|
|
286
|
+
type: Input
|
|
287
|
+
}], SearchThreshold: [{
|
|
288
|
+
type: Input
|
|
289
|
+
}], SelectedChange: [{
|
|
290
|
+
type: Output
|
|
291
|
+
}] }); })();
|
|
292
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOMultiSelectComponent, { className: "MJOMultiSelectComponent", filePath: "lib/panels/multi-select.component.ts", lineNumber: 193 }); })();
|
|
293
|
+
//# sourceMappingURL=multi-select.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-select.component.js","sourceRoot":"","sources":["../../../src/lib/panels/multi-select.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAA0B,MAAM,sBAAsB,CAAC;;;;;IA0B7D,uBAAyC;;;IAAtC,0BAAc;;;;IAmBb,8BAAuC;IACnC,wBAA+D;IAC/D,iCAK0D;IAFtD,uPAA4C;IAGpD,AANI,iBAK0D,EACxD;;;IAJE,eAAgB;IAEhB,AAFA,qCAAgB,kEAEqC;;;;;IAOzD,kCAA6D;IAAlB,0MAAS,cAAO,KAAC;IAAC,qBAAK;IAAA,iBAAS;;;IAU/D,gCAA6E;IAAA,YAAkB;IAAA,iBAAO;;;IAA1E,4DAAgD;IAAC,cAAkB;IAAlB,qCAAkB;;;;IAHnG,AADJ,AADJ,8BAAgE,gBAC9B,gBAC+F;IAA/D,qOAAU,qDAAiD,KAAC;IAAtH,iBAAyH;IACzH,gCAA2B;IAAA,YAAiB;IAAA,iBAAO;IACnD,+GAA4B;IAIpC,AAD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SAAS;2BACI,kBAAkB,cAChB,IAAI,WACP,CAAC,YAAY,EAAE,aAAa,CAAC,YAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiET;;kBAyFA,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kBAEL,KAAK;;kBAEL,MAAM;;kFAVE,uBAAuB"}
|
|
@@ -38,6 +38,8 @@ export declare class MJOStatTileComponent {
|
|
|
38
38
|
Value: string;
|
|
39
39
|
/** One line of context under it. */
|
|
40
40
|
Detail: string | null;
|
|
41
|
+
/** A money figure beside the value, nearly as large: what the count is worth. With it, `Detail` moves up beside the label. */
|
|
42
|
+
Amount: string | null;
|
|
41
43
|
Icon: string | null;
|
|
42
44
|
/** `alert` colours the value as a problem. Use sparingly, or it stops meaning anything. */
|
|
43
45
|
Tone: 'default' | 'alert';
|
|
@@ -45,7 +47,7 @@ export declare class MJOStatTileComponent {
|
|
|
45
47
|
Clicked: EventEmitter<void>;
|
|
46
48
|
protected onClick(): void;
|
|
47
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<MJOStatTileComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MJOStatTileComponent, "mjo-stat-tile", never, { "Label": { "alias": "Label"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; "Detail": { "alias": "Detail"; "required": false; }; "Icon": { "alias": "Icon"; "required": false; }; "Tone": { "alias": "Tone"; "required": false; }; }, { "Clicked": "Clicked"; }, never, ["*"], true, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJOStatTileComponent, "mjo-stat-tile", never, { "Label": { "alias": "Label"; "required": false; }; "Value": { "alias": "Value"; "required": false; }; "Detail": { "alias": "Detail"; "required": false; }; "Amount": { "alias": "Amount"; "required": false; }; "Icon": { "alias": "Icon"; "required": false; }; "Tone": { "alias": "Tone"; "required": false; }; }, { "Clicked": "Clicked"; }, never, ["*"], true, never>;
|
|
49
51
|
}
|
|
50
52
|
/**
|
|
51
53
|
* `mjo-bar-list` — labelled proportions, one hue.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-tile.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/stat-tile.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAC;;AAGvE,6CAA6C;AAC7C,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,
|
|
1
|
+
{"version":3,"file":"stat-tile.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/stat-tile.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAC;;AAGvE,6CAA6C;AAC7C,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBA6Ea,oBAAoB;IAC7B,0BAA0B;IACjB,KAAK,SAAM;IAEpB,sEAAsE;IAC7D,KAAK,SAAO;IAErB,oCAAoC;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEtC,8HAA8H;IACrH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE7B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEpC,2FAA2F;IAClF,IAAI,EAAE,SAAS,GAAG,OAAO,CAAa;IAE/C,gFAAgF;IACtE,OAAO,qBAA4B;IAE7C,SAAS,CAAC,OAAO,IAAI,IAAI;yCArBhB,oBAAoB;2CAApB,oBAAoB;CAwBhC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAgEa,mBAAmB;IACnB,IAAI,EAAE,SAAS,EAAE,CAAM;IAEvB,SAAS,SAAsB;IAExC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM;yCALhC,mBAAmB;2CAAnB,mBAAmB;CAS/B"}
|
|
@@ -8,8 +8,8 @@ function MJOStatTileComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
8
8
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
9
9
|
i0.ɵɵclassMap(ctx_r0.Icon);
|
|
10
10
|
} }
|
|
11
|
-
function
|
|
12
|
-
i0.ɵɵdomElementStart(0, "span",
|
|
11
|
+
function MJOStatTileComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵdomElementStart(0, "span", 3);
|
|
13
13
|
i0.ɵɵtext(1);
|
|
14
14
|
i0.ɵɵdomElementEnd();
|
|
15
15
|
} if (rf & 2) {
|
|
@@ -17,6 +17,41 @@ function MJOStatTileComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
17
17
|
i0.ɵɵadvance();
|
|
18
18
|
i0.ɵɵtextInterpolate(ctx_r0.Detail);
|
|
19
19
|
} }
|
|
20
|
+
function MJOStatTileComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵdomElementStart(0, "span", 4)(1, "span", 6);
|
|
22
|
+
i0.ɵɵtext(2);
|
|
23
|
+
i0.ɵɵdomElementEnd();
|
|
24
|
+
i0.ɵɵdomElementStart(3, "span", 7);
|
|
25
|
+
i0.ɵɵtext(4);
|
|
26
|
+
i0.ɵɵdomElementEnd()();
|
|
27
|
+
} if (rf & 2) {
|
|
28
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
29
|
+
i0.ɵɵadvance(2);
|
|
30
|
+
i0.ɵɵtextInterpolate(ctx_r0.Value);
|
|
31
|
+
i0.ɵɵadvance(2);
|
|
32
|
+
i0.ɵɵtextInterpolate(ctx_r0.Amount);
|
|
33
|
+
} }
|
|
34
|
+
function MJOStatTileComponent_Conditional_6_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
i0.ɵɵdomElementStart(0, "span", 8);
|
|
36
|
+
i0.ɵɵtext(1);
|
|
37
|
+
i0.ɵɵdomElementEnd();
|
|
38
|
+
} if (rf & 2) {
|
|
39
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
40
|
+
i0.ɵɵadvance();
|
|
41
|
+
i0.ɵɵtextInterpolate(ctx_r0.Detail);
|
|
42
|
+
} }
|
|
43
|
+
function MJOStatTileComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
+
i0.ɵɵdomElementStart(0, "span", 6);
|
|
45
|
+
i0.ɵɵtext(1);
|
|
46
|
+
i0.ɵɵdomElementEnd();
|
|
47
|
+
i0.ɵɵconditionalCreate(2, MJOStatTileComponent_Conditional_6_Conditional_2_Template, 2, 1, "span", 8);
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
50
|
+
i0.ɵɵadvance();
|
|
51
|
+
i0.ɵɵtextInterpolate(ctx_r0.Value);
|
|
52
|
+
i0.ɵɵadvance();
|
|
53
|
+
i0.ɵɵconditional(ctx_r0.Detail ? 2 : -1);
|
|
54
|
+
} }
|
|
20
55
|
const _forTrack0 = ($index, $item) => $item.Label;
|
|
21
56
|
function MJOBarListComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
22
57
|
i0.ɵɵdomElementStart(0, "div", 1)(1, "span", 3);
|
|
@@ -78,6 +113,8 @@ export class MJOStatTileComponent {
|
|
|
78
113
|
Value = '—';
|
|
79
114
|
/** One line of context under it. */
|
|
80
115
|
Detail = null;
|
|
116
|
+
/** A money figure beside the value, nearly as large: what the count is worth. With it, `Detail` moves up beside the label. */
|
|
117
|
+
Amount = null;
|
|
81
118
|
Icon = null;
|
|
82
119
|
/** `alert` colours the value as a problem. Use sparingly, or it stops meaning anything. */
|
|
83
120
|
Tone = 'default';
|
|
@@ -88,18 +125,16 @@ export class MJOStatTileComponent {
|
|
|
88
125
|
this.Clicked.emit();
|
|
89
126
|
}
|
|
90
127
|
static ɵfac = function MJOStatTileComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOStatTileComponent)(); };
|
|
91
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOStatTileComponent, selectors: [["mjo-stat-tile"]], inputs: { Label: "Label", Value: "Value", Detail: "Detail", Icon: "Icon", Tone: "Tone" }, outputs: { Clicked: "Clicked" }, ngContentSelectors: _c0, decls: 8, vars: 10, consts: [[1, "mj-stat", 3, "click", "keydown.enter"], [1, "l"], ["aria-hidden", "true", 3, "class"], [1, "
|
|
128
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOStatTileComponent, selectors: [["mjo-stat-tile"]], inputs: { Label: "Label", Value: "Value", Detail: "Detail", Amount: "Amount", Icon: "Icon", Tone: "Tone" }, outputs: { Clicked: "Clicked" }, ngContentSelectors: _c0, decls: 8, vars: 10, consts: [[1, "mj-stat", 3, "click", "keydown.enter"], [1, "l"], ["aria-hidden", "true", 3, "class"], [1, "mjo-stat__caption"], [1, "mjo-stat__row"], ["aria-hidden", "true"], [1, "v"], [1, "mjo-stat__amount", "mj-num"], [1, "d"]], template: function MJOStatTileComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
129
|
i0.ɵɵprojectionDef();
|
|
93
130
|
i0.ɵɵdomElementStart(0, "div", 0);
|
|
94
131
|
i0.ɵɵdomListener("click", function MJOStatTileComponent_Template_div_click_0_listener() { return ctx.onClick(); })("keydown.enter", function MJOStatTileComponent_Template_div_keydown_enter_0_listener() { return ctx.onClick(); });
|
|
95
132
|
i0.ɵɵdomElementStart(1, "span", 1);
|
|
96
133
|
i0.ɵɵconditionalCreate(2, MJOStatTileComponent_Conditional_2_Template, 1, 2, "i", 2);
|
|
97
134
|
i0.ɵɵtext(3);
|
|
135
|
+
i0.ɵɵconditionalCreate(4, MJOStatTileComponent_Conditional_4_Template, 2, 1, "span", 3);
|
|
98
136
|
i0.ɵɵdomElementEnd();
|
|
99
|
-
i0.ɵɵ
|
|
100
|
-
i0.ɵɵtext(5);
|
|
101
|
-
i0.ɵɵdomElementEnd();
|
|
102
|
-
i0.ɵɵconditionalCreate(6, MJOStatTileComponent_Conditional_6_Template, 2, 1, "span", 4);
|
|
137
|
+
i0.ɵɵconditionalCreate(5, MJOStatTileComponent_Conditional_5_Template, 5, 2, "span", 4)(6, MJOStatTileComponent_Conditional_6_Template, 3, 2);
|
|
103
138
|
i0.ɵɵprojection(7);
|
|
104
139
|
i0.ɵɵdomElementEnd();
|
|
105
140
|
} if (rf & 2) {
|
|
@@ -109,11 +144,11 @@ export class MJOStatTileComponent {
|
|
|
109
144
|
i0.ɵɵconditional(ctx.Icon ? 2 : -1);
|
|
110
145
|
i0.ɵɵadvance();
|
|
111
146
|
i0.ɵɵtextInterpolate1(" ", ctx.Label, " ");
|
|
112
|
-
i0.ɵɵadvance(2);
|
|
113
|
-
i0.ɵɵtextInterpolate(ctx.Value);
|
|
114
147
|
i0.ɵɵadvance();
|
|
115
|
-
i0.ɵɵconditional(ctx.Detail ?
|
|
116
|
-
|
|
148
|
+
i0.ɵɵconditional(ctx.Amount && ctx.Detail ? 4 : -1);
|
|
149
|
+
i0.ɵɵadvance();
|
|
150
|
+
i0.ɵɵconditional(ctx.Amount ? 5 : 6);
|
|
151
|
+
} }, dependencies: [CommonModule], styles: ["\n\n\n .mjo-stat__caption[_ngcontent-%COMP%] {\n margin-left: auto;\n font-size: 11.5px;\n font-weight: 400;\n letter-spacing: 0;\n text-transform: none;\n color: var(--mj-text-muted);\n white-space: nowrap;\n }\n .mjo-stat__row[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--mj-space-3);\n }\n .mjo-stat__amount[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: var(--mj-font-bold, 700);\n letter-spacing: -0.01em;\n line-height: 1.2;\n color: var(--mj-text-primary);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n .mjo-stat--clickable[_ngcontent-%COMP%] {\n cursor: pointer;\n }\n .mjo-stat--clickable[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary);\n }\n .mjo-stat--clickable[_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n }"] });
|
|
117
152
|
}
|
|
118
153
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOStatTileComponent, [{
|
|
119
154
|
type: Component,
|
|
@@ -131,20 +166,32 @@ export class MJOStatTileComponent {
|
|
|
131
166
|
<i [class]="Icon" aria-hidden="true"></i>
|
|
132
167
|
}
|
|
133
168
|
{{ Label }}
|
|
169
|
+
@if (Amount && Detail) {
|
|
170
|
+
<span class="mjo-stat__caption">{{ Detail }}</span>
|
|
171
|
+
}
|
|
134
172
|
</span>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
173
|
+
@if (Amount) {
|
|
174
|
+
<span class="mjo-stat__row">
|
|
175
|
+
<span class="v">{{ Value }}</span>
|
|
176
|
+
<span class="mjo-stat__amount mj-num">{{ Amount }}</span>
|
|
177
|
+
</span>
|
|
178
|
+
} @else {
|
|
179
|
+
<span class="v">{{ Value }}</span>
|
|
180
|
+
@if (Detail) {
|
|
181
|
+
<span class="d">{{ Detail }}</span>
|
|
182
|
+
}
|
|
138
183
|
}
|
|
139
184
|
<ng-content></ng-content>
|
|
140
185
|
</div>
|
|
141
|
-
`, styles: ["\n .mjo-stat--clickable {\n cursor: pointer;\n }\n .mjo-stat--clickable:hover {\n border-color: var(--mj-brand-primary);\n }\n .mjo-stat--clickable:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n }\n "] }]
|
|
186
|
+
`, styles: ["\n /* With an Amount: the caption sits on the label row, right-aligned, and the count and\n the money share the next row, the money a step below the count. */\n .mjo-stat__caption {\n margin-left: auto;\n font-size: 11.5px;\n font-weight: 400;\n letter-spacing: 0;\n text-transform: none;\n color: var(--mj-text-muted);\n white-space: nowrap;\n }\n .mjo-stat__row {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: var(--mj-space-3);\n }\n .mjo-stat__amount {\n font-size: 20px;\n font-weight: var(--mj-font-bold, 700);\n letter-spacing: -0.01em;\n line-height: 1.2;\n color: var(--mj-text-primary);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n .mjo-stat--clickable {\n cursor: pointer;\n }\n .mjo-stat--clickable:hover {\n border-color: var(--mj-brand-primary);\n }\n .mjo-stat--clickable:focus-visible {\n outline: 2px solid var(--mj-border-focus);\n outline-offset: 2px;\n }\n "] }]
|
|
142
187
|
}], null, { Label: [{
|
|
143
188
|
type: Input
|
|
144
189
|
}], Value: [{
|
|
145
190
|
type: Input
|
|
146
191
|
}], Detail: [{
|
|
147
192
|
type: Input
|
|
193
|
+
}], Amount: [{
|
|
194
|
+
type: Input
|
|
148
195
|
}], Icon: [{
|
|
149
196
|
type: Input
|
|
150
197
|
}], Tone: [{
|
|
@@ -152,7 +199,7 @@ export class MJOStatTileComponent {
|
|
|
152
199
|
}], Clicked: [{
|
|
153
200
|
type: Output
|
|
154
201
|
}] }); })();
|
|
155
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOStatTileComponent, { className: "MJOStatTileComponent", filePath: "lib/panels/stat-tile.component.ts", lineNumber:
|
|
202
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOStatTileComponent, { className: "MJOStatTileComponent", filePath: "lib/panels/stat-tile.component.ts", lineNumber: 113 }); })();
|
|
156
203
|
/**
|
|
157
204
|
* `mjo-bar-list` — labelled proportions, one hue.
|
|
158
205
|
*
|
|
@@ -210,5 +257,5 @@ export class MJOBarListComponent {
|
|
|
210
257
|
}], EmptyText: [{
|
|
211
258
|
type: Input
|
|
212
259
|
}] }); })();
|
|
213
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOBarListComponent, { className: "MJOBarListComponent", filePath: "lib/panels/stat-tile.component.ts", lineNumber:
|
|
260
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOBarListComponent, { className: "MJOBarListComponent", filePath: "lib/panels/stat-tile.component.ts", lineNumber: 221 }); })();
|
|
214
261
|
//# sourceMappingURL=stat-tile.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-tile.component.js","sourceRoot":"","sources":["../../../src/lib/panels/stat-tile.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;;;;IAiD3B,0BAAyC;;;IAAtC,0BAAc;;;
|
|
1
|
+
{"version":3,"file":"stat-tile.component.js","sourceRoot":"","sources":["../../../src/lib/panels/stat-tile.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;;;;IAiD3B,0BAAyC;;;IAAtC,0BAAc;;;IAIjB,kCAAgC;IAAA,YAAY;IAAA,oBAAO;;;IAAnB,cAAY;IAAZ,mCAAY;;;IAK5C,AADJ,kCAA4B,cACR;IAAA,YAAW;IAAA,oBAAO;IAClC,kCAAsC;IAAA,YAAY;IACtD,AADsD,oBAAO,EACtD;;;IAFa,eAAW;IAAX,kCAAW;IACW,eAAY;IAAZ,mCAAY;;;IAKlD,kCAAgB;IAAA,YAAY;IAAA,oBAAO;;;IAAn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AEC;YACD,cACA;YADA,0CACA;YAAA,cAEC;YAFD,mDAEC;YAEL,cAUC;YAVD,oCAUC;4BA7BC,YAAY;;iFA0Eb,oBAAoB;cA7EhC,SAAS;2BACI,eAAe,cACb,IAAI,WACP,CAAC,YAAY,CAAC,YACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+BT;;kBA4CA,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAEL,KAAK;;kBAGL,KAAK;;kBAGL,MAAM;;kFAnBE,oBAAoB;AA0BjC;;;;;;;;;;;;;;;;;GAiBG;AAiEH,MAAM,OAAO,mBAAmB;IACnB,IAAI,GAAgB,EAAE,CAAC;IAEvB,SAAS,GAAG,kBAAkB,CAAC;IAE9B,OAAO,CAAC,GAAc;QAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IACnC,CAAC;6GARQ,mBAAmB;6DAAnB,mBAAmB;YA3DxB,iCAAsB;YAClB,sJAUC;YACL,oBAAM;;YAXF,cAUC;YAVD,uBAUC;4BAbC,YAAY;;iFA6Db,mBAAmB;cAhE/B,SAAS;2BACI,cAAc,cACZ,IAAI,WACP,CAAC,YAAY,CAAC,YACb;;;;;;;;;;;;;;KAcT;;kBA+CA,KAAK;;kBAEL,KAAK;;kFAHG,mBAAmB"}
|
|
@@ -73,6 +73,13 @@ export type MJORow = any;
|
|
|
73
73
|
* without admitting it; dropping the lowest-value columns at least tells the
|
|
74
74
|
* truth about what is on screen.
|
|
75
75
|
*
|
|
76
|
+
* TICKING IS SEPARATE FROM CLICKING. With `Selectable` on, each row gains a
|
|
77
|
+
* checkbox and the header a tick-all for the rows on screen; ticking changes
|
|
78
|
+
* `SelectedKeys` and emits `SelectionChanged`, and never fires `RowClicked`, so
|
|
79
|
+
* a page can keep a side panel on the clicked row while a batch builds up. The
|
|
80
|
+
* host owns the set: a preset change narrows what is on screen, not what is
|
|
81
|
+
* ticked, and `SelectableRow` lets it say which rows may be ticked at all.
|
|
82
|
+
*
|
|
76
83
|
* ## Example
|
|
77
84
|
*
|
|
78
85
|
* ```html
|
|
@@ -106,33 +113,49 @@ export declare class MJOWorklistTableComponent {
|
|
|
106
113
|
RowKey: string;
|
|
107
114
|
/** The selected row's key, if the host tracks one. */
|
|
108
115
|
SelectedKey: string | null;
|
|
116
|
+
/** Show a checkbox per row and a tick-all in the header. */
|
|
117
|
+
Selectable: boolean;
|
|
118
|
+
/** The ticked rows' keys. Owned by the host; the table only proposes changes through `SelectionChanged`. */
|
|
119
|
+
SelectedKeys: ReadonlyArray<string>;
|
|
120
|
+
/** Which rows may be ticked. Omit for every row. A row this refuses shows no checkbox. */
|
|
121
|
+
SelectableRow: ((row: MJORow) => boolean) | null;
|
|
122
|
+
/**
|
|
123
|
+
* What a row's checkbox is called to assistive technology, in words a person would use (a number
|
|
124
|
+
* and a name). Omit to label it with the row's key, which is only readable when the key is one.
|
|
125
|
+
*/
|
|
126
|
+
RowLabel: ((row: MJORow) => string) | null;
|
|
109
127
|
EmptyTitle: string;
|
|
110
128
|
EmptyHint: string;
|
|
111
129
|
EmptyIcon: string;
|
|
112
130
|
/** Muted line under the table — where a stated caveat belongs. */
|
|
113
131
|
FootNote: string | null;
|
|
114
|
-
/** Show a checkbox per row for choosing several at once. Keys are `RowKey` values. */
|
|
115
|
-
Selectable: boolean;
|
|
116
|
-
CheckedKeys: readonly string[];
|
|
117
132
|
PresetChanged: EventEmitter<string>;
|
|
118
|
-
/** The full set of checked keys after a checkbox changed. */
|
|
119
|
-
CheckedKeysChange: EventEmitter<string[]>;
|
|
120
133
|
SearchChanged: EventEmitter<string>;
|
|
121
134
|
SortChanged: EventEmitter<string>;
|
|
122
135
|
RowClicked: EventEmitter<any>;
|
|
136
|
+
/** The full set of ticked keys after a change — never a delta, so the host cannot drift from the table. */
|
|
137
|
+
SelectionChanged: EventEmitter<string[]>;
|
|
123
138
|
protected trackRow(index: number, row: MJORow): unknown;
|
|
124
139
|
protected isSelected(row: MJORow): boolean;
|
|
125
|
-
protected isChecked(row: MJORow): boolean;
|
|
126
|
-
protected allChecked(): boolean;
|
|
127
|
-
protected someChecked(): boolean;
|
|
128
|
-
protected toggleRow(row: MJORow, checked: boolean): void;
|
|
129
|
-
/** Checks or clears every row shown; keys checked outside the shown rows are kept. */
|
|
130
|
-
protected toggleAll(checked: boolean): void;
|
|
131
140
|
protected onRowClick(row: MJORow): void;
|
|
141
|
+
protected keyOf(row: MJORow): string;
|
|
142
|
+
protected rowLabel(row: MJORow): string;
|
|
143
|
+
protected canSelect(row: MJORow): boolean;
|
|
144
|
+
protected isTicked(row: MJORow): boolean;
|
|
145
|
+
/** The rows on screen that may be ticked. */
|
|
146
|
+
protected selectableRows(): MJORow[];
|
|
147
|
+
protected allVisibleSelected(): boolean;
|
|
148
|
+
protected someVisibleSelected(): boolean;
|
|
149
|
+
protected toggle(row: MJORow, ticked: boolean): void;
|
|
150
|
+
/**
|
|
151
|
+
* Tick or untick every selectable row ON SCREEN. Rows a preset has hidden keep their state: a
|
|
152
|
+
* tick-all that silently cleared ticks the user could not see would be a surprise either way.
|
|
153
|
+
*/
|
|
154
|
+
protected toggleAll(ticked: boolean): void;
|
|
132
155
|
protected hideClass(column: MJOColumn): string;
|
|
133
156
|
/** A column's rendered value — its formatter if it has one, else the raw property. */
|
|
134
157
|
protected display(row: MJORow, column: MJOColumn): string;
|
|
135
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<MJOWorklistTableComponent, never>;
|
|
136
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MJOWorklistTableComponent, "mjo-worklist-table", never, { "Columns": { "alias": "Columns"; "required": false; }; "Rows": { "alias": "Rows"; "required": false; }; "Presets": { "alias": "Presets"; "required": false; }; "ActivePreset": { "alias": "ActivePreset"; "required": false; }; "Searchable": { "alias": "Searchable"; "required": false; }; "Search": { "alias": "Search"; "required": false; }; "SearchPlaceholder": { "alias": "SearchPlaceholder"; "required": false; }; "SortKey": { "alias": "SortKey"; "required": false; }; "SortDescending": { "alias": "SortDescending"; "required": false; }; "RowKey": { "alias": "RowKey"; "required": false; }; "SelectedKey": { "alias": "SelectedKey"; "required": false; }; "
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJOWorklistTableComponent, "mjo-worklist-table", never, { "Columns": { "alias": "Columns"; "required": false; }; "Rows": { "alias": "Rows"; "required": false; }; "Presets": { "alias": "Presets"; "required": false; }; "ActivePreset": { "alias": "ActivePreset"; "required": false; }; "Searchable": { "alias": "Searchable"; "required": false; }; "Search": { "alias": "Search"; "required": false; }; "SearchPlaceholder": { "alias": "SearchPlaceholder"; "required": false; }; "SortKey": { "alias": "SortKey"; "required": false; }; "SortDescending": { "alias": "SortDescending"; "required": false; }; "RowKey": { "alias": "RowKey"; "required": false; }; "SelectedKey": { "alias": "SelectedKey"; "required": false; }; "Selectable": { "alias": "Selectable"; "required": false; }; "SelectedKeys": { "alias": "SelectedKeys"; "required": false; }; "SelectableRow": { "alias": "SelectableRow"; "required": false; }; "RowLabel": { "alias": "RowLabel"; "required": false; }; "EmptyTitle": { "alias": "EmptyTitle"; "required": false; }; "EmptyHint": { "alias": "EmptyHint"; "required": false; }; "EmptyIcon": { "alias": "EmptyIcon"; "required": false; }; "FootNote": { "alias": "FootNote"; "required": false; }; }, { "PresetChanged": "PresetChanged"; "SearchChanged": "SearchChanged"; "SortChanged": "SortChanged"; "RowClicked": "RowClicked"; "SelectionChanged": "SelectionChanged"; }, never, never, true, never>;
|
|
137
160
|
}
|
|
138
161
|
//# sourceMappingURL=worklist-table.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worklist-table.component.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/worklist-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAC;;AAIvE,wCAAwC;AACxC,MAAM,MAAM,aAAa;AACrB,kBAAkB;AAChB,MAAM;AACR,sCAAsC;GACpC,OAAO;AACT,wCAAwC;GACtC,QAAQ;AACV,sBAAsB;GACpB,MAAM;AACR,mDAAmD;GACjD,MAAM;AACR,mDAAmD;GACjD,MAAM,CAAC;AAEb;;;;;;;;GAQG;AAEH,MAAM,WAAW,SAAS,CAAC,IAAI,GAAG,GAAG;IACjC,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,GAAG,IAAI,CAAC;IACzC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,CAAC;IAClC,kEAAkE;IAClE,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;IAC7B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,CAAC;CAClC;AAED,2CAA2C;AAC3C,MAAM,WAAW,SAAS;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AAEH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC;AAEzB
|
|
1
|
+
{"version":3,"file":"worklist-table.component.d.ts","sourceRoot":"","sources":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