@nivaro/react 0.3.57 → 0.3.59
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/fields/RelationField.js +110 -80
- package/dist/full.css +1 -1
- package/dist/hooks/useRelationOptions.js +1 -0
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +37 -2
- package/dist/index.js +523 -520
- package/dist/shared/components/CollectionBrowserView.js +2693 -2619
- package/dist/shared/components/DataTable.js +538 -495
- package/dist/shared/components/ItemEditForm.js +4559 -4386
- package/dist/shared/components/PageRenderer.js +537 -508
- package/dist/shared/components/ProfileView.js +716 -715
- package/dist/shared/components/QueryTable.js +74 -74
- package/dist/shared/components/RecordReadView.js +367 -364
- package/dist/shared/components/ReportView.js +64 -39
- package/dist/shared/components/WidgetSlot.js +543 -520
- package/dist/shared/components/alerts/AlertManagerView.js +324 -317
- package/dist/shared/components/alerts/types.js +37 -14
- package/dist/shared/components/cbv/row-focus.js +19 -0
- package/dist/shared/components/help-videos/HelpVideoPlayer.js +152 -147
- package/dist/shared/components/integrations/console/SignalCard.js +59 -59
- package/dist/shared/components/integrations/console/tone.js +52 -30
- package/dist/shared/components/item-edit/CatalogPickerField.js +525 -505
- package/dist/shared/components/item-edit/FieldRenderer.js +22 -20
- package/dist/shared/components/item-edit/FieldRow.js +175 -173
- package/dist/shared/components/item-edit/GridBulkEditDialog.js +55 -54
- package/dist/shared/components/item-edit/InlineTableField.js +2487 -2442
- package/dist/shared/components/item-edit/M2MCombobox.js +321 -295
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +1 -1
- package/dist/shared/components/item-edit/PlanGrid.js +973 -894
- package/dist/shared/components/item-edit/QuickCreateButton.js +335 -106
- package/dist/shared/components/item-edit/RecordLiveSync.js +77 -75
- package/dist/shared/components/item-edit/RelationCombobox.js +452 -335
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +262 -141
- package/dist/shared/components/item-edit/SummaryPanel.js +385 -358
- package/dist/shared/components/item-edit/duplicate-rehearsal.js +47 -0
- package/dist/shared/components/item-edit/line-midair.js +82 -75
- package/dist/shared/components/item-edit/option-disambiguate.js +44 -32
- package/dist/shared/components/item-edit/related-missing.js +45 -0
- package/dist/shared/components/item-edit/save-outcome.js +9 -7
- package/dist/shared/components/notifications/NotificationRulesEditor.js +130 -123
- package/dist/shared/components/panels/AccessDeniedPanel.js +52 -48
- package/dist/shared/components/panels/ItemLockBanner.js +213 -211
- package/dist/shared/components/panels/PipelinePanel.js +1140 -1053
- package/dist/shared/components/panels/RecordIntegrityBanner.js +114 -86
- package/dist/shared/components/panels/RevisionsPanel.js +316 -299
- package/dist/shared/components/panels/TaskPanel.js +265 -249
- package/dist/shared/components/panels/landing-state.js +27 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +110 -92
- package/dist/shared/components/profile/AiMemoryCard.js +12 -10
- package/dist/shared/components/queue/OwnerAvatars.js +80 -41
- package/dist/shared/components/queue/QueueQuickFilters.js +52 -52
- package/dist/shared/components/queue/QueueWorklist.js +1050 -1026
- package/dist/shared/components/queue/group-sums.js +27 -0
- package/dist/shared/components/queue/live-state-aspect.js +9 -5
- package/dist/shared/components/widgets/ReviewListWidget.js +175 -154
- package/dist/shared/lib/back-closes.js +25 -0
- package/dist/shared/lib/display-prefs.js +60 -52
- package/dist/shared/lib/draft-store.js +71 -48
- package/dist/shared/lib/expression.js +53 -53
- package/dist/shared/lib/form-usage-beacon.js +7 -7
- package/dist/shared/lib/list-page-memory.js +63 -0
- package/dist/shared/lib/live.js +44 -44
- package/dist/shared/lib/money-input.js +45 -0
- package/dist/shared/lib/own-writes.js +76 -28
- package/dist/shared/lib/request-gate.js +110 -109
- package/dist/shared/lib/sanitize-html.js +10 -6
- package/dist/shared/lib/staged-row-labels.js +18 -0
- package/dist/shared/lib/validation-rules.js +34 -19
- 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.59", 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
|
@@ -39,9 +39,11 @@ declare interface AccentTargets {
|
|
|
39
39
|
rgb?: string[];
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export declare function AccessDeniedPanel({ collection, itemId, onBack }: {
|
|
42
|
+
export declare function AccessDeniedPanel({ collection, itemId, noun: nounProp, onBack }: {
|
|
43
43
|
collection: string;
|
|
44
44
|
itemId: string;
|
|
45
|
+
/** The collection's singular label ("Invoice") — names the record in the title. */
|
|
46
|
+
noun?: string | null;
|
|
45
47
|
/** Host-provided back action (e.g. navigate(-1)); renders a button when set. */
|
|
46
48
|
onBack?: () => void;
|
|
47
49
|
}): JSX.Element;
|
|
@@ -5792,6 +5794,12 @@ export declare interface ItemEditFormProps {
|
|
|
5792
5794
|
* from another one (workflow lines from a purchase order's lines) cannot
|
|
5793
5795
|
* hand them over through initialValues. */
|
|
5794
5796
|
initialRows?: Record<string, Array<Record<string, unknown>>>;
|
|
5797
|
+
/** The seeded rows were COPIED from another record (More → Duplicate): the
|
|
5798
|
+
* first Create is rehearsed (`POST ?dry_run=1`) and copied line values the
|
|
5799
|
+
* stored rows would not keep are confirmed first (army9 b09). Only a
|
|
5800
|
+
* Duplicate host sets it — a PO import hand-off or a prefill link seeds
|
|
5801
|
+
* rows too, but those are not "copied from the original record". */
|
|
5802
|
+
rehearseCopiedLines?: boolean;
|
|
5795
5803
|
/** Layout editor canvas (spec §7.3): render this draft layout with the
|
|
5796
5804
|
* preview record's values, every placement selectable, nothing written. */
|
|
5797
5805
|
design?: LayoutDesignProp;
|
|
@@ -6754,6 +6762,18 @@ declare interface MetricDefinition {
|
|
|
6754
6762
|
sort: number | null;
|
|
6755
6763
|
}
|
|
6756
6764
|
|
|
6765
|
+
/** decimal(12,2) month columns cannot hold more. */
|
|
6766
|
+
export declare const MONEY_INPUT_MAX = 9999999999.99;
|
|
6767
|
+
|
|
6768
|
+
export declare type MoneyParse = {
|
|
6769
|
+
ok: true;
|
|
6770
|
+
value: number;
|
|
6771
|
+
rounded: boolean;
|
|
6772
|
+
} | {
|
|
6773
|
+
ok: false;
|
|
6774
|
+
error: string;
|
|
6775
|
+
};
|
|
6776
|
+
|
|
6757
6777
|
/** A music bed under the whole video, looped and lowered under narration.
|
|
6758
6778
|
* `track` is a library key or an uploaded music file's id. */
|
|
6759
6779
|
declare interface MusicBed {
|
|
@@ -7452,6 +7472,8 @@ export declare function OwnerGapsCard({ templateId, states }: {
|
|
|
7452
7472
|
declare interface OwnerLike {
|
|
7453
7473
|
id: string;
|
|
7454
7474
|
name: string;
|
|
7475
|
+
/** An owner who cannot act — the row says why it counts as unowned. */
|
|
7476
|
+
inactive?: 'suspended' | 'former';
|
|
7455
7477
|
}
|
|
7456
7478
|
|
|
7457
7479
|
export declare function OwnerMatrix({ templateId, states, bindings }: OwnerMatrixProps): JSX.Element | null;
|
|
@@ -7513,6 +7535,12 @@ declare interface ParseFailure {
|
|
|
7513
7535
|
position: number;
|
|
7514
7536
|
}
|
|
7515
7537
|
|
|
7538
|
+
/**
|
|
7539
|
+
* Text → amount. Empty (or "—" / "-") is 0. Negative amounts come back
|
|
7540
|
+
* negative; a caller that only takes zero or more refuses them itself.
|
|
7541
|
+
*/
|
|
7542
|
+
export declare function parseMoneyInput(text: string): MoneyParse;
|
|
7543
|
+
|
|
7516
7544
|
export declare type ParseResult = ParseSuccess | ParseFailure;
|
|
7517
7545
|
|
|
7518
7546
|
declare interface ParseSuccess {
|
|
@@ -8507,8 +8535,15 @@ declare type QueryWidgetFilter = {
|
|
|
8507
8535
|
collection: string;
|
|
8508
8536
|
value_field?: string;
|
|
8509
8537
|
label_field?: string;
|
|
8538
|
+
/** A second field shown muted beside the label (a project's name next to
|
|
8539
|
+
* its number) and searched with it. */
|
|
8540
|
+
secondary_field?: string;
|
|
8510
8541
|
sort?: string;
|
|
8511
|
-
/** Option fetch cap (default 500) — bump for big pick lists (projects).
|
|
8542
|
+
/** Option fetch cap (default 500) — bump for big pick lists (projects).
|
|
8543
|
+
* The API answers at most 1,000 rows a page; when the collection holds
|
|
8544
|
+
* more, typing in the search box asks the server for matches instead of
|
|
8545
|
+
* searching the first page only (army 9 b04 N-1: no 2026 project could be
|
|
8546
|
+
* picked from the first 1,000 project numbers). */
|
|
8512
8547
|
limit?: number;
|
|
8513
8548
|
/** Pre-selected values on load. '$current_year' resolves to the current
|
|
8514
8549
|
* calendar year (default-year behavior). */
|