@nivaro/react 0.3.116 → 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.
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +140 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3855 -3785
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4220 -4175
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ReportView.js +1086 -1091
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/cbv/column-totals.js +62 -57
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/charts/category-axis.js +93 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +54 -53
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +94 -85
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +320 -299
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/use-query-entry.js +17 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- 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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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
|
|
16
|
-
import { Label as
|
|
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
|
|
19
|
-
import { AutoIdPreviewField as
|
|
20
|
-
import { useCascadeClearNotifier as
|
|
21
|
-
import { useCoeditTarget as
|
|
22
|
-
import { DerivedCauseNote as
|
|
23
|
-
import { DuplicateNotice as
|
|
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
|
|
26
|
-
import { FieldCommentButton as
|
|
27
|
-
import { FieldRenderer as
|
|
28
|
-
import { FieldSourceBadge as
|
|
29
|
-
import { FormHelpVideoButton as
|
|
30
|
-
import { primaryControl as
|
|
31
|
-
import { getCascadeFilters as
|
|
32
|
-
import { isDerivedForRecord as
|
|
33
|
-
import { useM2MStaging as
|
|
34
|
-
import { personalDefaultSlotFor as
|
|
35
|
-
import { PersonalDefaultHint as
|
|
36
|
-
import { usePartnerNeeds as
|
|
37
|
-
import { isDisplayFormulaRow as it, usePlacementTextContext as
|
|
38
|
-
import { RemoteChangeMark as
|
|
39
|
-
import { keepIfEqual as
|
|
40
|
-
import { softRuleWarning as
|
|
41
|
-
import { usePersonalDefaultsApi as
|
|
42
|
-
import { resolveOptionFilterTokens as
|
|
43
|
-
const lt = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger", "number"]),
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
63
|
-
function
|
|
63
|
+
]), lr = /* @__PURE__ */ new Set(["file", "file-image", "files-m2m", "files", "image"]);
|
|
64
|
+
function ar(p) {
|
|
64
65
|
const e = p.interface ?? "";
|
|
65
|
-
return
|
|
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
|
|
68
|
+
function sr(p, e, s) {
|
|
68
69
|
return p.filter((h) => (s == null ? void 0 : s(h)) !== e);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
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
|
|
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
|
|
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 } =
|
|
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
|
|
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) ?
|
|
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
|
|
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
|
|
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 =
|
|
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 ?
|
|
366
|
-
if (!t || (
|
|
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
|
-
} =
|
|
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 =
|
|
408
|
-
off: !!yt && !!bt &&
|
|
409
|
-
}), ye = tn(c, r && r !== "new" ? r : null), gt =
|
|
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,
|
|
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
|
-
|
|
449
|
+
on(N, "AI fill failed", { action: "Fill with AI" });
|
|
449
450
|
} finally {
|
|
450
451
|
Y(!1);
|
|
451
452
|
}
|
|
452
453
|
}
|
|
453
|
-
const E =
|
|
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 =
|
|
486
|
-
if (!st && (!g || !e.layout_assigned && (e.hidden ||
|
|
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 =
|
|
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 :
|
|
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 =
|
|
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 ?
|
|
542
|
+
return o ? nr(o, s, r) : void 0;
|
|
542
543
|
}
|
|
543
|
-
}), W = A.filter ?
|
|
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 =
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
635
|
+
Vn(e) && /* @__PURE__ */ n(zn, {})
|
|
635
636
|
] }),
|
|
636
|
-
|
|
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(
|
|
651
|
+
Te && /* @__PURE__ */ n(cn, { source: Te, label: F }),
|
|
642
652
|
!$ && r && r !== "new" && /* @__PURE__ */ n(
|
|
643
|
-
|
|
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(
|
|
652
|
-
!$ && r && r !== "new" && /* @__PURE__ */ n(
|
|
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(
|
|
682
|
+
r && r !== "new" && Rt && /* @__PURE__ */ n(dr, { collection: c, itemId: r, field: e.field }),
|
|
673
683
|
Ct && /* @__PURE__ */ n(
|
|
674
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
865
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
948
|
-
|
|
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
|
-
|
|
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
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
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
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useNivaroClient as
|
|
5
|
-
import { get as
|
|
6
|
-
import { useLivePreference as
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
function
|
|
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 (
|
|
12
|
-
if ((s =
|
|
13
|
-
const r = String(
|
|
14
|
-
return
|
|
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
|
|
17
|
-
collection:
|
|
16
|
+
function U({
|
|
17
|
+
collection: e,
|
|
18
18
|
itemId: r,
|
|
19
19
|
field: s,
|
|
20
|
-
live:
|
|
20
|
+
live: y
|
|
21
21
|
}) {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
const
|
|
26
|
-
if (!
|
|
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
|
|
29
|
-
n && clearTimeout(n), n = setTimeout(() =>
|
|
30
|
-
},
|
|
31
|
-
n && clearTimeout(n), n = null,
|
|
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
|
|
34
|
-
n && clearTimeout(n),
|
|
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 = (
|
|
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",
|
|
40
|
-
queryFn: () =>
|
|
41
|
-
|
|
42
|
-
).then((
|
|
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
|
-
}),
|
|
46
|
-
return /* @__PURE__ */
|
|
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": !
|
|
53
|
-
children:
|
|
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":
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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__ */
|
|
65
|
-
|
|
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
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
+
U as FieldSourceBadge,
|
|
89
|
+
K as sourceSentence
|
|
88
90
|
};
|