@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.
- 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 +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/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 +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/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,27 +1,27 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useSensors as
|
|
3
|
-
import { sortableKeyboardCoordinates as
|
|
4
|
-
import { CSS as
|
|
5
|
-
import { X as
|
|
6
|
-
import { useDeadlineNow as
|
|
7
|
-
import { usePeekOrOpen as
|
|
8
|
-
import { serverNow as
|
|
9
|
-
import { spanText as
|
|
10
|
-
import { RecordHoverCard as
|
|
11
|
-
import { UserAvatar as
|
|
12
|
-
function
|
|
1
|
+
import { jsx as t, jsxs as r, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { useSensors as z, useSensor as T, PointerSensor as E, KeyboardSensor as K, DndContext as L, closestCenter as U } from "@dnd-kit/core";
|
|
3
|
+
import { sortableKeyboardCoordinates as B, SortableContext as F, verticalListSortingStrategy as G, useSortable as M } from "@dnd-kit/sortable";
|
|
4
|
+
import { CSS as q } from "@dnd-kit/utilities";
|
|
5
|
+
import { X as H, GripVertical as V, CircleCheck as X } from "lucide-react";
|
|
6
|
+
import { useDeadlineNow as W, dueInText as Y, liveDeadlineStatus as J } from "../../lib/deadline-ticker.js";
|
|
7
|
+
import { usePeekOrOpen as Q } from "../../lib/record-peek.js";
|
|
8
|
+
import { serverNow as Z } from "../../lib/server-clock.js";
|
|
9
|
+
import { spanText as N } from "../../lib/watch-list.js";
|
|
10
|
+
import { RecordHoverCard as A, cardAmountText as ee, ownerText as te } from "../RecordHoverCard.js";
|
|
11
|
+
import { UserAvatar as ae } from "../UserAvatar.js";
|
|
12
|
+
function P(e, s = Z()) {
|
|
13
13
|
if (!e) return "";
|
|
14
14
|
const n = new Date(e).getTime();
|
|
15
15
|
if (!Number.isFinite(n)) return "";
|
|
16
|
-
const a = Math.max(0, (
|
|
16
|
+
const a = Math.max(0, (s - n) / 1e3);
|
|
17
17
|
return a < 60 ? "now" : a < 3600 ? `${Math.floor(a / 60)} m` : a < 86400 ? `${Math.floor(a / 3600)} h` : a < 7 * 86400 ? `${Math.floor(a / 86400)} d` : new Date(n).toLocaleDateString(void 0, { month: "short", day: "numeric" });
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const ne = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((s) => {
|
|
20
20
|
var n;
|
|
21
|
-
return ((n =
|
|
21
|
+
return ((n = s[0]) == null ? void 0 : n.toUpperCase()) ?? "";
|
|
22
22
|
}).join("") || "?";
|
|
23
|
-
function
|
|
24
|
-
return e ? /* @__PURE__ */
|
|
23
|
+
function re({ state: e }) {
|
|
24
|
+
return e ? /* @__PURE__ */ r("span", { className: "inline-flex min-w-0 max-w-[140px] items-center gap-1.5 rounded-full bg-slate-100 px-1.5 py-px text-[11px] font-medium text-slate-700 dark:bg-white/[0.07] dark:text-slate-200", children: [
|
|
25
25
|
/* @__PURE__ */ t(
|
|
26
26
|
"span",
|
|
27
27
|
{
|
|
@@ -33,42 +33,43 @@ function A({ state: e }) {
|
|
|
33
33
|
/* @__PURE__ */ t("span", { className: "truncate", children: e.label })
|
|
34
34
|
] }) : null;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function le({
|
|
37
37
|
owners: e,
|
|
38
|
-
max:
|
|
38
|
+
max: s = 2
|
|
39
39
|
}) {
|
|
40
40
|
if (e.length === 0) return null;
|
|
41
|
-
const n = e.slice(0,
|
|
41
|
+
const n = e.slice(0, s), a = e.length - n.length, d = e.map(te).join(", ");
|
|
42
42
|
return (
|
|
43
43
|
// No tooltip: the row's hover card names the owners (one overlay at a time).
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ r("span", { className: "flex shrink-0 items-center pl-1", children: [
|
|
45
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: [
|
|
46
46
|
"With ",
|
|
47
|
-
|
|
47
|
+
d
|
|
48
48
|
] }),
|
|
49
|
-
n.map((
|
|
49
|
+
n.map((o, c) => /* @__PURE__ */ t(
|
|
50
50
|
"span",
|
|
51
51
|
{
|
|
52
52
|
"aria-hidden": !0,
|
|
53
|
-
className: `relative inline-flex h-[18px] w-[18px] shrink-0 items-center justify-center overflow-hidden rounded-full bg-
|
|
54
|
-
style: { zIndex:
|
|
53
|
+
className: `relative inline-flex h-[18px] w-[18px] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[#e2e8f0] text-[8.5px] font-semibold text-[#334155] ring-2 ring-card dark:bg-[#334155] dark:text-[#e2e8f0] ${c > 0 ? "-ml-1" : ""} ${o.inactive ? "opacity-50 grayscale" : ""}`,
|
|
54
|
+
style: { zIndex: c + 1 },
|
|
55
55
|
children: /* @__PURE__ */ t(
|
|
56
|
-
|
|
56
|
+
ae,
|
|
57
57
|
{
|
|
58
|
-
userId:
|
|
59
|
-
fallback:
|
|
58
|
+
userId: o.id,
|
|
59
|
+
fallback: ne(o.name),
|
|
60
60
|
className: "h-full w-full rounded-full object-cover",
|
|
61
61
|
alt: ""
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
},
|
|
65
|
-
|
|
65
|
+
o.id
|
|
66
66
|
)),
|
|
67
|
-
a > 0 && /* @__PURE__ */
|
|
67
|
+
a > 0 && /* @__PURE__ */ r(
|
|
68
68
|
"span",
|
|
69
69
|
{
|
|
70
70
|
"aria-hidden": !0,
|
|
71
71
|
className: "relative -ml-1 inline-flex h-[18px] min-w-[22px] shrink-0 items-center justify-center rounded-full bg-slate-100 px-1 text-[9px] font-semibold tabular-nums text-slate-600 ring-2 ring-card dark:bg-slate-800 dark:text-slate-300",
|
|
72
|
+
style: { zIndex: n.length + 1 },
|
|
72
73
|
children: [
|
|
73
74
|
"+",
|
|
74
75
|
a
|
|
@@ -78,55 +79,55 @@ function ee({
|
|
|
78
79
|
] })
|
|
79
80
|
);
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function se({
|
|
82
83
|
timing: e,
|
|
83
|
-
stepLabel:
|
|
84
|
+
stepLabel: s
|
|
84
85
|
}) {
|
|
85
|
-
const n = e.ratio != null && e.ratio > 1, a = `${
|
|
86
|
-
return /* @__PURE__ */
|
|
86
|
+
const n = e.ratio != null && e.ratio > 1, a = `${N(e.in_step_s)} in ${s ?? "this step"}${e.usual_s ? `, usually ${N(e.usual_s)}` : ""}`;
|
|
87
|
+
return /* @__PURE__ */ r("span", { className: "flex min-w-0 shrink-0 items-baseline", "data-step-timeline": !0, children: [
|
|
87
88
|
/* @__PURE__ */ t("span", { className: "sr-only", children: a }),
|
|
88
89
|
/* @__PURE__ */ t(
|
|
89
90
|
"span",
|
|
90
91
|
{
|
|
91
92
|
"aria-hidden": !0,
|
|
92
93
|
className: `text-[10.5px] font-medium tabular-nums ${n ? "text-amber-700 dark:text-amber-300" : "text-slate-600 dark:text-slate-300"}`,
|
|
93
|
-
children:
|
|
94
|
+
children: N(e.in_step_s)
|
|
94
95
|
}
|
|
95
96
|
),
|
|
96
|
-
e.usual_s != null && /* @__PURE__ */
|
|
97
|
+
e.usual_s != null && /* @__PURE__ */ r(
|
|
97
98
|
"span",
|
|
98
99
|
{
|
|
99
100
|
"aria-hidden": !0,
|
|
100
101
|
className: "whitespace-pre text-[10.5px] tabular-nums text-slate-500 dark:text-slate-400",
|
|
101
102
|
children: [
|
|
102
103
|
" / usually ",
|
|
103
|
-
|
|
104
|
+
N(e.usual_s)
|
|
104
105
|
]
|
|
105
106
|
}
|
|
106
107
|
)
|
|
107
108
|
] });
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return /* @__PURE__ */
|
|
110
|
+
function ie({ at: e }) {
|
|
111
|
+
return /* @__PURE__ */ r(
|
|
111
112
|
"span",
|
|
112
113
|
{
|
|
113
114
|
className: "inline-flex min-w-0 items-center gap-1 rounded-full bg-emerald-50 px-1.5 py-px text-[11px] font-medium text-emerald-800 dark:bg-emerald-500/15 dark:text-emerald-300",
|
|
114
115
|
"data-watch-completed": !0,
|
|
115
116
|
children: [
|
|
116
|
-
/* @__PURE__ */ t(
|
|
117
|
+
/* @__PURE__ */ t(X, { "aria-hidden": !0, className: "h-3 w-3 shrink-0" }),
|
|
117
118
|
"Completed",
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ r("span", { className: "font-normal text-emerald-700/80 dark:text-emerald-300/70", children: [
|
|
119
120
|
"· ",
|
|
120
|
-
|
|
121
|
+
P(e)
|
|
121
122
|
] })
|
|
122
123
|
]
|
|
123
124
|
}
|
|
124
125
|
);
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
-
const
|
|
127
|
+
function oe({ sla: e }) {
|
|
128
|
+
const s = W(!!e.due_at), n = Y(e, s);
|
|
128
129
|
if (!n) return null;
|
|
129
|
-
const a =
|
|
130
|
+
const a = J(e, s);
|
|
130
131
|
return /* @__PURE__ */ t(
|
|
131
132
|
"span",
|
|
132
133
|
{
|
|
@@ -136,17 +137,17 @@ function ne({ sla: e }) {
|
|
|
136
137
|
}
|
|
137
138
|
);
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
+
function O({
|
|
140
141
|
sortable: e,
|
|
141
|
-
id:
|
|
142
|
+
id: s,
|
|
142
143
|
children: n
|
|
143
144
|
}) {
|
|
144
|
-
const a =
|
|
145
|
-
transform:
|
|
145
|
+
const a = M({ id: s, disabled: !e }), d = {
|
|
146
|
+
transform: q.Transform.toString(a.transform),
|
|
146
147
|
transition: a.transition,
|
|
147
148
|
zIndex: a.isDragging ? 2 : void 0,
|
|
148
149
|
position: "relative"
|
|
149
|
-
},
|
|
150
|
+
}, o = e ? /* @__PURE__ */ t(
|
|
150
151
|
"button",
|
|
151
152
|
{
|
|
152
153
|
type: "button",
|
|
@@ -155,37 +156,38 @@ function w({
|
|
|
155
156
|
...a.listeners,
|
|
156
157
|
onClick: (c) => c.stopPropagation(),
|
|
157
158
|
className: "absolute left-0 top-1/2 flex h-7 w-3.5 -translate-y-1/2 cursor-grab items-center justify-center text-slate-300 opacity-0 transition-opacity focus-visible:opacity-100 group-hover/row:opacity-100 active:cursor-grabbing dark:text-slate-600",
|
|
158
|
-
children: /* @__PURE__ */ t(
|
|
159
|
+
children: /* @__PURE__ */ t(V, { className: "h-3 w-3" })
|
|
159
160
|
}
|
|
160
161
|
) : null;
|
|
161
|
-
return /* @__PURE__ */ t(
|
|
162
|
+
return /* @__PURE__ */ t(R, { children: n(o, d, a.setNodeRef) });
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
+
function ce({
|
|
164
165
|
row: e,
|
|
165
|
-
list:
|
|
166
|
+
list: s,
|
|
166
167
|
sortable: n,
|
|
167
168
|
onUnpin: a,
|
|
168
|
-
onSeen:
|
|
169
|
-
rowActions:
|
|
170
|
-
|
|
169
|
+
onSeen: d,
|
|
170
|
+
rowActions: o,
|
|
171
|
+
rowMark: c,
|
|
172
|
+
unpinLabel: g = "Unpin",
|
|
171
173
|
canRemove: v = !0
|
|
172
174
|
}) {
|
|
173
|
-
var
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
const u = !!((
|
|
175
|
+
var _;
|
|
176
|
+
const k = Q();
|
|
177
|
+
W(!0);
|
|
178
|
+
const u = !!((_ = e.change) != null && _.changed);
|
|
177
179
|
if (!e.available)
|
|
178
|
-
return /* @__PURE__ */ t(
|
|
180
|
+
return /* @__PURE__ */ t(O, { sortable: n, id: e.key, children: (f, C, $) => /* @__PURE__ */ r(
|
|
179
181
|
"li",
|
|
180
182
|
{
|
|
181
|
-
ref:
|
|
182
|
-
style:
|
|
183
|
+
ref: $,
|
|
184
|
+
style: C,
|
|
183
185
|
className: "group/row flex items-center gap-2 py-2.5 pl-4 pr-2",
|
|
184
186
|
"data-watch-row": "unavailable",
|
|
185
187
|
children: [
|
|
186
|
-
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
188
|
+
f,
|
|
189
|
+
/* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
|
|
190
|
+
/* @__PURE__ */ r("p", { className: "truncate text-[12.5px] font-medium text-slate-600 dark:text-slate-300", children: [
|
|
189
191
|
e.collection_label,
|
|
190
192
|
" ",
|
|
191
193
|
e.id
|
|
@@ -197,103 +199,123 @@ function le({
|
|
|
197
199
|
{
|
|
198
200
|
type: "button",
|
|
199
201
|
onClick: () => a(e),
|
|
200
|
-
className: "shrink-0 rounded-md border border-slate-200 px-2 py-1 text-[11.5px] font-medium text-slate-700 transition-colors hover:bg-slate-
|
|
202
|
+
className: "shrink-0 rounded-md border border-slate-200 px-2 py-1 text-[11.5px] font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/60 dark:border-border dark:text-slate-200 dark:hover:bg-white/[0.06] dark:hover:text-slate-100",
|
|
201
203
|
children: "Remove"
|
|
202
204
|
}
|
|
203
205
|
)
|
|
204
206
|
]
|
|
205
207
|
}
|
|
206
208
|
) });
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
return /* @__PURE__ */ t(
|
|
211
|
-
var
|
|
212
|
-
return /* @__PURE__ */
|
|
209
|
+
const m = e.title ?? e.collection_label, w = e.figures[0], l = (f) => {
|
|
210
|
+
d(e.key), k({ collection: e.collection, itemId: e.id, title: m }, f, { list: s });
|
|
211
|
+
}, i = e.change, p = (i == null ? void 0 : i.text) ?? null, h = i != null && i.by ? i.by.self ? "You" : i.by.name : null, x = p || h ? !0 : null, y = !!o || v, S = c == null ? void 0 : c(e);
|
|
212
|
+
return /* @__PURE__ */ t(O, { sortable: n, id: e.key, children: (f, C, $) => {
|
|
213
|
+
var D, j, I;
|
|
214
|
+
return /* @__PURE__ */ r(
|
|
213
215
|
"li",
|
|
214
216
|
{
|
|
215
|
-
ref:
|
|
216
|
-
style:
|
|
217
|
+
ref: $,
|
|
218
|
+
style: C,
|
|
217
219
|
"data-watch-row": u ? "changed" : "quiet",
|
|
218
220
|
className: `group/row relative transition-colors duration-700 motion-reduce:transition-none ${u ? "bg-sky-50 dark:bg-nvr-cyan/[0.07]" : "hover:bg-slate-50 dark:hover:bg-white/[0.03]"}`,
|
|
219
221
|
children: [
|
|
220
|
-
|
|
222
|
+
f,
|
|
221
223
|
/* @__PURE__ */ t(
|
|
222
|
-
|
|
224
|
+
A,
|
|
223
225
|
{
|
|
224
226
|
collection: e.collection,
|
|
225
227
|
id: e.id,
|
|
226
|
-
side: "
|
|
228
|
+
side: "left",
|
|
227
229
|
block: !0,
|
|
228
230
|
delayMs: 800,
|
|
229
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ r(
|
|
230
232
|
"div",
|
|
231
233
|
{
|
|
232
234
|
role: "button",
|
|
233
235
|
tabIndex: 0,
|
|
234
|
-
"aria-label": `${
|
|
235
|
-
onClick:
|
|
236
|
-
onAuxClick:
|
|
236
|
+
"aria-label": `${m}${u ? ", changed" : ""}`,
|
|
237
|
+
onClick: l,
|
|
238
|
+
onAuxClick: l,
|
|
237
239
|
onKeyDown: (b) => {
|
|
238
|
-
(b.key === "Enter" || b.key === " ") && (b.preventDefault(),
|
|
240
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), d(e.key), k({ collection: e.collection, itemId: e.id, title: m }, null, { list: s }));
|
|
239
241
|
},
|
|
240
|
-
className:
|
|
242
|
+
className: "block cursor-pointer py-2.5 pl-4 pr-4 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nvr-cyan/60",
|
|
241
243
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
244
|
+
/* @__PURE__ */ r(
|
|
245
|
+
"div",
|
|
246
|
+
{
|
|
247
|
+
className: `flex items-baseline gap-2 ${y ? o ? "group-focus-within/row:pr-12 group-hover/row:pr-12 group-has-[[data-state=open]]/row:pr-12" : "group-focus-within/row:pr-6 group-hover/row:pr-6" : ""}`,
|
|
248
|
+
children: [
|
|
249
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-[12.5px] font-medium text-slate-800 dark:text-slate-100", children: m }),
|
|
250
|
+
S && // Stays on hover ("For you" must survive it, rt6 round 2); a host part that
|
|
251
|
+
// should give way to the hover bell hides itself.
|
|
252
|
+
/* @__PURE__ */ t("span", { "data-no-hovercard": !0, className: "flex shrink-0 self-center", children: S }),
|
|
253
|
+
w && /* @__PURE__ */ t(
|
|
254
|
+
"span",
|
|
255
|
+
{
|
|
256
|
+
className: `shrink-0 text-[12px] font-medium tabular-nums text-slate-700 dark:text-slate-200 ${y ? "group-focus-within/row:hidden group-hover/row:hidden group-has-[[data-state=open]]/row:hidden" : ""}`,
|
|
257
|
+
children: ee(w)
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
/* @__PURE__ */ r("div", { className: "mt-1 flex min-w-0 items-center gap-2", children: [
|
|
264
|
+
e.completed_at ? /* @__PURE__ */ t(ie, { at: e.completed_at }) : /* @__PURE__ */ r(R, { children: [
|
|
265
|
+
/* @__PURE__ */ t(re, { state: e.state }),
|
|
266
|
+
e.timing && /* @__PURE__ */ t(se, { timing: e.timing, stepLabel: ((D = e.state) == null ? void 0 : D.label) ?? null })
|
|
250
267
|
] }),
|
|
251
268
|
/* @__PURE__ */ t("span", { className: "flex-1" }),
|
|
252
|
-
!e.completed_at && /* @__PURE__ */ t(
|
|
269
|
+
!e.completed_at && /* @__PURE__ */ t(le, { owners: e.owners })
|
|
253
270
|
] }),
|
|
254
|
-
(x || ((
|
|
255
|
-
x ? /* @__PURE__ */
|
|
271
|
+
(x || ((j = e.sla) == null ? void 0 : j.due_at)) && /* @__PURE__ */ r("div", { className: "mt-1 flex min-w-0 items-center gap-2", children: [
|
|
272
|
+
x ? /* @__PURE__ */ r(
|
|
256
273
|
"span",
|
|
257
274
|
{
|
|
258
275
|
className: `flex min-w-0 flex-1 items-center gap-1.5 text-[11px] ${u ? "text-slate-700 dark:text-slate-200" : "text-slate-500 dark:text-slate-400"}`,
|
|
259
276
|
children: [
|
|
260
|
-
u &&
|
|
277
|
+
u && // A ring, not a dot: step chips carry filled dots in the step's colour,
|
|
278
|
+
// and in a theme whose accent is amber the two read as one (rt6 review).
|
|
279
|
+
/* @__PURE__ */ t(
|
|
261
280
|
"span",
|
|
262
281
|
{
|
|
263
282
|
"aria-hidden": !0,
|
|
264
|
-
className: "h-
|
|
283
|
+
className: "h-[7px] w-[7px] shrink-0 rounded-full border-[1.5px] border-nvr-cyan"
|
|
265
284
|
}
|
|
266
285
|
),
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */ t("span", { className: "truncate", children:
|
|
269
|
-
|
|
286
|
+
/* @__PURE__ */ r("span", { className: "flex min-w-0", children: [
|
|
287
|
+
p && /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: p }),
|
|
288
|
+
h && p && // Its own span: a truncating name can never swallow the joiner's space.
|
|
289
|
+
/* @__PURE__ */ t("span", { "aria-hidden": !0, className: "shrink-0 whitespace-pre", children: " · " }),
|
|
290
|
+
h && /* @__PURE__ */ t("span", { className: "min-w-0 max-w-[60%] shrink-0 truncate", children: h }),
|
|
291
|
+
/* @__PURE__ */ r("span", { className: "shrink-0 whitespace-pre tabular-nums text-slate-500 dark:text-slate-400", children: [
|
|
270
292
|
" · ",
|
|
271
|
-
|
|
293
|
+
P(i == null ? void 0 : i.at)
|
|
272
294
|
] })
|
|
273
295
|
] })
|
|
274
296
|
]
|
|
275
297
|
}
|
|
276
298
|
) : /* @__PURE__ */ t("span", { className: "flex-1" }),
|
|
277
|
-
((
|
|
299
|
+
((I = e.sla) == null ? void 0 : I.due_at) && !e.completed_at && /* @__PURE__ */ t(oe, { sla: e.sla })
|
|
278
300
|
] })
|
|
279
301
|
]
|
|
280
302
|
}
|
|
281
303
|
)
|
|
282
304
|
}
|
|
283
305
|
),
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
|
|
306
|
+
/* @__PURE__ */ r("div", { className: "absolute right-1.5 top-2 flex items-center gap-0.5", children: [
|
|
307
|
+
o == null ? void 0 : o(e),
|
|
286
308
|
v && /* @__PURE__ */ t(
|
|
287
309
|
"button",
|
|
288
310
|
{
|
|
289
311
|
type: "button",
|
|
290
|
-
"aria-label": `${
|
|
291
|
-
"data-tip":
|
|
312
|
+
"aria-label": `${g}: ${m}`,
|
|
313
|
+
"data-tip": g,
|
|
292
314
|
onClick: (b) => {
|
|
293
315
|
b.stopPropagation(), a(e);
|
|
294
316
|
},
|
|
295
317
|
className: "invisible flex h-6 w-6 items-center justify-center rounded-md text-slate-400 hover:bg-slate-200/70 hover:text-slate-700 focus-visible:visible group-hover/row:visible dark:text-slate-500 dark:hover:bg-white/[0.08] dark:hover:text-slate-200",
|
|
296
|
-
children: /* @__PURE__ */ t(
|
|
318
|
+
children: /* @__PURE__ */ t(H, { className: "h-3.5 w-3.5" })
|
|
297
319
|
}
|
|
298
320
|
)
|
|
299
321
|
] })
|
|
@@ -302,47 +324,49 @@ function le({
|
|
|
302
324
|
);
|
|
303
325
|
} });
|
|
304
326
|
}
|
|
305
|
-
function
|
|
327
|
+
function ye({
|
|
306
328
|
rows: e,
|
|
307
|
-
sortable:
|
|
329
|
+
sortable: s,
|
|
308
330
|
onReorder: n,
|
|
309
331
|
onUnpin: a,
|
|
310
|
-
onSeen:
|
|
311
|
-
rowActions:
|
|
312
|
-
|
|
332
|
+
onSeen: d,
|
|
333
|
+
rowActions: o,
|
|
334
|
+
rowMark: c,
|
|
335
|
+
unpinLabel: g,
|
|
313
336
|
canRemove: v,
|
|
314
|
-
label:
|
|
337
|
+
label: k = "Watched records"
|
|
315
338
|
}) {
|
|
316
|
-
const u =
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
),
|
|
320
|
-
return /* @__PURE__ */ t(
|
|
321
|
-
if (!
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
}, children: /* @__PURE__ */ t(
|
|
327
|
-
|
|
339
|
+
const u = z(
|
|
340
|
+
T(E, { activationConstraint: { distance: 4 } }),
|
|
341
|
+
T(K, { coordinateGetter: B })
|
|
342
|
+
), m = e.filter((l) => l.available).map((l) => ({ collection: l.collection, itemId: l.id, title: l.title }));
|
|
343
|
+
return /* @__PURE__ */ t(L, { sensors: u, collisionDetection: U, onDragEnd: (l) => {
|
|
344
|
+
if (!l.over || l.active.id === l.over.id) return;
|
|
345
|
+
const i = e.map((y) => y.key), p = i.indexOf(String(l.active.id)), h = i.indexOf(String(l.over.id));
|
|
346
|
+
if (p < 0 || h < 0) return;
|
|
347
|
+
const x = [...i];
|
|
348
|
+
x.splice(h, 0, x.splice(p, 1)[0]), n(x);
|
|
349
|
+
}, children: /* @__PURE__ */ t(F, { items: e.map((l) => l.key), strategy: G, children: /* @__PURE__ */ t("ul", { className: "divide-y divide-slate-100 dark:divide-white/[0.05]", "aria-label": k, children: e.map((l) => /* @__PURE__ */ t(
|
|
350
|
+
ce,
|
|
328
351
|
{
|
|
329
|
-
row:
|
|
330
|
-
list:
|
|
331
|
-
sortable:
|
|
352
|
+
row: l,
|
|
353
|
+
list: m,
|
|
354
|
+
sortable: s,
|
|
332
355
|
onUnpin: a,
|
|
333
|
-
onSeen:
|
|
334
|
-
rowActions:
|
|
335
|
-
|
|
356
|
+
onSeen: d,
|
|
357
|
+
rowActions: o,
|
|
358
|
+
rowMark: c,
|
|
359
|
+
unpinLabel: g,
|
|
336
360
|
canRemove: v
|
|
337
361
|
},
|
|
338
|
-
|
|
362
|
+
l.key
|
|
339
363
|
)) }) }) });
|
|
340
364
|
}
|
|
341
365
|
export {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
366
|
+
ie as CompletedChip,
|
|
367
|
+
le as OwnerStack,
|
|
368
|
+
re as StepChip,
|
|
369
|
+
ce as WatchRow,
|
|
370
|
+
ye as WatchRowList,
|
|
371
|
+
P as agoText
|
|
348
372
|
};
|