@lincyaw/aegis-ui 0.11.0 → 0.12.1

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 (134) hide show
  1. package/dist/agent/ask/AskPanel.cjs +1 -1
  2. package/dist/agent/ask/AskPanel.cjs.map +1 -1
  3. package/dist/agent/ask/AskPanel.js +25 -25
  4. package/dist/agent/ask/AskPanel.js.map +1 -1
  5. package/dist/components/ui/Button.cjs.map +1 -1
  6. package/dist/components/ui/Button.d.ts +4 -2
  7. package/dist/components/ui/Button.js.map +1 -1
  8. package/dist/components/ui/CheckGrid.cjs +1 -1
  9. package/dist/components/ui/CheckGrid.cjs.map +1 -1
  10. package/dist/components/ui/CheckGrid.js +18 -17
  11. package/dist/components/ui/CheckGrid.js.map +1 -1
  12. package/dist/components/ui/CodeEditor.cjs +1 -1
  13. package/dist/components/ui/CodeEditor.cjs.map +1 -1
  14. package/dist/components/ui/CodeEditor.js +95 -87
  15. package/dist/components/ui/CodeEditor.js.map +1 -1
  16. package/dist/components/ui/CommandInvocationCard.cjs +1 -1
  17. package/dist/components/ui/CommandInvocationCard.cjs.map +1 -1
  18. package/dist/components/ui/CommandInvocationCard.js +10 -10
  19. package/dist/components/ui/CommandInvocationCard.js.map +1 -1
  20. package/dist/components/ui/DangerZone.cjs +1 -1
  21. package/dist/components/ui/DangerZone.cjs.map +1 -1
  22. package/dist/components/ui/DangerZone.js +12 -12
  23. package/dist/components/ui/DangerZone.js.map +1 -1
  24. package/dist/components/ui/DataList.cjs +1 -1
  25. package/dist/components/ui/DataList.cjs.map +1 -1
  26. package/dist/components/ui/DataList.js +4 -3
  27. package/dist/components/ui/DataList.js.map +1 -1
  28. package/dist/components/ui/DataTable.cjs +1 -1
  29. package/dist/components/ui/DataTable.cjs.map +1 -1
  30. package/dist/components/ui/DataTable.d.ts +2 -1
  31. package/dist/components/ui/DataTable.js +125 -108
  32. package/dist/components/ui/DataTable.js.map +1 -1
  33. package/dist/components/ui/DiffViewer.cjs +1 -1
  34. package/dist/components/ui/DiffViewer.cjs.map +1 -1
  35. package/dist/components/ui/DiffViewer.js +29 -25
  36. package/dist/components/ui/DiffViewer.js.map +1 -1
  37. package/dist/components/ui/DropdownMenu.cjs.map +1 -1
  38. package/dist/components/ui/DropdownMenu.d.ts +1 -0
  39. package/dist/components/ui/DropdownMenu.js.map +1 -1
  40. package/dist/components/ui/FileDropzone.cjs +1 -1
  41. package/dist/components/ui/FileDropzone.cjs.map +1 -1
  42. package/dist/components/ui/FileDropzone.js +12 -12
  43. package/dist/components/ui/FileDropzone.js.map +1 -1
  44. package/dist/components/ui/FilePreview.cjs +1 -1
  45. package/dist/components/ui/FilePreview.cjs.map +1 -1
  46. package/dist/components/ui/FilePreview.js +16 -13
  47. package/dist/components/ui/FilePreview.js.map +1 -1
  48. package/dist/components/ui/ParetoChart.cjs +1 -1
  49. package/dist/components/ui/ParetoChart.cjs.map +1 -1
  50. package/dist/components/ui/ParetoChart.js +247 -212
  51. package/dist/components/ui/ParetoChart.js.map +1 -1
  52. package/dist/components/ui/QueryAutocomplete.cjs +1 -1
  53. package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
  54. package/dist/components/ui/QueryAutocomplete.d.ts +4 -1
  55. package/dist/components/ui/QueryAutocomplete.js +136 -123
  56. package/dist/components/ui/QueryAutocomplete.js.map +1 -1
  57. package/dist/components/ui/RankBar.cjs +1 -1
  58. package/dist/components/ui/RankBar.cjs.map +1 -1
  59. package/dist/components/ui/RankBar.js +9 -9
  60. package/dist/components/ui/RankBar.js.map +1 -1
  61. package/dist/components/ui/ReplayStepStrip.cjs +1 -1
  62. package/dist/components/ui/ReplayStepStrip.cjs.map +1 -1
  63. package/dist/components/ui/ReplayStepStrip.d.ts +6 -3
  64. package/dist/components/ui/ReplayStepStrip.js +71 -61
  65. package/dist/components/ui/ReplayStepStrip.js.map +1 -1
  66. package/dist/components/ui/ServiceMap.cjs +1 -1
  67. package/dist/components/ui/ServiceMap.cjs.map +1 -1
  68. package/dist/components/ui/ServiceMap.d.ts +9 -1
  69. package/dist/components/ui/ServiceMap.js +335 -268
  70. package/dist/components/ui/ServiceMap.js.map +1 -1
  71. package/dist/components/ui/SparkLine.cjs +1 -1
  72. package/dist/components/ui/SparkLine.cjs.map +1 -1
  73. package/dist/components/ui/SparkLine.d.ts +5 -2
  74. package/dist/components/ui/SparkLine.js +33 -29
  75. package/dist/components/ui/SparkLine.js.map +1 -1
  76. package/dist/components/ui/TableOfContents.cjs +1 -1
  77. package/dist/components/ui/TableOfContents.cjs.map +1 -1
  78. package/dist/components/ui/TableOfContents.js +16 -19
  79. package/dist/components/ui/TableOfContents.js.map +1 -1
  80. package/dist/components/ui/Tabs.cjs +2 -2
  81. package/dist/components/ui/Tabs.cjs.map +1 -1
  82. package/dist/components/ui/Tabs.js +107 -87
  83. package/dist/components/ui/Tabs.js.map +1 -1
  84. package/dist/components/ui/TimeRangePicker.cjs +1 -1
  85. package/dist/components/ui/TimeRangePicker.cjs.map +1 -1
  86. package/dist/components/ui/TimeRangePicker.d.ts +12 -1
  87. package/dist/components/ui/TimeRangePicker.js +69 -63
  88. package/dist/components/ui/TimeRangePicker.js.map +1 -1
  89. package/dist/components/ui/Timeline.cjs.map +1 -1
  90. package/dist/components/ui/Timeline.d.ts +4 -4
  91. package/dist/components/ui/Timeline.js.map +1 -1
  92. package/dist/components/ui/TimelineChart.cjs +2 -2
  93. package/dist/components/ui/TimelineChart.cjs.map +1 -1
  94. package/dist/components/ui/TimelineChart.d.ts +1 -0
  95. package/dist/components/ui/TimelineChart.js +131 -137
  96. package/dist/components/ui/TimelineChart.js.map +1 -1
  97. package/dist/components/ui/TraceTree.cjs +1 -1
  98. package/dist/components/ui/TraceTree.cjs.map +1 -1
  99. package/dist/components/ui/TraceTree.d.ts +4 -0
  100. package/dist/components/ui/TraceTree.js +88 -87
  101. package/dist/components/ui/TraceTree.js.map +1 -1
  102. package/dist/components/ui/TrajectoryStep.cjs +2 -1
  103. package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
  104. package/dist/components/ui/TrajectoryStep.js +64 -43
  105. package/dist/components/ui/TrajectoryStep.js.map +1 -1
  106. package/dist/components/ui/useColumnWidths.cjs +1 -1
  107. package/dist/components/ui/useColumnWidths.cjs.map +1 -1
  108. package/dist/components/ui/useColumnWidths.d.ts +6 -1
  109. package/dist/components/ui/useColumnWidths.js +139 -123
  110. package/dist/components/ui/useColumnWidths.js.map +1 -1
  111. package/dist/layouts/shell/AegisShell.cjs +1 -1
  112. package/dist/layouts/shell/AegisShell.cjs.map +1 -1
  113. package/dist/layouts/shell/AegisShell.js +33 -34
  114. package/dist/layouts/shell/AegisShell.js.map +1 -1
  115. package/dist/lib/breakAtSeparators.cjs +2 -0
  116. package/dist/lib/breakAtSeparators.cjs.map +1 -0
  117. package/dist/lib/breakAtSeparators.d.ts +6 -0
  118. package/dist/lib/breakAtSeparators.js +10 -0
  119. package/dist/lib/breakAtSeparators.js.map +1 -0
  120. package/dist/locale/strings.cjs +1 -1
  121. package/dist/locale/strings.cjs.map +1 -1
  122. package/dist/locale/strings.d.ts +6 -0
  123. package/dist/locale/strings.js +27 -19
  124. package/dist/locale/strings.js.map +1 -1
  125. package/dist/style.css +1 -1
  126. package/dist/theme/antdTheme.cjs +1 -1
  127. package/dist/theme/antdTheme.cjs.map +1 -1
  128. package/dist/theme/antdTheme.js +50 -29
  129. package/dist/theme/antdTheme.js.map +1 -1
  130. package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
  131. package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
  132. package/dist/transports/agentm/AgentmChannelProvider.js +66 -61
  133. package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
  134. package/package.json +1 -1
@@ -1,33 +1,33 @@
1
- import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
- import { useId as ze, useState as A, useMemo as He, useRef as ae, Fragment as Ue } from "react";
1
+ import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
+ import { useId as He, useState as P, useMemo as Ue, useRef as ae, Fragment as Ve } from "react";
3
3
  import { RightOutlined as le } from "@ant-design/icons";
4
- import { usePrimitiveSurface as Ve } from "../../agent/core/usePrimitiveSurface.js";
4
+ import { usePrimitiveSurface as qe } from "../../agent/core/usePrimitiveSurface.js";
5
5
  import { useDevelopAfterLoad as Ge } from "../../hooks/useDevelopAfterLoad.js";
6
6
  import { useMediaQuery as Qe } from "../../hooks/useMediaQuery.js";
7
7
  import { Checkbox as se } from "./Checkbox.js";
8
8
  /* empty css */
9
- import { EmptyState as qe } from "./EmptyState.js";
10
- import { Pagination as Fe } from "./Pagination.js";
9
+ import { EmptyState as Fe } from "./EmptyState.js";
10
+ import { Pagination as Xe } from "./Pagination.js";
11
11
  import { SkeletonText as Ye, Skeleton as Je } from "./Skeleton.js";
12
- import { useColumnWidths as Xe } from "./useColumnWidths.js";
13
- import { useStrings as Ze } from "../../locale/useStrings.js";
14
- const L = 44, M = 32, ie = 40, Ke = "(max-width: 768px)", et = 'a, button, input, select, textarea, label, [role="button"], [role="link"], [role="checkbox"]';
15
- function tt(s) {
12
+ import { useColumnWidths as Ze } from "./useColumnWidths.js";
13
+ import { useStrings as Ke } from "../../locale/useStrings.js";
14
+ const D = 44, W = 32, ie = 40, et = "var(--aegis-data-table-pinned-max)", tt = "(max-width: 768px)", at = 'a, button, input, select, textarea, label, [role="button"], [role="link"], [role="checkbox"]';
15
+ function lt(s) {
16
16
  if (window.getSelection()?.type === "Range")
17
17
  return !0;
18
18
  const g = s.target;
19
19
  if (!(g instanceof Element))
20
20
  return !1;
21
- const f = g.closest(et);
21
+ const f = g.closest(at);
22
22
  return f !== null && s.currentTarget.contains(f);
23
23
  }
24
- function at(s, g, f) {
25
- const x = g?.sortValue;
26
- if (!x)
24
+ function st(s, g, f) {
25
+ const R = g?.sortValue;
26
+ if (!R)
27
27
  return s;
28
28
  const y = f === "asc" ? 1 : -1;
29
29
  return s.map((i, n) => {
30
- const u = x(i);
30
+ const u = R(i);
31
31
  return { row: i, index: n, v: typeof u == "number" && isNaN(u) ? null : u };
32
32
  }).sort((i, n) => {
33
33
  if (i.v === null || n.v === null)
@@ -36,10 +36,10 @@ function at(s, g, f) {
36
36
  return u === 0 ? i.index - n.index : u * y;
37
37
  }).map((i) => i.row);
38
38
  }
39
- function lt({
39
+ function it({
40
40
  direction: s
41
41
  }) {
42
- return /* @__PURE__ */ o(
42
+ return /* @__PURE__ */ d(
43
43
  "svg",
44
44
  {
45
45
  className: "aegis-data-table__sort-icon",
@@ -64,11 +64,11 @@ function lt({
64
64
  }
65
65
  );
66
66
  }
67
- function ft({
67
+ function vt({
68
68
  columns: s,
69
69
  data: g,
70
70
  rowKey: f,
71
- ariaLabel: x,
71
+ ariaLabel: R,
72
72
  loading: y = !1,
73
73
  emptyTitle: i,
74
74
  emptyDescription: n,
@@ -76,39 +76,39 @@ function ft({
76
76
  className: ne,
77
77
  framed: oe = !0,
78
78
  persistKey: de,
79
- pagination: P,
80
- selectable: d = !1,
81
- selectedKeys: z,
82
- onSelectedKeysChange: H,
83
- renderExpanded: U,
84
- expandedKeys: V,
79
+ pagination: z,
80
+ selectable: r = !1,
81
+ selectedKeys: H,
82
+ onSelectedKeysChange: U,
83
+ renderExpanded: V,
84
+ expandedKeys: q,
85
85
  defaultExpandedKeys: re,
86
86
  onExpandedKeysChange: ce,
87
87
  renderMobileCard: G,
88
- onRowClick: D,
88
+ onRowClick: L,
89
89
  stickyFirstColumn: _e = !1,
90
90
  stale: Q = !1,
91
- sort: $,
91
+ sort: I,
92
92
  defaultSort: ge,
93
93
  onSortChange: he,
94
94
  surface: ue
95
95
  }) {
96
- const N = Ze(), me = Qe(Ke), be = ze(), m = G !== void 0 && me, pe = Ge(y), [fe, ve] = A(ge ?? null), h = $ === void 0 ? fe : $, q = s.find((e) => e.key === h?.key), O = He(
97
- () => at(g, q, h?.direction ?? "asc"),
98
- [g, q, h?.direction]
96
+ const N = Ke(), me = Qe(tt), be = He(), m = G !== void 0 && me, pe = Ge(y), [fe, ve] = P(ge ?? null), h = I === void 0 ? fe : I, F = s.find((e) => e.key === h?.key), O = Ue(
97
+ () => st(g, F, h?.direction ?? "asc"),
98
+ [g, F, h?.direction]
99
99
  ), ye = (e) => {
100
100
  const t = e.firstSortDirection ?? (e.numeric ? "desc" : "asc"), l = {
101
101
  key: e.key,
102
102
  direction: h?.key === e.key ? h.direction === "asc" ? "desc" : "asc" : t
103
103
  };
104
- $ === void 0 && ve(l), he?.(l);
105
- }, S = z ?? [], k = O.map((e, t) => f(e, t)), j = k.filter((e) => S.includes(e)).length, Ne = (e, t) => {
106
- H?.(
104
+ I === void 0 && ve(l), he?.(l);
105
+ }, S = H ?? [], k = O.map((e, t) => f(e, t)), j = k.filter((e) => S.includes(e)).length, Ne = (e, t) => {
106
+ U?.(
107
107
  t ? [...S, e] : S.filter((l) => l !== e)
108
108
  );
109
109
  }, ke = (e) => {
110
110
  const t = S.filter((l) => !k.includes(l));
111
- H?.(e ? [...t, ...k] : t);
111
+ U?.(e ? [...t, ...k] : t);
112
112
  }, Ce = (e, t) => /* @__PURE__ */ a(
113
113
  se,
114
114
  {
@@ -116,59 +116,60 @@ function ft({
116
116
  onChange: t,
117
117
  ariaLabel: N.selectRow
118
118
  }
119
- ), [we, Se] = A(re ?? []), v = V ?? we, [I, xe] = A(v), F = v.filter((e) => !I.includes(e));
120
- F.length > 0 && xe([...I, ...F]);
119
+ ), [we, Se] = P(re ?? []), v = q ?? we, [M, xe] = P(v), X = v.filter((e) => !M.includes(e));
120
+ X.length > 0 && xe([...M, ...X]);
121
121
  const Re = (e) => {
122
122
  const t = v.includes(e) ? v.filter((l) => l !== e) : [...v, e];
123
- V === void 0 && Se(t), ce?.(t);
124
- }, Y = ae(null), J = ae(null), Ee = Ve(ue, g, "table", J), b = U !== void 0, r = D !== void 0, X = (d ? L : 0) + (b ? M : 0), C = Xe({
123
+ q === void 0 && Se(t), ce?.(t);
124
+ }, Y = ae(null), J = ae(null), Ee = qe(ue, g, "table", J), b = V !== void 0, c = L !== void 0, E = (r ? D : 0) + (b ? W : 0), Te = c ? ie : 0, x = _e && !m, C = Ze({
125
125
  columns: s,
126
126
  persistKey: de,
127
- leadWidth: X,
128
- trailWidth: r ? ie : 0,
127
+ leadWidth: E,
128
+ trailWidth: Te,
129
+ firstColumnMax: x ? et : void 0,
129
130
  tableRef: Y
130
- }), Te = [
131
+ }), $e = [
131
132
  "aegis-data-table",
132
133
  oe ? "aegis-data-table--framed" : "",
133
134
  Q ? "aegis-data-table--stale" : "",
134
135
  ne ?? ""
135
- ].filter(Boolean).join(" "), R = C.sized && !m, E = R && C.fillerStyle !== void 0, T = _e && !m, Z = (m ? 1 : s.length) + (E ? 1 : 0) + (r ? 1 : 0), Le = Z + (d ? 1 : 0) + (b ? 1 : 0), De = d ? L : 0, w = (e, t) => ({
136
+ ].filter(Boolean).join(" "), T = C.sized && !m, $ = T && C.fillerStyle !== void 0, Z = (m ? 1 : s.length) + ($ ? 1 : 0) + (c ? 1 : 0), De = Z + (r ? 1 : 0) + (b ? 1 : 0), Le = r ? D : 0, w = (e, t) => ({
136
137
  className: [
137
138
  `aegis-data-table__${t}`,
138
139
  `aegis-data-table__${e}-cell`,
139
- T ? `aegis-data-table__${t}--sticky` : ""
140
+ x ? `aegis-data-table__${t}--sticky` : ""
140
141
  ].filter(Boolean).join(" "),
141
142
  style: {
142
- width: e === "select" ? L : M,
143
- left: T ? e === "select" ? 0 : De : void 0
143
+ width: e === "select" ? D : W,
144
+ left: x ? e === "select" ? 0 : Le : void 0
144
145
  }
145
- }), W = (e, t, l) => {
146
- const c = `aegis-data-table__${e}`, _ = [c];
147
- return T && t === 0 && _.push(`${c}--sticky`), l !== void 0 && (_.push(
146
+ }), A = (e, t, l) => {
147
+ const o = `aegis-data-table__${e}`, _ = [o];
148
+ return x && t === 0 && _.push(`${o}--sticky`, `${o}--pinned`), l !== void 0 && (_.push(
148
149
  "aegis-data-table__td--tone",
149
150
  `aegis-data-table__td--tone-${l.tone}`
150
151
  ), l.step !== void 0 && l.step > 1 && _.push(`aegis-data-table__td--step-${String(l.step)}`)), _.join(" ");
151
152
  }, K = (e) => e.kind === "actions" || e.numeric === !0 ? "right" : e.align ?? "left", B = (e, t) => ({
152
153
  textAlign: K(e),
153
- left: T && t === 0 ? X : void 0
154
+ left: x && t === 0 ? E : void 0
154
155
  }), ee = (e, t) => {
155
156
  const l = [
156
157
  "aegis-data-table__cell",
157
158
  `aegis-data-table__cell--${K(e)}`
158
159
  ];
159
160
  return e.numeric && l.push("aegis-data-table__cell--numeric"), e.kind === "actions" ? l.push("aegis-data-table__cell--actions") : (e.truncate ?? !0) && l.push("aegis-data-table__cell--truncate"), /* @__PURE__ */ a("div", { className: l.join(" "), children: t });
160
- }, $e = (e, t) => m ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: G(e, t) }) : s.map((l, c) => /* @__PURE__ */ a(
161
+ }, Ie = (e, t) => m ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: G(e, t) }) : s.map((l, o) => /* @__PURE__ */ a(
161
162
  "td",
162
163
  {
163
- className: W("td", c, l.cellTone?.(e, t)),
164
- style: B(l, c),
164
+ className: A("td", o, l.cellTone?.(e, t)),
165
+ style: B(l, o),
165
166
  children: ee(l, l.render(e, t))
166
167
  },
167
168
  l.key
168
169
  )), Oe = () => m ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: /* @__PURE__ */ a(Ye, { lines: 2 }) }) : s.map((e, t) => /* @__PURE__ */ a(
169
170
  "td",
170
171
  {
171
- className: W("td", t),
172
+ className: A("td", t),
172
173
  style: B(e, t),
173
174
  children: ee(
174
175
  e,
@@ -176,14 +177,14 @@ function ft({
176
177
  )
177
178
  },
178
179
  e.key
179
- )), te = E && /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__filler", "aria-hidden": !0 }), je = r && /* @__PURE__ */ a(
180
+ )), te = $ && /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__filler", "aria-hidden": !0 }), je = c && /* @__PURE__ */ a(
180
181
  "td",
181
182
  {
182
183
  className: "aegis-data-table__td aegis-data-table__chevron-cell",
183
184
  "aria-hidden": !0,
184
185
  children: /* @__PURE__ */ a(le, { className: "aegis-data-table__chevron", "aria-hidden": !0 })
185
186
  }
186
- ), Ie = (e, t) => {
187
+ ), Me = (e, t) => {
187
188
  const l = v.includes(e);
188
189
  return /* @__PURE__ */ a(
189
190
  "button",
@@ -199,60 +200,70 @@ function ft({
199
200
  children: /* @__PURE__ */ a(le, { className: "aegis-data-table__toggle-icon", "aria-hidden": !0 })
200
201
  }
201
202
  );
202
- }, We = (e, t, l, c, _) => {
203
+ }, Ae = (e, t, l, o, _) => {
203
204
  const p = v.includes(l);
204
- return /* @__PURE__ */ o(
205
+ return /* @__PURE__ */ d(
205
206
  "tr",
206
207
  {
207
208
  className: p ? "aegis-data-table__detail-row aegis-data-table__detail-row--open" : "aegis-data-table__detail-row",
208
209
  children: [
209
- d && /* @__PURE__ */ a("td", { className: "aegis-data-table__detail-cell" }),
210
+ r && /* @__PURE__ */ a("td", { className: "aegis-data-table__detail-cell" }),
210
211
  /* @__PURE__ */ a("td", { className: "aegis-data-table__detail-cell" }),
211
212
  /* @__PURE__ */ a(
212
213
  "td",
213
214
  {
214
- id: c,
215
+ id: o,
215
216
  colSpan: Z,
216
217
  className: "aegis-data-table__detail-cell",
217
- children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-clip", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-body", children: (p || I.includes(l)) && _(e, t) }) }) })
218
+ children: /* @__PURE__ */ a(
219
+ "div",
220
+ {
221
+ className: "aegis-data-table__detail",
222
+ style: {
223
+ left: E,
224
+ width: `calc(100cqi - ${String(E)}px)`
225
+ },
226
+ children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-clip", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-body", children: (p || M.includes(l)) && _(e, t) }) })
227
+ }
228
+ )
218
229
  }
219
230
  )
220
231
  ]
221
232
  }
222
233
  );
223
234
  }, Be = (e, t, l) => {
224
- tt(e) || D?.(t, l);
225
- }, Ae = (e, t, l) => {
226
- e.key === "Enter" && e.target === e.currentTarget && (e.preventDefault(), D?.(t, l));
227
- }, Me = (e) => [
235
+ lt(e) || L?.(t, l);
236
+ }, Pe = (e, t, l) => {
237
+ e.key === "Enter" && e.target === e.currentTarget && (e.preventDefault(), L?.(t, l));
238
+ }, We = (e) => [
228
239
  "aegis-data-table__row",
229
- r ? "aegis-data-table__row--clickable" : "",
240
+ c ? "aegis-data-table__row--clickable" : "",
230
241
  b ? "aegis-data-table__row--expandable" : "",
231
242
  e ? "aegis-data-table__row--selected" : ""
232
- ].filter(Boolean).join(" "), Pe = [
243
+ ].filter(Boolean).join(" "), ze = [
233
244
  "aegis-data-table__table",
234
- R ? "aegis-data-table__table--fixed" : "",
245
+ T ? "aegis-data-table__table--fixed" : "",
235
246
  m ? "aegis-data-table__table--cards" : ""
236
247
  ].filter(Boolean).join(" ");
237
- return /* @__PURE__ */ o(
248
+ return /* @__PURE__ */ d(
238
249
  "div",
239
250
  {
240
251
  ref: J,
241
- className: Te,
252
+ className: $e,
242
253
  "aria-busy": Q || y ? !0 : void 0,
243
254
  ...Ee,
244
255
  children: [
245
- /* @__PURE__ */ a("div", { className: "aegis-data-table__scroll", children: /* @__PURE__ */ o(
256
+ /* @__PURE__ */ a("div", { className: "aegis-data-table__scroll-frame", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__scroll", children: /* @__PURE__ */ d(
246
257
  "table",
247
258
  {
248
259
  ref: Y,
249
- "aria-label": x,
250
- className: Pe,
251
- style: R ? C.tableStyle : void 0,
260
+ "aria-label": R,
261
+ className: ze,
262
+ style: T ? C.tableStyle : void 0,
252
263
  children: [
253
- R && /* @__PURE__ */ o("colgroup", { children: [
254
- d && /* @__PURE__ */ a("col", { style: { width: L } }, "__select"),
255
- b && /* @__PURE__ */ a("col", { style: { width: M } }, "__toggle"),
264
+ T && /* @__PURE__ */ d("colgroup", { children: [
265
+ r && /* @__PURE__ */ a("col", { style: { width: D } }, "__select"),
266
+ b && /* @__PURE__ */ a("col", { style: { width: W } }, "__toggle"),
256
267
  s.map((e, t) => {
257
268
  const l = C.widths[t];
258
269
  return /* @__PURE__ */ a(
@@ -264,7 +275,7 @@ function ft({
264
275
  e.key
265
276
  );
266
277
  }),
267
- E && /* @__PURE__ */ a(
278
+ $ && /* @__PURE__ */ a(
268
279
  "col",
269
280
  {
270
281
  "data-column-filler": !0,
@@ -272,10 +283,10 @@ function ft({
272
283
  },
273
284
  "__filler"
274
285
  ),
275
- r && /* @__PURE__ */ a("col", { style: { width: ie } }, "__chevron")
286
+ c && /* @__PURE__ */ a("col", { style: { width: ie } }, "__chevron")
276
287
  ] }),
277
- (!m || d) && /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ o("tr", { children: [
278
- d && /* @__PURE__ */ a(
288
+ (!m || r) && /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ d("tr", { children: [
289
+ r && /* @__PURE__ */ a(
279
290
  "th",
280
291
  {
281
292
  scope: "col",
@@ -300,16 +311,16 @@ function ft({
300
311
  },
301
312
  "__toggle"
302
313
  ),
303
- m ? /* @__PURE__ */ a("th", { scope: "col", className: "aegis-data-table__th" }) : s.map((e, t) => /* @__PURE__ */ o(
314
+ m ? /* @__PURE__ */ a("th", { scope: "col", className: "aegis-data-table__th" }) : s.map((e, t) => /* @__PURE__ */ d(
304
315
  "th",
305
316
  {
306
317
  scope: "col",
307
318
  "data-column-key": e.key,
308
- className: W("th", t),
319
+ className: A("th", t),
309
320
  style: B(e, t),
310
321
  "aria-sort": e.sortable ? h?.key === e.key ? h.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
311
322
  children: [
312
- e.sortable ? /* @__PURE__ */ o(
323
+ e.sortable ? /* @__PURE__ */ d(
313
324
  "button",
314
325
  {
315
326
  type: "button",
@@ -320,7 +331,7 @@ function ft({
320
331
  children: [
321
332
  /* @__PURE__ */ a("span", { className: "aegis-data-table__th-label", children: e.header }),
322
333
  /* @__PURE__ */ a(
323
- lt,
334
+ it,
324
335
  {
325
336
  direction: h?.key === e.key ? h.direction : null
326
337
  }
@@ -340,7 +351,7 @@ function ft({
340
351
  },
341
352
  e.key
342
353
  )),
343
- E && /* @__PURE__ */ a(
354
+ $ && /* @__PURE__ */ a(
344
355
  "th",
345
356
  {
346
357
  scope: "col",
@@ -348,7 +359,7 @@ function ft({
348
359
  "aria-hidden": !0
349
360
  }
350
361
  ),
351
- r && /* @__PURE__ */ a(
362
+ c && /* @__PURE__ */ a(
352
363
  "th",
353
364
  {
354
365
  scope: "col",
@@ -357,21 +368,21 @@ function ft({
357
368
  }
358
369
  )
359
370
  ] }) }),
360
- /* @__PURE__ */ a("tbody", { "data-aegis-develop": pe || void 0, children: y ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ o("tr", { className: "aegis-data-table__row", children: [
361
- d && /* @__PURE__ */ a("td", { ...w("select", "td") }, "__select"),
371
+ /* @__PURE__ */ a("tbody", { "data-aegis-develop": pe || void 0, children: y ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ d("tr", { className: "aegis-data-table__row", children: [
372
+ r && /* @__PURE__ */ a("td", { ...w("select", "td") }, "__select"),
362
373
  b && /* @__PURE__ */ a("td", { ...w("toggle", "td") }, "__toggle"),
363
374
  Oe(),
364
375
  te,
365
- r && /* @__PURE__ */ a("td", { className: "aegis-data-table__td", "aria-hidden": !0 })
376
+ c && /* @__PURE__ */ a("td", { className: "aegis-data-table__td", "aria-hidden": !0 })
366
377
  ] }, `sk-${t}`)) : O.length === 0 ? (
367
378
  // Not a data row, so an empty table has no rows to read.
368
379
  /* @__PURE__ */ a("tr", { role: "presentation", children: /* @__PURE__ */ a(
369
380
  "td",
370
381
  {
371
- colSpan: Le,
382
+ colSpan: De,
372
383
  className: "aegis-data-table__empty-cell",
373
384
  children: /* @__PURE__ */ a("div", { className: "aegis-data-table__empty", children: /* @__PURE__ */ a(
374
- qe,
385
+ Fe,
375
386
  {
376
387
  title: i ?? N.noData,
377
388
  description: n,
@@ -381,41 +392,47 @@ function ft({
381
392
  }
382
393
  ) })
383
394
  ) : O.map((e, t) => {
384
- const l = f(e, t), c = `${be}-detail-${String(t)}`, _ = S.includes(l);
385
- return /* @__PURE__ */ o(Ue, { children: [
386
- /* @__PURE__ */ o(
395
+ const l = f(e, t), o = `${be}-detail-${String(t)}`, _ = S.includes(l);
396
+ return /* @__PURE__ */ d(Ve, { children: [
397
+ /* @__PURE__ */ d(
387
398
  "tr",
388
399
  {
389
- className: Me(_),
390
- "aria-selected": d || z !== void 0 ? _ : void 0,
391
- tabIndex: r ? 0 : void 0,
392
- onClick: r ? (p) => {
400
+ className: We(_),
401
+ "aria-selected": r || H !== void 0 ? _ : void 0,
402
+ tabIndex: c ? 0 : void 0,
403
+ onClick: c ? (p) => {
393
404
  Be(p, e, t);
394
405
  } : void 0,
395
- onKeyDown: r ? (p) => {
396
- Ae(p, e, t);
406
+ onKeyDown: c ? (p) => {
407
+ Pe(p, e, t);
397
408
  } : void 0,
398
409
  children: [
399
- d && /* @__PURE__ */ a("td", { ...w("select", "td"), children: Ce(_, (p) => {
410
+ r && /* @__PURE__ */ a("td", { ...w("select", "td"), children: Ce(_, (p) => {
400
411
  Ne(l, p);
401
412
  }) }),
402
- b && /* @__PURE__ */ a("td", { ...w("toggle", "td"), children: Ie(l, c) }),
403
- $e(e, t),
413
+ b && /* @__PURE__ */ a("td", { ...w("toggle", "td"), children: Me(l, o) }),
414
+ Ie(e, t),
404
415
  te,
405
416
  je
406
417
  ]
407
418
  }
408
419
  ),
409
- b && We(e, t, l, c, U)
420
+ b && Ae(
421
+ e,
422
+ t,
423
+ l,
424
+ o,
425
+ V
426
+ )
410
427
  ] }, l);
411
428
  }) })
412
429
  ]
413
430
  }
414
- ) }),
415
- P && /* @__PURE__ */ a(
416
- Fe,
431
+ ) }) }),
432
+ z && /* @__PURE__ */ a(
433
+ Xe,
417
434
  {
418
- ...P,
435
+ ...z,
419
436
  pageRowCount: g.length,
420
437
  disabled: y,
421
438
  className: "aegis-data-table__footer"
@@ -426,6 +443,6 @@ function ft({
426
443
  );
427
444
  }
428
445
  export {
429
- ft as DataTable
446
+ vt as DataTable
430
447
  };
431
448
  //# sourceMappingURL=DataTable.js.map