@nivaro/react 0.3.56 → 0.3.58

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 (55) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +9 -2
  4. package/dist/shared/components/CollectionBrowserView.js +2827 -2750
  5. package/dist/shared/components/DataTable.js +247 -236
  6. package/dist/shared/components/ItemEditForm.js +1693 -1668
  7. package/dist/shared/components/ProfileView.js +716 -715
  8. package/dist/shared/components/RecordReadView.js +367 -364
  9. package/dist/shared/components/ReportView.js +64 -39
  10. package/dist/shared/components/alerts/AlertManagerView.js +284 -271
  11. package/dist/shared/components/cbv/row-focus.js +19 -0
  12. package/dist/shared/components/help-videos/HelpVideoPlayer.js +152 -147
  13. package/dist/shared/components/integrations/console/SignalCard.js +59 -59
  14. package/dist/shared/components/integrations/console/tone.js +52 -30
  15. package/dist/shared/components/item-edit/CatalogPickerField.js +525 -505
  16. package/dist/shared/components/item-edit/FieldRow.js +175 -173
  17. package/dist/shared/components/item-edit/InlineTableField.js +407 -402
  18. package/dist/shared/components/item-edit/M2MCombobox.js +313 -291
  19. package/dist/shared/components/item-edit/MidairCollisionDialog.js +1 -1
  20. package/dist/shared/components/item-edit/PlanGrid.js +826 -803
  21. package/dist/shared/components/item-edit/QuickCreateButton.js +115 -79
  22. package/dist/shared/components/item-edit/RecordLiveSync.js +77 -75
  23. package/dist/shared/components/item-edit/RelationCombobox.js +412 -328
  24. package/dist/shared/components/item-edit/RelationGroupedCombobox.js +147 -125
  25. package/dist/shared/components/item-edit/SummaryPanel.js +406 -392
  26. package/dist/shared/components/item-edit/option-disambiguate.js +44 -32
  27. package/dist/shared/components/item-edit/related-missing.js +45 -0
  28. package/dist/shared/components/item-edit/save-outcome.js +5 -5
  29. package/dist/shared/components/notifications/NotificationRulesEditor.js +130 -123
  30. package/dist/shared/components/panels/AccessDeniedPanel.js +52 -48
  31. package/dist/shared/components/panels/ItemLockBanner.js +2 -3
  32. package/dist/shared/components/panels/PipelinePanel.js +1027 -978
  33. package/dist/shared/components/panels/RevisionsPanel.js +4 -1
  34. package/dist/shared/components/panels/TaskPanel.js +265 -249
  35. package/dist/shared/components/panels/landing-state.js +27 -0
  36. package/dist/shared/components/pipeline/PipelineEditorView.js +86 -78
  37. package/dist/shared/components/profile/AiMemoryCard.js +12 -10
  38. package/dist/shared/components/queue/OwnerAvatars.js +80 -41
  39. package/dist/shared/components/queue/QueueItemSheet.js +111 -111
  40. package/dist/shared/components/queue/QueueQuickFilters.js +48 -48
  41. package/dist/shared/components/queue/QueueWorklist.js +975 -964
  42. package/dist/shared/components/queue/group-sums.js +27 -0
  43. package/dist/shared/components/queue/live-state-aspect.js +7 -3
  44. package/dist/shared/components/queue/path-label.js +14 -0
  45. package/dist/shared/components/widgets/ReviewListWidget.js +186 -168
  46. package/dist/shared/lib/back-closes.js +25 -0
  47. package/dist/shared/lib/cbv-page-warm.js +36 -0
  48. package/dist/shared/lib/form-usage-beacon.js +7 -7
  49. package/dist/shared/lib/list-page-memory.js +41 -0
  50. package/dist/shared/lib/live.js +44 -44
  51. package/dist/shared/lib/own-writes.js +76 -28
  52. package/dist/shared/lib/record-ref.js +78 -53
  53. package/dist/shared/lib/request-gate.js +110 -109
  54. package/dist/shared/lib/validation-rules.js +34 -19
  55. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ function s(e) {
2
+ return e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
3
+ }
4
+ const o = /* @__PURE__ */ new Set(["year", "years", "yr", "fy"]), f = /* @__PURE__ */ new Set(["value", "name", "label", "number", "code", "year"]);
5
+ function l(e) {
6
+ const n = e.split("."), t = n[n.length - 1] ?? e;
7
+ if (t === "id" || /_id$/i.test(t) || /[a-z]Id$/.test(t)) return !1;
8
+ const r = s(t);
9
+ if (o.has(r[r.length - 1] ?? "")) return !1;
10
+ const a = n.length > 1 ? s(n[n.length - 2]) : [];
11
+ return !(o.has(a[a.length - 1] ?? "") && f.has(t.toLowerCase()));
12
+ }
13
+ function c(e) {
14
+ const n = /* @__PURE__ */ new Set();
15
+ for (const t of (e == null ? void 0 : e.extra_field_meta) ?? [])
16
+ t.aggregate && t.aggregate !== "count" && n.add(t.path);
17
+ for (const t of (e == null ? void 0 : e.sources) ?? []) {
18
+ for (const [r, a] of Object.entries(t.column_formats ?? {}))
19
+ (a == null ? void 0 : a.type) === "number" && l(r) && n.add(r);
20
+ t.type === "addendums" && n.add("cost_impact");
21
+ }
22
+ return [...n].slice(0, 12);
23
+ }
24
+ export {
25
+ c as groupSumPathsFor,
26
+ l as isSummableColumn
27
+ };
@@ -1,6 +1,10 @@
1
- function r(t, e) {
2
- return t || e ? { refresh: !0, pill: 0, stats: !0 } : { refresh: !1, pill: 1, stats: !0 };
1
+ function r(e, t) {
2
+ return e || t ? { refresh: !0, pill: 0, stats: !0 } : { refresh: !1, pill: 1, stats: !0 };
3
+ }
4
+ function l(e) {
5
+ return !e.table || e.busy || typeof e.liveTotal != "number" || typeof e.rowsTotal != "number" ? !1 : e.liveTotal !== e.rowsTotal;
3
6
  }
4
7
  export {
5
- r as stateAspectEffect
8
+ r as stateAspectEffect,
9
+ l as statsOutrunRows
6
10
  };
@@ -0,0 +1,14 @@
1
+ const s = /* @__PURE__ */ new Set(["id", "name", "title", "label", "type", "code", "display_name"]);
2
+ function n(t) {
3
+ return t.replace(/_/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()).replace(/\bId\b/g, "ID");
4
+ }
5
+ function i(t) {
6
+ const e = t.split(".").filter(Boolean);
7
+ if (e.length === 0) return t;
8
+ if (e.length === 1) return n(e[0]);
9
+ const r = e[e.length - 1], o = e[e.length - 2], a = e.slice(0, -1);
10
+ return s.has(r.toLowerCase()) ? a.map(n).join(" → ") : r.toLowerCase().startsWith(`${o.toLowerCase()}_`) ? [...e.slice(0, -2), r].map(n).join(" → ") : e.map(n).join(" → ");
11
+ }
12
+ export {
13
+ i as pathHeader
14
+ };