@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
|
@@ -55,7 +55,7 @@ function MJOWorklistTableComponent_Conditional_5_Template(rf, ctx) { if (rf & 1)
|
|
|
55
55
|
} if (rf & 2) {
|
|
56
56
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
57
57
|
i0.ɵɵadvance();
|
|
58
|
-
i0.ɵɵproperty("checked", ctx_r1.
|
|
58
|
+
i0.ɵɵproperty("checked", ctx_r1.allVisibleSelected())("indeterminate", ctx_r1.someVisibleSelected())("disabled", !ctx_r1.selectableRows().length);
|
|
59
59
|
} }
|
|
60
60
|
function MJOWorklistTableComponent_For_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
61
61
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
@@ -91,42 +91,51 @@ function MJOWorklistTableComponent_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
91
91
|
i0.ɵɵadvance();
|
|
92
92
|
i0.ɵɵconditional(column_r7.Sortable ? 1 : 2);
|
|
93
93
|
} }
|
|
94
|
+
function MJOWorklistTableComponent_For_10_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
95
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
96
|
+
i0.ɵɵelementStart(0, "input", 21);
|
|
97
|
+
i0.ɵɵlistener("change", function MJOWorklistTableComponent_For_10_Conditional_1_Conditional_1_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r11); const row_r9 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggle(row_r9, $event.target.checked)); });
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
} if (rf & 2) {
|
|
100
|
+
const row_r9 = i0.ɵɵnextContext(2).$implicit;
|
|
101
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
102
|
+
i0.ɵɵproperty("checked", ctx_r1.isTicked(row_r9));
|
|
103
|
+
i0.ɵɵattribute("aria-label", ctx_r1.rowLabel(row_r9));
|
|
104
|
+
} }
|
|
94
105
|
function MJOWorklistTableComponent_For_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
95
106
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
96
107
|
i0.ɵɵelementStart(0, "td", 19);
|
|
97
108
|
i0.ɵɵlistener("click", function MJOWorklistTableComponent_For_10_Conditional_1_Template_td_click_0_listener($event) { i0.ɵɵrestoreView(_r10); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
98
|
-
i0.ɵɵ
|
|
99
|
-
i0.ɵɵ
|
|
100
|
-
i0.ɵɵelementEnd()();
|
|
109
|
+
i0.ɵɵconditionalCreate(1, MJOWorklistTableComponent_For_10_Conditional_1_Conditional_1_Template, 1, 2, "input", 20);
|
|
110
|
+
i0.ɵɵelementEnd();
|
|
101
111
|
} if (rf & 2) {
|
|
102
112
|
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
103
113
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
104
114
|
i0.ɵɵadvance();
|
|
105
|
-
i0.ɵɵ
|
|
106
|
-
i0.ɵɵattribute("aria-label", "Select " + row_r9[ctx_r1.RowKey]);
|
|
115
|
+
i0.ɵɵconditional(ctx_r1.canSelect(row_r9) ? 1 : -1);
|
|
107
116
|
} }
|
|
108
117
|
function MJOWorklistTableComponent_For_10_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
-
i0.ɵɵelementStart(0, "span",
|
|
118
|
+
i0.ɵɵelementStart(0, "span", 24);
|
|
110
119
|
i0.ɵɵtext(1);
|
|
111
120
|
i0.ɵɵelementEnd();
|
|
112
121
|
} if (rf & 2) {
|
|
113
|
-
const
|
|
122
|
+
const column_r12 = i0.ɵɵnextContext().$implicit;
|
|
114
123
|
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
115
124
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
116
|
-
i0.ɵɵclassMap((
|
|
125
|
+
i0.ɵɵclassMap((column_r12.ChipClass == null ? null : column_r12.ChipClass(row_r9)) ?? "");
|
|
117
126
|
i0.ɵɵadvance();
|
|
118
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.display(row_r9,
|
|
127
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.display(row_r9, column_r12), " ");
|
|
119
128
|
} }
|
|
120
129
|
function MJOWorklistTableComponent_For_10_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
121
130
|
i0.ɵɵtext(0);
|
|
122
131
|
} if (rf & 2) {
|
|
123
|
-
const
|
|
132
|
+
const column_r12 = i0.ɵɵnextContext().$implicit;
|
|
124
133
|
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
125
134
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
126
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.display(row_r9,
|
|
135
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.display(row_r9, column_r12), " ");
|
|
127
136
|
} }
|
|
128
137
|
function MJOWorklistTableComponent_For_10_For_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
129
|
-
i0.ɵɵelementStart(0, "div",
|
|
138
|
+
i0.ɵɵelementStart(0, "div", 23);
|
|
130
139
|
i0.ɵɵtext(1);
|
|
131
140
|
i0.ɵɵelementEnd();
|
|
132
141
|
} if (rf & 2) {
|
|
@@ -135,26 +144,26 @@ function MJOWorklistTableComponent_For_10_For_3_Conditional_3_Template(rf, ctx)
|
|
|
135
144
|
} }
|
|
136
145
|
function MJOWorklistTableComponent_For_10_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
137
146
|
i0.ɵɵelementStart(0, "td");
|
|
138
|
-
i0.ɵɵconditionalCreate(1, MJOWorklistTableComponent_For_10_For_3_Conditional_1_Template, 2, 3, "span",
|
|
139
|
-
i0.ɵɵconditionalCreate(3, MJOWorklistTableComponent_For_10_For_3_Conditional_3_Template, 2, 1, "div",
|
|
147
|
+
i0.ɵɵconditionalCreate(1, MJOWorklistTableComponent_For_10_For_3_Conditional_1_Template, 2, 3, "span", 22)(2, MJOWorklistTableComponent_For_10_For_3_Conditional_2_Template, 1, 1);
|
|
148
|
+
i0.ɵɵconditionalCreate(3, MJOWorklistTableComponent_For_10_For_3_Conditional_3_Template, 2, 1, "div", 23);
|
|
140
149
|
i0.ɵɵelementEnd();
|
|
141
150
|
} if (rf & 2) {
|
|
142
151
|
let tmp_24_0;
|
|
143
|
-
const
|
|
152
|
+
const column_r12 = ctx.$implicit;
|
|
144
153
|
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
145
154
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
146
|
-
i0.ɵɵclassMap(ctx_r1.hideClass(
|
|
147
|
-
i0.ɵɵclassProp("num",
|
|
155
|
+
i0.ɵɵclassMap(ctx_r1.hideClass(column_r12));
|
|
156
|
+
i0.ɵɵclassProp("num", column_r12.Kind === "money" || column_r12.Kind === "number")("mono", column_r12.Kind === "mono");
|
|
148
157
|
i0.ɵɵadvance();
|
|
149
|
-
i0.ɵɵconditional(
|
|
158
|
+
i0.ɵɵconditional(column_r12.Kind === "chip" ? 1 : 2);
|
|
150
159
|
i0.ɵɵadvance(2);
|
|
151
|
-
i0.ɵɵconditional((tmp_24_0 =
|
|
160
|
+
i0.ɵɵconditional((tmp_24_0 = column_r12.Secondary == null ? null : column_r12.Secondary(row_r9)) ? 3 : -1, tmp_24_0);
|
|
152
161
|
} }
|
|
153
162
|
function MJOWorklistTableComponent_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
154
163
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
155
164
|
i0.ɵɵelementStart(0, "tr", 17);
|
|
156
165
|
i0.ɵɵlistener("click", function MJOWorklistTableComponent_For_10_Template_tr_click_0_listener() { const row_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onRowClick(row_r9)); });
|
|
157
|
-
i0.ɵɵconditionalCreate(1, MJOWorklistTableComponent_For_10_Conditional_1_Template, 2,
|
|
166
|
+
i0.ɵɵconditionalCreate(1, MJOWorklistTableComponent_For_10_Conditional_1_Template, 2, 1, "td", 3);
|
|
158
167
|
i0.ɵɵrepeaterCreate(2, MJOWorklistTableComponent_For_10_For_3_Template, 4, 8, "td", 18, _forTrack0);
|
|
159
168
|
i0.ɵɵelementEnd();
|
|
160
169
|
} if (rf & 2) {
|
|
@@ -168,7 +177,7 @@ function MJOWorklistTableComponent_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
168
177
|
} }
|
|
169
178
|
function MJOWorklistTableComponent_ForEmpty_11_Template(rf, ctx) { if (rf & 1) {
|
|
170
179
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
171
|
-
i0.ɵɵelement(2, "mj-empty-state",
|
|
180
|
+
i0.ɵɵelement(2, "mj-empty-state", 25);
|
|
172
181
|
i0.ɵɵelementEnd()();
|
|
173
182
|
} if (rf & 2) {
|
|
174
183
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -204,6 +213,13 @@ function MJOWorklistTableComponent_Conditional_12_Template(rf, ctx) { if (rf & 1
|
|
|
204
213
|
* without admitting it; dropping the lowest-value columns at least tells the
|
|
205
214
|
* truth about what is on screen.
|
|
206
215
|
*
|
|
216
|
+
* TICKING IS SEPARATE FROM CLICKING. With `Selectable` on, each row gains a
|
|
217
|
+
* checkbox and the header a tick-all for the rows on screen; ticking changes
|
|
218
|
+
* `SelectedKeys` and emits `SelectionChanged`, and never fires `RowClicked`, so
|
|
219
|
+
* a page can keep a side panel on the clicked row while a batch builds up. The
|
|
220
|
+
* host owns the set: a preset change narrows what is on screen, not what is
|
|
221
|
+
* ticked, and `SelectableRow` lets it say which rows may be ticked at all.
|
|
222
|
+
*
|
|
207
223
|
* ## Example
|
|
208
224
|
*
|
|
209
225
|
* ```html
|
|
@@ -237,49 +253,85 @@ export class MJOWorklistTableComponent {
|
|
|
237
253
|
RowKey = 'ID';
|
|
238
254
|
/** The selected row's key, if the host tracks one. */
|
|
239
255
|
SelectedKey = null;
|
|
256
|
+
/** Show a checkbox per row and a tick-all in the header. */
|
|
257
|
+
Selectable = false;
|
|
258
|
+
/** The ticked rows' keys. Owned by the host; the table only proposes changes through `SelectionChanged`. */
|
|
259
|
+
SelectedKeys = [];
|
|
260
|
+
/** Which rows may be ticked. Omit for every row. A row this refuses shows no checkbox. */
|
|
261
|
+
SelectableRow = null;
|
|
262
|
+
/**
|
|
263
|
+
* What a row's checkbox is called to assistive technology, in words a person would use (a number
|
|
264
|
+
* and a name). Omit to label it with the row's key, which is only readable when the key is one.
|
|
265
|
+
*/
|
|
266
|
+
RowLabel = null;
|
|
240
267
|
EmptyTitle = 'Nothing matches';
|
|
241
268
|
EmptyHint = 'Try a different filter, or clear the search.';
|
|
242
269
|
EmptyIcon = 'fa-solid fa-magnifying-glass';
|
|
243
270
|
/** Muted line under the table — where a stated caveat belongs. */
|
|
244
271
|
FootNote = null;
|
|
245
|
-
/** Show a checkbox per row for choosing several at once. Keys are `RowKey` values. */
|
|
246
|
-
Selectable = false;
|
|
247
|
-
CheckedKeys = [];
|
|
248
272
|
PresetChanged = new EventEmitter();
|
|
249
|
-
/** The full set of checked keys after a checkbox changed. */
|
|
250
|
-
CheckedKeysChange = new EventEmitter();
|
|
251
273
|
SearchChanged = new EventEmitter();
|
|
252
274
|
SortChanged = new EventEmitter();
|
|
253
275
|
RowClicked = new EventEmitter();
|
|
276
|
+
/** The full set of ticked keys after a change — never a delta, so the host cannot drift from the table. */
|
|
277
|
+
SelectionChanged = new EventEmitter();
|
|
254
278
|
trackRow(index, row) {
|
|
255
279
|
return row[this.RowKey] ?? index;
|
|
256
280
|
}
|
|
257
281
|
isSelected(row) {
|
|
258
282
|
return this.SelectedKey != null && String(row[this.RowKey]) === this.SelectedKey;
|
|
259
283
|
}
|
|
260
|
-
|
|
261
|
-
|
|
284
|
+
onRowClick(row) {
|
|
285
|
+
if (this.RowClicked.observed)
|
|
286
|
+
this.RowClicked.emit(row);
|
|
287
|
+
}
|
|
288
|
+
keyOf(row) {
|
|
289
|
+
return String(row[this.RowKey]);
|
|
262
290
|
}
|
|
263
|
-
|
|
264
|
-
return this.
|
|
291
|
+
rowLabel(row) {
|
|
292
|
+
return this.RowLabel ? this.RowLabel(row) : `Select ${row[this.RowKey] ?? ''}`;
|
|
265
293
|
}
|
|
266
|
-
|
|
267
|
-
return
|
|
294
|
+
canSelect(row) {
|
|
295
|
+
return this.SelectableRow ? this.SelectableRow(row) : true;
|
|
268
296
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
const rest = this.CheckedKeys.filter((k) => k !== key);
|
|
272
|
-
this.CheckedKeysChange.emit(checked ? [...rest, key] : rest);
|
|
297
|
+
isTicked(row) {
|
|
298
|
+
return this.SelectedKeys.includes(this.keyOf(row));
|
|
273
299
|
}
|
|
274
|
-
/**
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
const rest = this.CheckedKeys.filter((k) => !shown.has(k));
|
|
278
|
-
this.CheckedKeysChange.emit(checked ? [...rest, ...shown] : rest);
|
|
300
|
+
/** The rows on screen that may be ticked. */
|
|
301
|
+
selectableRows() {
|
|
302
|
+
return this.Rows.filter((row) => this.canSelect(row));
|
|
279
303
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
304
|
+
allVisibleSelected() {
|
|
305
|
+
const rows = this.selectableRows();
|
|
306
|
+
return rows.length > 0 && rows.every((row) => this.isTicked(row));
|
|
307
|
+
}
|
|
308
|
+
someVisibleSelected() {
|
|
309
|
+
const rows = this.selectableRows();
|
|
310
|
+
return rows.some((row) => this.isTicked(row)) && !rows.every((row) => this.isTicked(row));
|
|
311
|
+
}
|
|
312
|
+
toggle(row, ticked) {
|
|
313
|
+
const key = this.keyOf(row);
|
|
314
|
+
const next = new Set(this.SelectedKeys);
|
|
315
|
+
if (ticked)
|
|
316
|
+
next.add(key);
|
|
317
|
+
else
|
|
318
|
+
next.delete(key);
|
|
319
|
+
this.SelectionChanged.emit([...next]);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Tick or untick every selectable row ON SCREEN. Rows a preset has hidden keep their state: a
|
|
323
|
+
* tick-all that silently cleared ticks the user could not see would be a surprise either way.
|
|
324
|
+
*/
|
|
325
|
+
toggleAll(ticked) {
|
|
326
|
+
const visible = this.selectableRows().map((row) => this.keyOf(row));
|
|
327
|
+
const next = new Set(this.SelectedKeys);
|
|
328
|
+
for (const key of visible) {
|
|
329
|
+
if (ticked)
|
|
330
|
+
next.add(key);
|
|
331
|
+
else
|
|
332
|
+
next.delete(key);
|
|
333
|
+
}
|
|
334
|
+
this.SelectionChanged.emit([...next]);
|
|
283
335
|
}
|
|
284
336
|
hideClass(column) {
|
|
285
337
|
return column.HideBelow ? `mjo-hide-${column.HideBelow}` : '';
|
|
@@ -292,10 +344,10 @@ export class MJOWorklistTableComponent {
|
|
|
292
344
|
return value === null || value === undefined ? '—' : String(value);
|
|
293
345
|
}
|
|
294
346
|
static ɵfac = function MJOWorklistTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOWorklistTableComponent)(); };
|
|
295
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOWorklistTableComponent, selectors: [["mjo-worklist-table"]], inputs: { Columns: "Columns", Rows: "Rows", Presets: "Presets", ActivePreset: "ActivePreset", Searchable: "Searchable", Search: "Search", SearchPlaceholder: "SearchPlaceholder", SortKey: "SortKey", SortDescending: "SortDescending", RowKey: "RowKey", SelectedKey: "SelectedKey",
|
|
347
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOWorklistTableComponent, selectors: [["mjo-worklist-table"]], inputs: { Columns: "Columns", Rows: "Rows", Presets: "Presets", ActivePreset: "ActivePreset", Searchable: "Searchable", Search: "Search", SearchPlaceholder: "SearchPlaceholder", SortKey: "SortKey", SortDescending: "SortDescending", RowKey: "RowKey", SelectedKey: "SelectedKey", Selectable: "Selectable", SelectedKeys: "SelectedKeys", SelectableRow: "SelectableRow", RowLabel: "RowLabel", EmptyTitle: "EmptyTitle", EmptyHint: "EmptyHint", EmptyIcon: "EmptyIcon", FootNote: "FootNote" }, outputs: { PresetChanged: "PresetChanged", SearchChanged: "SearchChanged", SortChanged: "SortChanged", RowClicked: "RowClicked", SelectionChanged: "SelectionChanged" }, decls: 13, vars: 4, consts: [[1, "mjo-wl__toolbar"], [1, "mj-table-wrap"], [1, "mj-table"], [1, "mjo-wl__tick"], [3, "num", "class", "width"], [3, "is-clickable", "is-selected"], [1, "small", "muted", "mjo-wl__note"], [1, "mjo-search"], ["role", "group", "aria-label", "Quick filters", 1, "row", "wrap", "mjo-wl__presets"], ["aria-hidden", "true", 1, "fa-solid", "fa-magnifying-glass"], [3, "input", "value", "placeholder"], [3, "Label", "Icon", "Count", "Active"], [3, "Clicked", "Label", "Icon", "Count", "Active"], ["type", "checkbox", "aria-label", "Select every row shown", 3, "change", "checked", "indeterminate", "disabled"], [1, "sortable"], [1, "sortable", 3, "click"], ["aria-hidden", "true", 1, "fa-solid"], [3, "click"], [3, "num", "mono", "class"], [1, "mjo-wl__tick", 3, "click"], ["type", "checkbox", 3, "checked"], ["type", "checkbox", 3, "change", "checked"], [1, "mjo-chip", 3, "class"], [1, "secondary"], [1, "mjo-chip"], ["Size", "compact", 3, "Icon", "Title", "Message"]], template: function MJOWorklistTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
296
348
|
i0.ɵɵconditionalCreate(0, MJOWorklistTableComponent_Conditional_0_Template, 3, 2, "div", 0);
|
|
297
349
|
i0.ɵɵelementStart(1, "div", 1)(2, "table", 2)(3, "thead")(4, "tr");
|
|
298
|
-
i0.ɵɵconditionalCreate(5, MJOWorklistTableComponent_Conditional_5_Template, 2,
|
|
350
|
+
i0.ɵɵconditionalCreate(5, MJOWorklistTableComponent_Conditional_5_Template, 2, 3, "th", 3);
|
|
299
351
|
i0.ɵɵrepeaterCreate(6, MJOWorklistTableComponent_For_7_Template, 3, 7, "th", 4, _forTrack0);
|
|
300
352
|
i0.ɵɵelementEnd()();
|
|
301
353
|
i0.ɵɵelementStart(8, "tbody");
|
|
@@ -312,7 +364,7 @@ export class MJOWorklistTableComponent {
|
|
|
312
364
|
i0.ɵɵrepeater(ctx.Rows);
|
|
313
365
|
i0.ɵɵadvance(3);
|
|
314
366
|
i0.ɵɵconditional(ctx.FootNote ? 12 : -1);
|
|
315
|
-
} }, dependencies: [CommonModule, MJFilterChipComponent, MJEmptyStateComponent], styles: [".mjo-wl__toolbar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-4);\n }\n .mjo-wl__presets[_ngcontent-%COMP%] {\n gap: 6px;\n }\n .mjo-wl__note[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-3);\n }\n .mjo-
|
|
367
|
+
} }, dependencies: [CommonModule, MJFilterChipComponent, MJEmptyStateComponent], styles: [".mjo-wl__toolbar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-4);\n }\n .mjo-wl__presets[_ngcontent-%COMP%] {\n gap: 6px;\n }\n .mjo-wl__note[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-3);\n }\n .mjo-wl__tick[_ngcontent-%COMP%] {\n width: 36px;\n text-align: center;\n }\n .mjo-wl__tick[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n cursor: pointer;\n margin: 0;\n }\n\n \n\n\n @media (max-width: 1000px) {\n .mjo-hide-1000[_ngcontent-%COMP%] { display: none; }\n }\n @media (max-width: 760px) {\n .mjo-hide-760[_ngcontent-%COMP%] { display: none; }\n }\n @media (max-width: 560px) {\n .mjo-hide-560[_ngcontent-%COMP%] { display: none; }\n }"] });
|
|
316
368
|
}
|
|
317
369
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOWorklistTableComponent, [{
|
|
318
370
|
type: Component,
|
|
@@ -351,13 +403,14 @@ export class MJOWorklistTableComponent {
|
|
|
351
403
|
<thead>
|
|
352
404
|
<tr>
|
|
353
405
|
@if (Selectable) {
|
|
354
|
-
<th class="mjo-
|
|
406
|
+
<th class="mjo-wl__tick">
|
|
355
407
|
<input
|
|
356
408
|
type="checkbox"
|
|
357
|
-
|
|
358
|
-
[
|
|
359
|
-
[
|
|
360
|
-
(change)="toggleAll($any($event.target).checked)"
|
|
409
|
+
[checked]="allVisibleSelected()"
|
|
410
|
+
[indeterminate]="someVisibleSelected()"
|
|
411
|
+
[disabled]="!selectableRows().length"
|
|
412
|
+
(change)="toggleAll($any($event.target).checked)"
|
|
413
|
+
aria-label="Select every row shown">
|
|
361
414
|
</th>
|
|
362
415
|
}
|
|
363
416
|
@for (column of Columns; track column.Key) {
|
|
@@ -390,12 +443,14 @@ export class MJOWorklistTableComponent {
|
|
|
390
443
|
[class.is-selected]="isSelected(row)"
|
|
391
444
|
(click)="onRowClick(row)">
|
|
392
445
|
@if (Selectable) {
|
|
393
|
-
<td class="mjo-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
446
|
+
<td class="mjo-wl__tick" (click)="$event.stopPropagation()">
|
|
447
|
+
@if (canSelect(row)) {
|
|
448
|
+
<input
|
|
449
|
+
type="checkbox"
|
|
450
|
+
[checked]="isTicked(row)"
|
|
451
|
+
(change)="toggle(row, $any($event.target).checked)"
|
|
452
|
+
[attr.aria-label]="rowLabel(row)">
|
|
453
|
+
}
|
|
399
454
|
</td>
|
|
400
455
|
}
|
|
401
456
|
@for (column of Columns; track column.Key) {
|
|
@@ -434,7 +489,7 @@ export class MJOWorklistTableComponent {
|
|
|
434
489
|
@if (FootNote) {
|
|
435
490
|
<div class="small muted mjo-wl__note">{{ FootNote }}</div>
|
|
436
491
|
}
|
|
437
|
-
`, styles: ["\n .mjo-wl__toolbar {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-4);\n }\n .mjo-wl__presets {\n gap: 6px;\n }\n .mjo-wl__note {\n margin-top: var(--mj-space-3);\n }\n .mjo-
|
|
492
|
+
`, styles: ["\n .mjo-wl__toolbar {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-4);\n }\n .mjo-wl__presets {\n gap: 6px;\n }\n .mjo-wl__note {\n margin-top: var(--mj-space-3);\n }\n .mjo-wl__tick {\n width: 36px;\n text-align: center;\n }\n .mjo-wl__tick input {\n cursor: pointer;\n margin: 0;\n }\n\n /* Columns drop in a stated order rather than the table scrolling\n sideways and hiding data without admitting it. */\n @media (max-width: 1000px) {\n .mjo-hide-1000 { display: none; }\n }\n @media (max-width: 760px) {\n .mjo-hide-760 { display: none; }\n }\n @media (max-width: 560px) {\n .mjo-hide-560 { display: none; }\n }\n "] }]
|
|
438
493
|
}], null, { Columns: [{
|
|
439
494
|
type: Input
|
|
440
495
|
}], Rows: [{
|
|
@@ -457,6 +512,14 @@ export class MJOWorklistTableComponent {
|
|
|
457
512
|
type: Input
|
|
458
513
|
}], SelectedKey: [{
|
|
459
514
|
type: Input
|
|
515
|
+
}], Selectable: [{
|
|
516
|
+
type: Input
|
|
517
|
+
}], SelectedKeys: [{
|
|
518
|
+
type: Input
|
|
519
|
+
}], SelectableRow: [{
|
|
520
|
+
type: Input
|
|
521
|
+
}], RowLabel: [{
|
|
522
|
+
type: Input
|
|
460
523
|
}], EmptyTitle: [{
|
|
461
524
|
type: Input
|
|
462
525
|
}], EmptyHint: [{
|
|
@@ -465,20 +528,16 @@ export class MJOWorklistTableComponent {
|
|
|
465
528
|
type: Input
|
|
466
529
|
}], FootNote: [{
|
|
467
530
|
type: Input
|
|
468
|
-
}], Selectable: [{
|
|
469
|
-
type: Input
|
|
470
|
-
}], CheckedKeys: [{
|
|
471
|
-
type: Input
|
|
472
531
|
}], PresetChanged: [{
|
|
473
532
|
type: Output
|
|
474
|
-
}], CheckedKeysChange: [{
|
|
475
|
-
type: Output
|
|
476
533
|
}], SearchChanged: [{
|
|
477
534
|
type: Output
|
|
478
535
|
}], SortChanged: [{
|
|
479
536
|
type: Output
|
|
480
537
|
}], RowClicked: [{
|
|
481
538
|
type: Output
|
|
539
|
+
}], SelectionChanged: [{
|
|
540
|
+
type: Output
|
|
482
541
|
}] }); })();
|
|
483
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOWorklistTableComponent, { className: "MJOWorklistTableComponent", filePath: "lib/panels/worklist-table.component.ts", lineNumber:
|
|
542
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOWorklistTableComponent, { className: "MJOWorklistTableComponent", filePath: "lib/panels/worklist-table.component.ts", lineNumber: 267 }); })();
|
|
484
543
|
//# sourceMappingURL=worklist-table.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worklist-table.component.js","sourceRoot":"","sources":["../../../src/lib/panels/worklist-table.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;AAC/C,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"worklist-table.component.js","sourceRoot":"","sources":["../../../src/lib/panels/worklist-table.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;AAC/C,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;IA4G5E,8BAAwB;IACpB,uBAA+D;IAC/D,iCAI0C;IAFtC,iNAAS,8CAA6C,KAAC;IAG/D,AALI,iBAI0C,EACxC;;;IAJE,eAAgB;IAEhB,AAFA,qCAAgB,yCAEiB;;;;;IASjC,0CAKiD;IAA7C,0PAAW,wCAA8B,KAAC;IAL9C,iBAKiD;;;;IAD7C,AADA,AADA,AADA,uCAAsB,gCACM,kCACE,iDACQ;;;IAPlD,8BAA8E;IAC1E,oIAQC;IACL,iBAAM;;;IATF,cAQC;IARD,6BAQC;;;IAtBb,8BAA6B;IACzB,yGAAkB;IAWlB,yGAAsB;IAa1B,iBAAM;;;IAxBF,cASC;IATD,4CASC;IAED,cAYC;IAZD,gDAYC;;;;IAUe,AADJ,6BAAyB,gBAOmB;IADpC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyHT;;kBAyCA,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAEL,KAAK;;kBAGL,KAAK;;kBAEL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAML,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAGL,KAAK;;kBAEL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBAGN,MAAM;;kFA5DE,yBAAyB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @fileoverview The
|
|
2
|
+
* @fileoverview The five Explorer tabs.
|
|
3
3
|
*
|
|
4
4
|
* Each class is registered with `@RegisterClass(BaseResourceComponent, '<DriverClass>')`
|
|
5
5
|
* under the name the Application's `DefaultNavItems` reference
|
|
@@ -26,7 +26,7 @@ import type { OrderHeaderEntity } from '@mj-biz-apps/orders-entities';
|
|
|
26
26
|
import { type OrdersNavBadges, type OrdersSubPage } from './section-nav.model.js';
|
|
27
27
|
import * as i0 from "@angular/core";
|
|
28
28
|
/**
|
|
29
|
-
* Shared behaviour for the
|
|
29
|
+
* Shared behaviour for the five sections: rail construction, active-page state,
|
|
30
30
|
* per-user persistence of where someone was, and cached sub-page mounting.
|
|
31
31
|
*
|
|
32
32
|
* A `@Directive` rather than a plain class so Angular's compiler accepts the
|
|
@@ -34,7 +34,7 @@ import * as i0 from "@angular/core";
|
|
|
34
34
|
* documented way to share member decorators across component subclasses.
|
|
35
35
|
*/
|
|
36
36
|
export declare abstract class MJOSectionBaseComponent extends BaseResourceComponent implements OnInit {
|
|
37
|
-
/** Where a sub-page is created. Declared once, inherited by all
|
|
37
|
+
/** Where a sub-page is created. Declared once, inherited by all five sections. */
|
|
38
38
|
protected pageHost?: ViewContainerRef;
|
|
39
39
|
private readonly cdr;
|
|
40
40
|
/** The rail, rebuilt whenever a badge count changes. */
|
|
@@ -239,11 +239,12 @@ export declare class PaymentsSectionResource extends MJOSectionBaseComponent {
|
|
|
239
239
|
static ɵcmp: i0.ɵɵComponentDeclaration<PaymentsSectionResource, "mjo-payments-section", never, {}, {}, never, never, true, never>;
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
-
* The Receivables tab — A/R
|
|
242
|
+
* The Receivables tab — A/R and collections.
|
|
243
243
|
*
|
|
244
|
-
* Its own section rather than a "Reports" folder: aging and
|
|
244
|
+
* Its own section rather than a "Reports" folder: aging and billing are
|
|
245
245
|
* operational work with worklists and actions, and filing them under Reports
|
|
246
|
-
* would tell the accounting team their work is read-only.
|
|
246
|
+
* would tell the accounting team their work is read-only. Subscriptions and
|
|
247
|
+
* renewals have their own tab (below).
|
|
247
248
|
*/
|
|
248
249
|
export declare class ReceivablesSectionResource extends MJOSectionBaseComponent {
|
|
249
250
|
protected get subPages(): OrdersSubPage[];
|
|
@@ -254,6 +255,22 @@ export declare class ReceivablesSectionResource extends MJOSectionBaseComponent
|
|
|
254
255
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReceivablesSectionResource, never>;
|
|
255
256
|
static ɵcmp: i0.ɵɵComponentDeclaration<ReceivablesSectionResource, "mjo-receivables-section", never, {}, {}, never, never, true, never>;
|
|
256
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* The Subscriptions tab — what ends soon, what renews, and the full register.
|
|
260
|
+
*
|
|
261
|
+
* Its own tab rather than a page on the Receivables rail: accounting and the
|
|
262
|
+
* product teams both work renewals, from different sides, and neither of them
|
|
263
|
+
* would look for a worklist with an action under "Receivables".
|
|
264
|
+
*/
|
|
265
|
+
export declare class SubscriptionsSectionResource extends MJOSectionBaseComponent {
|
|
266
|
+
protected get subPages(): OrdersSubPage[];
|
|
267
|
+
protected get preferenceKey(): string;
|
|
268
|
+
protected get sectionTitle(): string;
|
|
269
|
+
protected get sectionIcon(): string;
|
|
270
|
+
protected resolvePage(pageId: string): Type<unknown> | null;
|
|
271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionsSectionResource, never>;
|
|
272
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionsSectionResource, "mjo-subscriptions-section", never, {}, {}, never, never, true, never>;
|
|
273
|
+
}
|
|
257
274
|
/**
|
|
258
275
|
* The Catalog tab — where the behaviour every order inherits is configured.
|
|
259
276
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders-sections.component.d.ts","sourceRoot":"","sources":["../../../src/lib/sections/orders-sections.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAIH,MAAM,EACN,IAAI,EAEJ,gBAAgB,EAEhB,KAAK,YAAY,EAEpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAKlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"orders-sections.component.d.ts","sourceRoot":"","sources":["../../../src/lib/sections/orders-sections.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAIH,MAAM,EACN,IAAI,EAEJ,gBAAgB,EAEhB,KAAK,YAAY,EAEpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA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