@nivaro/react 0.3.139 → 0.3.141
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/components/InlineGridField.js +95 -92
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +39 -2
- package/dist/shared/components/AudienceConfirmPanel.js +19 -19
- package/dist/shared/components/BroadcastView.js +213 -211
- package/dist/shared/components/CollectionBrowserView.js +2702 -2671
- package/dist/shared/components/ConfigHistory.js +45 -45
- package/dist/shared/components/ConformanceView.js +110 -110
- package/dist/shared/components/DataTable.js +51 -51
- package/dist/shared/components/FilePreviewLightbox.js +26 -25
- package/dist/shared/components/ItemEditForm.js +3475 -3458
- package/dist/shared/components/LiveCount.js +27 -23
- package/dist/shared/components/LiveTraceView.js +62 -61
- package/dist/shared/components/PageRenderer.js +422 -410
- package/dist/shared/components/ProfileView.js +199 -199
- package/dist/shared/components/QualityRulesView.js +70 -70
- package/dist/shared/components/QueryTable.js +131 -130
- package/dist/shared/components/RecordGraph.js +98 -98
- package/dist/shared/components/RecordReadView.js +287 -288
- package/dist/shared/components/ReportView.js +1279 -1259
- package/dist/shared/components/RowPresence.js +83 -76
- package/dist/shared/components/SlaRulesView.js +73 -74
- package/dist/shared/components/UnseenDot.js +183 -22
- package/dist/shared/components/WidgetSlot.js +73 -73
- package/dist/shared/components/ai/AiChart.js +36 -32
- package/dist/shared/components/ai/AiMarkdown.js +136 -129
- package/dist/shared/components/ai/TaskDo.js +87 -87
- package/dist/shared/components/ai/answer-formats.js +37 -30
- package/dist/shared/components/ai/call-log/format.js +17 -16
- package/dist/shared/components/bulk/BulkActionButtons.js +66 -66
- package/dist/shared/components/bulk/BulkFieldUpdate.js +59 -59
- package/dist/shared/components/bulk/BulkSelectionNotices.js +34 -34
- package/dist/shared/components/bulk/MessageStakeholders.js +31 -29
- package/dist/shared/components/bulk/PushBulkButtons.js +83 -82
- package/dist/shared/components/bulk/bulk-field-options.js +10 -10
- package/dist/shared/components/cbv/column-totals.js +53 -51
- package/dist/shared/components/chat/ChatAnalyticsView.js +87 -87
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +18 -18
- package/dist/shared/components/command-center/announce.js +7 -6
- package/dist/shared/components/command-center/panels/AttentionPanel.js +32 -31
- package/dist/shared/components/command-center/panels/FlowPanel.js +29 -28
- package/dist/shared/components/command-center/panels/PeoplePanel.js +39 -39
- package/dist/shared/components/delegation/DelegationConsoleView.js +27 -27
- package/dist/shared/components/delivery-analytics/drill.js +32 -32
- package/dist/shared/components/imports/RunDetailSheet.js +1 -1
- package/dist/shared/components/integrations/IntegrationObligationsView.js +119 -119
- package/dist/shared/components/integrations/console/EventsView.js +35 -35
- package/dist/shared/components/integrations/console/FirefightView.js +15 -14
- package/dist/shared/components/integrations/console/PartnerDetail.js +78 -78
- package/dist/shared/components/integrations/console/ReadyToSendView.js +103 -103
- package/dist/shared/components/integrations/console/SignalCard.js +67 -67
- package/dist/shared/components/item-edit/CatalogPickerField.js +536 -527
- package/dist/shared/components/item-edit/ChangesTray.js +88 -74
- package/dist/shared/components/item-edit/FilePickerField.js +123 -123
- package/dist/shared/components/item-edit/GroupSection.js +301 -292
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +54 -54
- package/dist/shared/components/item-edit/InlineGridField.js +45 -36
- package/dist/shared/components/item-edit/InlineTableField.js +1390 -1376
- package/dist/shared/components/item-edit/NestedRelationEditor.js +106 -99
- package/dist/shared/components/item-edit/RecordChatMentionsChip.js +11 -11
- package/dist/shared/components/item-edit/RecordRecapChanges.js +116 -74
- package/dist/shared/components/item-edit/RecordRecapStrip.js +148 -160
- package/dist/shared/components/item-edit/summary-layout-request.js +15 -0
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +43 -44
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +226 -157
- package/dist/shared/components/layout-editor/settings/WhoSection.js +53 -52
- package/dist/shared/components/layout-editor/settings/controls.js +98 -90
- package/dist/shared/components/layout-editor/settings/settings-registry.js +8 -0
- package/dist/shared/components/monitoring/ApiRequestLog.js +35 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +268 -268
- package/dist/shared/components/ops-report/format.js +37 -36
- package/dist/shared/components/panels/ReferencedByPanel.js +21 -20
- package/dist/shared/components/panels/RevisionsPanel.js +306 -305
- package/dist/shared/components/pipeline/OwnerMatrixVersionsCard.js +12 -12
- package/dist/shared/components/pipeline/PipelineEditorView.js +483 -482
- package/dist/shared/components/pipeline/PipelineHealthCards.js +33 -32
- package/dist/shared/components/pipeline/TeamsView.js +189 -130
- package/dist/shared/components/profile/AgentsPanel.js +6 -6
- package/dist/shared/components/profile/DelegationCard.js +13 -12
- package/dist/shared/components/profile/PersonActivity.js +48 -48
- package/dist/shared/components/profile/PersonExtras.js +107 -107
- package/dist/shared/components/profile/PersonWeek.js +9 -9
- package/dist/shared/components/queue/QueueBulkBar.js +19 -18
- package/dist/shared/components/queue/QueueBulkMove.js +21 -20
- package/dist/shared/components/queue/QueueItemSheet.js +136 -131
- package/dist/shared/components/queue/QueueWorklist.js +884 -872
- package/dist/shared/components/queue/worklist-helpers.js +36 -21
- package/dist/shared/components/support/RequestList.js +123 -123
- package/dist/shared/components/support/SupportAnalytics.js +29 -29
- package/dist/shared/lib/activity-sentence.js +251 -229
- package/dist/shared/lib/format-value.js +5 -4
- package/dist/shared/lib/layout-resolve.js +64 -48
- package/dist/shared/lib/number-format.js +87 -0
- package/dist/shared/lib/number-kind.js +133 -0
- package/dist/shared/lib/utils.js +24 -20
- package/dist/shared/lib/watch-list.js +1 -1
- package/dist/shared/lib/widget-value-format.js +26 -12
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ArrowRight as C, X as w } from "lucide-react";
|
|
3
3
|
import { useState as N } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { formatNumber as P } from "../../lib/utils.js";
|
|
5
|
+
import { Command as T, CommandInput as O, CommandList as j, CommandEmpty as B, CommandItem as D } from "../ui/command.js";
|
|
6
|
+
import { Popover as R, PopoverTrigger as S, PopoverContent as z } from "../ui/popover.js";
|
|
7
|
+
function q({
|
|
7
8
|
count: s,
|
|
8
|
-
states:
|
|
9
|
+
states: m,
|
|
9
10
|
busy: o,
|
|
10
|
-
claimsEnabled:
|
|
11
|
+
claimsEnabled: i = !0,
|
|
11
12
|
showClaim: p = !0,
|
|
12
13
|
showRelease: u = !0,
|
|
13
14
|
showTransition: c = !0,
|
|
@@ -39,8 +40,8 @@ function X({
|
|
|
39
40
|
},
|
|
40
41
|
className: "flex max-w-full items-center gap-1 overflow-x-auto whitespace-nowrap rounded-full border border-slate-200 bg-white px-4 py-2 shadow-lg dark:border-border dark:bg-card [&>*]:shrink-0",
|
|
41
42
|
children: [
|
|
42
|
-
/* @__PURE__ */ e("span", { className: "mr-2 text-[12px] font-semibold text-slate-700 dark:text-slate-200", children: g ?? `${s} selected` }),
|
|
43
|
-
|
|
43
|
+
/* @__PURE__ */ e("span", { className: "mr-2 text-[12px] font-semibold text-slate-700 dark:text-slate-200", children: g ?? `${P(s)} selected` }),
|
|
44
|
+
i && p && /* @__PURE__ */ e(
|
|
44
45
|
"button",
|
|
45
46
|
{
|
|
46
47
|
type: "button",
|
|
@@ -50,7 +51,7 @@ function X({
|
|
|
50
51
|
children: "Claim"
|
|
51
52
|
}
|
|
52
53
|
),
|
|
53
|
-
|
|
54
|
+
i && u && /* @__PURE__ */ e(
|
|
54
55
|
"button",
|
|
55
56
|
{
|
|
56
57
|
type: "button",
|
|
@@ -61,12 +62,12 @@ function X({
|
|
|
61
62
|
}
|
|
62
63
|
),
|
|
63
64
|
v,
|
|
64
|
-
c && /* @__PURE__ */ l(
|
|
65
|
-
/* @__PURE__ */ e(
|
|
65
|
+
c && /* @__PURE__ */ l(R, { open: y, onOpenChange: n, children: [
|
|
66
|
+
/* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ l(
|
|
66
67
|
"button",
|
|
67
68
|
{
|
|
68
69
|
type: "button",
|
|
69
|
-
disabled: o ||
|
|
70
|
+
disabled: o || m.length === 0,
|
|
70
71
|
className: "flex items-center gap-1 rounded-md px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:bg-slate-100 disabled:opacity-50 dark:text-slate-300 dark:hover:bg-muted",
|
|
71
72
|
children: [
|
|
72
73
|
"Transition ",
|
|
@@ -74,12 +75,12 @@ function X({
|
|
|
74
75
|
]
|
|
75
76
|
}
|
|
76
77
|
) }),
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
/* @__PURE__ */ l(
|
|
80
|
-
/* @__PURE__ */ e(
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
/* @__PURE__ */ e(z, { className: "w-[200px] p-0", align: "center", side: "top", children: /* @__PURE__ */ l(T, { children: [
|
|
79
|
+
/* @__PURE__ */ e(O, { placeholder: "Target state…", className: "h-8 text-[12px]" }),
|
|
80
|
+
/* @__PURE__ */ l(j, { children: [
|
|
81
|
+
/* @__PURE__ */ e(B, { children: "No state found." }),
|
|
82
|
+
m.map((t) => /* @__PURE__ */ e(
|
|
83
|
+
D,
|
|
83
84
|
{
|
|
84
85
|
value: t.label,
|
|
85
86
|
onSelect: () => {
|
|
@@ -109,5 +110,5 @@ function X({
|
|
|
109
110
|
);
|
|
110
111
|
}
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
+
q as QueueBulkBar
|
|
113
114
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsxs as m, jsx as l, Fragment as Q } from "react/jsx-runtime";
|
|
2
2
|
import { useQuery as N } from "@tanstack/react-query";
|
|
3
3
|
import { ArrowRight as U } from "lucide-react";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as g, useMemo as D } from "react";
|
|
5
5
|
import { toast as q } from "sonner";
|
|
6
6
|
import { useNivaroClient as E } from "../../context.js";
|
|
7
7
|
import { get as _, post as B } from "../../lib/commands.js";
|
|
8
8
|
import { userErrorMessage as Y } from "../../lib/safe-error.js";
|
|
9
|
-
import {
|
|
9
|
+
import { formatNumber as z } from "../../lib/utils.js";
|
|
10
|
+
import { Popover as G, PopoverTrigger as H, PopoverContent as J } from "../ui/popover.js";
|
|
10
11
|
import { SimpleSelect as K } from "../ui/SimpleSelect.js";
|
|
11
|
-
function
|
|
12
|
+
function V(o) {
|
|
12
13
|
var h;
|
|
13
14
|
const s = /* @__PURE__ */ new Map();
|
|
14
15
|
for (const c of o) {
|
|
@@ -24,19 +25,19 @@ function J(o) {
|
|
|
24
25
|
}
|
|
25
26
|
return [...s.values()];
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function ie({
|
|
28
29
|
collection: o,
|
|
29
30
|
ids: s,
|
|
30
31
|
disabled: h,
|
|
31
32
|
onDone: c
|
|
32
33
|
}) {
|
|
33
|
-
const i = E(), [n, p] =
|
|
34
|
+
const i = E(), [n, p] = g(!1), [w, C] = g(""), [v, x] = g(""), [b, M] = g(""), [S, j] = g(!1), O = s.slice(0, 50).map(String).join(","), { data: y } = N({
|
|
34
35
|
queryKey: ["queue-bulk-move-binding", o],
|
|
35
36
|
queryFn: () => i.request(
|
|
36
37
|
_(`/pipelines/instances/${o}`, { ids: O })
|
|
37
38
|
).then((e) => {
|
|
38
|
-
var a,
|
|
39
|
-
return ((
|
|
39
|
+
var a, f;
|
|
40
|
+
return ((f = (a = e.data) == null ? void 0 : a.binding) == null ? void 0 : f.template) ?? null;
|
|
40
41
|
}),
|
|
41
42
|
enabled: n && !!o && s.length > 0,
|
|
42
43
|
staleTime: 5 * 6e4,
|
|
@@ -49,9 +50,9 @@ function ne({
|
|
|
49
50
|
enabled: n && !!y,
|
|
50
51
|
staleTime: 5 * 6e4,
|
|
51
52
|
retry: !1
|
|
52
|
-
}), k = D(() =>
|
|
53
|
-
var
|
|
54
|
-
return Number(((
|
|
53
|
+
}), k = D(() => V((d == null ? void 0 : d.transitions) ?? []), [d]), I = (d == null ? void 0 : d.states) ?? [], $ = (e) => I.find((a) => String(a.id).toUpperCase() === e.toUpperCase()), t = k.find((e) => e.label === w) ?? null, R = t ? [...t.targets.keys()].filter(Boolean).sort((e, a) => {
|
|
54
|
+
var f, F;
|
|
55
|
+
return Number(((f = $(e)) == null ? void 0 : f.sort) ?? 0) - Number(((F = $(a)) == null ? void 0 : F.sort) ?? 0);
|
|
55
56
|
}) : [], L = R.length > 1, u = t ? L ? v ? t.targets.get(v) ?? [] : [] : t.ids : [], P = u.length ? `${u.join(",")}|${s.join(",")}` : "", { data: r, isFetching: T } = N({
|
|
56
57
|
queryKey: ["bulk-transition-preview", o, P],
|
|
57
58
|
queryFn: () => i.request(
|
|
@@ -65,14 +66,14 @@ function ne({
|
|
|
65
66
|
staleTime: 15e3,
|
|
66
67
|
retry: !1
|
|
67
68
|
}), A = async () => {
|
|
68
|
-
if (!(!o || !t || u.length === 0) && !(t.noteRequired && !
|
|
69
|
+
if (!(!o || !t || u.length === 0) && !(t.noteRequired && !b.trim())) {
|
|
69
70
|
j(!0);
|
|
70
71
|
try {
|
|
71
72
|
const e = await i.request(
|
|
72
73
|
B(`/items/${o}/bulk-transition`, {
|
|
73
74
|
ids: s,
|
|
74
75
|
transition_ids: u,
|
|
75
|
-
...
|
|
76
|
+
...b.trim() ? { comment: b.trim() } : {}
|
|
76
77
|
})
|
|
77
78
|
);
|
|
78
79
|
e.failed > 0 ? q.warning(
|
|
@@ -85,8 +86,8 @@ function ne({
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
|
-
return /* @__PURE__ */ m(
|
|
89
|
-
/* @__PURE__ */ l(
|
|
89
|
+
return /* @__PURE__ */ m(G, { open: n, onOpenChange: p, children: [
|
|
90
|
+
/* @__PURE__ */ l(H, { asChild: !0, children: /* @__PURE__ */ m(
|
|
90
91
|
"button",
|
|
91
92
|
{
|
|
92
93
|
type: "button",
|
|
@@ -100,7 +101,7 @@ function ne({
|
|
|
100
101
|
]
|
|
101
102
|
}
|
|
102
103
|
) }),
|
|
103
|
-
/* @__PURE__ */ m(
|
|
104
|
+
/* @__PURE__ */ m(J, { side: "top", align: "center", className: "w-[360px] space-y-2 p-3", children: [
|
|
104
105
|
/* @__PURE__ */ m("p", { className: "text-[12px] font-semibold text-slate-700 dark:text-foreground", children: [
|
|
105
106
|
"Move ",
|
|
106
107
|
s.length,
|
|
@@ -152,7 +153,7 @@ function ne({
|
|
|
152
153
|
t && /* @__PURE__ */ l(
|
|
153
154
|
"textarea",
|
|
154
155
|
{
|
|
155
|
-
value:
|
|
156
|
+
value: b,
|
|
156
157
|
onChange: (e) => M(e.target.value),
|
|
157
158
|
placeholder: t.noteRequired ? "Note for every record (required)" : "Note for every record (optional)",
|
|
158
159
|
"aria-label": "Note for every selected record",
|
|
@@ -174,7 +175,7 @@ function ne({
|
|
|
174
175
|
r.succeeded + r.failed,
|
|
175
176
|
" can move.",
|
|
176
177
|
" ",
|
|
177
|
-
r.failed,
|
|
178
|
+
z(r.failed),
|
|
178
179
|
" can’t:"
|
|
179
180
|
] }),
|
|
180
181
|
" ",
|
|
@@ -197,7 +198,7 @@ function ne({
|
|
|
197
198
|
"button",
|
|
198
199
|
{
|
|
199
200
|
type: "submit",
|
|
200
|
-
disabled: S || !t || u.length === 0 || r != null && r.succeeded === 0 || t.noteRequired && !
|
|
201
|
+
disabled: S || !t || u.length === 0 || r != null && r.succeeded === 0 || t.noteRequired && !b.trim(),
|
|
201
202
|
className: "h-8 rounded-md bg-nvr-cyan px-3 text-[12.5px] font-semibold text-white disabled:opacity-50",
|
|
202
203
|
children: S ? "Moving…" : r && !T ? `Run (${r.succeeded})` : "Run"
|
|
203
204
|
}
|
|
@@ -210,6 +211,6 @@ function ne({
|
|
|
210
211
|
] });
|
|
211
212
|
}
|
|
212
213
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
214
|
+
ie as QueueBulkMove,
|
|
215
|
+
V as groupTransitions
|
|
215
216
|
};
|