@nivaro/react 0.3.117 → 0.3.118

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 (137) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +136 -14
  4. package/dist/index.js +488 -485
  5. package/dist/shared/components/ActivityEntry.js +130 -125
  6. package/dist/shared/components/AgentPresenceChip.js +36 -26
  7. package/dist/shared/components/CellCopyLayer.js +50 -45
  8. package/dist/shared/components/CollectionBrowserView.js +3757 -3695
  9. package/dist/shared/components/FilePreviewLightbox.js +96 -58
  10. package/dist/shared/components/InStep.js +18 -17
  11. package/dist/shared/components/ItemEditForm.js +4220 -4175
  12. package/dist/shared/components/JobsTray.js +8 -8
  13. package/dist/shared/components/LiveNewMatchesPill.js +21 -14
  14. package/dist/shared/components/LiveOffNote.js +3 -2
  15. package/dist/shared/components/LiveRowMark.js +53 -23
  16. package/dist/shared/components/LiveTraceView.js +162 -123
  17. package/dist/shared/components/MyWorkView.js +320 -299
  18. package/dist/shared/components/NotificationBell.js +14 -14
  19. package/dist/shared/components/OverflowRail.js +1 -1
  20. package/dist/shared/components/PageRenderer.js +120 -116
  21. package/dist/shared/components/ProfileView.js +203 -202
  22. package/dist/shared/components/RealtimeStatusBanner.js +31 -29
  23. package/dist/shared/components/RecordDrilldownSheet.js +7 -7
  24. package/dist/shared/components/RecordHoverCard.js +102 -84
  25. package/dist/shared/components/RecordReadView.js +146 -146
  26. package/dist/shared/components/ScreenRefreshButton.js +34 -32
  27. package/dist/shared/components/TipLayer.js +65 -58
  28. package/dist/shared/components/WidgetImageMenu.js +83 -43
  29. package/dist/shared/components/activity/RecordActivityStream.js +175 -173
  30. package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
  31. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
  32. package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
  33. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
  34. package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
  35. package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
  36. package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
  37. package/dist/shared/components/collections-directory/page-model.js +72 -67
  38. package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
  39. package/dist/shared/components/integrations/SendStatus.js +65 -59
  40. package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
  41. package/dist/shared/components/integrations/console/SignalCard.js +237 -230
  42. package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
  43. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
  44. package/dist/shared/components/item-edit/CloneDialog.js +191 -161
  45. package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
  46. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
  47. package/dist/shared/components/item-edit/FieldComments.js +54 -53
  48. package/dist/shared/components/item-edit/FieldPointer.js +82 -67
  49. package/dist/shared/components/item-edit/FieldRow.js +106 -100
  50. package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
  51. package/dist/shared/components/item-edit/FilePickerField.js +452 -387
  52. package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
  53. package/dist/shared/components/item-edit/HeaderTools.js +94 -85
  54. package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
  55. package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
  56. package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
  57. package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
  58. package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
  59. package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
  60. package/dist/shared/components/item-edit/RecalcValue.js +57 -32
  61. package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
  62. package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
  63. package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
  64. package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
  65. package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
  66. package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
  67. package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
  68. package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
  69. package/dist/shared/components/item-edit/SectionPresence.js +18 -10
  70. package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
  71. package/dist/shared/components/item-edit/UserChip.js +1 -1
  72. package/dist/shared/components/item-edit/file-live.js +69 -54
  73. package/dist/shared/components/item-edit/layout-switch.js +98 -89
  74. package/dist/shared/components/item-edit/partner-needs.js +12 -12
  75. package/dist/shared/components/item-edit/removed-line.js +31 -25
  76. package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
  77. package/dist/shared/components/list/ListViewers.js +46 -35
  78. package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
  79. package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
  80. package/dist/shared/components/panels/AlertBanners.js +82 -72
  81. package/dist/shared/components/panels/BranchLanes.js +22 -22
  82. package/dist/shared/components/panels/CommentImages.js +123 -102
  83. package/dist/shared/components/panels/CommentPanel.js +186 -185
  84. package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
  85. package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
  86. package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
  87. package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
  88. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
  89. package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
  90. package/dist/shared/components/profile/AgentNameField.js +107 -81
  91. package/dist/shared/components/profile/AgentsPanel.js +184 -184
  92. package/dist/shared/components/profile/PersonAccess.js +599 -495
  93. package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
  94. package/dist/shared/components/profile/SignedInDevices.js +17 -17
  95. package/dist/shared/components/profile/primitives.js +1 -1
  96. package/dist/shared/components/queue/OwnerAvatars.js +91 -54
  97. package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
  98. package/dist/shared/components/queue/QueueWorklist.js +1002 -983
  99. package/dist/shared/components/support/AssignRules.js +1733 -0
  100. package/dist/shared/components/support/PersonPick.js +88 -0
  101. package/dist/shared/components/support/RequestList.js +790 -0
  102. package/dist/shared/components/support/ScreenShare.js +158 -152
  103. package/dist/shared/components/support/SupportRequestDialog.js +50 -48
  104. package/dist/shared/components/support/SupportView.js +140 -246
  105. package/dist/shared/components/support/TicketDetailSheet.js +82 -75
  106. package/dist/shared/components/support/TicketSlowScreens.js +9 -9
  107. package/dist/shared/components/support/assign-rules-text.js +171 -0
  108. package/dist/shared/components/support/support-list.js +125 -0
  109. package/dist/shared/components/ui/SimpleSelect.js +28 -20
  110. package/dist/shared/components/ui/checkbox.js +6 -6
  111. package/dist/shared/components/ui/select.js +43 -39
  112. package/dist/shared/components/ui/sheet.js +9 -9
  113. package/dist/shared/components/ui/switch.js +12 -11
  114. package/dist/shared/components/watch-list/WatchDock.js +532 -459
  115. package/dist/shared/components/watch-list/WatchExtras.js +332 -286
  116. package/dist/shared/components/watch-list/WatchRows.js +164 -140
  117. package/dist/shared/lib/activity-sentence.js +103 -91
  118. package/dist/shared/lib/agent-presence.js +27 -21
  119. package/dist/shared/lib/approval-progress.js +2 -2
  120. package/dist/shared/lib/copy-rules.js +31 -24
  121. package/dist/shared/lib/derived-causes.js +113 -78
  122. package/dist/shared/lib/grid-cursors.js +26 -26
  123. package/dist/shared/lib/label-flash.js +27 -0
  124. package/dist/shared/lib/list-return.js +137 -125
  125. package/dist/shared/lib/live-deltas.js +40 -34
  126. package/dist/shared/lib/live-groups.js +56 -52
  127. package/dist/shared/lib/live-preference.js +64 -59
  128. package/dist/shared/lib/live-screen.js +223 -192
  129. package/dist/shared/lib/partner-failure.js +11 -11
  130. package/dist/shared/lib/rollup-recalc.js +68 -64
  131. package/dist/shared/lib/screen-refresh.js +74 -68
  132. package/dist/shared/lib/screen-share.js +108 -104
  133. package/dist/shared/lib/send-status.js +77 -61
  134. package/dist/shared/lib/text-diff-window.js +29 -0
  135. package/dist/shared/lib/watch-list.js +210 -209
  136. package/dist/shared/lib/widget-image-render.js +72 -49
  137. package/package.json +1 -1
@@ -7,40 +7,41 @@ import { useParentDraft as Xt, useNivaroClient as ue } from "../../context.js";
7
7
  import { showsAiButton as Zt, AUTOFILL_CHECK_KEY as It, readAiFill as en } from "../../lib/ai-fill.js";
8
8
  import { useCoViewers as tn } from "../../lib/co-edit.js";
9
9
  import { get as z, del as nn, post as Ce } from "../../lib/commands.js";
10
- import { toastError as rn } from "../../lib/error-toast.js";
11
- import { useOptionalRealtime as on } from "../../lib/realtime.js";
12
- import { titleCase as j, cn as B, formatDateTime as Re, toLocalDateString as ln } from "../../lib/utils.js";
10
+ import { fieldCurrency as rn } from "../../lib/derived-causes.js";
11
+ import { toastError as on } from "../../lib/error-toast.js";
12
+ import { useOptionalRealtime as ln } from "../../lib/realtime.js";
13
+ import { titleCase as j, cn as B, formatDateTime as Re, toLocalDateString as an } from "../../lib/utils.js";
13
14
  import { requiredByRules as tt } from "../../lib/validation-rules.js";
14
15
  import { GlossaryLabel as nt } from "../ai/GlossaryText.js";
15
- import { useFieldSource as an, FieldSourceInfo as sn } from "../ConfigReadBack.js";
16
- import { Label as cn } from "../ui/label.js";
16
+ import { useFieldSource as sn, FieldSourceInfo as cn } from "../ConfigReadBack.js";
17
+ import { Label as dn } from "../ui/label.js";
17
18
  import { TooltipProvider as oe, Tooltip as ie, TooltipTrigger as le, TooltipContent as ae } from "../ui/tooltip.js";
18
- import { useAddendumFields as dn } from "./AddendumFieldContext.js";
19
- import { AutoIdPreviewField as un } from "./AutoIdPreviewField.js";
20
- import { useCascadeClearNotifier as mn } from "./cascade-clear-notice.js";
21
- import { useCoeditTarget as pn, isCoeditInterface as hn } from "./coedit/context.js";
22
- import { DerivedCauseNote as fn } from "./DerivedCauseNote.js";
23
- import { DuplicateNotice as xn } from "./DuplicateNotice.js";
19
+ import { useAddendumFields as un } from "./AddendumFieldContext.js";
20
+ import { AutoIdPreviewField as mn } from "./AutoIdPreviewField.js";
21
+ import { useCascadeClearNotifier as pn } from "./cascade-clear-notice.js";
22
+ import { useCoeditTarget as hn, isCoeditInterface as fn } from "./coedit/context.js";
23
+ import { DerivedCauseNote as xn } from "./DerivedCauseNote.js";
24
+ import { DuplicateNotice as yn } from "./DuplicateNotice.js";
24
25
  import { FOCUSABLE as rt } from "./entry/entry-keys.js";
25
- import { useFieldAffordances as yn, useFieldContextMenu as bn, usePresenceSoftLock as gn, LockReasonBadge as vn, PresenceSoftLockStrip as wn } from "./FieldAffordances.js";
26
- import { FieldCommentButton as kn } from "./FieldComments.js";
27
- import { FieldRenderer as Nn } from "./FieldRenderer.js";
28
- import { FieldSourceBadge as _n } from "./FieldSourceBadge.js";
29
- import { FormHelpVideoButton as Fn } from "./FormHelpVideoButton.js";
30
- import { primaryControl as Cn, applyFieldA11y as Rn } from "./field-a11y.js";
31
- import { getCascadeFilters as Ln, SYSTEM_FIELDS as Sn, parseJson as $n, buildCascadeFilter as Tn, CascadeEffectController as qn } from "./helpers.js";
32
- import { isDerivedForRecord as An } from "./live-rollups.js";
33
- import { useM2MStaging as Pn } from "./M2MStagingContext.js";
34
- import { personalDefaultSlotFor as En, PersonalDefaultSlot as jn } from "./PersonalDefaultControl.js";
35
- import { PersonalDefaultHint as Bn } from "./PersonalDefaultPill.js";
36
- import { usePartnerNeeds as Mn, isEmptyValue as ot, PartnerNeedBadge as Dn, PartnerNeedHint as Hn } from "./partner-needs.js";
37
- import { isDisplayFormulaRow as it, usePlacementTextContext as On, placementFieldText as Kn, fieldCounterConfig as Un, fieldIsRecommended as Wn, RecommendedMarker as Vn, RepeatLastButton as zn, DisplayFormulaValue as Qn, FieldCounter as Gn } from "./placement-behaviour.js";
38
- import { RemoteChangeMark as Yn, RemoteConflictNotice as Jn } from "./RemoteChangeUi.js";
39
- import { keepIfEqual as Xn, jsonEqual as Zn } from "./render-stability.js";
40
- import { softRuleWarning as In } from "./soft-rules.js";
41
- import { usePersonalDefaultsApi as er } from "./usePersonalDefaults.js";
42
- import { resolveOptionFilterTokens as tr } from "../../lib/option-filter-tokens.js";
43
- const lt = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger", "number"]), nr = /* @__PURE__ */ new Set(["string", "text", "richtext", "textarea", "markdown", "json", "csv"]), rr = /* @__PURE__ */ new Set([
26
+ import { useFieldAffordances as bn, useFieldContextMenu as gn, usePresenceSoftLock as vn, LockReasonBadge as wn, PresenceSoftLockStrip as kn } from "./FieldAffordances.js";
27
+ import { FieldCommentButton as Nn } from "./FieldComments.js";
28
+ import { FieldRenderer as _n } from "./FieldRenderer.js";
29
+ import { FieldSourceBadge as Fn } from "./FieldSourceBadge.js";
30
+ import { FormHelpVideoButton as Cn } from "./FormHelpVideoButton.js";
31
+ import { primaryControl as Rn, applyFieldA11y as Ln } from "./field-a11y.js";
32
+ import { getCascadeFilters as Sn, SYSTEM_FIELDS as $n, parseJson as Tn, buildCascadeFilter as qn, CascadeEffectController as An } from "./helpers.js";
33
+ import { isDerivedForRecord as Pn } from "./live-rollups.js";
34
+ import { useM2MStaging as En } from "./M2MStagingContext.js";
35
+ import { personalDefaultSlotFor as jn, PersonalDefaultSlot as Bn } from "./PersonalDefaultControl.js";
36
+ import { PersonalDefaultHint as Mn } from "./PersonalDefaultPill.js";
37
+ import { usePartnerNeeds as Dn, isEmptyValue as ot, PartnerNeedHint as Hn, PartnerNeedBadge as On } from "./partner-needs.js";
38
+ import { isDisplayFormulaRow as it, usePlacementTextContext as Kn, placementFieldText as Un, fieldCounterConfig as Wn, fieldIsRecommended as Vn, RecommendedMarker as zn, RepeatLastButton as Qn, DisplayFormulaValue as Gn, FieldCounter as Yn } from "./placement-behaviour.js";
39
+ import { RemoteChangeMark as Jn, RemoteConflictNotice as Xn } from "./RemoteChangeUi.js";
40
+ import { keepIfEqual as Zn, jsonEqual as In } from "./render-stability.js";
41
+ import { softRuleWarning as er } from "./soft-rules.js";
42
+ import { usePersonalDefaultsApi as tr } from "./usePersonalDefaults.js";
43
+ import { resolveOptionFilterTokens as nr } from "../../lib/option-filter-tokens.js";
44
+ const lt = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger", "number"]), rr = /* @__PURE__ */ new Set(["string", "text", "richtext", "textarea", "markdown", "json", "csv"]), or = /* @__PURE__ */ new Set([
44
45
  "input",
45
46
  "textarea",
46
47
  "wysiwyg",
@@ -48,7 +49,7 @@ const lt = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger",
48
49
  "input-rich-text-html",
49
50
  "rich_text",
50
51
  "extension-editorjs"
51
- ]), or = /* @__PURE__ */ new Set([
52
+ ]), ir = /* @__PURE__ */ new Set([
52
53
  "relation-m2o",
53
54
  "relation-m2m",
54
55
  "select-multiple-m2m",
@@ -59,15 +60,15 @@ const lt = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger",
59
60
  "file",
60
61
  "files",
61
62
  "image"
62
- ]), ir = /* @__PURE__ */ new Set(["file", "file-image", "files-m2m", "files", "image"]);
63
- function lr(p) {
63
+ ]), lr = /* @__PURE__ */ new Set(["file", "file-image", "files-m2m", "files", "image"]);
64
+ function ar(p) {
64
65
  const e = p.interface ?? "";
65
- return or.has(e) || e.startsWith("relation-") || e.endsWith("-m2o") || e.endsWith("-m2m") || lt.has(p.type ?? "") ? !1 : !!(nr.has(p.type ?? "") || rr.has(e) || !e && p.type && !lt.has(p.type));
66
+ return ir.has(e) || e.startsWith("relation-") || e.endsWith("-m2o") || e.endsWith("-m2m") || lt.has(p.type ?? "") ? !1 : !!(rr.has(p.type ?? "") || or.has(e) || !e && p.type && !lt.has(p.type));
66
67
  }
67
- function ar(p, e, s) {
68
+ function sr(p, e, s) {
68
69
  return p.filter((h) => (s == null ? void 0 : s(h)) !== e);
69
70
  }
70
- function sr(p, e, s, h) {
71
+ function cr(p, e, s, h) {
71
72
  const x = ue();
72
73
  return se({
73
74
  queryKey: ["field-lineage", p, e, s],
@@ -78,7 +79,7 @@ function sr(p, e, s, h) {
78
79
  staleTime: 3e4
79
80
  });
80
81
  }
81
- function eo(p, e = "rows") {
82
+ function no(p, e = "rows") {
82
83
  var r, w, g;
83
84
  if (p && (p.kind === "write" || p.kind === "read") && p.formula) {
84
85
  const d = (b) => typeof b == "number" ? b.toLocaleString(void 0, { maximumFractionDigits: 2 }) : b == null || b === "" ? "0" : String(b);
@@ -99,12 +100,12 @@ function eo(p, e = "rows") {
99
100
  `${h} excluded${x ? ` (${x.replace(/^does not match: /, "")})` : ""}`
100
101
  ), c.join(" · ");
101
102
  }
102
- function cr({
103
+ function dr({
103
104
  collection: p,
104
105
  itemId: e,
105
106
  field: s
106
107
  }) {
107
- const [h, x] = Le(!1), c = L(null), { data: r, isLoading: w } = sr(p, e, s, h);
108
+ const [h, x] = Le(!1), c = L(null), { data: r, isLoading: w } = cr(p, e, s, h);
108
109
  ce(() => {
109
110
  if (!h) return;
110
111
  const a = (b) => {
@@ -217,7 +218,7 @@ function cr({
217
218
  ] })
218
219
  ] });
219
220
  }
220
- function dr({
221
+ function ur({
221
222
  collection: p,
222
223
  itemId: e,
223
224
  field: s,
@@ -238,7 +239,7 @@ function dr({
238
239
  };
239
240
  return window.addEventListener("mousedown", i), () => window.removeEventListener("mousedown", i);
240
241
  }, [r]);
241
- const b = (i, f) => f || (i == null || i === "" ? "—" : h ? h(i) : typeof i == "boolean" || i === "true" || i === "false" ? i === !0 || i === "true" ? "Yes" : "No" : typeof i == "string" && /^\d{4}-\d{2}-\d{2}$/.test(i) ? ln(i) : typeof i == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(i) ? Re(i) : typeof i == "object" ? JSON.stringify(i).slice(0, 60) : String(i).slice(0, 80));
242
+ const b = (i, f) => f || (i == null || i === "" ? "—" : h ? h(i) : typeof i == "boolean" || i === "true" || i === "false" ? i === !0 || i === "true" ? "Yes" : "No" : typeof i == "string" && /^\d{4}-\d{2}-\d{2}$/.test(i) ? an(i) : typeof i == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(i) ? Re(i) : typeof i == "object" ? JSON.stringify(i).slice(0, 60) : String(i).slice(0, 80));
242
243
  return /* @__PURE__ */ m("div", { ref: g, className: "relative inline-flex", children: [
243
244
  /* @__PURE__ */ n(
244
245
  "button",
@@ -299,7 +300,7 @@ function dr({
299
300
  ] })
300
301
  ] });
301
302
  }
302
- function ur({
303
+ function mr({
303
304
  collection: p,
304
305
  itemId: e,
305
306
  field: s
@@ -338,7 +339,7 @@ function ur({
338
339
  }
339
340
  ) : null;
340
341
  }
341
- const to = Yt(function({
342
+ const ro = Yt(function({
342
343
  field: e,
343
344
  draft: s,
344
345
  onChange: h,
@@ -357,13 +358,13 @@ const to = Yt(function({
357
358
  autoFillTick: me
358
359
  }) {
359
360
  var Qe, Ge, Ye, Je, Xe, Ze;
360
- const G = ir.has(e.interface ?? ""), _ = Xt(), y = Pn(), Se = at(), pe = ue(), [$e, Y] = Le(!1), l = yn(), he = mn(), Te = an(e.field), J = L(null), M = Jt(), fe = L(null), qe = L(!1), Ae = L({
361
+ const G = lr.has(e.interface ?? ""), _ = Xt(), y = En(), Se = at(), pe = ue(), [$e, Y] = Le(!1), l = bn(), he = pn(), Te = sn(e.field), J = L(null), M = Jt(), fe = L(null), qe = L(!1), Ae = L({
361
362
  required: !1,
362
363
  hasError: !1
363
364
  });
364
365
  ce(() => {
365
- const t = qe.current ? Cn(fe.current) : null;
366
- if (!t || (Rn(t, { ...Ae.current, errorId: `${M}-error` }), t.hasAttribute("aria-label"))) return;
366
+ const t = qe.current ? Rn(fe.current) : null;
367
+ if (!t || (Ln(t, { ...Ae.current, errorId: `${M}-error` }), t.hasAttribute("aria-label"))) return;
367
368
  t.id || (t.id = `${M}-control`);
368
369
  const o = t.tagName === "BUTTON" ? `${M} ${t.id}` : M;
369
370
  t.getAttribute("aria-labelledby") !== o && t.setAttribute("aria-labelledby", o);
@@ -395,7 +396,7 @@ const to = Yt(function({
395
396
  isOpen: ft,
396
397
  confirmSaveFrom: xt,
397
398
  openedBy: xe
398
- } = bn({
399
+ } = gn({
399
400
  wrapperRef: J,
400
401
  field: e,
401
402
  value: s[e.field],
@@ -404,12 +405,12 @@ const to = Yt(function({
404
405
  itemId: r,
405
406
  openRelated: l == null ? void 0 : l.openRelated,
406
407
  editable: De
407
- }), yt = on(), bt = pn(c, r, e.field), D = gn(J, {
408
- off: !!yt && !!bt && hn(e)
409
- }), ye = tn(c, r && r !== "new" ? r : null), gt = On(), S = l == null ? void 0 : l.remoteChanges[e.field], K = l == null ? void 0 : l.lockReasons[e.field], P = l == null ? void 0 : l.applyToLines[e.field], He = (Qe = l == null ? void 0 : l.duplicates) == null ? void 0 : Qe[e.field], H = Mn(), Z = H == null ? void 0 : H.fields[e.field], vt = H == null ? void 0 : H.hints[e.field], R = er(), wt = (R == null ? void 0 : R.applied(e.field)) ?? !1, Oe = (R == null ? void 0 : R.hintFor(e.field)) ?? null, be = En(R, e.field, De), ge = () => {
408
+ }), yt = ln(), bt = hn(c, r, e.field), D = vn(J, {
409
+ off: !!yt && !!bt && fn(e)
410
+ }), ye = tn(c, r && r !== "new" ? r : null), gt = Kn(), S = l == null ? void 0 : l.remoteChanges[e.field], K = l == null ? void 0 : l.lockReasons[e.field], P = l == null ? void 0 : l.applyToLines[e.field], He = (Qe = l == null ? void 0 : l.duplicates) == null ? void 0 : Qe[e.field], H = Dn(), Z = H == null ? void 0 : H.fields[e.field], vt = H == null ? void 0 : H.hints[e.field], R = tr(), wt = (R == null ? void 0 : R.applied(e.field)) ?? !1, Oe = (R == null ? void 0 : R.hintFor(e.field)) ?? null, be = jn(R, e.field, De), ge = () => {
410
411
  var t, o;
411
412
  return ((t = fe.current) == null ? void 0 : t.querySelector(rt)) ?? ((o = J.current) == null ? void 0 : o.querySelector(rt));
412
- }, I = Zt(e._overrides, a, lr(e)), ve = !!(l != null && l.fromAutofill) && !!e._overrides && e._overrides[It] === !0;
413
+ }, I = Zt(e._overrides, a, ar(e)), ve = !!(l != null && l.fromAutofill) && !!e._overrides && e._overrides[It] === !0;
413
414
  async function kt() {
414
415
  var t;
415
416
  if (I.perField) return Nt();
@@ -445,12 +446,12 @@ const to = Yt(function({
445
446
  ), C = (u = N.data) == null ? void 0 : u.value;
446
447
  typeof C == "string" && C !== "" ? h(e.field, C) : de.info("The AI had nothing to write here"), (T = (k = N.data) == null ? void 0 : k.missing) != null && T.length && de.info(`Filled without ${N.data.missing.join(", ")} (empty or not visible to you)`);
447
448
  } catch (N) {
448
- rn(N, "AI fill failed", { action: "Fill with AI" });
449
+ on(N, "AI fill failed", { action: "Fill with AI" });
449
450
  } finally {
450
451
  Y(!1);
451
452
  }
452
453
  }
453
- const E = Ln(e.dependency_config), Ke = E.flatMap((t) => {
454
+ const E = Sn(e.dependency_config), Ke = E.flatMap((t) => {
454
455
  const o = x.find(
455
456
  (k) => k.one_collection === c && k.one_field === t.parent_field
456
457
  );
@@ -482,15 +483,15 @@ const to = Yt(function({
482
483
  (((N = _t[u]) == null ? void 0 : N.data) ?? []).filter((C) => !T.has(C.id)).map((C) => C[o.junction_field])
483
484
  ];
484
485
  })
485
- ), ee = dn()[e.field] ?? [];
486
- if (!st && (!g || !e.layout_assigned && (e.hidden || Sn.has(e.field))))
486
+ ), ee = un()[e.field] ?? [];
487
+ if (!st && (!g || !e.layout_assigned && (e.hidden || $n.has(e.field))))
487
488
  return null;
488
- const U = s[e.field] ?? null, te = Kn(e, gt), F = te.label ?? j(e.field);
489
+ const U = s[e.field] ?? null, te = Un(e, gt), F = te.label ?? j(e.field);
489
490
  qe.current = F !== "", Ae.current = {
490
491
  required: !!(e.required || tt(e.validation_rules, s)),
491
492
  hasError: !!w
492
493
  };
493
- const $ = it(e), Ue = $ ? null : Un(e), We = $ || !(r === "new" || !r || (Ge = _ == null ? void 0 : _.dirtyFields) != null && Ge.has(e.field)) ? null : In(e, s), Ct = !$ && !d && !e.readonly && ((Ye = e._overrides) == null ? void 0 : Ye.repeat_last) === !0, Rt = An(e, s), Lt = (Xe = (Je = $n(e.options)) == null ? void 0 : Je.auto_id) == null ? void 0 : Xe.pattern, v = (() => {
494
+ const $ = it(e), Ue = $ ? null : Wn(e), We = $ || !(r === "new" || !r || (Ge = _ == null ? void 0 : _.dirtyFields) != null && Ge.has(e.field)) ? null : er(e, s), Ct = !$ && !d && !e.readonly && ((Ye = e._overrides) == null ? void 0 : Ye.repeat_last) === !0, Rt = Pn(e, s), Lt = (Xe = (Je = Tn(e.options)) == null ? void 0 : Je.auto_id) == null ? void 0 : Xe.pattern, v = (() => {
494
495
  const t = x.find(
495
496
  (u) => u.one_collection === c && u.one_field === e.field
496
497
  );
@@ -510,7 +511,7 @@ const to = Yt(function({
510
511
  ]) ?? []).map((t) => t[v.junction_field]) : [], Ve = v ? Ne[0] ?? St[0] ?? null : U, _e = (ke == null ? void 0 : ke.one_collection) ?? (we == null ? void 0 : we.one_collection) ?? void 0, $t = !!Z && !d && !e.readonly && (v ? !(Z.filled || Ne.length > 0) : ot(U)), Tt = !!vt && !d && ot(U), ne = (t) => {
511
512
  var o;
512
513
  return ((_ == null ? void 0 : _.collection) === c ? (o = _ == null ? void 0 : _.fieldLabels) == null ? void 0 : o[t] : void 0) ?? j(String(t));
513
- }, A = Tn({
514
+ }, A = qn({
514
515
  rules: E,
515
516
  // A parent whose value THIS field's own pick derived must not narrow this
516
517
  // field's options — otherwise picking a region locks the region picker
@@ -538,9 +539,9 @@ const to = Yt(function({
538
539
  parentOptionFilter: (t) => {
539
540
  var u;
540
541
  const o = (_ == null ? void 0 : _.collection) === c ? (u = _.fieldOptionFilters) == null ? void 0 : u[t] : void 0;
541
- return o ? tr(o, s, r) : void 0;
542
+ return o ? nr(o, s, r) : void 0;
542
543
  }
543
- }), W = A.filter ? Xn(dt, A.filter, Zn) : A.filter, V = A.satisfiedParents.map(ne), re = A.satisfiedParents, qt = A.unsatisfiedParents.length ? ne(A.unsatisfiedParents[0]) : null, Fe = A.missingRequiredParents, ze = Fe.length ? ne(Fe[0]) : null;
544
+ }), W = A.filter ? Zn(dt, A.filter, In) : A.filter, V = A.satisfiedParents.map(ne), re = A.satisfiedParents, qt = A.unsatisfiedParents.length ? ne(A.unsatisfiedParents[0]) : null, Fe = A.missingRequiredParents, ze = Fe.length ? ne(Fe[0]) : null;
544
545
  function At() {
545
546
  const t = Me.current;
546
547
  if (t && t.src === e) return t.value;
@@ -548,7 +549,7 @@ const to = Yt(function({
548
549
  return Me.current = { src: e, value: o }, o;
549
550
  }
550
551
  function Pt() {
551
- const t = ar(
552
+ const t = sr(
552
553
  re,
553
554
  e.field,
554
555
  y == null ? void 0 : y.getDerivedOrigin
@@ -612,7 +613,7 @@ const to = Yt(function({
612
613
  children: [
613
614
  pt,
614
615
  E.length > 0 && /* @__PURE__ */ n(
615
- qn,
616
+ An,
616
617
  {
617
618
  cascadeRules: E,
618
619
  cascadeFilter: W,
@@ -628,19 +629,28 @@ const to = Yt(function({
628
629
  className: "flex flex-wrap items-center gap-1.5 min-h-[1.5rem]",
629
630
  "data-pd-row": be ? "" : void 0,
630
631
  children: [
631
- F !== "" && /* @__PURE__ */ m(cn, { id: M, "data-field-label": !0, className: "text-sm font-medium", children: [
632
+ F !== "" && /* @__PURE__ */ m(dn, { id: M, "data-field-label": !0, className: "text-sm font-medium", children: [
632
633
  /* @__PURE__ */ n(nt, { text: F, collection: c }),
633
634
  (e.required || tt(e.validation_rules, s)) && /* @__PURE__ */ n("span", { className: "ml-0.5 text-destructive", children: "*" }),
634
- Wn(e) && /* @__PURE__ */ n(Vn, {})
635
+ Vn(e) && /* @__PURE__ */ n(zn, {})
635
636
  ] }),
636
- $t && Z && /* @__PURE__ */ n(Dn, { field: e.field, mark: Z }),
637
+ S && !S.conflict && /* @__PURE__ */ n(
638
+ Jn,
639
+ {
640
+ change: S,
641
+ now: s[e.field],
642
+ field: e,
643
+ relatedCollection: _e ?? null,
644
+ onDismiss: () => l == null ? void 0 : l.dismissRemoteChange(e.field)
645
+ }
646
+ ),
637
647
  te.note && /* @__PURE__ */ n(oe, { delayDuration: 100, children: /* @__PURE__ */ m(ie, { children: [
638
648
  /* @__PURE__ */ n(le, { asChild: !0, children: /* @__PURE__ */ n(Dt, { className: "h-3.5 w-3.5 shrink-0 cursor-help text-slate-400 hover:text-slate-600" }) }),
639
649
  /* @__PURE__ */ n(ae, { side: "top", className: "max-w-[240px] text-[12px]", children: (l == null ? void 0 : l.glossaryHelp) === !1 ? te.note : /* @__PURE__ */ n(nt, { text: te.note, collection: c }) })
640
650
  ] }) }),
641
- Te && /* @__PURE__ */ n(sn, { source: Te, label: F }),
651
+ Te && /* @__PURE__ */ n(cn, { source: Te, label: F }),
642
652
  !$ && r && r !== "new" && /* @__PURE__ */ n(
643
- dr,
653
+ ur,
644
654
  {
645
655
  collection: c,
646
656
  itemId: r,
@@ -648,8 +658,8 @@ const to = Yt(function({
648
658
  onRestore: e.readonly ? void 0 : (t) => h(e.field, t)
649
659
  }
650
660
  ),
651
- !$ && r && r !== "new" && /* @__PURE__ */ n(ur, { collection: c, itemId: r, field: e.field }),
652
- !$ && r && r !== "new" && /* @__PURE__ */ n(kn, { field: e.field, label: F || j(e.field) }),
661
+ !$ && r && r !== "new" && /* @__PURE__ */ n(mr, { collection: c, itemId: r, field: e.field }),
662
+ !$ && r && r !== "new" && /* @__PURE__ */ n(Nn, { field: e.field, label: F || j(e.field) }),
653
663
  r && r !== "new" && ye.length > 0 && // Realtime round 7 #4 — "Point Beth to this field": opens the field menu, whose
654
664
  // Point items name each person on the record now. Revealed on hover/focus; the
655
665
  // slot is kept (opacity) so the row never shifts.
@@ -669,9 +679,9 @@ const to = Yt(function({
669
679
  children: /* @__PURE__ */ n(Ht, { className: "h-3 w-3" })
670
680
  }
671
681
  ),
672
- r && r !== "new" && Rt && /* @__PURE__ */ n(cr, { collection: c, itemId: r, field: e.field }),
682
+ r && r !== "new" && Rt && /* @__PURE__ */ n(dr, { collection: c, itemId: r, field: e.field }),
673
683
  Ct && /* @__PURE__ */ n(
674
- zn,
684
+ Qn,
675
685
  {
676
686
  collection: c,
677
687
  itemId: r,
@@ -742,7 +752,7 @@ const to = Yt(function({
742
752
  ] })
743
753
  ] }) }),
744
754
  /* @__PURE__ */ n(
745
- Fn,
755
+ Cn,
746
756
  {
747
757
  collection: c,
748
758
  kind: "field",
@@ -750,17 +760,7 @@ const to = Yt(function({
750
760
  label: F
751
761
  }
752
762
  ),
753
- S && !S.conflict && /* @__PURE__ */ n(
754
- Yn,
755
- {
756
- change: S,
757
- now: s[e.field],
758
- field: e,
759
- relatedCollection: _e ?? null,
760
- onDismiss: () => l == null ? void 0 : l.dismissRemoteChange(e.field)
761
- }
762
- ),
763
- (d || e.readonly) && K ? /* @__PURE__ */ n(vn, { reason: K, onHover: l == null ? void 0 : l.onLockHover }) : d ? /* @__PURE__ */ n(oe, { delayDuration: 200, children: /* @__PURE__ */ m(ie, { children: [
763
+ (d || e.readonly) && K ? /* @__PURE__ */ n(wn, { reason: K, onHover: l == null ? void 0 : l.onLockHover }) : d ? /* @__PURE__ */ n(oe, { delayDuration: 200, children: /* @__PURE__ */ m(ie, { children: [
764
764
  /* @__PURE__ */ n(le, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "inline-flex items-center text-amber-400 dark:text-amber-500", children: /* @__PURE__ */ n(Ut, { className: "h-3 w-3" }) }) }),
765
765
  /* @__PURE__ */ n(ae, { side: "top", className: "text-[12px]", children: "This field is locked" })
766
766
  ] }) }) : null,
@@ -788,7 +788,7 @@ const to = Yt(function({
788
788
  !$ && r && r !== "new" && e.type !== "alias" && !e.field.startsWith("__") && // Realtime round 7 #7 — where the value came from ("Set by ERP Sync · 2 m ago"):
789
789
  // while it has just changed live, and when the pointer rests on the field.
790
790
  /* @__PURE__ */ n(
791
- _n,
791
+ Fn,
792
792
  {
793
793
  collection: c,
794
794
  itemId: r,
@@ -801,7 +801,7 @@ const to = Yt(function({
801
801
  // Shift+F10 still open the field menu). The slot keeps one box whatever it shows,
802
802
  // so nothing to its left moves.
803
803
  /* @__PURE__ */ n("span", { className: "ml-auto inline-flex shrink-0 items-center gap-1", children: /* @__PURE__ */ n(
804
- jn,
804
+ Bn,
805
805
  {
806
806
  field: e.field,
807
807
  label: F,
@@ -830,7 +830,7 @@ const to = Yt(function({
830
830
  }
831
831
  ),
832
832
  D.editor && !d && /* @__PURE__ */ n(
833
- wn,
833
+ kn,
834
834
  {
835
835
  editor: D.editor,
836
836
  confirming: D.confirming,
@@ -861,8 +861,8 @@ const to = Yt(function({
861
861
  w && "nvr-shake ring-1 ring-red-400 rounded-md",
862
862
  me && "nvr-autofill-glow"
863
863
  ),
864
- children: $ ? /* @__PURE__ */ n(Qn, { field: e, values: s }) : Lt ? /* @__PURE__ */ n(
865
- un,
864
+ children: $ ? /* @__PURE__ */ n(Gn, { field: e, values: s }) : Lt ? /* @__PURE__ */ n(
865
+ mn,
866
866
  {
867
867
  collection: c,
868
868
  field: e,
@@ -881,7 +881,7 @@ const to = Yt(function({
881
881
  unsatisfiedParentLabel: qt,
882
882
  requiredParentLabel: ze
883
883
  }) : /* @__PURE__ */ n(
884
- Nn,
884
+ _n,
885
885
  {
886
886
  field: d && G ? At() : e,
887
887
  value: U,
@@ -900,15 +900,17 @@ const to = Yt(function({
900
900
  )
901
901
  }
902
902
  ),
903
- Ue && /* @__PURE__ */ n(Gn, { value: s[e.field], config: Ue }),
903
+ Ue && /* @__PURE__ */ n(Yn, { value: s[e.field], config: Ue }),
904
904
  r && r !== "new" && // rt9 #10: "Moved 2 days later because PO due date changed" when the app re-derived it.
905
905
  /* @__PURE__ */ n(
906
- fn,
906
+ xn,
907
907
  {
908
908
  collection: c,
909
909
  itemId: r,
910
910
  field: e.field,
911
- type: e.type
911
+ type: e.type,
912
+ currency: rn(e),
913
+ value: s[e.field] ?? null
912
914
  }
913
915
  ),
914
916
  w && // The message under the field: a red border alone never said WHY (Service End before
@@ -944,10 +946,14 @@ const to = Yt(function({
944
946
  }
945
947
  ),
946
948
  Tt && /* @__PURE__ */ n(Hn, { field: e.field, label: F || j(e.field) }),
947
- Oe && !wt && /* @__PURE__ */ n(Bn, { field: e.field, text: Oe }),
948
- He && /* @__PURE__ */ n(xn, { field: e.field, hint: He }),
949
+ $t && Z && // Under the input, where the partner hint sits — never in the label line, where it
950
+ // wrapped onto a line of its own (or truncated to "Needed by M…") and pushed this
951
+ // input below its row neighbours (idea-43 review).
952
+ /* @__PURE__ */ n("div", { className: "flex min-w-0", children: /* @__PURE__ */ n(On, { field: e.field, mark: Z }) }),
953
+ Oe && !wt && /* @__PURE__ */ n(Mn, { field: e.field, text: Oe }),
954
+ He && /* @__PURE__ */ n(yn, { field: e.field, hint: He }),
949
955
  (S == null ? void 0 : S.conflict) && /* @__PURE__ */ n(
950
- Jn,
956
+ Xn,
951
957
  {
952
958
  change: S,
953
959
  mine: s[e.field],
@@ -971,9 +977,9 @@ const to = Yt(function({
971
977
  );
972
978
  });
973
979
  export {
974
- to as FieldRow,
975
- ar as clearableParents,
976
- lr as isAiEligible,
977
- eo as lineageSummary,
978
- sr as useFieldLineage
980
+ ro as FieldRow,
981
+ sr as clearableParents,
982
+ ar as isAiEligible,
983
+ no as lineageSummary,
984
+ cr as useFieldLineage
979
985
  };
@@ -1,80 +1,74 @@
1
- import { jsx as h, jsxs as x } from "react/jsx-runtime";
2
- import { useQuery as k } from "@tanstack/react-query";
3
- import { useRef as S, useState as E, useEffect as T } from "react";
4
- import { useNivaroClient as N } from "../../context.js";
5
- import { get as q } from "../../lib/commands.js";
6
- import { useLivePreference as R } from "../../lib/live-preference.js";
7
- import { cn as y, formatRelative as $, formatDateTime as C } from "../../lib/utils.js";
8
- const j = 450;
9
- function D(t) {
1
+ import { jsx as v, jsxs as x } from "react/jsx-runtime";
2
+ import { useQuery as E } from "@tanstack/react-query";
3
+ import { useRef as g, useState as N, useEffect as R } from "react";
4
+ import { useNivaroClient as T } from "../../context.js";
5
+ import { get as k } from "../../lib/commands.js";
6
+ import { useLivePreference as $ } from "../../lib/live-preference.js";
7
+ import { formatRelative as q, cn as C, formatDateTime as D } from "../../lib/utils.js";
8
+ const _ = 450;
9
+ function K(e) {
10
10
  var s;
11
- if (t.via === "outside") return "Changed outside the app";
12
- if ((s = t.caller) != null && s.name) return `Set by ${t.caller.name}`;
13
- const r = String(t.who ?? "").trim();
14
- return t.via === "system" && (!r || r.toLowerCase() === "system") ? "Set by the system" : `Set by ${r || "someone"}`;
11
+ if (e.via === "outside") return "Changed outside the app";
12
+ if ((s = e.caller) != null && s.name) return `Set by ${e.caller.name}`;
13
+ const r = String(e.who ?? "").trim();
14
+ return e.via === "system" && (!r || r.toLowerCase() === "system") ? "Set by the system" : `Set by ${r || "someone"}`;
15
15
  }
16
- function P({
17
- collection: t,
16
+ function U({
17
+ collection: e,
18
18
  itemId: r,
19
19
  field: s,
20
- live: b
20
+ live: y
21
21
  }) {
22
- const g = N(), i = S(null), [w, l] = E(!1), { quiet: L } = R(), c = !!b && !L;
23
- T(() => {
24
- var v;
25
- const a = (v = i.current) == null ? void 0 : v.closest("[data-field]");
26
- if (!a) return;
22
+ const w = T(), i = g(null), [S, c] = N(!1), { quiet: L } = $(), l = !!y && !L;
23
+ R(() => {
24
+ var h;
25
+ const o = (h = i.current) == null ? void 0 : h.closest("[data-field]");
26
+ if (!o) return;
27
27
  let n = null;
28
- const f = () => {
29
- n && clearTimeout(n), n = setTimeout(() => l(!0), j);
30
- }, p = () => {
31
- n && clearTimeout(n), n = null, l(!1);
28
+ const m = () => {
29
+ n && clearTimeout(n), n = setTimeout(() => c(!0), _);
30
+ }, f = () => {
31
+ n && clearTimeout(n), n = null, c(!1);
32
32
  };
33
- return a.addEventListener("pointerenter", f), a.addEventListener("pointerleave", p), () => {
34
- n && clearTimeout(n), a.removeEventListener("pointerenter", f), a.removeEventListener("pointerleave", p);
33
+ return o.addEventListener("pointerenter", m), o.addEventListener("pointerleave", f), () => {
34
+ n && clearTimeout(n), o.removeEventListener("pointerenter", m), o.removeEventListener("pointerleave", f);
35
35
  };
36
36
  }, []);
37
- const u = (w || c) && !!r && r !== "new", { data: o } = k({
37
+ const u = (S || l) && !!r && r !== "new", { data: a } = E({
38
38
  // The same key shape HeaderFreshness uses for one field: answers are shared.
39
- queryKey: ["field-touch", t, r, s],
40
- queryFn: () => g.request(
41
- q("/revisions/field-touch", { collection: t, item: r, fields: s })
42
- ).then((a) => a.data ?? {}),
39
+ queryKey: ["field-touch", e, r, s],
40
+ queryFn: () => w.request(
41
+ k("/revisions/field-touch", { collection: e, item: r, fields: s })
42
+ ).then((o) => o.data ?? {}),
43
43
  enabled: u,
44
44
  staleTime: 6e4
45
- }), e = o == null ? void 0 : o[s], d = u && !!e, m = e ? D(e) : "";
46
- return /* @__PURE__ */ h(
45
+ }), t = a == null ? void 0 : a[s], p = u && !!t, d = t ? K(t) : "", b = t ? O(t.via) : "person";
46
+ return /* @__PURE__ */ v(
47
47
  "span",
48
48
  {
49
49
  ref: i,
50
50
  "data-field-source-anchor": "",
51
51
  className: "pointer-events-none relative h-4 min-w-0 flex-1 basis-0",
52
- "aria-hidden": !d,
53
- children: d && e && /* @__PURE__ */ x(
52
+ "aria-hidden": !p,
53
+ children: p && t && // Text only, right after the label's own icons: the field's one dot is the live-change
54
+ // mark beside it (its tip says who changed it). What kind of source this is — a person,
55
+ // a process, outside the app — is in this badge's tooltip. It never leaves its anchor
56
+ // (the label row's free space): on a narrow row the sentence truncates, whole in the tip.
57
+ /* @__PURE__ */ x(
54
58
  "span",
55
59
  {
56
60
  "data-field-source": s,
57
- "data-field-source-via": e.via,
58
- className: y(
59
- "nvr-fade-in absolute right-0 top-1/2 inline-flex -translate-y-1/2 items-center gap-1 whitespace-nowrap rounded-full bg-white py-px pl-2 pr-0.5 text-[10.5px] leading-4 dark:bg-card",
60
- c ? "text-sky-700 dark:text-sky-300" : "text-slate-500 dark:text-slate-400"
61
+ "data-field-source-via": t.via,
62
+ "data-tip": `${d} · ${D(t.at)} — ${j[b]}`,
63
+ className: C(
64
+ "nvr-fade-in pointer-events-auto absolute top-1/2 left-0 inline-flex max-w-full -translate-y-1/2 items-center gap-1 whitespace-nowrap rounded-full py-px pr-1 pl-1 text-[10.5px] leading-4 text-slate-500 dark:text-slate-400",
65
+ l && "text-slate-600 dark:text-slate-300"
61
66
  ),
62
- title: `${m} · ${C(e.at)}`,
63
67
  children: [
64
- /* @__PURE__ */ h(
65
- "span",
66
- {
67
- "aria-hidden": !0,
68
- className: y(
69
- "h-1.5 w-1.5 shrink-0 rounded-full",
70
- e.via === "user" ? "bg-slate-300 dark:bg-slate-500" : e.via === "outside" ? "bg-rose-400" : "bg-amber-400"
71
- )
72
- }
73
- ),
74
- m,
75
- /* @__PURE__ */ x("span", { className: "text-slate-400 dark:text-slate-500", children: [
68
+ /* @__PURE__ */ v("span", { className: "min-w-0 truncate", children: d }),
69
+ /* @__PURE__ */ x("span", { className: "shrink-0 text-slate-400 dark:text-slate-500", children: [
76
70
  "· ",
77
- $(e.at)
71
+ q(t.at)
78
72
  ] })
79
73
  ]
80
74
  }
@@ -82,7 +76,15 @@ function P({
82
76
  }
83
77
  );
84
78
  }
79
+ function O(e) {
80
+ return e === "user" ? "person" : e === "outside" ? "outside" : "process";
81
+ }
82
+ const j = {
83
+ person: "a person set it in the app",
84
+ process: "set by a process (sync, import, procedure or the system), not a person",
85
+ outside: "changed directly in the database, outside the app"
86
+ };
85
87
  export {
86
- P as FieldSourceBadge,
87
- D as sourceSentence
88
+ U as FieldSourceBadge,
89
+ K as sourceSentence
88
90
  };