@nivaro/react 0.3.49 → 0.3.51
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/components/InlineGridField.js +166 -105
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/shared/components/ItemEditForm.js +5258 -5034
- package/dist/shared/components/QueryTable.js +489 -347
- package/dist/shared/components/ReportView.js +105 -99
- package/dist/shared/components/alerts/AlertManagerView.js +327 -301
- package/dist/shared/components/item-edit/CatalogPickerField.js +1230 -1175
- package/dist/shared/components/item-edit/CloneDialog.js +192 -142
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +58 -53
- package/dist/shared/components/item-edit/FieldRenderer.js +249 -244
- package/dist/shared/components/item-edit/FieldRow.js +402 -370
- package/dist/shared/components/item-edit/FilePickerField.js +315 -307
- package/dist/shared/components/item-edit/InlineGridField.js +92 -90
- package/dist/shared/components/item-edit/InlineTableField.js +3119 -2951
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +175 -0
- package/dist/shared/components/item-edit/PlanGrid.js +162 -162
- package/dist/shared/components/item-edit/PolishFields.js +169 -162
- package/dist/shared/components/item-edit/RecordHeaderActions.js +76 -75
- package/dist/shared/components/item-edit/RecordLiveSync.js +93 -91
- package/dist/shared/components/item-edit/RelationCombobox.js +198 -191
- package/dist/shared/components/item-edit/SummaryPanel.js +282 -259
- package/dist/shared/components/item-edit/UserChip.js +233 -200
- package/dist/shared/components/item-edit/ValidationSummary.js +64 -47
- package/dist/shared/components/item-edit/header-midair.js +51 -0
- package/dist/shared/components/item-edit/helpers.js +181 -155
- package/dist/shared/components/item-edit/line-midair.js +207 -0
- package/dist/shared/components/item-edit/soft-rules.js +27 -0
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/panels/CommentPanel.js +290 -284
- package/dist/shared/components/panels/ItemLockBanner.js +414 -358
- package/dist/shared/components/panels/PipelinePanel.js +1241 -992
- package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
- package/dist/shared/components/panels/TaskPanel.js +71 -61
- package/dist/shared/components/panels/TransitionRequirementsDialog.js +569 -439
- package/dist/shared/components/panels/requirement-side-effects.js +40 -0
- package/dist/shared/components/queue/QueueWorklist.js +925 -871
- package/dist/shared/components/queue/column-chooser.js +21 -0
- package/dist/shared/components/queue/live-state-aspect.js +6 -0
- package/dist/shared/components/ui/number-draft-input.js +93 -0
- package/dist/shared/components/widgets/ReviewListWidget.js +191 -166
- package/dist/shared/lib/draft-store.js +48 -34
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/query-stats.js +60 -60
- 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.51", 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
|
@@ -2223,13 +2223,16 @@ export declare function CommandCenterView({
|
|
|
2223
2223
|
urlAdapter?: BoardUrlAdapter;
|
|
2224
2224
|
}): JSX.Element;
|
|
2225
2225
|
|
|
2226
|
-
export declare function CommentPanel({ collection, item, title, defaultExpanded, queuedComments, onQueueComment }: {
|
|
2226
|
+
export declare function CommentPanel({ collection, item, title, defaultExpanded, queuedComments, onQueueComment, onUnsentDraft }: {
|
|
2227
2227
|
collection: string;
|
|
2228
2228
|
item: string | number;
|
|
2229
2229
|
title?: string;
|
|
2230
2230
|
defaultExpanded?: boolean;
|
|
2231
2231
|
queuedComments?: string[];
|
|
2232
2232
|
onQueueComment?: (text: string) => void;
|
|
2233
|
+
/** A new record: the text still in the box (not Queued yet), so Create can
|
|
2234
|
+
* post it too instead of dropping it (army5 b01-N13). */
|
|
2235
|
+
onUnsentDraft?: (text: string) => void;
|
|
2233
2236
|
}): React_2.JSX.Element;
|
|
2234
2237
|
|
|
2235
2238
|
/** Everything every view can lean on: the AI gateway, partners and the realtime socket. */
|
|
@@ -3509,8 +3512,6 @@ export declare interface FieldInterfaceProps {
|
|
|
3509
3512
|
itemId: string | null;
|
|
3510
3513
|
}
|
|
3511
3514
|
|
|
3512
|
-
/** Memoized: rows pass it stable props, so a row re-render that changes
|
|
3513
|
-
* nothing about this field's control skips it. */
|
|
3514
3515
|
export declare const FieldRenderer: NamedExoticComponent< {
|
|
3515
3516
|
field: CMSField;
|
|
3516
3517
|
value: unknown;
|
|
@@ -3524,6 +3525,8 @@ requiredParentLabel?: string | null;
|
|
|
3524
3525
|
narrowedBy?: {
|
|
3525
3526
|
labels: string[];
|
|
3526
3527
|
keys: string[];
|
|
3528
|
+
/** Keys offered for clearing; absent = all of `keys`. */
|
|
3529
|
+
clearable?: string[];
|
|
3527
3530
|
onClear?: (key: string) => void;
|
|
3528
3531
|
};
|
|
3529
3532
|
onCountChange?: (count: number) => void;
|
|
@@ -8319,6 +8322,11 @@ declare interface QueryTableColumn {
|
|
|
8319
8322
|
empty_label?: string;
|
|
8320
8323
|
/** Cap a long text column (px); the full text shows on hover. */
|
|
8321
8324
|
max_width?: number;
|
|
8325
|
+
/** Totals footer: when NO row holds a number in this column, the total is
|
|
8326
|
+
* "no figure" (—), not 0. Default on for currency columns — a column of
|
|
8327
|
+
* missing CAPEX targets totalled "$0" beside rows that said "—" (army 5
|
|
8328
|
+
* b04-N-1). false keeps the 0. */
|
|
8329
|
+
null_when_empty?: boolean;
|
|
8322
8330
|
}
|
|
8323
8331
|
|
|
8324
8332
|
declare interface QueryTableConfig {
|
|
@@ -8355,6 +8363,24 @@ declare interface QueryTableConfig {
|
|
|
8355
8363
|
sticky?: boolean;
|
|
8356
8364
|
/** Render zeroes as an em dash — de-noises mostly-empty month grids. */
|
|
8357
8365
|
zero_dash?: boolean;
|
|
8366
|
+
/** Header clicks sort the rows (asc → desc → data order). Flat tables only:
|
|
8367
|
+
* ignored with tree_group_by. Off by default. */
|
|
8368
|
+
sortable?: boolean;
|
|
8369
|
+
/** A search box above the table — shows the rows whose text (any column,
|
|
8370
|
+
* raw or formatted) contains what was typed. Off by default. */
|
|
8371
|
+
search?: boolean;
|
|
8372
|
+
/** A CSV button above the table: the rows and columns as shown (search,
|
|
8373
|
+
* sort and hidden rows applied). Off by default. */
|
|
8374
|
+
export_csv?: boolean | {
|
|
8375
|
+
filename?: string;
|
|
8376
|
+
};
|
|
8377
|
+
/** A "Hide empty rows" pill: hides rows whose `fields` are all blank or 0.
|
|
8378
|
+
* Off by default; `default_on` starts with the rows hidden. */
|
|
8379
|
+
hide_empty?: {
|
|
8380
|
+
fields: string[];
|
|
8381
|
+
label?: string;
|
|
8382
|
+
default_on?: boolean;
|
|
8383
|
+
};
|
|
8358
8384
|
/** Column show/hide toggle pills above the table (e.g. Actuals / Forecasts /
|
|
8359
8385
|
* Calendar Year). A toggle turned OFF hides columns matched by exact
|
|
8360
8386
|
* `fields` or a field-name `suffix` — unless `hide_when_on` inverts it
|
|
@@ -9298,6 +9324,8 @@ export declare function RelationCombobox({ collection, value, onChange, disabled
|
|
|
9298
9324
|
narrowedBy?: {
|
|
9299
9325
|
labels: string[];
|
|
9300
9326
|
keys: string[];
|
|
9327
|
+
/** Keys offered for clearing; absent = all of `keys`. */
|
|
9328
|
+
clearable?: string[];
|
|
9301
9329
|
onClear?: (key: string) => void;
|
|
9302
9330
|
};
|
|
9303
9331
|
/** When the filtered option set has EXACTLY one option and the field is
|
|
@@ -9641,7 +9669,8 @@ declare interface ReviewListStatusOption {
|
|
|
9641
9669
|
value: string;
|
|
9642
9670
|
label: string;
|
|
9643
9671
|
color: string;
|
|
9644
|
-
/**
|
|
9672
|
+
/** The confirm asks for a note and will not send without one. Every option
|
|
9673
|
+
* is confirmed first either way; without this the note is optional. */
|
|
9645
9674
|
require_note?: boolean;
|
|
9646
9675
|
}
|
|
9647
9676
|
|
|
@@ -11665,6 +11694,11 @@ export declare function useItemLock(collection: string | undefined, item: string
|
|
|
11665
11694
|
lazy?: boolean;
|
|
11666
11695
|
/** False = mounted but not on screen (a background workspace tab). */
|
|
11667
11696
|
active?: boolean;
|
|
11697
|
+
/** Whether the form holds unsaved work (lazy mode). A form that turns
|
|
11698
|
+
* clean (saved, or every edit undone) lets its lock go and takes it
|
|
11699
|
+
* again on the next real edit; while clean, nothing re-takes it on its
|
|
11700
|
+
* own (heartbeat, coming back to the tab). Absent = not tracked. */
|
|
11701
|
+
dirty?: boolean;
|
|
11668
11702
|
}): {
|
|
11669
11703
|
lockHolder: LockHolder | null;
|
|
11670
11704
|
acquired: boolean;
|