@nivaro/react 0.3.57 → 0.3.59

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 (69) hide show
  1. package/dist/components/fields/RelationField.js +110 -80
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useRelationOptions.js +1 -0
  4. package/dist/hooks/useSessionRecorder.js +1 -1
  5. package/dist/index.d.ts +37 -2
  6. package/dist/index.js +523 -520
  7. package/dist/shared/components/CollectionBrowserView.js +2693 -2619
  8. package/dist/shared/components/DataTable.js +538 -495
  9. package/dist/shared/components/ItemEditForm.js +4559 -4386
  10. package/dist/shared/components/PageRenderer.js +537 -508
  11. package/dist/shared/components/ProfileView.js +716 -715
  12. package/dist/shared/components/QueryTable.js +74 -74
  13. package/dist/shared/components/RecordReadView.js +367 -364
  14. package/dist/shared/components/ReportView.js +64 -39
  15. package/dist/shared/components/WidgetSlot.js +543 -520
  16. package/dist/shared/components/alerts/AlertManagerView.js +324 -317
  17. package/dist/shared/components/alerts/types.js +37 -14
  18. package/dist/shared/components/cbv/row-focus.js +19 -0
  19. package/dist/shared/components/help-videos/HelpVideoPlayer.js +152 -147
  20. package/dist/shared/components/integrations/console/SignalCard.js +59 -59
  21. package/dist/shared/components/integrations/console/tone.js +52 -30
  22. package/dist/shared/components/item-edit/CatalogPickerField.js +525 -505
  23. package/dist/shared/components/item-edit/FieldRenderer.js +22 -20
  24. package/dist/shared/components/item-edit/FieldRow.js +175 -173
  25. package/dist/shared/components/item-edit/GridBulkEditDialog.js +55 -54
  26. package/dist/shared/components/item-edit/InlineTableField.js +2487 -2442
  27. package/dist/shared/components/item-edit/M2MCombobox.js +321 -295
  28. package/dist/shared/components/item-edit/MidairCollisionDialog.js +1 -1
  29. package/dist/shared/components/item-edit/PlanGrid.js +973 -894
  30. package/dist/shared/components/item-edit/QuickCreateButton.js +335 -106
  31. package/dist/shared/components/item-edit/RecordLiveSync.js +77 -75
  32. package/dist/shared/components/item-edit/RelationCombobox.js +452 -335
  33. package/dist/shared/components/item-edit/RelationGroupedCombobox.js +262 -141
  34. package/dist/shared/components/item-edit/SummaryPanel.js +385 -358
  35. package/dist/shared/components/item-edit/duplicate-rehearsal.js +47 -0
  36. package/dist/shared/components/item-edit/line-midair.js +82 -75
  37. package/dist/shared/components/item-edit/option-disambiguate.js +44 -32
  38. package/dist/shared/components/item-edit/related-missing.js +45 -0
  39. package/dist/shared/components/item-edit/save-outcome.js +9 -7
  40. package/dist/shared/components/notifications/NotificationRulesEditor.js +130 -123
  41. package/dist/shared/components/panels/AccessDeniedPanel.js +52 -48
  42. package/dist/shared/components/panels/ItemLockBanner.js +213 -211
  43. package/dist/shared/components/panels/PipelinePanel.js +1140 -1053
  44. package/dist/shared/components/panels/RecordIntegrityBanner.js +114 -86
  45. package/dist/shared/components/panels/RevisionsPanel.js +316 -299
  46. package/dist/shared/components/panels/TaskPanel.js +265 -249
  47. package/dist/shared/components/panels/landing-state.js +27 -0
  48. package/dist/shared/components/pipeline/PipelineEditorView.js +110 -92
  49. package/dist/shared/components/profile/AiMemoryCard.js +12 -10
  50. package/dist/shared/components/queue/OwnerAvatars.js +80 -41
  51. package/dist/shared/components/queue/QueueQuickFilters.js +52 -52
  52. package/dist/shared/components/queue/QueueWorklist.js +1050 -1026
  53. package/dist/shared/components/queue/group-sums.js +27 -0
  54. package/dist/shared/components/queue/live-state-aspect.js +9 -5
  55. package/dist/shared/components/widgets/ReviewListWidget.js +175 -154
  56. package/dist/shared/lib/back-closes.js +25 -0
  57. package/dist/shared/lib/display-prefs.js +60 -52
  58. package/dist/shared/lib/draft-store.js +71 -48
  59. package/dist/shared/lib/expression.js +53 -53
  60. package/dist/shared/lib/form-usage-beacon.js +7 -7
  61. package/dist/shared/lib/list-page-memory.js +63 -0
  62. package/dist/shared/lib/live.js +44 -44
  63. package/dist/shared/lib/money-input.js +45 -0
  64. package/dist/shared/lib/own-writes.js +76 -28
  65. package/dist/shared/lib/request-gate.js +110 -109
  66. package/dist/shared/lib/sanitize-html.js +10 -6
  67. package/dist/shared/lib/staged-row-labels.js +18 -0
  68. package/dist/shared/lib/validation-rules.js +34 -19
  69. package/package.json +1 -1
@@ -56,5 +56,6 @@ function $(e, t, s) {
56
56
  }, [e, t, u, r, n, o, c]), { options: f, loading: v, error: k };
57
57
  }
58
58
  export {
59
+ R as renderLabel,
59
60
  $ as useRelationOptions
60
61
  };
@@ -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.57", 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.59", 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
@@ -39,9 +39,11 @@ declare interface AccentTargets {
39
39
  rgb?: string[];
40
40
  }
41
41
 
42
- export declare function AccessDeniedPanel({ collection, itemId, onBack }: {
42
+ export declare function AccessDeniedPanel({ collection, itemId, noun: nounProp, onBack }: {
43
43
  collection: string;
44
44
  itemId: string;
45
+ /** The collection's singular label ("Invoice") — names the record in the title. */
46
+ noun?: string | null;
45
47
  /** Host-provided back action (e.g. navigate(-1)); renders a button when set. */
46
48
  onBack?: () => void;
47
49
  }): JSX.Element;
@@ -5792,6 +5794,12 @@ export declare interface ItemEditFormProps {
5792
5794
  * from another one (workflow lines from a purchase order's lines) cannot
5793
5795
  * hand them over through initialValues. */
5794
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;
5795
5803
  /** Layout editor canvas (spec §7.3): render this draft layout with the
5796
5804
  * preview record's values, every placement selectable, nothing written. */
5797
5805
  design?: LayoutDesignProp;
@@ -6754,6 +6762,18 @@ declare interface MetricDefinition {
6754
6762
  sort: number | null;
6755
6763
  }
6756
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
+
6757
6777
  /** A music bed under the whole video, looped and lowered under narration.
6758
6778
  * `track` is a library key or an uploaded music file's id. */
6759
6779
  declare interface MusicBed {
@@ -7452,6 +7472,8 @@ export declare function OwnerGapsCard({ templateId, states }: {
7452
7472
  declare interface OwnerLike {
7453
7473
  id: string;
7454
7474
  name: string;
7475
+ /** An owner who cannot act — the row says why it counts as unowned. */
7476
+ inactive?: 'suspended' | 'former';
7455
7477
  }
7456
7478
 
7457
7479
  export declare function OwnerMatrix({ templateId, states, bindings }: OwnerMatrixProps): JSX.Element | null;
@@ -7513,6 +7535,12 @@ declare interface ParseFailure {
7513
7535
  position: number;
7514
7536
  }
7515
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
+
7516
7544
  export declare type ParseResult = ParseSuccess | ParseFailure;
7517
7545
 
7518
7546
  declare interface ParseSuccess {
@@ -8507,8 +8535,15 @@ declare type QueryWidgetFilter = {
8507
8535
  collection: string;
8508
8536
  value_field?: string;
8509
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;
8510
8541
  sort?: string;
8511
- /** 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). */
8512
8547
  limit?: number;
8513
8548
  /** Pre-selected values on load. '$current_year' resolves to the current
8514
8549
  * calendar year (default-year behavior). */