@nivaro/react 0.3.64 → 0.3.66
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 +62 -8
- package/dist/shared/components/CollectionBrowserView.js +3127 -3204
- package/dist/shared/components/ConformanceView.js +235 -221
- package/dist/shared/components/DataTable.js +478 -459
- package/dist/shared/components/ItemEditForm.js +4842 -4500
- package/dist/shared/components/MyWorkView.js +124 -113
- package/dist/shared/components/PageRenderer.js +146 -138
- package/dist/shared/components/ProfileView.js +483 -472
- package/dist/shared/components/RecordDrilldownSheet.js +73 -65
- package/dist/shared/components/ReportView.js +1100 -1094
- package/dist/shared/components/bulk/BulkActionButtons.js +72 -72
- package/dist/shared/components/bulk/BulkCompareButton.js +62 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +114 -103
- package/dist/shared/components/bulk/BulkFieldUpdateButton.js +73 -0
- package/dist/shared/components/bulk/MessageStakeholders.js +235 -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 +1535 -1440
- 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/GroupSection.js +555 -538
- package/dist/shared/components/item-edit/InlineTableField.js +2903 -2816
- package/dist/shared/components/item-edit/M2MCombobox.js +407 -338
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +367 -116
- 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 +398 -364
- package/dist/shared/components/item-edit/SummaryPanel.js +146 -144
- package/dist/shared/components/item-edit/UserChip.js +264 -229
- package/dist/shared/components/item-edit/cascade-clear-notice.js +56 -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/header-path-preview.js +52 -0
- package/dist/shared/components/item-edit/line-merge.js +84 -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 +27 -16
- package/dist/shared/components/item-edit/rail-width.js +8 -0
- package/dist/shared/components/monitoring/InactiveUserLinksView.js +126 -124
- 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 +1522 -1347
- 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/quick-filter-cascade.js +29 -19
- 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.66", 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
|
@@ -121,6 +121,9 @@ declare interface ActiveLayoutData {
|
|
|
121
121
|
groups: FieldGroup[];
|
|
122
122
|
assignments: SlotAssignment[];
|
|
123
123
|
ungrouped_sort?: number | null;
|
|
124
|
+
/** The `?layout=` this page was opened with names no form the person may
|
|
125
|
+
* open: the answer is the usual form, and the page says so (army11 f3). */
|
|
126
|
+
requested_form_unavailable?: boolean;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
/** Who really did it (nivaro_activity.actor, migration 516; derived for older rows). */
|
|
@@ -1013,6 +1016,11 @@ export declare interface BannerLine {
|
|
|
1013
1016
|
* rejected). Null for hook / flow / cron obligations. */
|
|
1014
1017
|
transition_id: string | null;
|
|
1015
1018
|
transition_label: string | null;
|
|
1019
|
+
/** Send now can repeat a stored request (its own, or a safe prior one).
|
|
1020
|
+
* Absent = yes (the one button an older server always offered). */
|
|
1021
|
+
can_resend?: boolean;
|
|
1022
|
+
/** "Send current data" can rebuild the request from the record as it is now. */
|
|
1023
|
+
can_send_current?: boolean;
|
|
1016
1024
|
}
|
|
1017
1025
|
|
|
1018
1026
|
/** Newest obligation per partner, in the words the record's reader needs:
|
|
@@ -1176,6 +1184,7 @@ declare interface BulkRunResult {
|
|
|
1176
1184
|
skipped: number;
|
|
1177
1185
|
errors: Array<{
|
|
1178
1186
|
item: string;
|
|
1187
|
+
label?: string;
|
|
1179
1188
|
error: string;
|
|
1180
1189
|
}>;
|
|
1181
1190
|
}
|
|
@@ -2513,7 +2522,7 @@ export declare function dashboardPretendDownOptions(widgets: Array<{
|
|
|
2513
2522
|
field?: string | null;
|
|
2514
2523
|
}>, labels?: Record<string, string | null | undefined>): PretendDownOption[];
|
|
2515
2524
|
|
|
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;
|
|
2525
|
+
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
2526
|
|
|
2518
2527
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
2519
2528
|
columns: Column<T>[];
|
|
@@ -2602,6 +2611,14 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
2602
2611
|
/** Changes whenever a fresh result set lands (e.g. the query's dataUpdatedAt);
|
|
2603
2612
|
* the body remounts so rows replay their staggered enter animation. */
|
|
2604
2613
|
enterKey?: string | number;
|
|
2614
|
+
/** Keyboard rows (army 11 N10): set to make each row ONE Tab stop (roving — the
|
|
2615
|
+
* active row is tabbable, the others are reached with the arrow keys the host
|
|
2616
|
+
* handles), announced as current; Enter on the focused row runs onRowClick. */
|
|
2617
|
+
onRowFocus?: (row: T) => void;
|
|
2618
|
+
/** rowKey of the active (highlighted) row for the roving tab stop. */
|
|
2619
|
+
activeRowKey?: string | null;
|
|
2620
|
+
/** Accessible name of a focusable row (e.g. its record id and title). */
|
|
2621
|
+
rowAriaLabel?: (row: T) => string | undefined;
|
|
2605
2622
|
}
|
|
2606
2623
|
|
|
2607
2624
|
export declare function DateField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -8569,6 +8586,10 @@ declare interface QueryWidgetConfig {
|
|
|
8569
8586
|
stats?: QueryWidgetStat[];
|
|
8570
8587
|
/** Sentence shown, as written, when the query returns no rows. */
|
|
8571
8588
|
empty_label?: string;
|
|
8589
|
+
/** One line under the filters saying what the figures count (army 11 o1 F5:
|
|
8590
|
+
* Calendar Year Spend opened from Budget & Spend showed another total with
|
|
8591
|
+
* nothing saying why). Plain text. */
|
|
8592
|
+
note?: string;
|
|
8572
8593
|
/** Set by a sheet opener (never stored): params whose '$row.' / '$rows.'
|
|
8573
8594
|
* token found nothing in the opening row(s). A refusal naming one of them
|
|
8574
8595
|
* reads as "this row has no …", never the server's raw parameter text. */
|
|
@@ -8735,7 +8756,7 @@ declare interface QueueItemRow {
|
|
|
8735
8756
|
url: string;
|
|
8736
8757
|
}
|
|
8737
8758
|
|
|
8738
|
-
export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease, workNextActive, onNext, refetchItems, stateLabels, collectionLabel, claimsEnabled, columnFormats, fieldLabel, width, itemLayout }: {
|
|
8759
|
+
export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease, workNextActive, onNext, refetchItems, stateLabels, collectionLabel, claimsEnabled, columnFormats, fieldLabel, width, itemLayout, onOpenRecord }: {
|
|
8739
8760
|
item: SheetItem | null;
|
|
8740
8761
|
onOpenChange: (open: boolean) => void;
|
|
8741
8762
|
onClaim: (item: SheetItem) => void;
|
|
@@ -8758,6 +8779,9 @@ export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease,
|
|
|
8758
8779
|
width?: number | string | null;
|
|
8759
8780
|
/** Layout slug the Open button pins on the full item; null = default. */
|
|
8760
8781
|
itemLayout?: string | null;
|
|
8782
|
+
/** The host opens the record (the worklist remembers its place first, army 11
|
|
8783
|
+
* Q1-4). Absent = plain item navigation. */
|
|
8784
|
+
onOpenRecord?: (item: SheetItem) => void;
|
|
8761
8785
|
}): JSX.Element;
|
|
8762
8786
|
|
|
8763
8787
|
export declare function QueueKanbanBoard({ items, onDrop, onCardClick, onClaim, onRelease, swimlaneBy, stateLabels, laneLabel, claimsEnabled, onDraggingChange }: {
|
|
@@ -8989,7 +9013,7 @@ export declare function RecordChatActions({ collection, itemDraft, compact }: {
|
|
|
8989
9013
|
compact?: boolean;
|
|
8990
9014
|
}): JSX.Element | null;
|
|
8991
9015
|
|
|
8992
|
-
export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose, design }: {
|
|
9016
|
+
export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose, design, onOpenRecord }: {
|
|
8993
9017
|
collection: string;
|
|
8994
9018
|
itemId: string;
|
|
8995
9019
|
layoutId?: number | null;
|
|
@@ -9012,6 +9036,13 @@ export declare function RecordDrilldownSheet({ collection, itemId, layoutId, roo
|
|
|
9012
9036
|
* one) with the preview record, inline at its sheet width instead of in a
|
|
9013
9037
|
* modal sheet, with no Open record link and no host override view. */
|
|
9014
9038
|
design?: LayoutDesignProp;
|
|
9039
|
+
/** The host opens the record itself (a worklist remembers its place first so
|
|
9040
|
+
* Back returns to it, army 11 Q1-4). Absent = plain item navigation. A
|
|
9041
|
+
* modified click (Cmd/Ctrl/middle) always opens the link in a new tab. */
|
|
9042
|
+
onOpenRecord?: (target: {
|
|
9043
|
+
collection: string;
|
|
9044
|
+
itemId: string;
|
|
9045
|
+
}) => void;
|
|
9015
9046
|
}): JSX.Element;
|
|
9016
9047
|
|
|
9017
9048
|
/**
|
|
@@ -9425,8 +9456,12 @@ export declare function RelatedRecordsPanel({ collection, itemId, title, default
|
|
|
9425
9456
|
defaultExpanded?: boolean;
|
|
9426
9457
|
}): JSX.Element;
|
|
9427
9458
|
|
|
9428
|
-
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned, missPlacement, defaultOpen, onClose }: {
|
|
9459
|
+
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned, missPlacement, defaultOpen, onClose, displayTemplate }: {
|
|
9429
9460
|
collection: string;
|
|
9461
|
+
/** Overrides the collection's display template for this picker's options —
|
|
9462
|
+
* a catalog's "Add any item" shows the item number AND its description
|
|
9463
|
+
* (army11 f1: bare numbers made people pick blind). */
|
|
9464
|
+
displayTemplate?: string | null;
|
|
9430
9465
|
/** Open the options panel on mount (a list cell's inline editor, #3224). */
|
|
9431
9466
|
defaultOpen?: boolean;
|
|
9432
9467
|
/** Called when the options panel closes (picked, clicked away or Escape). */
|
|
@@ -9751,6 +9786,13 @@ declare interface ReviewListConfig {
|
|
|
9751
9786
|
direction?: 'asc' | 'desc';
|
|
9752
9787
|
};
|
|
9753
9788
|
line_columns?: Array<string | ReviewListColumnSpec>;
|
|
9789
|
+
/** Order a group's rows by one of their values (`{field:'line_item_number'}`
|
|
9790
|
+
* lists an invoice's lines 1, 2, 3 … — army 11 a3-K: they came 2, 6, 3, 1).
|
|
9791
|
+
* Numbers and dates compare as such, other text naturally; blanks last. */
|
|
9792
|
+
line_sort?: {
|
|
9793
|
+
field: string;
|
|
9794
|
+
direction?: 'asc' | 'desc';
|
|
9795
|
+
} | null;
|
|
9754
9796
|
/** What a group is ("invoice") and a row is ("line"); unset = none / "row". */
|
|
9755
9797
|
group_noun?: string | null;
|
|
9756
9798
|
row_noun?: string | null;
|
|
@@ -9816,6 +9858,10 @@ declare interface ReviewListStatusOption {
|
|
|
9816
9858
|
/** The confirm's last line for this decision — who is told, whether it can
|
|
9817
9859
|
* be taken back. Unset = the generic "Nothing changes until you confirm". */
|
|
9818
9860
|
confirm_notice?: string | null;
|
|
9861
|
+
/** The confirm's question when "<label> <noun> <name>?" reads wrong (a label
|
|
9862
|
+
* that is not a verb: "In review invoice #1?"). `{name}` = the group noun +
|
|
9863
|
+
* name, e.g. "Mark {name} in review?" → "Mark invoice #1 · ACME in review?". */
|
|
9864
|
+
confirm_title?: string | null;
|
|
9819
9865
|
}
|
|
9820
9866
|
|
|
9821
9867
|
export declare function ReviewListWidget({ data, config, loading, error, onRefetch, hostRecordId, emptyLabel }: ReviewListWidgetProps): JSX.Element;
|
|
@@ -9880,6 +9926,12 @@ export declare interface RoomInfo {
|
|
|
9880
9926
|
*/
|
|
9881
9927
|
declare type RoomOpener = (room: string, label?: string) => void;
|
|
9882
9928
|
|
|
9929
|
+
/** Stacked avatar cluster (+N) with a hover/pinnable portal roster whose rows
|
|
9930
|
+
* are UserChips — the single user-display primitive for owners/user lists.
|
|
9931
|
+
* Reused by the item-header Owners chip and the collection browser. */
|
|
9932
|
+
/** A person who can no longer act, as the header says it. */
|
|
9933
|
+
declare type RosterInactive = 'suspended' | 'former';
|
|
9934
|
+
|
|
9883
9935
|
declare interface Row {
|
|
9884
9936
|
id: number;
|
|
9885
9937
|
api: string;
|
|
@@ -9899,6 +9951,8 @@ declare interface Row {
|
|
|
9899
9951
|
submission_id?: number | null;
|
|
9900
9952
|
transition_id?: string | null;
|
|
9901
9953
|
transition_label?: string | null;
|
|
9954
|
+
can_resend?: boolean;
|
|
9955
|
+
can_send_current?: boolean;
|
|
9902
9956
|
}
|
|
9903
9957
|
|
|
9904
9958
|
export declare const ROW_HIGHLIGHT_TINTS: Record<string, {
|
|
@@ -12253,15 +12307,15 @@ export declare function userOptionFilter(isAdmin: boolean): {
|
|
|
12253
12307
|
*/
|
|
12254
12308
|
export declare function useRowPresence(rows: RowRef[], opts?: RowPresenceOptions): Record<string, RowViewers>;
|
|
12255
12309
|
|
|
12256
|
-
|
|
12257
|
-
* are UserChips — the single user-display primitive for owners/user lists.
|
|
12258
|
-
* Reused by the item-header Owners chip and the collection browser. */
|
|
12259
|
-
export declare function UserRosterCluster({ users, showSingleName }: {
|
|
12310
|
+
export declare function UserRosterCluster({ users, showSingleName, nameLabel }: {
|
|
12260
12311
|
users: Array<{
|
|
12261
12312
|
id: string;
|
|
12262
12313
|
name: string;
|
|
12314
|
+
inactive?: RosterInactive;
|
|
12263
12315
|
}>;
|
|
12264
12316
|
showSingleName?: boolean;
|
|
12317
|
+
/** Always name the first owner who can act (+N), not just a single one. */
|
|
12318
|
+
nameLabel?: boolean;
|
|
12265
12319
|
}): React_2.JSX.Element;
|
|
12266
12320
|
|
|
12267
12321
|
declare interface UserSyncOptions {
|