@nivaro/react 0.3.117 → 0.3.119
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 +136 -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 +3757 -3695
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4451 -4385
- 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/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/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/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 +135 -94
- 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 +88 -85
- 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 +245 -141
- 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 +15 -16
- 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/addendum-view.js +6 -0
- 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 +151 -130
- 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/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
- 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/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,153 +1,163 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useQueryClient as
|
|
3
|
-
import { FileDiff as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useNivaroClient as
|
|
6
|
-
import { get as
|
|
7
|
-
import { useLiveRecordQueries as
|
|
8
|
-
import { cn as
|
|
9
|
-
import { Popover as F, PopoverTrigger as
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { jsxs as o, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { useQueryClient as S, useQuery as $ } from "@tanstack/react-query";
|
|
3
|
+
import { FileDiff as A, ArrowRight as L } from "lucide-react";
|
|
4
|
+
import { useState as w, useRef as R, useCallback as j, useEffect as D } from "react";
|
|
5
|
+
import { useNivaroClient as O } from "../../context.js";
|
|
6
|
+
import { get as E } from "../../lib/commands.js";
|
|
7
|
+
import { useLiveRecordQueries as P } from "../../lib/live.js";
|
|
8
|
+
import { cn as v, formatDateTime as m, formatRelative as N, toLocalDateString as _ } from "../../lib/utils.js";
|
|
9
|
+
import { Popover as F, PopoverTrigger as q, PopoverContent as M } from "../ui/popover.js";
|
|
10
|
+
import { richTextToPlain as Q } from "./helpers.js";
|
|
11
|
+
import { useLivePreference as U } from "../../lib/live-preference.js";
|
|
12
|
+
const Y = (e, l) => [
|
|
12
13
|
"approval-changes",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
],
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
if (
|
|
19
|
-
if (typeof
|
|
20
|
-
if (typeof
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
e,
|
|
15
|
+
l
|
|
16
|
+
], z = /^\d{4}-\d{2}-\d{2}(T00:00:00(\.0+)?Z)?$/, B = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/;
|
|
17
|
+
function y(e, l, s) {
|
|
18
|
+
if (l) return l;
|
|
19
|
+
if (e == null || e === "") return "Empty";
|
|
20
|
+
if (typeof e == "boolean") return e ? "Yes" : "No";
|
|
21
|
+
if (typeof e == "number") return e.toLocaleString("en-US", { maximumFractionDigits: 4 });
|
|
22
|
+
const d = Q(
|
|
23
|
+
typeof e == "object" && e !== null && !Array.isArray(e) ? JSON.stringify(e) : e
|
|
24
|
+
);
|
|
25
|
+
if (d !== null) return d === "" ? "Empty" : k(d);
|
|
26
|
+
if (typeof e == "object") return Array.isArray(e) ? `${e.length} items` : "Changed";
|
|
27
|
+
const a = String(e), n = String(s ?? "").toLowerCase();
|
|
28
|
+
return n === "date" || z.test(a) ? _(a) : B.test(a) ? m(a) : n === "boolean" && (a === "1" || a === "0") ? a === "1" ? "Yes" : "No" : /^-?\d+(\.\d+)?$/.test(a) && (n === "decimal" || n === "float" || n === "integer") ? Number(a).toLocaleString("en-US", { maximumFractionDigits: 4 }) : k(a);
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
const k = (e) => e.length > 80 ? `${e.slice(0, 77)}…` : e;
|
|
31
|
+
function H(e) {
|
|
32
|
+
return e.by.via === "outside" ? "Changed outside the app" : e.at ? `${e.by.name} · ${N(e.at)}` : e.by.name;
|
|
27
33
|
}
|
|
28
|
-
function
|
|
29
|
-
collection:
|
|
30
|
-
itemId:
|
|
31
|
-
enabled:
|
|
34
|
+
function ne({
|
|
35
|
+
collection: e,
|
|
36
|
+
itemId: l,
|
|
37
|
+
enabled: s
|
|
32
38
|
}) {
|
|
33
|
-
var
|
|
34
|
-
const
|
|
35
|
-
queryKey:
|
|
36
|
-
queryFn: () =>
|
|
37
|
-
|
|
38
|
-
).then((
|
|
39
|
-
enabled:
|
|
39
|
+
var b;
|
|
40
|
+
const d = O(), a = S(), n = U(), [c, C] = w(!1), f = Y(e, l), { data: t } = $({
|
|
41
|
+
queryKey: f,
|
|
42
|
+
queryFn: () => d.request(
|
|
43
|
+
E(`/approval-changes/record/${e}/${encodeURIComponent(l)}`)
|
|
44
|
+
).then((r) => r.data ?? null).catch(() => null),
|
|
45
|
+
enabled: s && !!l && l !== "new",
|
|
40
46
|
staleTime: 3e4
|
|
41
47
|
});
|
|
42
|
-
if (
|
|
43
|
-
client:
|
|
48
|
+
if (P(e, l, [f], {
|
|
49
|
+
client: a,
|
|
44
50
|
debounceMs: 1e3,
|
|
45
51
|
includeOwn: !0,
|
|
46
|
-
enabled:
|
|
47
|
-
}), !
|
|
48
|
-
const h =
|
|
52
|
+
enabled: s && !!(t != null && t.enabled)
|
|
53
|
+
}), !s || !(t != null && t.approved)) return null;
|
|
54
|
+
const h = t.total + ((b = t.lines) != null && b.count ? 1 : 0);
|
|
49
55
|
if (h === 0) return null;
|
|
50
|
-
const
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
56
|
+
const u = t.approved.by.map((r) => r.name), T = t.approved.state_label || t.approved.state, p = t.total - t.changes.length, x = t.total > 0 ? `${t.total} field${t.total === 1 ? "" : "s"} changed after approval` : "Lines changed after approval";
|
|
57
|
+
return /* @__PURE__ */ o(F, { open: c, onOpenChange: C, children: [
|
|
58
|
+
/* @__PURE__ */ i(q, { asChild: !0, children: /* @__PURE__ */ o(
|
|
53
59
|
"button",
|
|
54
60
|
{
|
|
55
61
|
type: "button",
|
|
56
62
|
"data-approval-changes-badge": !0,
|
|
57
|
-
"aria-label": `${
|
|
58
|
-
"data-tip":
|
|
59
|
-
className:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
+
"aria-label": `${x} — show what changed`,
|
|
64
|
+
"data-tip": x,
|
|
65
|
+
className: v(
|
|
66
|
+
// max-w-full: on a row narrower than the chip the label truncates; the record id
|
|
67
|
+
// beside it never gives way.
|
|
68
|
+
"inline-flex min-w-0 max-w-full shrink-0 items-center gap-1 rounded-full border px-2 py-px text-[10.5px] font-semibold",
|
|
69
|
+
// Violet, the approval hue — never the amber of the required-fields warning beside it.
|
|
70
|
+
"border-violet-300 bg-violet-50 text-violet-800 hover:bg-violet-100",
|
|
71
|
+
"dark:border-violet-400/40 dark:bg-violet-400/10 dark:text-violet-200 dark:hover:bg-violet-400/20",
|
|
63
72
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan",
|
|
64
|
-
|
|
73
|
+
n.normal && "nvr-fade-in"
|
|
65
74
|
),
|
|
66
75
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
"Changed after approval",
|
|
69
|
-
|
|
76
|
+
/* @__PURE__ */ i(A, { className: "h-3 w-3 shrink-0", "aria-hidden": !0 }),
|
|
77
|
+
/* @__PURE__ */ i("span", { className: "truncate", children: "Changed after approval" }),
|
|
78
|
+
t.total > 1 && /* @__PURE__ */ o("span", { className: "shrink-0 tabular-nums font-medium text-violet-700/80 dark:text-violet-200/70", children: [
|
|
70
79
|
"· ",
|
|
71
|
-
|
|
80
|
+
t.total
|
|
72
81
|
] })
|
|
73
82
|
]
|
|
74
83
|
},
|
|
75
|
-
|
|
84
|
+
n.normal ? h : void 0
|
|
76
85
|
) }),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
|
|
86
|
+
/* @__PURE__ */ o(
|
|
87
|
+
M,
|
|
79
88
|
{
|
|
80
89
|
align: "start",
|
|
81
|
-
|
|
90
|
+
collisionPadding: 16,
|
|
91
|
+
className: "flex max-h-[min(30rem,var(--radix-popover-content-available-height))] w-[min(26rem,calc(100vw-2rem))] flex-col overflow-hidden bg-white p-0 dark:bg-card",
|
|
82
92
|
"data-approval-changes-panel": !0,
|
|
83
93
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ o("div", { className: "shrink-0 border-b border-slate-200 px-3.5 pb-2.5 pt-3 dark:border-border", children: [
|
|
95
|
+
/* @__PURE__ */ i("p", { className: "text-[13px] font-semibold text-slate-900 dark:text-slate-50", children: "Changed after approval" }),
|
|
96
|
+
/* @__PURE__ */ o("p", { className: "mt-0.5 text-[11.5px] leading-snug text-slate-500 dark:text-slate-400", children: [
|
|
87
97
|
"Reached ",
|
|
88
|
-
|
|
98
|
+
T,
|
|
89
99
|
" on ",
|
|
90
|
-
|
|
91
|
-
|
|
100
|
+
m(t.approved.at),
|
|
101
|
+
u.length > 0 && /* @__PURE__ */ o(g, { children: [
|
|
92
102
|
" · approved by ",
|
|
93
|
-
|
|
103
|
+
u.slice(0, 3).join(", ")
|
|
94
104
|
] })
|
|
95
105
|
] })
|
|
96
106
|
] }),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ o(K, { children: [
|
|
108
|
+
t.changes.map((r) => /* @__PURE__ */ o("li", { className: "px-3.5 py-2.5", "data-approval-change": r.field, children: [
|
|
109
|
+
/* @__PURE__ */ o("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
110
|
+
/* @__PURE__ */ i("span", { className: "truncate text-[12px] font-medium text-slate-700 dark:text-slate-200", children: r.label }),
|
|
111
|
+
/* @__PURE__ */ i(
|
|
102
112
|
"span",
|
|
103
113
|
{
|
|
104
|
-
className:
|
|
114
|
+
className: v(
|
|
105
115
|
"shrink-0 text-[10.5px]",
|
|
106
|
-
|
|
116
|
+
r.by.via === "outside" ? "text-amber-700 dark:text-amber-300" : "text-slate-400 dark:text-slate-500"
|
|
107
117
|
),
|
|
108
|
-
"data-tip":
|
|
109
|
-
children:
|
|
118
|
+
"data-tip": r.at ? m(r.at) : void 0,
|
|
119
|
+
children: H(r)
|
|
110
120
|
}
|
|
111
121
|
)
|
|
112
122
|
] }),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
123
|
+
/* @__PURE__ */ o("div", { className: "mt-1 flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[12px]", children: [
|
|
124
|
+
r.before_known ? /* @__PURE__ */ i(
|
|
115
125
|
"span",
|
|
116
126
|
{
|
|
117
127
|
className: "min-w-0 break-words text-slate-500 line-through decoration-slate-300 dark:text-slate-400 dark:decoration-slate-600",
|
|
118
128
|
"data-tip": "Value when it was approved",
|
|
119
|
-
children:
|
|
129
|
+
children: y(r.before, r.before_text, r.type)
|
|
120
130
|
}
|
|
121
|
-
) : /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
131
|
+
) : /* @__PURE__ */ i("span", { className: "italic text-slate-400 dark:text-slate-500", children: "Approved value not recorded" }),
|
|
132
|
+
/* @__PURE__ */ i(
|
|
123
133
|
L,
|
|
124
134
|
{
|
|
125
135
|
className: "h-3 w-3 shrink-0 text-slate-400 dark:text-slate-500",
|
|
126
136
|
"aria-label": "now"
|
|
127
137
|
}
|
|
128
138
|
),
|
|
129
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ i("span", { className: "min-w-0 break-words font-semibold text-slate-900 dark:text-slate-50", children: y(r.after, r.after_text, r.type) })
|
|
130
140
|
] })
|
|
131
|
-
] },
|
|
132
|
-
|
|
133
|
-
|
|
141
|
+
] }, r.field)),
|
|
142
|
+
t.lines && /* @__PURE__ */ o("li", { className: "px-3.5 py-2.5 text-[12px] text-slate-600 dark:text-slate-300", children: [
|
|
143
|
+
t.lines.count,
|
|
134
144
|
" line change",
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
t.lines.count === 1 ? "" : "s",
|
|
146
|
+
t.lines.by && /* @__PURE__ */ o(g, { children: [
|
|
137
147
|
" · last by ",
|
|
138
|
-
|
|
148
|
+
t.lines.by
|
|
139
149
|
] }),
|
|
140
|
-
|
|
150
|
+
t.lines.at && /* @__PURE__ */ o("span", { className: "text-slate-400 dark:text-slate-500", children: [
|
|
141
151
|
" ",
|
|
142
152
|
"· ",
|
|
143
|
-
|
|
153
|
+
N(t.lines.at)
|
|
144
154
|
] })
|
|
145
155
|
] })
|
|
146
156
|
] }),
|
|
147
|
-
|
|
148
|
-
|
|
157
|
+
p > 0 && /* @__PURE__ */ o("p", { className: "shrink-0 border-t border-slate-200 px-3.5 py-2 text-[11px] text-slate-500 dark:border-border dark:text-slate-400", children: [
|
|
158
|
+
p,
|
|
149
159
|
" more field",
|
|
150
|
-
|
|
160
|
+
p === 1 ? "" : "s",
|
|
151
161
|
" changed — the record's history has every change."
|
|
152
162
|
] })
|
|
153
163
|
]
|
|
@@ -155,8 +165,39 @@ function W({
|
|
|
155
165
|
)
|
|
156
166
|
] });
|
|
157
167
|
}
|
|
168
|
+
function K({ children: e }) {
|
|
169
|
+
const l = R(null), [s, d] = w(!1), a = j(() => {
|
|
170
|
+
const n = l.current;
|
|
171
|
+
n && d(n.scrollHeight - n.scrollTop - n.clientHeight > 4);
|
|
172
|
+
}, []);
|
|
173
|
+
return D(() => {
|
|
174
|
+
a();
|
|
175
|
+
const n = l.current;
|
|
176
|
+
if (!n || typeof ResizeObserver > "u") return;
|
|
177
|
+
const c = new ResizeObserver(a);
|
|
178
|
+
return c.observe(n), () => c.disconnect();
|
|
179
|
+
}, [a]), /* @__PURE__ */ o("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
180
|
+
/* @__PURE__ */ i(
|
|
181
|
+
"ul",
|
|
182
|
+
{
|
|
183
|
+
ref: l,
|
|
184
|
+
onScroll: a,
|
|
185
|
+
className: "min-h-0 flex-1 divide-y divide-slate-100 overflow-y-auto overscroll-contain dark:divide-border",
|
|
186
|
+
children: e
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
s && /* @__PURE__ */ i(
|
|
190
|
+
"div",
|
|
191
|
+
{
|
|
192
|
+
"aria-hidden": !0,
|
|
193
|
+
className: "pointer-events-none absolute inset-x-0 bottom-0 flex h-10 items-end justify-center bg-gradient-to-t from-white via-white/90 to-transparent pb-1 dark:from-card dark:via-card/90",
|
|
194
|
+
children: /* @__PURE__ */ i("span", { className: "rounded-full bg-slate-100 px-2 py-px text-[10.5px] font-medium text-slate-600 dark:bg-muted dark:text-slate-300", children: "More below" })
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
] });
|
|
198
|
+
}
|
|
158
199
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
200
|
+
ne as ChangedAfterApprovalBadge,
|
|
201
|
+
Y as approvalChangesKey,
|
|
202
|
+
y as approvalValueText
|
|
162
203
|
};
|