@nivaro/react 0.3.112 → 0.3.113
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/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +37 -1
- package/dist/shared/components/CollectionBrowserView.js +2559 -2505
- package/dist/shared/components/cbv/ColumnHeaderMenu.js +56 -39
- package/dist/shared/components/cbv/column-totals.js +137 -40
- package/dist/shared/components/item-edit/InlineTableField.js +858 -863
- package/dist/shared/components/item-edit/UserChip.js +262 -239
- package/dist/shared/components/item-edit/grid-search.js +164 -134
- package/dist/shared/components/panels/PipelinePanel.js +1136 -1130
- package/dist/shared/components/panels/StandInReason.js +69 -0
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowUpRight as u } from "lucide-react";
|
|
3
|
+
import { useNavigation as h } from "../../context.js";
|
|
4
|
+
import { cn as c } from "../../lib/utils.js";
|
|
5
|
+
function y(e) {
|
|
6
|
+
return new Set(((e == null ? void 0 : e.people) ?? []).map((i) => String(i.id).toUpperCase()));
|
|
7
|
+
}
|
|
8
|
+
function g({ className: e }) {
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
"span",
|
|
11
|
+
{
|
|
12
|
+
"data-stand-in-mark": "",
|
|
13
|
+
className: c(
|
|
14
|
+
"shrink-0 rounded border border-slate-300 px-1 text-[10px] font-medium leading-tight text-slate-500 dark:border-slate-600 dark:text-slate-400",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
"data-tip": "Nobody is assigned to this step. The record is in their queue, but only the step’s owners can move it.",
|
|
18
|
+
children: "stand-in"
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function v({
|
|
23
|
+
reason: e,
|
|
24
|
+
className: i,
|
|
25
|
+
onNavigate: s
|
|
26
|
+
}) {
|
|
27
|
+
const r = h(), d = e.why_unassigned.values ?? [], n = e.matrix_href ? r.consoleUrl ? r.consoleUrl(e.matrix_href) : e.matrix_href : null, l = !!n && /^https?:\/\//.test(n);
|
|
28
|
+
return /* @__PURE__ */ o(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-owners-stand-in": e.why_unassigned.kind,
|
|
32
|
+
className: c("space-y-0.5 text-[11.5px] leading-snug", i),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ a(
|
|
35
|
+
"p",
|
|
36
|
+
{
|
|
37
|
+
className: "text-slate-600 dark:text-slate-300",
|
|
38
|
+
"data-stand-in-why": "unassigned",
|
|
39
|
+
"data-tip": d.length > 0 ? d.map((t) => `${t.label}: ${t.value}`).join(" · ") : void 0,
|
|
40
|
+
children: e.why_unassigned.sentence
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ a("p", { className: "text-slate-500 dark:text-slate-400", "data-stand-in-why": "person", children: e.why_this_person.sentence }),
|
|
44
|
+
e.detail && /* @__PURE__ */ a("p", { className: "text-slate-500 dark:text-slate-400", "data-stand-in-why": "detail", children: e.detail }),
|
|
45
|
+
n && /* @__PURE__ */ o(
|
|
46
|
+
"a",
|
|
47
|
+
{
|
|
48
|
+
href: n,
|
|
49
|
+
...l ? { target: "_blank", rel: "noreferrer" } : {},
|
|
50
|
+
onClick: (t) => {
|
|
51
|
+
s == null || s(), !(l || t.metaKey || t.ctrlKey || t.shiftKey) && (t.preventDefault(), r.navigate(n));
|
|
52
|
+
},
|
|
53
|
+
"data-stand-in-matrix": "",
|
|
54
|
+
className: "inline-flex items-center gap-0.5 rounded pt-0.5 font-medium text-nvr-navy underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan dark:text-nvr-cyan",
|
|
55
|
+
children: [
|
|
56
|
+
"Open owner matrix",
|
|
57
|
+
/* @__PURE__ */ a(u, { className: "h-3 w-3", "aria-hidden": !0 })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
g as StandInMark,
|
|
67
|
+
v as StandInReasonLines,
|
|
68
|
+
y as standInIds
|
|
69
|
+
};
|