@nivaro/react 0.3.64 → 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.
Files changed (64) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +49 -4
  4. package/dist/shared/components/CollectionBrowserView.js +3029 -2947
  5. package/dist/shared/components/ConformanceView.js +235 -221
  6. package/dist/shared/components/DataTable.js +478 -459
  7. package/dist/shared/components/ItemEditForm.js +4469 -4266
  8. package/dist/shared/components/PageRenderer.js +146 -138
  9. package/dist/shared/components/RecordDrilldownSheet.js +73 -65
  10. package/dist/shared/components/bulk/BulkActionButtons.js +72 -72
  11. package/dist/shared/components/bulk/BulkFieldUpdate.js +114 -103
  12. package/dist/shared/components/bulk/BulkFieldUpdateButton.js +73 -0
  13. package/dist/shared/components/bulk/bulk-field-options.js +29 -23
  14. package/dist/shared/components/integrations/IntegrationObligationsView.js +191 -173
  15. package/dist/shared/components/integrations/IntegrationStatusLines.js +101 -85
  16. package/dist/shared/components/integrations/RecordIntegrationPreview.js +11 -9
  17. package/dist/shared/components/integrations/SendCurrentData.js +126 -0
  18. package/dist/shared/components/item-edit/CatalogPickerField.js +1530 -1437
  19. package/dist/shared/components/item-edit/FieldRenderer.js +49 -45
  20. package/dist/shared/components/item-edit/FieldRow.js +413 -403
  21. package/dist/shared/components/item-edit/InlineTableField.js +2903 -2816
  22. package/dist/shared/components/item-edit/M2MCombobox.js +172 -168
  23. package/dist/shared/components/item-edit/MidairCollisionDialog.js +341 -114
  24. package/dist/shared/components/item-edit/NestedRelationEditor.js +171 -163
  25. package/dist/shared/components/item-edit/PlanGrid.js +783 -724
  26. package/dist/shared/components/item-edit/QuickCreateButton.js +291 -224
  27. package/dist/shared/components/item-edit/RecordInsights.js +113 -111
  28. package/dist/shared/components/item-edit/RecordLiveSync.js +4 -1
  29. package/dist/shared/components/item-edit/RelationCombobox.js +332 -314
  30. package/dist/shared/components/item-edit/cascade-clear-notice.js +52 -0
  31. package/dist/shared/components/item-edit/collision-format.js +37 -0
  32. package/dist/shared/components/item-edit/field-a11y.js +25 -0
  33. package/dist/shared/components/item-edit/line-merge.js +58 -0
  34. package/dist/shared/components/item-edit/line-midair.js +94 -87
  35. package/dist/shared/components/item-edit/move-guard.js +17 -0
  36. package/dist/shared/components/item-edit/picker-search.js +22 -15
  37. package/dist/shared/components/item-edit/rail-width.js +8 -0
  38. package/dist/shared/components/monitoring/InactiveUserLinksView.js +126 -124
  39. package/dist/shared/components/panels/AccessDeniedPanel.js +96 -55
  40. package/dist/shared/components/panels/CommentPanel.js +142 -136
  41. package/dist/shared/components/panels/ItemLockBanner.js +246 -240
  42. package/dist/shared/components/panels/PipelinePanel.js +1366 -1194
  43. package/dist/shared/components/panels/RevisionsPanel.js +106 -102
  44. package/dist/shared/components/panels/SlaBreachBanner.js +16 -20
  45. package/dist/shared/components/panels/SlaClock.js +90 -68
  46. package/dist/shared/components/queue/QueueItemSheet.js +94 -87
  47. package/dist/shared/components/queue/QueueWorklist.js +1502 -1354
  48. package/dist/shared/components/queue/worklist-csv.js +75 -0
  49. package/dist/shared/components/queue/worklist-helpers.js +20 -0
  50. package/dist/shared/components/widgets/ReviewListWidget.js +226 -207
  51. package/dist/shared/lib/bulk-copy.js +17 -0
  52. package/dist/shared/lib/cbv-export.js +122 -0
  53. package/dist/shared/lib/delete-offer.js +13 -0
  54. package/dist/shared/lib/error-hints.js +1 -0
  55. package/dist/shared/lib/leave-guard.js +41 -26
  56. package/dist/shared/lib/list-link.js +72 -56
  57. package/dist/shared/lib/live-queries.js +32 -30
  58. package/dist/shared/lib/moved-notice.js +25 -0
  59. package/dist/shared/lib/notification-target.js +56 -54
  60. package/dist/shared/lib/obligation-banner.js +11 -8
  61. package/dist/shared/lib/obligation-reason-text.js +6 -6
  62. package/dist/shared/lib/sort-cycle.js +6 -0
  63. package/dist/shared/lib/summary-mode.js +59 -41
  64. 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.64", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
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;
@@ -8569,6 +8583,10 @@ declare interface QueryWidgetConfig {
8569
8583
  stats?: QueryWidgetStat[];
8570
8584
  /** Sentence shown, as written, when the query returns no rows. */
8571
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;
8572
8590
  /** Set by a sheet opener (never stored): params whose '$row.' / '$rows.'
8573
8591
  * token found nothing in the opening row(s). A refusal naming one of them
8574
8592
  * reads as "this row has no …", never the server's raw parameter text. */
@@ -8735,7 +8753,7 @@ declare interface QueueItemRow {
8735
8753
  url: string;
8736
8754
  }
8737
8755
 
8738
- 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 }: {
8739
8757
  item: SheetItem | null;
8740
8758
  onOpenChange: (open: boolean) => void;
8741
8759
  onClaim: (item: SheetItem) => void;
@@ -8758,6 +8776,9 @@ export declare function QueueItemSheet({ item, onOpenChange, onClaim, onRelease,
8758
8776
  width?: number | string | null;
8759
8777
  /** Layout slug the Open button pins on the full item; null = default. */
8760
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;
8761
8782
  }): JSX.Element;
8762
8783
 
8763
8784
  export declare function QueueKanbanBoard({ items, onDrop, onCardClick, onClaim, onRelease, swimlaneBy, stateLabels, laneLabel, claimsEnabled, onDraggingChange }: {
@@ -8989,7 +9010,7 @@ export declare function RecordChatActions({ collection, itemDraft, compact }: {
8989
9010
  compact?: boolean;
8990
9011
  }): JSX.Element | null;
8991
9012
 
8992
- 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 }: {
8993
9014
  collection: string;
8994
9015
  itemId: string;
8995
9016
  layoutId?: number | null;
@@ -9012,6 +9033,13 @@ export declare function RecordDrilldownSheet({ collection, itemId, layoutId, roo
9012
9033
  * one) with the preview record, inline at its sheet width instead of in a
9013
9034
  * modal sheet, with no Open record link and no host override view. */
9014
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;
9015
9043
  }): JSX.Element;
9016
9044
 
9017
9045
  /**
@@ -9425,8 +9453,12 @@ export declare function RelatedRecordsPanel({ collection, itemId, title, default
9425
9453
  defaultExpanded?: boolean;
9426
9454
  }): JSX.Element;
9427
9455
 
9428
- 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 }: {
9429
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;
9430
9462
  /** Open the options panel on mount (a list cell's inline editor, #3224). */
9431
9463
  defaultOpen?: boolean;
9432
9464
  /** Called when the options panel closes (picked, clicked away or Escape). */
@@ -9751,6 +9783,13 @@ declare interface ReviewListConfig {
9751
9783
  direction?: 'asc' | 'desc';
9752
9784
  };
9753
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;
9754
9793
  /** What a group is ("invoice") and a row is ("line"); unset = none / "row". */
9755
9794
  group_noun?: string | null;
9756
9795
  row_noun?: string | null;
@@ -9816,6 +9855,10 @@ declare interface ReviewListStatusOption {
9816
9855
  /** The confirm's last line for this decision — who is told, whether it can
9817
9856
  * be taken back. Unset = the generic "Nothing changes until you confirm". */
9818
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;
9819
9862
  }
9820
9863
 
9821
9864
  export declare function ReviewListWidget({ data, config, loading, error, onRefetch, hostRecordId, emptyLabel }: ReviewListWidgetProps): JSX.Element;
@@ -9899,6 +9942,8 @@ declare interface Row {
9899
9942
  submission_id?: number | null;
9900
9943
  transition_id?: string | null;
9901
9944
  transition_label?: string | null;
9945
+ can_resend?: boolean;
9946
+ can_send_current?: boolean;
9902
9947
  }
9903
9948
 
9904
9949
  export declare const ROW_HIGHLIGHT_TINTS: Record<string, {