@nivaro/react 0.3.10 → 0.3.12

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 (50) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useNivaroForm.js +1 -1
  3. package/dist/hooks/useSessionRecorder.js +109 -102
  4. package/dist/index.d.ts +34 -3
  5. package/dist/shared/components/CollectionBrowserView.js +1546 -1477
  6. package/dist/shared/components/ItemEditForm.js +4332 -4195
  7. package/dist/shared/components/PageRenderer.js +512 -465
  8. package/dist/shared/components/ProfileView.js +115 -109
  9. package/dist/shared/components/QueryStatStrip.js +74 -70
  10. package/dist/shared/components/ReportView.js +818 -827
  11. package/dist/shared/components/SheetHeaderBody.js +16 -14
  12. package/dist/shared/components/chat/ChatPanel.js +492 -472
  13. package/dist/shared/components/item-edit/CatalogPickerField.js +1029 -933
  14. package/dist/shared/components/item-edit/FieldRenderer.js +161 -156
  15. package/dist/shared/components/item-edit/FieldRow.js +20 -19
  16. package/dist/shared/components/item-edit/FilePickerField.js +52 -40
  17. package/dist/shared/components/item-edit/GroupSection.js +221 -221
  18. package/dist/shared/components/item-edit/InlineGridField.js +41 -41
  19. package/dist/shared/components/item-edit/InlineTableField.js +2249 -2238
  20. package/dist/shared/components/item-edit/M2MCombobox.js +46 -44
  21. package/dist/shared/components/item-edit/NestedRelationEditor.js +11 -11
  22. package/dist/shared/components/item-edit/QuickPicker.js +263 -216
  23. package/dist/shared/components/item-edit/RelationCombobox.js +285 -245
  24. package/dist/shared/components/item-edit/RichTextEditorImpl.js +42 -32
  25. package/dist/shared/components/item-edit/RowHistorySheet.js +130 -134
  26. package/dist/shared/components/item-edit/SummaryPanel.js +305 -279
  27. package/dist/shared/components/item-edit/UserChip.js +301 -233
  28. package/dist/shared/components/item-edit/helpers.js +133 -134
  29. package/dist/shared/components/item-edit/line-qty.js +57 -0
  30. package/dist/shared/components/item-edit/option-disambiguate.js +53 -0
  31. package/dist/shared/components/panels/AddendumLinesDiff.js +87 -90
  32. package/dist/shared/components/panels/CommentPanel.js +350 -315
  33. package/dist/shared/components/panels/ItemLockBanner.js +297 -230
  34. package/dist/shared/components/panels/PipelinePanel.js +719 -701
  35. package/dist/shared/components/profile/PersonAdminTools.js +168 -144
  36. package/dist/shared/components/profile/PersonProfile.js +42 -41
  37. package/dist/shared/components/profile/session-actions.js +52 -0
  38. package/dist/shared/components/queue/QueueQuickFilters.js +43 -41
  39. package/dist/shared/components/queue/QueueWorklist.js +1005 -935
  40. package/dist/shared/components/widgets/ReviewListWidget.js +99 -93
  41. package/dist/shared/lib/obligation-banner.js +14 -13
  42. package/dist/shared/lib/obligation-reason-text.js +13 -0
  43. package/dist/shared/lib/query-filter-seed.js +34 -11
  44. package/dist/shared/lib/replay-checkout.js +20 -0
  45. package/dist/shared/lib/sanitize-html.js +24 -15
  46. package/dist/shared/lib/sheet-def.js +38 -22
  47. package/dist/shared/lib/unique-options.js +10 -0
  48. package/dist/shared/lib/utils.js +57 -43
  49. package/dist/shared/lib/validation-rules.js +58 -34
  50. package/package.json +1 -1
@@ -1,21 +1,22 @@
1
- import { jsx as s, jsxs as l, Fragment as m } from "react/jsx-runtime";
2
- import { latestAsOf as n } from "../lib/sheet-def.js";
3
- import { formatDate as h } from "../lib/utils.js";
1
+ import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
2
+ import { latestAsOf as h } from "../lib/sheet-def.js";
3
+ import { formatDate as n } from "../lib/utils.js";
4
4
  import { QueryStatStrip as p } from "./QueryStatStrip.js";
5
5
  function y({
6
6
  stats: o,
7
- rows: t,
8
- params: d,
9
- loading: r,
7
+ rows: r,
8
+ params: m,
9
+ loading: a,
10
10
  error: i,
11
- asOf: e
11
+ asOf: e,
12
+ note: s
12
13
  }) {
13
14
  if (i)
14
- return /* @__PURE__ */ s("p", { className: "text-[12px] text-slate-500 dark:text-slate-400", "data-sheet-header-error": !0, children: "Couldn't load these figures. Close the sheet and open it again to retry." });
15
- const a = !r && e ? n(t, e.field) : null;
16
- return /* @__PURE__ */ l(m, { children: [
17
- /* @__PURE__ */ s(p, { stats: o, rows: t, effectiveParams: d, loading: r }),
18
- e && a && /* @__PURE__ */ l(
15
+ return /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-slate-400", "data-sheet-header-error": !0, children: "Couldn't load these figures. Close the sheet and open it again to retry." });
16
+ const l = !a && e ? h(r, e.field) : null;
17
+ return /* @__PURE__ */ d(x, { children: [
18
+ /* @__PURE__ */ t(p, { stats: o, rows: r, effectiveParams: m, loading: a }),
19
+ e && l && /* @__PURE__ */ d(
19
20
  "p",
20
21
  {
21
22
  className: "mt-1.5 text-[11px] text-slate-500 dark:text-slate-400",
@@ -23,10 +24,11 @@ function y({
23
24
  children: [
24
25
  e.label,
25
26
  " ",
26
- h(a)
27
+ n(l)
27
28
  ]
28
29
  }
29
- )
30
+ ),
31
+ s && /* @__PURE__ */ t("p", { className: "mt-1 text-[11px] text-slate-500 dark:text-slate-400", "data-sheet-header-note": !0, children: s })
30
32
  ] });
31
33
  }
32
34
  export {