@nivaro/react 0.3.49 → 0.3.50

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 (32) hide show
  1. package/dist/components/InlineGridField.js +166 -105
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useSessionRecorder.js +1 -1
  4. package/dist/index.d.ts +25 -1
  5. package/dist/shared/components/ItemEditForm.js +4676 -4579
  6. package/dist/shared/components/QueryTable.js +461 -332
  7. package/dist/shared/components/item-edit/CatalogPickerField.js +1144 -1127
  8. package/dist/shared/components/item-edit/CloneDialog.js +192 -142
  9. package/dist/shared/components/item-edit/FieldRenderer.js +127 -126
  10. package/dist/shared/components/item-edit/FieldRow.js +236 -226
  11. package/dist/shared/components/item-edit/InlineGridField.js +92 -90
  12. package/dist/shared/components/item-edit/InlineTableField.js +3088 -2945
  13. package/dist/shared/components/item-edit/MidairCollisionDialog.js +175 -0
  14. package/dist/shared/components/item-edit/PlanGrid.js +162 -162
  15. package/dist/shared/components/item-edit/PolishFields.js +169 -162
  16. package/dist/shared/components/item-edit/RelationCombobox.js +186 -181
  17. package/dist/shared/components/item-edit/SummaryPanel.js +148 -135
  18. package/dist/shared/components/item-edit/ValidationSummary.js +64 -47
  19. package/dist/shared/components/item-edit/helpers.js +181 -155
  20. package/dist/shared/components/item-edit/line-midair.js +201 -0
  21. package/dist/shared/components/item-edit/soft-rules.js +27 -0
  22. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  23. package/dist/shared/components/panels/ItemLockBanner.js +414 -358
  24. package/dist/shared/components/panels/PipelinePanel.js +1157 -963
  25. package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
  26. package/dist/shared/components/queue/QueueWorklist.js +870 -827
  27. package/dist/shared/components/queue/column-chooser.js +21 -0
  28. package/dist/shared/components/queue/live-state-aspect.js +6 -0
  29. package/dist/shared/components/ui/number-draft-input.js +93 -0
  30. package/dist/shared/components/widgets/ReviewListWidget.js +191 -166
  31. package/dist/shared/lib/error-hints.js +1 -0
  32. 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.49", 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.50", 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
@@ -8355,6 +8355,24 @@ declare interface QueryTableConfig {
8355
8355
  sticky?: boolean;
8356
8356
  /** Render zeroes as an em dash — de-noises mostly-empty month grids. */
8357
8357
  zero_dash?: boolean;
8358
+ /** Header clicks sort the rows (asc → desc → data order). Flat tables only:
8359
+ * ignored with tree_group_by. Off by default. */
8360
+ sortable?: boolean;
8361
+ /** A search box above the table — shows the rows whose text (any column,
8362
+ * raw or formatted) contains what was typed. Off by default. */
8363
+ search?: boolean;
8364
+ /** A CSV button above the table: the rows and columns as shown (search,
8365
+ * sort and hidden rows applied). Off by default. */
8366
+ export_csv?: boolean | {
8367
+ filename?: string;
8368
+ };
8369
+ /** A "Hide empty rows" pill: hides rows whose `fields` are all blank or 0.
8370
+ * Off by default; `default_on` starts with the rows hidden. */
8371
+ hide_empty?: {
8372
+ fields: string[];
8373
+ label?: string;
8374
+ default_on?: boolean;
8375
+ };
8358
8376
  /** Column show/hide toggle pills above the table (e.g. Actuals / Forecasts /
8359
8377
  * Calendar Year). A toggle turned OFF hides columns matched by exact
8360
8378
  * `fields` or a field-name `suffix` — unless `hide_when_on` inverts it
@@ -9641,7 +9659,8 @@ declare interface ReviewListStatusOption {
9641
9659
  value: string;
9642
9660
  label: string;
9643
9661
  color: string;
9644
- /** Picking this option first asks the reviewer for a note (required). */
9662
+ /** The confirm asks for a note and will not send without one. Every option
9663
+ * is confirmed first either way; without this the note is optional. */
9645
9664
  require_note?: boolean;
9646
9665
  }
9647
9666
 
@@ -11665,6 +11684,11 @@ export declare function useItemLock(collection: string | undefined, item: string
11665
11684
  lazy?: boolean;
11666
11685
  /** False = mounted but not on screen (a background workspace tab). */
11667
11686
  active?: boolean;
11687
+ /** Whether the form holds unsaved work (lazy mode). A form that turns
11688
+ * clean (saved, or every edit undone) lets its lock go and takes it
11689
+ * again on the next real edit; while clean, nothing re-takes it on its
11690
+ * own (heartbeat, coming back to the tab). Absent = not tracked. */
11691
+ dirty?: boolean;
11668
11692
  }): {
11669
11693
  lockHolder: LockHolder | null;
11670
11694
  acquired: boolean;