@nivaro/react 0.3.63 → 0.3.65
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 +54 -5
- package/dist/shared/components/CollectionBrowserView.js +3029 -2947
- package/dist/shared/components/ConformanceView.js +235 -221
- package/dist/shared/components/DataTable.js +478 -459
- package/dist/shared/components/ItemEditForm.js +4469 -4266
- package/dist/shared/components/PageRenderer.js +146 -138
- package/dist/shared/components/RecordDrilldownSheet.js +73 -65
- package/dist/shared/components/bulk/BulkActionButtons.js +72 -72
- package/dist/shared/components/bulk/BulkFieldUpdate.js +114 -103
- package/dist/shared/components/bulk/BulkFieldUpdateButton.js +73 -0
- package/dist/shared/components/bulk/bulk-field-options.js +29 -23
- package/dist/shared/components/integrations/IntegrationObligationsView.js +191 -173
- package/dist/shared/components/integrations/IntegrationStatusLines.js +101 -85
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +11 -9
- package/dist/shared/components/integrations/SendCurrentData.js +126 -0
- package/dist/shared/components/item-edit/CatalogPickerField.js +1530 -1437
- package/dist/shared/components/item-edit/FieldRenderer.js +49 -45
- package/dist/shared/components/item-edit/FieldRow.js +413 -403
- package/dist/shared/components/item-edit/InlineTableField.js +2903 -2816
- package/dist/shared/components/item-edit/M2MCombobox.js +172 -168
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +341 -114
- package/dist/shared/components/item-edit/NestedRelationEditor.js +171 -163
- package/dist/shared/components/item-edit/PlanGrid.js +783 -724
- package/dist/shared/components/item-edit/QuickCreateButton.js +291 -224
- package/dist/shared/components/item-edit/RecordInsights.js +113 -111
- package/dist/shared/components/item-edit/RecordLiveSync.js +4 -1
- package/dist/shared/components/item-edit/RelationCombobox.js +332 -314
- package/dist/shared/components/item-edit/cascade-clear-notice.js +52 -0
- package/dist/shared/components/item-edit/collision-format.js +37 -0
- package/dist/shared/components/item-edit/field-a11y.js +25 -0
- package/dist/shared/components/item-edit/line-merge.js +58 -0
- package/dist/shared/components/item-edit/line-midair.js +94 -87
- package/dist/shared/components/item-edit/move-guard.js +17 -0
- package/dist/shared/components/item-edit/picker-search.js +22 -15
- package/dist/shared/components/item-edit/rail-width.js +8 -0
- package/dist/shared/components/monitoring/InactiveUserLinksView.js +322 -291
- package/dist/shared/components/panels/AccessDeniedPanel.js +96 -55
- package/dist/shared/components/panels/CommentPanel.js +142 -136
- package/dist/shared/components/panels/ItemLockBanner.js +246 -240
- package/dist/shared/components/panels/PipelinePanel.js +1366 -1194
- package/dist/shared/components/panels/RevisionsPanel.js +106 -102
- package/dist/shared/components/panels/SlaBreachBanner.js +16 -20
- package/dist/shared/components/panels/SlaClock.js +90 -68
- package/dist/shared/components/queue/QueueItemSheet.js +94 -87
- package/dist/shared/components/queue/QueueWorklist.js +1502 -1354
- package/dist/shared/components/queue/worklist-csv.js +75 -0
- package/dist/shared/components/queue/worklist-helpers.js +20 -0
- package/dist/shared/components/widgets/ReviewListWidget.js +226 -207
- package/dist/shared/lib/bulk-copy.js +17 -0
- package/dist/shared/lib/cbv-export.js +122 -0
- package/dist/shared/lib/delete-offer.js +13 -0
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/leave-guard.js +41 -26
- package/dist/shared/lib/list-link.js +72 -56
- package/dist/shared/lib/live-queries.js +32 -30
- package/dist/shared/lib/moved-notice.js +25 -0
- package/dist/shared/lib/notification-target.js +56 -54
- package/dist/shared/lib/obligation-banner.js +11 -8
- package/dist/shared/lib/obligation-reason-text.js +6 -6
- package/dist/shared/lib/sort-cycle.js +6 -0
- package/dist/shared/lib/summary-mode.js +59 -41
- 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.65", 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
|
@@ -1013,6 +1013,11 @@ export declare interface BannerLine {
|
|
|
1013
1013
|
* rejected). Null for hook / flow / cron obligations. */
|
|
1014
1014
|
transition_id: string | null;
|
|
1015
1015
|
transition_label: string | null;
|
|
1016
|
+
/** Send now can repeat a stored request (its own, or a safe prior one).
|
|
1017
|
+
* Absent = yes (the one button an older server always offered). */
|
|
1018
|
+
can_resend?: boolean;
|
|
1019
|
+
/** "Send current data" can rebuild the request from the record as it is now. */
|
|
1020
|
+
can_send_current?: boolean;
|
|
1016
1021
|
}
|
|
1017
1022
|
|
|
1018
1023
|
/** Newest obligation per partner, in the words the record's reader needs:
|
|
@@ -1176,6 +1181,7 @@ declare interface BulkRunResult {
|
|
|
1176
1181
|
skipped: number;
|
|
1177
1182
|
errors: Array<{
|
|
1178
1183
|
item: string;
|
|
1184
|
+
label?: string;
|
|
1179
1185
|
error: string;
|
|
1180
1186
|
}>;
|
|
1181
1187
|
}
|
|
@@ -2513,7 +2519,7 @@ export declare function dashboardPretendDownOptions(widgets: Array<{
|
|
|
2513
2519
|
field?: string | null;
|
|
2514
2520
|
}>, labels?: Record<string, string | null | undefined>): PretendDownOption[];
|
|
2515
2521
|
|
|
2516
|
-
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, onRetry, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, footer, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
|
|
2522
|
+
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, onRetry, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, footer, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel }: DataTableProps<T>): React_2.JSX.Element;
|
|
2517
2523
|
|
|
2518
2524
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
2519
2525
|
columns: Column<T>[];
|
|
@@ -2602,6 +2608,14 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
2602
2608
|
/** Changes whenever a fresh result set lands (e.g. the query's dataUpdatedAt);
|
|
2603
2609
|
* the body remounts so rows replay their staggered enter animation. */
|
|
2604
2610
|
enterKey?: string | number;
|
|
2611
|
+
/** Keyboard rows (army 11 N10): set to make each row ONE Tab stop (roving — the
|
|
2612
|
+
* active row is tabbable, the others are reached with the arrow keys the host
|
|
2613
|
+
* handles), announced as current; Enter on the focused row runs onRowClick. */
|
|
2614
|
+
onRowFocus?: (row: T) => void;
|
|
2615
|
+
/** rowKey of the active (highlighted) row for the roving tab stop. */
|
|
2616
|
+
activeRowKey?: string | null;
|
|
2617
|
+
/** Accessible name of a focusable row (e.g. its record id and title). */
|
|
2618
|
+
rowAriaLabel?: (row: T) => string | undefined;
|
|
2605
2619
|
}
|
|
2606
2620
|
|
|
2607
2621
|
export declare function DateField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -5119,8 +5133,12 @@ declare interface ImportValidationReport {
|
|
|
5119
5133
|
truncated: boolean;
|
|
5120
5134
|
}
|
|
5121
5135
|
|
|
5122
|
-
export declare function InactiveUserLinksView({ className }: {
|
|
5136
|
+
export declare function InactiveUserLinksView({ className, focusUserId, onClearFocus }: {
|
|
5123
5137
|
className?: string;
|
|
5138
|
+
/** Show only this person, opened (a link from the "People to offload" card). */
|
|
5139
|
+
focusUserId?: string | null;
|
|
5140
|
+
/** "Show everyone" on the focus chip; the host drops its `?person=` param. */
|
|
5141
|
+
onClearFocus?: () => void;
|
|
5124
5142
|
}): JSX.Element;
|
|
5125
5143
|
|
|
5126
5144
|
export declare function InboundCallersView({ hours: initialHours }: {
|
|
@@ -8565,6 +8583,10 @@ declare interface QueryWidgetConfig {
|
|
|
8565
8583
|
stats?: QueryWidgetStat[];
|
|
8566
8584
|
/** Sentence shown, as written, when the query returns no rows. */
|
|
8567
8585
|
empty_label?: string;
|
|
8586
|
+
/** One line under the filters saying what the figures count (army 11 o1 F5:
|
|
8587
|
+
* Calendar Year Spend opened from Budget & Spend showed another total with
|
|
8588
|
+
* nothing saying why). Plain text. */
|
|
8589
|
+
note?: string;
|
|
8568
8590
|
/** Set by a sheet opener (never stored): params whose '$row.' / '$rows.'
|
|
8569
8591
|
* token found nothing in the opening row(s). A refusal naming one of them
|
|
8570
8592
|
* reads as "this row has no …", never the server's raw parameter text. */
|
|
@@ -8731,7 +8753,7 @@ declare interface QueueItemRow {
|
|
|
8731
8753
|
url: string;
|
|
8732
8754
|
}
|
|
8733
8755
|
|
|
8734
|
-
export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease, workNextActive, onNext, refetchItems, stateLabels, collectionLabel, claimsEnabled, columnFormats, fieldLabel, width, itemLayout }: {
|
|
8756
|
+
export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease, workNextActive, onNext, refetchItems, stateLabels, collectionLabel, claimsEnabled, columnFormats, fieldLabel, width, itemLayout, onOpenRecord }: {
|
|
8735
8757
|
item: SheetItem | null;
|
|
8736
8758
|
onOpenChange: (open: boolean) => void;
|
|
8737
8759
|
onClaim: (item: SheetItem) => void;
|
|
@@ -8754,6 +8776,9 @@ export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease,
|
|
|
8754
8776
|
width?: number | string | null;
|
|
8755
8777
|
/** Layout slug the Open button pins on the full item; null = default. */
|
|
8756
8778
|
itemLayout?: string | null;
|
|
8779
|
+
/** The host opens the record (the worklist remembers its place first, army 11
|
|
8780
|
+
* Q1-4). Absent = plain item navigation. */
|
|
8781
|
+
onOpenRecord?: (item: SheetItem) => void;
|
|
8757
8782
|
}): JSX.Element;
|
|
8758
8783
|
|
|
8759
8784
|
export declare function QueueKanbanBoard({ items, onDrop, onCardClick, onClaim, onRelease, swimlaneBy, stateLabels, laneLabel, claimsEnabled, onDraggingChange }: {
|
|
@@ -8985,7 +9010,7 @@ export declare function RecordChatActions({ collection, itemDraft, compact }: {
|
|
|
8985
9010
|
compact?: boolean;
|
|
8986
9011
|
}): JSX.Element | null;
|
|
8987
9012
|
|
|
8988
|
-
export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose, design }: {
|
|
9013
|
+
export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose, design, onOpenRecord }: {
|
|
8989
9014
|
collection: string;
|
|
8990
9015
|
itemId: string;
|
|
8991
9016
|
layoutId?: number | null;
|
|
@@ -9008,6 +9033,13 @@ export declare function RecordDrilldownSheet({ collection, itemId, layoutId, roo
|
|
|
9008
9033
|
* one) with the preview record, inline at its sheet width instead of in a
|
|
9009
9034
|
* modal sheet, with no Open record link and no host override view. */
|
|
9010
9035
|
design?: LayoutDesignProp;
|
|
9036
|
+
/** The host opens the record itself (a worklist remembers its place first so
|
|
9037
|
+
* Back returns to it, army 11 Q1-4). Absent = plain item navigation. A
|
|
9038
|
+
* modified click (Cmd/Ctrl/middle) always opens the link in a new tab. */
|
|
9039
|
+
onOpenRecord?: (target: {
|
|
9040
|
+
collection: string;
|
|
9041
|
+
itemId: string;
|
|
9042
|
+
}) => void;
|
|
9011
9043
|
}): JSX.Element;
|
|
9012
9044
|
|
|
9013
9045
|
/**
|
|
@@ -9421,8 +9453,12 @@ export declare function RelatedRecordsPanel({ collection, itemId, title, default
|
|
|
9421
9453
|
defaultExpanded?: boolean;
|
|
9422
9454
|
}): JSX.Element;
|
|
9423
9455
|
|
|
9424
|
-
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned, missPlacement, defaultOpen, onClose }: {
|
|
9456
|
+
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned, missPlacement, defaultOpen, onClose, displayTemplate }: {
|
|
9425
9457
|
collection: string;
|
|
9458
|
+
/** Overrides the collection's display template for this picker's options —
|
|
9459
|
+
* a catalog's "Add any item" shows the item number AND its description
|
|
9460
|
+
* (army11 f1: bare numbers made people pick blind). */
|
|
9461
|
+
displayTemplate?: string | null;
|
|
9426
9462
|
/** Open the options panel on mount (a list cell's inline editor, #3224). */
|
|
9427
9463
|
defaultOpen?: boolean;
|
|
9428
9464
|
/** Called when the options panel closes (picked, clicked away or Escape). */
|
|
@@ -9747,6 +9783,13 @@ declare interface ReviewListConfig {
|
|
|
9747
9783
|
direction?: 'asc' | 'desc';
|
|
9748
9784
|
};
|
|
9749
9785
|
line_columns?: Array<string | ReviewListColumnSpec>;
|
|
9786
|
+
/** Order a group's rows by one of their values (`{field:'line_item_number'}`
|
|
9787
|
+
* lists an invoice's lines 1, 2, 3 … — army 11 a3-K: they came 2, 6, 3, 1).
|
|
9788
|
+
* Numbers and dates compare as such, other text naturally; blanks last. */
|
|
9789
|
+
line_sort?: {
|
|
9790
|
+
field: string;
|
|
9791
|
+
direction?: 'asc' | 'desc';
|
|
9792
|
+
} | null;
|
|
9750
9793
|
/** What a group is ("invoice") and a row is ("line"); unset = none / "row". */
|
|
9751
9794
|
group_noun?: string | null;
|
|
9752
9795
|
row_noun?: string | null;
|
|
@@ -9812,6 +9855,10 @@ declare interface ReviewListStatusOption {
|
|
|
9812
9855
|
/** The confirm's last line for this decision — who is told, whether it can
|
|
9813
9856
|
* be taken back. Unset = the generic "Nothing changes until you confirm". */
|
|
9814
9857
|
confirm_notice?: string | null;
|
|
9858
|
+
/** The confirm's question when "<label> <noun> <name>?" reads wrong (a label
|
|
9859
|
+
* that is not a verb: "In review invoice #1?"). `{name}` = the group noun +
|
|
9860
|
+
* name, e.g. "Mark {name} in review?" → "Mark invoice #1 · ACME in review?". */
|
|
9861
|
+
confirm_title?: string | null;
|
|
9815
9862
|
}
|
|
9816
9863
|
|
|
9817
9864
|
export declare function ReviewListWidget({ data, config, loading, error, onRefetch, hostRecordId, emptyLabel }: ReviewListWidgetProps): JSX.Element;
|
|
@@ -9895,6 +9942,8 @@ declare interface Row {
|
|
|
9895
9942
|
submission_id?: number | null;
|
|
9896
9943
|
transition_id?: string | null;
|
|
9897
9944
|
transition_label?: string | null;
|
|
9945
|
+
can_resend?: boolean;
|
|
9946
|
+
can_send_current?: boolean;
|
|
9898
9947
|
}
|
|
9899
9948
|
|
|
9900
9949
|
export declare const ROW_HIGHLIGHT_TINTS: Record<string, {
|