@nivaro/react 0.3.52 → 0.3.53
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +47 -3
- package/dist/shared/components/ItemEditForm.js +3851 -3821
- package/dist/shared/components/NotificationBell.js +163 -150
- package/dist/shared/components/PageRenderer.js +600 -549
- package/dist/shared/components/ProfileView.js +36 -34
- package/dist/shared/components/QueryStatStrip.js +96 -89
- package/dist/shared/components/QueryTable.js +214 -215
- package/dist/shared/components/ReportView.js +548 -529
- package/dist/shared/components/alerts/AlertManagerView.js +346 -320
- package/dist/shared/components/item-edit/CatalogPickerField.js +1300 -1219
- package/dist/shared/components/item-edit/FieldAffordances.js +145 -136
- package/dist/shared/components/item-edit/FieldRenderer.js +366 -326
- package/dist/shared/components/item-edit/InlineTableField.js +3047 -2932
- package/dist/shared/components/item-edit/NestedRelationEditor.js +149 -143
- package/dist/shared/components/item-edit/PlanGrid.js +718 -705
- package/dist/shared/components/item-edit/SummaryPanel.js +351 -337
- package/dist/shared/components/item-edit/line-qty.js +115 -53
- package/dist/shared/components/item-edit/save-refusal.js +18 -18
- package/dist/shared/components/item-edit/usePersonalDefaults.js +210 -207
- package/dist/shared/components/panels/CommentPanel.js +204 -197
- package/dist/shared/components/panels/ItemLockBanner.js +318 -291
- package/dist/shared/components/panels/PipelinePanel.js +1388 -1218
- package/dist/shared/components/panels/RecordIntegrityBanner.js +201 -172
- package/dist/shared/components/panels/RevisionsPanel.js +101 -106
- package/dist/shared/components/panels/TransitionRequirementsDialog.js +564 -534
- package/dist/shared/components/panels/requirement-side-effects.js +46 -29
- package/dist/shared/components/queue/QueueItemSheet.js +219 -146
- package/dist/shared/components/queue/QueueWorklist.js +738 -730
- package/dist/shared/components/widgets/ReviewListWidget.js +236 -201
- package/dist/shared/lib/activity-sentence.js +236 -227
- package/dist/shared/lib/record-ref.js +43 -34
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { noteReplayEvent as _e, createReplayCheckoutState as De } from "../share
|
|
|
9
9
|
import { emitReplayTap as Te, setReplayRecorderMode as N, registerReplayCapture as qe, clipEndOffset as Le, withClipKind as Pe } from "../shared/lib/replay-capture.js";
|
|
10
10
|
import { instrumentConsole as Ne, instrumentRequests as Fe, redactSecrets as Me } from "../shared/lib/replay-context.js";
|
|
11
11
|
import { instrumentSocket as Oe } from "../shared/lib/replay-socket.js";
|
|
12
|
-
const Ue = "nivaro-react@0.3.
|
|
12
|
+
const Ue = "nivaro-react@0.3.53", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
13
13
|
function Be(n) {
|
|
14
14
|
return typeof n.url != "string" || typeof fetch != "function" ? null : (f, a) => {
|
|
15
15
|
const u = typeof n.getToken == "function" ? n.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,8 @@ export declare interface ActivityEntryInput {
|
|
|
215
215
|
} | null;
|
|
216
216
|
} | null;
|
|
217
217
|
why?: ActivityWhy | null;
|
|
218
|
+
/** A child row edited from the record's page, readable (api services/revision-fields.ts). */
|
|
219
|
+
o2m?: ActivityO2m | null;
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
/**
|
|
@@ -279,6 +281,20 @@ export declare interface ActivityLabels {
|
|
|
279
281
|
timeZone?: string | null;
|
|
280
282
|
}
|
|
281
283
|
|
|
284
|
+
/** One child-row change as the server summarised it for this reader — labels, never ids. */
|
|
285
|
+
declare interface ActivityO2m {
|
|
286
|
+
verb: 'added' | 'changed' | 'removed';
|
|
287
|
+
collection?: string | null;
|
|
288
|
+
collection_label: string;
|
|
289
|
+
row_label?: string | null;
|
|
290
|
+
changes?: Array<{
|
|
291
|
+
field: string;
|
|
292
|
+
label: string;
|
|
293
|
+
from: string | null;
|
|
294
|
+
to: string | null;
|
|
295
|
+
}> | null;
|
|
296
|
+
}
|
|
297
|
+
|
|
282
298
|
/** A stretch of the recording where the author was typing in a text field,
|
|
283
299
|
* or touched nothing at all (#1518). Never what was typed. */
|
|
284
300
|
declare type ActivitySpan = {
|
|
@@ -8219,6 +8235,9 @@ declare type QueryRowClick = {
|
|
|
8219
8235
|
* from the clicked row. */
|
|
8220
8236
|
declare interface QuerySheetDef {
|
|
8221
8237
|
title?: string;
|
|
8238
|
+
/** What one row of the opening table is, plural ("projects"): a sheet
|
|
8239
|
+
* opened from the totals row is titled "Total of 9 projects". */
|
|
8240
|
+
row_noun?: string;
|
|
8222
8241
|
width?: number | string;
|
|
8223
8242
|
config?: QueryWidgetConfig;
|
|
8224
8243
|
/** Figures above the tabs from a query of their own (same param tokens as a tab). */
|
|
@@ -8251,11 +8270,14 @@ declare interface QuerySheetDef {
|
|
|
8251
8270
|
/** How a stat tile renders its value. Default is currency (the historic shape). */
|
|
8252
8271
|
declare type QueryStatFormat = 'currency' | 'number' | 'percent' | 'date' | 'text';
|
|
8253
8272
|
|
|
8254
|
-
export declare function QueryStatStrip({ stats, rows, effectiveParams, loading }: {
|
|
8273
|
+
export declare function QueryStatStrip({ stats, rows, effectiveParams, loading, zeroDash }: {
|
|
8255
8274
|
stats: QueryWidgetStat[];
|
|
8256
8275
|
rows: Array<Record<string, unknown>>;
|
|
8257
8276
|
effectiveParams: Record<string, unknown>;
|
|
8258
8277
|
loading: boolean;
|
|
8278
|
+
/** The table under the strip prints 0 as "—" (`zero_dash`): row-summed
|
|
8279
|
+
* tiles do the same, so tile and Total row never disagree. */
|
|
8280
|
+
zeroDash?: boolean;
|
|
8259
8281
|
}): JSX.Element | null;
|
|
8260
8282
|
|
|
8261
8283
|
export declare function QueryTable({ rows, config, onRowClick, pivotYear, rowActions, emptyLabel, emptyText }: {
|
|
@@ -8269,10 +8291,12 @@ export declare function QueryTable({ rows, config, onRowClick, pivotYear, rowAct
|
|
|
8269
8291
|
emptyLabel?: string;
|
|
8270
8292
|
/** The whole empty-state sentence, rendered as written (beats emptyLabel). */
|
|
8271
8293
|
emptyText?: string;
|
|
8272
|
-
/** Trailing action buttons per row
|
|
8294
|
+
/** Trailing action buttons per row. On the totals row `row` is null and
|
|
8295
|
+
* `visibleRows` carries the rows the total adds up (after search,
|
|
8296
|
+
* hide-empty and grouping), so a drill covers exactly what is on screen. */
|
|
8273
8297
|
rowActions?: Array<{
|
|
8274
8298
|
label: string;
|
|
8275
|
-
onClick: (row: Record<string, unknown> | null) => void;
|
|
8299
|
+
onClick: (row: Record<string, unknown> | null, visibleRows?: Array<Record<string, unknown>>) => void;
|
|
8276
8300
|
}>;
|
|
8277
8301
|
}): JSX.Element;
|
|
8278
8302
|
|
|
@@ -8455,6 +8479,10 @@ declare interface QueryWidgetConfig {
|
|
|
8455
8479
|
stats?: QueryWidgetStat[];
|
|
8456
8480
|
/** Sentence shown, as written, when the query returns no rows. */
|
|
8457
8481
|
empty_label?: string;
|
|
8482
|
+
/** Set by a sheet opener (never stored): params whose '$row.' / '$rows.'
|
|
8483
|
+
* token found nothing in the opening row(s). A refusal naming one of them
|
|
8484
|
+
* reads as "this row has no …", never the server's raw parameter text. */
|
|
8485
|
+
unresolved_params?: string[];
|
|
8458
8486
|
/** Trailing action buttons per row (and totals row) opening nested sheets. */
|
|
8459
8487
|
row_actions?: Array<{
|
|
8460
8488
|
label: string;
|
|
@@ -9587,6 +9615,11 @@ declare interface ReviewListColumnSpec {
|
|
|
9587
9615
|
label?: string;
|
|
9588
9616
|
format?: ReviewListColumnFormat;
|
|
9589
9617
|
color?: string;
|
|
9618
|
+
/** group_meta only: `title` names the group in its header and the confirm
|
|
9619
|
+
* (instead of the raw group key), `subtitle` follows it. */
|
|
9620
|
+
role?: 'title' | 'subtitle';
|
|
9621
|
+
/** Put before the value where it names the group ("#" → "#INV-1"). */
|
|
9622
|
+
prefix?: string;
|
|
9590
9623
|
}
|
|
9591
9624
|
|
|
9592
9625
|
declare interface ReviewListConfig {
|
|
@@ -9618,6 +9651,9 @@ declare interface ReviewListConfig {
|
|
|
9618
9651
|
direction?: 'asc' | 'desc';
|
|
9619
9652
|
};
|
|
9620
9653
|
line_columns?: Array<string | ReviewListColumnSpec>;
|
|
9654
|
+
/** What a group is ("invoice") and a row is ("line"); unset = none / "row". */
|
|
9655
|
+
group_noun?: string | null;
|
|
9656
|
+
row_noun?: string | null;
|
|
9621
9657
|
status: {
|
|
9622
9658
|
field: string;
|
|
9623
9659
|
options: ReviewListStatusOption[];
|
|
@@ -9642,6 +9678,8 @@ declare interface ReviewListResult {
|
|
|
9642
9678
|
label: string;
|
|
9643
9679
|
format?: ReviewListColumnFormat | null;
|
|
9644
9680
|
color?: string | null;
|
|
9681
|
+
role?: 'title' | 'subtitle';
|
|
9682
|
+
prefix?: string;
|
|
9645
9683
|
}>;
|
|
9646
9684
|
line_columns: Array<{
|
|
9647
9685
|
field: string;
|
|
@@ -9672,6 +9710,12 @@ declare interface ReviewListStatusOption {
|
|
|
9672
9710
|
/** The confirm asks for a note and will not send without one. Every option
|
|
9673
9711
|
* is confirmed first either way; without this the note is optional. */
|
|
9674
9712
|
require_note?: boolean;
|
|
9713
|
+
/** The state a badge shows once decided ("Approved"); `label` is the button
|
|
9714
|
+
* verb ("Approve"). Unset = the label. */
|
|
9715
|
+
status_label?: string | null;
|
|
9716
|
+
/** The confirm's last line for this decision — who is told, whether it can
|
|
9717
|
+
* be taken back. Unset = the generic "Nothing changes until you confirm". */
|
|
9718
|
+
confirm_notice?: string | null;
|
|
9675
9719
|
}
|
|
9676
9720
|
|
|
9677
9721
|
export declare function ReviewListWidget({ data, config, loading, error, onRefetch, hostRecordId, emptyLabel }: ReviewListWidgetProps): JSX.Element;
|