@nivaro/react 0.3.58 → 0.3.60
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 +32 -1
- package/dist/index.js +523 -520
- package/dist/shared/components/CollectionBrowserView.js +2083 -2052
- package/dist/shared/components/DataTable.js +497 -465
- package/dist/shared/components/ItemEditForm.js +4430 -4282
- package/dist/shared/components/PageRenderer.js +537 -508
- package/dist/shared/components/QueryTable.js +74 -74
- package/dist/shared/components/WidgetSlot.js +543 -520
- package/dist/shared/components/alerts/AlertManagerView.js +269 -275
- package/dist/shared/components/alerts/types.js +37 -14
- package/dist/shared/components/item-edit/FieldRenderer.js +22 -20
- package/dist/shared/components/item-edit/GridBulkEditDialog.js +55 -54
- package/dist/shared/components/item-edit/InlineTableField.js +2461 -2421
- package/dist/shared/components/item-edit/M2MCombobox.js +141 -137
- package/dist/shared/components/item-edit/PlanGrid.js +876 -820
- package/dist/shared/components/item-edit/QuickCreateButton.js +323 -130
- package/dist/shared/components/item-edit/RelationCombobox.js +408 -375
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +255 -156
- package/dist/shared/components/item-edit/SummaryPanel.js +356 -343
- 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/save-outcome.js +6 -4
- package/dist/shared/components/panels/ItemLockBanner.js +212 -209
- package/dist/shared/components/panels/PipelinePanel.js +775 -737
- package/dist/shared/components/panels/RecordIntegrityBanner.js +114 -86
- package/dist/shared/components/panels/RevisionsPanel.js +313 -299
- package/dist/shared/components/pipeline/PipelineEditorView.js +26 -16
- package/dist/shared/components/queue/QueueQuickFilters.js +13 -13
- package/dist/shared/components/queue/QueueWorklist.js +978 -953
- package/dist/shared/components/queue/live-state-aspect.js +9 -5
- package/dist/shared/components/widgets/ReviewListWidget.js +152 -149
- 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/list-page-memory.js +42 -20
- package/dist/shared/lib/money-input.js +45 -0
- package/dist/shared/lib/sanitize-html.js +10 -6
- package/dist/shared/lib/staged-row-labels.js +18 -0
- 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.60", 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
|
@@ -5794,6 +5794,12 @@ export declare interface ItemEditFormProps {
|
|
|
5794
5794
|
* from another one (workflow lines from a purchase order's lines) cannot
|
|
5795
5795
|
* hand them over through initialValues. */
|
|
5796
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;
|
|
5797
5803
|
/** Layout editor canvas (spec §7.3): render this draft layout with the
|
|
5798
5804
|
* preview record's values, every placement selectable, nothing written. */
|
|
5799
5805
|
design?: LayoutDesignProp;
|
|
@@ -6756,6 +6762,18 @@ declare interface MetricDefinition {
|
|
|
6756
6762
|
sort: number | null;
|
|
6757
6763
|
}
|
|
6758
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
|
+
|
|
6759
6777
|
/** A music bed under the whole video, looped and lowered under narration.
|
|
6760
6778
|
* `track` is a library key or an uploaded music file's id. */
|
|
6761
6779
|
declare interface MusicBed {
|
|
@@ -7517,6 +7535,12 @@ declare interface ParseFailure {
|
|
|
7517
7535
|
position: number;
|
|
7518
7536
|
}
|
|
7519
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
|
+
|
|
7520
7544
|
export declare type ParseResult = ParseSuccess | ParseFailure;
|
|
7521
7545
|
|
|
7522
7546
|
declare interface ParseSuccess {
|
|
@@ -8511,8 +8535,15 @@ declare type QueryWidgetFilter = {
|
|
|
8511
8535
|
collection: string;
|
|
8512
8536
|
value_field?: string;
|
|
8513
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;
|
|
8514
8541
|
sort?: string;
|
|
8515
|
-
/** 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). */
|
|
8516
8547
|
limit?: number;
|
|
8517
8548
|
/** Pre-selected values on load. '$current_year' resolves to the current
|
|
8518
8549
|
* calendar year (default-year behavior). */
|