@nivaro/react 0.3.80 → 0.3.82
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/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/shared/components/ItemEditForm.js +454 -454
- package/dist/shared/components/item-edit/FieldRenderer.js +25 -24
- package/dist/shared/components/item-edit/InlineTableField.js +2464 -2445
- package/dist/shared/components/item-edit/SetAllRowsButton.js +120 -0
- package/dist/shared/components/item-edit/cascade-clear-notice.js +32 -28
- 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.82", 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
|
@@ -4117,6 +4117,18 @@ export declare type GridFlushContextValue = {
|
|
|
4117
4117
|
unregister: (key: string) => void;
|
|
4118
4118
|
};
|
|
4119
4119
|
|
|
4120
|
+
/** options.set_all_rows on an O2M grid: one header button per entry that writes ONE value
|
|
4121
|
+
* into that column on every line (or the ticked lines), or clears it when left blank —
|
|
4122
|
+
* e.g. "Set REQ ID on all lines" (EFP v2's "apply req id to all lines"). Admin-only unless
|
|
4123
|
+
* `admin_only: false`. Generic: any grid, any plain column. */
|
|
4124
|
+
declare interface GridSetAllConfig {
|
|
4125
|
+
field: string;
|
|
4126
|
+
/** Button + dialog wording; default the column's label. */
|
|
4127
|
+
label?: string;
|
|
4128
|
+
/** Default true: only administrators see the button. */
|
|
4129
|
+
admin_only?: boolean;
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4120
4132
|
/** Row-editor action: spread a remaining amount across a row's empty fields
|
|
4121
4133
|
* (a forecast year's open months). `remaining` is a grid-token expression —
|
|
4122
4134
|
* `{{$parent.amount}} - {{$sum.total}}` — evaluated with the row
|
|
@@ -5182,7 +5194,7 @@ export declare interface InboundViewProps {
|
|
|
5182
5194
|
extra?: ReactNode;
|
|
5183
5195
|
}
|
|
5184
5196
|
|
|
5185
|
-
export declare function InlineTableField({ relatedCollection, manyField, parentId, parentCollection, layoutId, showRowRevisions, rowComments, allowRevisionRestore, saveMode, showLineNumbers, enableReorder, parentCascades, rowRules, columnPresets, defaultPreset, drawerRelations, parentContextFields, uniqueBy, sortField, sortDir, sectionGroupBy, freezeFirstColumn, rowFilter, rowDefaults, allocateDrawer, autoAllocate, rowBulkActions, uploadTemplate, rowMatchPanel, lineSla, rowLints, stats, compareSeries, sumCap, spreadRemaining, submissionErrors, prefillParentId, parentFieldKey, readOnly, emptyLabel, editorMode }: {
|
|
5197
|
+
export declare function InlineTableField({ relatedCollection, manyField, parentId, parentCollection, layoutId, showRowRevisions, rowComments, allowRevisionRestore, saveMode, showLineNumbers, enableReorder, parentCascades, rowRules, columnPresets, defaultPreset, drawerRelations, parentContextFields, uniqueBy, sortField, sortDir, sectionGroupBy, freezeFirstColumn, rowFilter, rowDefaults, allocateDrawer, autoAllocate, rowBulkActions, uploadTemplate, rowMatchPanel, lineSla, rowLints, stats, compareSeries, sumCap, spreadRemaining, setAllRows, submissionErrors, prefillParentId, parentFieldKey, readOnly, emptyLabel, editorMode }: {
|
|
5186
5198
|
relatedCollection: string;
|
|
5187
5199
|
manyField: string;
|
|
5188
5200
|
parentId: string;
|
|
@@ -5261,6 +5273,9 @@ export declare function InlineTableField({ relatedCollection, manyField, parentI
|
|
|
5261
5273
|
* stats). The client twin of the server's sum_cap validation rule. */
|
|
5262
5274
|
sumCap?: GridSumCapConfig | null;
|
|
5263
5275
|
spreadRemaining?: GridSpreadConfig | null;
|
|
5276
|
+
/** options.set_all_rows — header buttons that write one value (or blank = clear) into a
|
|
5277
|
+
* column on every line or the ticked lines; admin-only unless admin_only: false. */
|
|
5278
|
+
setAllRows?: GridSetAllConfig[] | null;
|
|
5264
5279
|
/** Flag rows a failed ERP push rejected (options.submission_errors) — the
|
|
5265
5280
|
* latest failed nivaro_erp_submissions row for the PARENT record is parsed
|
|
5266
5281
|
* for "LineNumber N: reason" entries and matching rows tint red with the
|