@nivaro/react 0.3.48 → 0.3.50
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 +166 -105
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/shared/components/CellCopyLayer.js +81 -44
- package/dist/shared/components/CollectionBrowserView.js +306 -297
- package/dist/shared/components/DataTable.js +3 -3
- package/dist/shared/components/FulfilmentPill.js +98 -78
- package/dist/shared/components/ItemEditForm.js +4682 -4570
- package/dist/shared/components/NotificationSourcesCard.js +151 -147
- package/dist/shared/components/ProfileView.js +72 -70
- package/dist/shared/components/QueryTable.js +462 -333
- package/dist/shared/components/imports/ImportConsole.js +4 -4
- package/dist/shared/components/integrations/console/IntegrationsConsole.js +58 -50
- package/dist/shared/components/item-edit/CatalogPickerField.js +1144 -1127
- package/dist/shared/components/item-edit/CloneDialog.js +192 -142
- package/dist/shared/components/item-edit/FieldRenderer.js +127 -126
- package/dist/shared/components/item-edit/FieldRow.js +236 -226
- package/dist/shared/components/item-edit/HeaderTools.js +118 -113
- package/dist/shared/components/item-edit/InlineGridField.js +92 -90
- package/dist/shared/components/item-edit/InlineTableField.js +3091 -2942
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +175 -0
- package/dist/shared/components/item-edit/PlanGrid.js +162 -162
- package/dist/shared/components/item-edit/PolishFields.js +169 -162
- package/dist/shared/components/item-edit/RelationCombobox.js +186 -181
- package/dist/shared/components/item-edit/SummaryPanel.js +148 -135
- package/dist/shared/components/item-edit/ValidationSummary.js +64 -47
- package/dist/shared/components/item-edit/helpers.js +181 -155
- package/dist/shared/components/item-edit/line-midair.js +201 -0
- package/dist/shared/components/item-edit/soft-rules.js +27 -0
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +65 -65
- package/dist/shared/components/layout-editor/settings/settings-registry.js +4 -4
- package/dist/shared/components/notifications/DeliveryChips.js +9 -9
- package/dist/shared/components/panels/ItemLockBanner.js +414 -358
- package/dist/shared/components/panels/PipelinePanel.js +1171 -975
- package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
- package/dist/shared/components/panels/SlaBreachBanner.js +2 -2
- package/dist/shared/components/panels/TransitionRequirementsDialog.js +384 -380
- package/dist/shared/components/profile/PersonProfile.js +23 -21
- package/dist/shared/components/profile/SignedInDevices.js +126 -0
- package/dist/shared/components/queue/QueueItemSheet.js +38 -37
- package/dist/shared/components/queue/QueueWorklist.js +870 -827
- package/dist/shared/components/queue/column-chooser.js +21 -0
- package/dist/shared/components/queue/live-state-aspect.js +6 -0
- package/dist/shared/components/support/SupportView.js +1 -1
- package/dist/shared/components/ui/number-draft-input.js +93 -0
- package/dist/shared/components/widgets/ReviewListWidget.js +191 -166
- package/dist/shared/lib/edit-lock-fields.js +7 -0
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/reimport-visibility.js +10 -0
- package/package.json +1 -1
|
@@ -320,13 +320,13 @@ function Qt({
|
|
|
320
320
|
], z = h !== "all" || !!x || !!q.trim(), se = ((r == null ? void 0 : r.all_time_total) ?? 0) === 0 && !J.isLoading, Le = !z && !se && ((r == null ? void 0 : r.total) ?? 0) === 0 && g !== "0", Me = C != null ? ee.find((e) => e.id === C) : void 0;
|
|
321
321
|
return /* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1 flex-col gap-3", children: [
|
|
322
322
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
323
|
-
/* @__PURE__ */ t("div", { className: "flex items-center gap-1", children: ["runs", "collection", "definitions"].filter((e) => e === "runs" || s).map((e) => /* @__PURE__ */ t(
|
|
323
|
+
/* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-1", children: ["runs", "collection", "definitions"].filter((e) => e === "runs" || s).map((e) => /* @__PURE__ */ t(
|
|
324
324
|
"button",
|
|
325
325
|
{
|
|
326
326
|
type: "button",
|
|
327
327
|
onClick: () => H(e),
|
|
328
328
|
className: D(
|
|
329
|
-
"rounded-md px-2.5 py-1 text-[12.5px] font-medium transition-colors",
|
|
329
|
+
"whitespace-nowrap rounded-md px-2.5 py-1 text-[12.5px] font-medium transition-colors",
|
|
330
330
|
b === e ? "bg-nvr-cyan/15 text-nvr-navy dark:bg-nvr-cyan/20 dark:text-nvr-cyan" : "text-slate-500 hover:bg-slate-100 hover:text-slate-800 dark:text-muted-foreground dark:hover:bg-muted"
|
|
331
331
|
),
|
|
332
332
|
children: ht[e]
|
|
@@ -414,7 +414,7 @@ function Qt({
|
|
|
414
414
|
},
|
|
415
415
|
e
|
|
416
416
|
)),
|
|
417
|
-
/* @__PURE__ */ a("div", { className: "ml-auto flex items-stretch divide-x divide-slate-200 dark:divide-border", children: [
|
|
417
|
+
/* @__PURE__ */ a("div", { className: "ml-auto flex flex-wrap items-stretch divide-x divide-slate-200 dark:divide-border", children: [
|
|
418
418
|
/* @__PURE__ */ t(
|
|
419
419
|
U,
|
|
420
420
|
{
|
|
@@ -444,7 +444,7 @@ function Qt({
|
|
|
444
444
|
type: "button",
|
|
445
445
|
onClick: () => Y(e.value),
|
|
446
446
|
className: D(
|
|
447
|
-
"rounded px-1.5 py-1 text-[11px] font-medium transition-colors",
|
|
447
|
+
"whitespace-nowrap rounded px-1.5 py-1 text-[11px] font-medium transition-colors",
|
|
448
448
|
g === e.value ? "bg-nvr-cyan/15 text-nvr-navy dark:bg-nvr-cyan/20 dark:text-nvr-cyan" : "text-slate-400 hover:bg-slate-100 hover:text-slate-700 dark:hover:bg-muted"
|
|
449
449
|
),
|
|
450
450
|
children: e.label
|
|
@@ -8,20 +8,20 @@ import { EventsView as L } from "./EventsView.js";
|
|
|
8
8
|
import { FirefightView as P } from "./FirefightView.js";
|
|
9
9
|
import { InboundView as S } from "./InboundView.js";
|
|
10
10
|
import { PartnersView as A } from "./PartnersView.js";
|
|
11
|
-
import { TONE_SOFT as g, TONE_TEXT as
|
|
11
|
+
import { TONE_SOFT as g, TONE_TEXT as v } from "./tone.js";
|
|
12
12
|
function M({
|
|
13
|
-
extraTabs:
|
|
14
|
-
tab:
|
|
13
|
+
extraTabs: y = [],
|
|
14
|
+
tab: a,
|
|
15
15
|
onTabChange: i,
|
|
16
16
|
onOpenRecord: s,
|
|
17
|
-
focusSignal:
|
|
18
|
-
inboundExtra:
|
|
19
|
-
className:
|
|
17
|
+
focusSignal: k,
|
|
18
|
+
inboundExtra: h,
|
|
19
|
+
className: w
|
|
20
20
|
}) {
|
|
21
|
-
var
|
|
22
|
-
const [
|
|
23
|
-
|
|
24
|
-
},
|
|
21
|
+
var p;
|
|
22
|
+
const [x, I] = u("firefight"), N = a ?? x, [E, c] = u(null), T = F(), l = (e) => {
|
|
23
|
+
a == null && I(e), i == null || i(e);
|
|
24
|
+
}, d = (((p = T.data) == null ? void 0 : p.signals) ?? []).filter((e) => !e.error), m = d.reduce((e, r) => e + r.count, 0), V = d.some((e) => e.severity === "critical" && e.count > 0), o = [
|
|
25
25
|
{
|
|
26
26
|
key: "firefight",
|
|
27
27
|
label: "Firefight",
|
|
@@ -29,9 +29,9 @@ function M({
|
|
|
29
29
|
P,
|
|
30
30
|
{
|
|
31
31
|
onOpenRecord: s,
|
|
32
|
-
focusSignal:
|
|
32
|
+
focusSignal: k,
|
|
33
33
|
onJumpTab: (e, r) => {
|
|
34
|
-
e === "partners" && (r == null ? void 0 : r.apiId) != null &&
|
|
34
|
+
e === "partners" && (r == null ? void 0 : r.apiId) != null && c(Number(r.apiId)), l(e);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
)
|
|
@@ -39,18 +39,18 @@ function M({
|
|
|
39
39
|
{
|
|
40
40
|
key: "partners",
|
|
41
41
|
label: "Partners",
|
|
42
|
-
render: () => /* @__PURE__ */ n(A, { openId: E, onOpenChange:
|
|
42
|
+
render: () => /* @__PURE__ */ n(A, { openId: E, onOpenChange: c })
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
key: "events",
|
|
46
46
|
label: "Events",
|
|
47
47
|
render: () => /* @__PURE__ */ n(L, { onOpenRecord: s })
|
|
48
48
|
},
|
|
49
|
-
...
|
|
49
|
+
...y,
|
|
50
50
|
{
|
|
51
51
|
key: "inbound",
|
|
52
52
|
label: "Inbound",
|
|
53
|
-
render: () => /* @__PURE__ */ n(S, { extra:
|
|
53
|
+
render: () => /* @__PURE__ */ n(S, { extra: h })
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
key: "alerts",
|
|
@@ -59,45 +59,53 @@ function M({
|
|
|
59
59
|
j,
|
|
60
60
|
{
|
|
61
61
|
tabLabels: Object.fromEntries(o.map((e) => [e.key, e.label])),
|
|
62
|
-
onJumpTab:
|
|
62
|
+
onJumpTab: l
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
}
|
|
66
|
-
],
|
|
67
|
-
return /* @__PURE__ */ b("div", { className: t("flex flex-col gap-5",
|
|
66
|
+
], f = o.find((e) => e.key === N) ?? o[0];
|
|
67
|
+
return /* @__PURE__ */ b("div", { className: t("flex flex-col gap-5", w), "data-ic-console": !0, children: [
|
|
68
68
|
/* @__PURE__ */ n(O, {}),
|
|
69
|
-
/* @__PURE__ */ n(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
69
|
+
/* @__PURE__ */ n(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
role: "tablist",
|
|
73
|
+
"aria-label": "Integrations",
|
|
74
|
+
className: "flex shrink-0 gap-6 overflow-x-auto overflow-y-hidden border-b border-border [scrollbar-width:none]",
|
|
75
|
+
children: o.map((e) => {
|
|
76
|
+
const r = e.key === f.key;
|
|
77
|
+
return /* @__PURE__ */ b(
|
|
78
|
+
"button",
|
|
79
|
+
{
|
|
80
|
+
type: "button",
|
|
81
|
+
role: "tab",
|
|
82
|
+
"aria-selected": r,
|
|
83
|
+
"data-ic-tab": e.key,
|
|
84
|
+
onClick: () => l(e.key),
|
|
85
|
+
className: t(
|
|
86
|
+
"inline-flex shrink-0 items-center gap-2 whitespace-nowrap border-b-2 pb-2.5 pt-1 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
|
|
87
|
+
r ? "border-nvr-cyan text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
88
|
+
),
|
|
89
|
+
children: [
|
|
90
|
+
e.label,
|
|
91
|
+
e.key === "firefight" && m > 0 && /* @__PURE__ */ n(
|
|
92
|
+
"span",
|
|
93
|
+
{
|
|
94
|
+
className: t(
|
|
95
|
+
"rounded-full px-1.5 py-px text-[11px] font-semibold tabular-nums",
|
|
96
|
+
V ? t(g.negative, v.negative) : t(g.warning, v.warning)
|
|
97
|
+
),
|
|
98
|
+
children: m
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
e.key
|
|
104
|
+
);
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ n("div", { role: "tabpanel", className: "min-w-0", children: f.render() })
|
|
101
109
|
] });
|
|
102
110
|
}
|
|
103
111
|
export {
|