@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.
Files changed (52) hide show
  1. package/dist/components/InlineGridField.js +166 -105
  2. package/dist/full.css +1 -1
  3. package/dist/hooks/useSessionRecorder.js +1 -1
  4. package/dist/index.d.ts +25 -1
  5. package/dist/shared/components/CellCopyLayer.js +81 -44
  6. package/dist/shared/components/CollectionBrowserView.js +306 -297
  7. package/dist/shared/components/DataTable.js +3 -3
  8. package/dist/shared/components/FulfilmentPill.js +98 -78
  9. package/dist/shared/components/ItemEditForm.js +4682 -4570
  10. package/dist/shared/components/NotificationSourcesCard.js +151 -147
  11. package/dist/shared/components/ProfileView.js +72 -70
  12. package/dist/shared/components/QueryTable.js +462 -333
  13. package/dist/shared/components/imports/ImportConsole.js +4 -4
  14. package/dist/shared/components/integrations/console/IntegrationsConsole.js +58 -50
  15. package/dist/shared/components/item-edit/CatalogPickerField.js +1144 -1127
  16. package/dist/shared/components/item-edit/CloneDialog.js +192 -142
  17. package/dist/shared/components/item-edit/FieldRenderer.js +127 -126
  18. package/dist/shared/components/item-edit/FieldRow.js +236 -226
  19. package/dist/shared/components/item-edit/HeaderTools.js +118 -113
  20. package/dist/shared/components/item-edit/InlineGridField.js +92 -90
  21. package/dist/shared/components/item-edit/InlineTableField.js +3091 -2942
  22. package/dist/shared/components/item-edit/MidairCollisionDialog.js +175 -0
  23. package/dist/shared/components/item-edit/PlanGrid.js +162 -162
  24. package/dist/shared/components/item-edit/PolishFields.js +169 -162
  25. package/dist/shared/components/item-edit/RelationCombobox.js +186 -181
  26. package/dist/shared/components/item-edit/SummaryPanel.js +148 -135
  27. package/dist/shared/components/item-edit/ValidationSummary.js +64 -47
  28. package/dist/shared/components/item-edit/helpers.js +181 -155
  29. package/dist/shared/components/item-edit/line-midair.js +201 -0
  30. package/dist/shared/components/item-edit/soft-rules.js +27 -0
  31. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  32. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +65 -65
  33. package/dist/shared/components/layout-editor/settings/settings-registry.js +4 -4
  34. package/dist/shared/components/notifications/DeliveryChips.js +9 -9
  35. package/dist/shared/components/panels/ItemLockBanner.js +414 -358
  36. package/dist/shared/components/panels/PipelinePanel.js +1171 -975
  37. package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
  38. package/dist/shared/components/panels/SlaBreachBanner.js +2 -2
  39. package/dist/shared/components/panels/TransitionRequirementsDialog.js +384 -380
  40. package/dist/shared/components/profile/PersonProfile.js +23 -21
  41. package/dist/shared/components/profile/SignedInDevices.js +126 -0
  42. package/dist/shared/components/queue/QueueItemSheet.js +38 -37
  43. package/dist/shared/components/queue/QueueWorklist.js +870 -827
  44. package/dist/shared/components/queue/column-chooser.js +21 -0
  45. package/dist/shared/components/queue/live-state-aspect.js +6 -0
  46. package/dist/shared/components/support/SupportView.js +1 -1
  47. package/dist/shared/components/ui/number-draft-input.js +93 -0
  48. package/dist/shared/components/widgets/ReviewListWidget.js +191 -166
  49. package/dist/shared/lib/edit-lock-fields.js +7 -0
  50. package/dist/shared/lib/error-hints.js +1 -0
  51. package/dist/shared/lib/reimport-visibility.js +10 -0
  52. 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 y } from "./tone.js";
11
+ import { TONE_SOFT as g, TONE_TEXT as v } from "./tone.js";
12
12
  function M({
13
- extraTabs: v = [],
14
- tab: l,
13
+ extraTabs: y = [],
14
+ tab: a,
15
15
  onTabChange: i,
16
16
  onOpenRecord: s,
17
- focusSignal: x,
18
- inboundExtra: k,
19
- className: I
17
+ focusSignal: k,
18
+ inboundExtra: h,
19
+ className: w
20
20
  }) {
21
- var f;
22
- const [h, w] = u("firefight"), N = l ?? h, [E, m] = u(null), T = F(), a = (e) => {
23
- l == null && w(e), i == null || i(e);
24
- }, c = (((f = T.data) == null ? void 0 : f.signals) ?? []).filter((e) => !e.error), d = c.reduce((e, r) => e + r.count, 0), V = c.some((e) => e.severity === "critical" && e.count > 0), o = [
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: x,
32
+ focusSignal: k,
33
33
  onJumpTab: (e, r) => {
34
- e === "partners" && (r == null ? void 0 : r.apiId) != null && m(Number(r.apiId)), a(e);
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: m })
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
- ...v,
49
+ ...y,
50
50
  {
51
51
  key: "inbound",
52
52
  label: "Inbound",
53
- render: () => /* @__PURE__ */ n(S, { extra: k })
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: a
62
+ onJumpTab: l
63
63
  }
64
64
  )
65
65
  }
66
- ], p = o.find((e) => e.key === N) ?? o[0];
67
- return /* @__PURE__ */ b("div", { className: t("flex flex-col gap-5", I), "data-ic-console": !0, children: [
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("div", { role: "tablist", "aria-label": "Integrations", className: "flex gap-6 border-b border-border", children: o.map((e) => {
70
- const r = e.key === p.key;
71
- return /* @__PURE__ */ b(
72
- "button",
73
- {
74
- type: "button",
75
- role: "tab",
76
- "aria-selected": r,
77
- "data-ic-tab": e.key,
78
- onClick: () => a(e.key),
79
- className: t(
80
- "-mb-px inline-flex items-center gap-2 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-ring",
81
- r ? "border-nvr-cyan text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
82
- ),
83
- children: [
84
- e.label,
85
- e.key === "firefight" && d > 0 && /* @__PURE__ */ n(
86
- "span",
87
- {
88
- className: t(
89
- "rounded-full px-1.5 py-px text-[11px] font-semibold tabular-nums",
90
- V ? t(g.negative, y.negative) : t(g.warning, y.warning)
91
- ),
92
- children: d
93
- }
94
- )
95
- ]
96
- },
97
- e.key
98
- );
99
- }) }),
100
- /* @__PURE__ */ n("div", { role: "tabpanel", className: "min-w-0", children: p.render() })
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 {