@umriss-ui/table 0.2.0-rc.0 → 0.2.0-rc.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.
package/dist/table.js CHANGED
@@ -1,8 +1,9 @@
1
- var vt = Object.defineProperty;
2
- var wt = (e, t, n) => t in e ? vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var L = (e, t, n) => wt(e, typeof t != "symbol" ? t + "" : t, n);
1
+ import "./table.css";
2
+ var kt = Object.defineProperty;
3
+ var _t = (e, t, n) => t in e ? kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var L = (e, t, n) => _t(e, typeof t != "symbol" ? t + "" : t, n);
4
5
  import { useState as E, useCallback as B, useMemo as V, useRef as oe, useId as Z, useContext as xe, useSyncExternalStore as pe, createContext as Ge, useLayoutEffect as J } from "react";
5
- import { DEFAULT_FORMATS as _t, useVirtual as kt, useFormats as te, useWording as $, Checkbox as ge, DateRangePicker as yt, FormField as Ee, NumberInput as Pe, Popover as qe, Button as G, TagGroup as Ct, Tag as St, useDensityFor as Ue, VisuallyHidden as be, Menu as Nt, MenuItem as At, assess as xt, verdictWeight as Tt, Select as Ot, Input as Rt, DEFAULT_WORDING as It, Badge as Ce, useFreshness as Ft } from "@umriss-ui/core";
6
+ import { DEFAULT_FORMATS as wt, useVirtual as vt, useFormats as te, useWording as $, Checkbox as ge, DateRangePicker as yt, FormField as Ee, NumberInput as Pe, Popover as Ue, Button as G, TagGroup as Ct, Tag as St, useDensityFor as qe, VisuallyHidden as be, Menu as Nt, MenuItem as At, assess as xt, verdictWeight as Tt, Select as Ot, Input as Rt, DEFAULT_WORDING as It, Badge as Ce, useFreshness as Ft } from "@umriss-ui/core";
6
7
  import { jsx as c, jsxs as T, Fragment as Q } from "react/jsx-runtime";
7
8
  import { createPortal as Lt } from "react-dom";
8
9
  function zt(e) {
@@ -20,7 +21,7 @@ function zt(e) {
20
21
  ), l = B(() => {
21
22
  n((u) => {
22
23
  const d = new Set(u);
23
- return e.length > 0 && e.every((v) => d.has(v)) ? e.forEach((v) => d.delete(v)) : e.forEach((v) => d.add(v)), d;
24
+ return e.length > 0 && e.every((k) => d.has(k)) ? e.forEach((k) => d.delete(k)) : e.forEach((k) => d.add(k)), d;
24
25
  });
25
26
  }, [e]), a = B(() => n(/* @__PURE__ */ new Set()), []);
26
27
  return { selected: t, isSelected: o, toggle: r, toggleAll: l, clear: a, allSelected: i, someSelected: s, count: t.size };
@@ -31,7 +32,7 @@ function Te(e, t) {
31
32
  ...e.filter((n) => !t.includes(n.id))
32
33
  ] : e;
33
34
  }
34
- const ie = (e) => e == null || typeof e == "number" && Number.isNaN(e), jt = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : _t.compareText(String(e), String(t));
35
+ const ie = (e) => e == null || typeof e == "number" && Number.isNaN(e), jt = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : wt.compareText(String(e), String(t));
35
36
  function Oe(e, t, n) {
36
37
  const {
37
38
  search: o = "",
@@ -41,21 +42,21 @@ function Oe(e, t, n) {
41
42
  pageSize: l,
42
43
  hidden: a,
43
44
  order: u
44
- } = n, d = Te(t, u), h = a != null && a.length ? d.filter((w) => w.hideable === !1 || !a.includes(w.id)) : d, v = o.trim().toLowerCase(), g = t.filter((w) => w.searchable && w.value), p = (w) => !v || g.some((S) => {
45
- const I = S.value(w);
46
- return !ie(I) && String(I).toLowerCase().includes(v);
47
- }), b = e.filter((w) => p(w) && (r ? r(w) : !0)), m = (Array.isArray(i) ? i : i ? [i] : []).map((w) => {
48
- const S = t.find((x) => x.id === w.column);
45
+ } = n, d = Te(t, u), h = a != null && a.length ? d.filter((_) => _.hideable === !1 || !a.includes(_.id)) : d, k = o.trim().toLowerCase(), g = t.filter((_) => _.searchable && _.value), p = (_) => !k || g.some((S) => {
46
+ const I = S.value(_);
47
+ return !ie(I) && String(I).toLowerCase().includes(k);
48
+ }), b = e.filter((_) => p(_) && (r ? r(_) : !0)), m = (Array.isArray(i) ? i : i ? [i] : []).map((_) => {
49
+ const S = t.find((x) => x.id === _.column);
49
50
  if (!S || !S.compare && !S.value) return null;
50
- const I = w.direction === "asc" ? 1 : -1, A = S.compare, C = S.value;
51
+ const I = _.direction === "asc" ? 1 : -1, A = S.compare, C = S.value;
51
52
  return C ? (x, z) => {
52
53
  const F = C(x), D = C(z);
53
54
  return ie(F) || ie(D) ? ie(F) === ie(D) ? 0 : ie(F) ? 1 : -1 : (A ? A(x, z) : jt(F, D)) * I;
54
55
  } : (x, z) => A(x, z) * I;
55
- }).filter((w) => w !== null);
56
- m.length > 0 && b.sort((w, S) => {
56
+ }).filter((_) => _ !== null);
57
+ m.length > 0 && b.sort((_, S) => {
57
58
  for (const I of m) {
58
- const A = I(w, S);
59
+ const A = I(_, S);
59
60
  if (A !== 0) return A;
60
61
  }
61
62
  return 0;
@@ -72,101 +73,101 @@ function Oe(e, t, n) {
72
73
  }
73
74
  function Et(e, t, n) {
74
75
  const { rowKey: o, filter: r, defaultSort: i = null, initialView: s, virtual: l } = n, [a, u] = E((s == null ? void 0 : s.search) ?? ""), [d, h] = E(() => {
75
- var k;
76
- return (k = s == null ? void 0 : s.sort) != null && k.length ? [...s.sort] : i ? Array.isArray(i) ? [...i] : [i] : [];
77
- }), [v, g] = E((s == null ? void 0 : s.page) ?? 1), [p, b] = E(
76
+ var v;
77
+ return (v = s == null ? void 0 : s.sort) != null && v.length ? [...s.sort] : i ? Array.isArray(i) ? [...i] : [i] : [];
78
+ }), [k, g] = E((s == null ? void 0 : s.page) ?? 1), [p, b] = E(
78
79
  (s == null ? void 0 : s.pageSize) ?? n.pageSize ?? 10
79
- ), [_, m] = E([]), [y, O] = E((s == null ? void 0 : s.hidden) ?? []), [N, P] = E((s == null ? void 0 : s.order) ?? []), [w, S] = E(() => {
80
+ ), [w, m] = E([]), [y, O] = E((s == null ? void 0 : s.hidden) ?? []), [N, P] = E((s == null ? void 0 : s.order) ?? []), [_, S] = E(() => {
80
81
  if (s != null && s.widths) return { ...s.widths };
81
- const k = {};
82
+ const v = {};
82
83
  for (const R of t)
83
- R.width !== void 0 && (k[R.id] = R.width);
84
- return k;
84
+ R.width !== void 0 && (v[R.id] = R.width);
85
+ return v;
85
86
  }), I = l ? 0 : p, A = V(
86
87
  () => Oe(e, t, {
87
88
  search: a,
88
89
  filter: r,
89
90
  sort: d,
90
- page: v,
91
+ page: k,
91
92
  pageSize: I,
92
93
  hidden: y,
93
94
  order: N
94
95
  }),
95
- [e, t, a, r, d, v, I, y, N]
96
- ), C = kt(l ? A.filtered.length : 0, {
96
+ [e, t, a, r, d, k, I, y, N]
97
+ ), C = vt(l ? A.filtered.length : 0, {
97
98
  rowHeight: (l == null ? void 0 : l.rowHeight) ?? 0,
98
99
  overscan: l == null ? void 0 : l.overscan
99
100
  }), x = V(
100
101
  () => l ? A.filtered.slice(C.from, C.to) : A.visible,
101
102
  [l, A.filtered, A.visible, C.from, C.to]
102
- ), z = V(() => A.filtered.map(o), [A.filtered, o]), F = zt(z), D = B((k) => {
103
- u(k), g(1);
104
- }, []), W = B((k) => {
105
- b(k), g(1);
106
- }, []), U = B((k, R = !1) => {
103
+ ), z = V(() => A.filtered.map(o), [A.filtered, o]), F = zt(z), D = B((v) => {
104
+ u(v), g(1);
105
+ }, []), W = B((v) => {
106
+ b(v), g(1);
107
+ }, []), q = B((v, R = !1) => {
107
108
  h((j) => {
108
- const Y = j.find((ne) => ne.column === k);
109
+ const Y = j.find((ne) => ne.column === v);
109
110
  if (!R) {
110
111
  const ne = j.length === 1 && (Y == null ? void 0 : Y.direction) === "asc" ? "desc" : "asc";
111
- return [{ column: k, direction: ne }];
112
+ return [{ column: v, direction: ne }];
112
113
  }
113
114
  return Y ? Y.direction === "asc" ? j.map(
114
- (ne) => ne.column === k ? { column: k, direction: "desc" } : ne
115
- ) : j.filter((ne) => ne.column !== k) : [...j, { column: k, direction: "asc" }];
115
+ (ne) => ne.column === v ? { column: v, direction: "desc" } : ne
116
+ ) : j.filter((ne) => ne.column !== v) : [...j, { column: v, direction: "asc" }];
116
117
  }), g(1);
117
- }, []), M = B((k) => {
118
+ }, []), M = B((v) => {
118
119
  m(
119
- (R) => R.includes(k) ? R.filter((j) => j !== k) : [...R, k]
120
+ (R) => R.includes(v) ? R.filter((j) => j !== v) : [...R, v]
120
121
  );
121
122
  }, []), K = B(
122
- (k) => _.includes(k),
123
- [_]
124
- ), _e = B((k) => {
123
+ (v) => w.includes(v),
124
+ [w]
125
+ ), we = B((v) => {
125
126
  O(
126
- (R) => R.includes(k) ? R.filter((j) => j !== k) : [...R, k]
127
+ (R) => R.includes(v) ? R.filter((j) => j !== v) : [...R, v]
127
128
  );
128
- }, []), ht = B((k, R) => {
129
+ }, []), ht = B((v, R) => {
129
130
  S((j) => {
130
131
  if (R === void 0) {
131
- if (!(k in j)) return j;
132
+ if (!(v in j)) return j;
132
133
  const Y = { ...j };
133
- return delete Y[k], Y;
134
+ return delete Y[v], Y;
134
135
  }
135
- return { ...j, [k]: R };
136
+ return { ...j, [v]: R };
136
137
  });
137
138
  }, []), mt = B(
138
- (k) => {
139
+ (v) => {
139
140
  var R;
140
- return (R = d.find((j) => j.column === k)) == null ? void 0 : R.direction;
141
+ return (R = d.find((j) => j.column === v)) == null ? void 0 : R.direction;
141
142
  },
142
143
  [d]
143
144
  ), pt = B(
144
- (k) => {
145
+ (v) => {
145
146
  if (d.length < 2) return;
146
- const R = d.findIndex((j) => j.column === k);
147
+ const R = d.findIndex((j) => j.column === v);
147
148
  return R === -1 ? void 0 : R + 1;
148
149
  },
149
150
  [d]
150
151
  ), gt = V(
151
- () => Te(t, N).filter((k) => k.label !== void 0 && k.hideable !== !1).map((k) => ({ id: k.id, label: k.label, visible: !y.includes(k.id) })),
152
+ () => Te(t, N).filter((v) => v.label !== void 0 && v.hideable !== !1).map((v) => ({ id: v.id, label: v.label, visible: !y.includes(v.id) })),
152
153
  [t, N, y]
153
154
  ), Le = n.pageSize ?? 10, ze = V(() => {
154
- const k = {};
155
+ const v = {};
155
156
  for (const R of t)
156
- R.width !== void 0 && (k[R.id] = R.width);
157
- return k;
158
- }, [t]), ke = V(() => {
159
- const k = {};
160
- for (const [R, j] of Object.entries(w))
161
- ze[R] !== j && (k[R] = j);
162
- return k;
163
- }, [w, ze]), ye = V(
157
+ R.width !== void 0 && (v[R.id] = R.width);
158
+ return v;
159
+ }, [t]), ve = V(() => {
160
+ const v = {};
161
+ for (const [R, j] of Object.entries(_))
162
+ ze[R] !== j && (v[R] = j);
163
+ return v;
164
+ }, [_, ze]), ye = V(
164
165
  () => i ? Array.isArray(i) ? i : [i] : [],
165
166
  [i]
166
167
  ), je = d.length === ye.length && d.every(
167
- (k, R) => {
168
+ (v, R) => {
168
169
  var j, Y;
169
- return k.column === ((j = ye[R]) == null ? void 0 : j.column) && k.direction === ((Y = ye[R]) == null ? void 0 : Y.direction);
170
+ return v.column === ((j = ye[R]) == null ? void 0 : j.column) && v.direction === ((Y = ye[R]) == null ? void 0 : Y.direction);
170
171
  }
171
172
  ), bt = V(
172
173
  () => ({
@@ -179,7 +180,7 @@ function Et(e, t, n) {
179
180
  ...!l && p !== Le ? { pageSize: p } : {},
180
181
  ...y.length ? { hidden: y } : {},
181
182
  ...N.length ? { order: N } : {},
182
- ...Object.keys(ke).length ? { widths: ke } : {}
183
+ ...Object.keys(ve).length ? { widths: ve } : {}
183
184
  }),
184
185
  [
185
186
  l,
@@ -191,7 +192,7 @@ function Et(e, t, n) {
191
192
  Le,
192
193
  y,
193
194
  N,
194
- ke
195
+ ve
195
196
  ]
196
197
  );
197
198
  return {
@@ -202,21 +203,21 @@ function Et(e, t, n) {
202
203
  search: a,
203
204
  setSearch: D,
204
205
  sort: d,
205
- toggleSort: U,
206
+ toggleSort: q,
206
207
  sortDirectionOf: mt,
207
208
  sortRankOf: pt,
208
209
  setPage: g,
209
210
  pageSize: p,
210
211
  setPageSize: W,
211
- expanded: _,
212
+ expanded: w,
212
213
  toggleRow: M,
213
214
  isExpanded: K,
214
215
  hidden: y,
215
- toggleColumn: _e,
216
+ toggleColumn: we,
216
217
  columnChoices: gt,
217
218
  order: N,
218
219
  setOrder: P,
219
- widths: w,
220
+ widths: _,
220
221
  setWidth: ht,
221
222
  selection: F
222
223
  };
@@ -230,20 +231,20 @@ const Ye = Pt(), Me = /* @__PURE__ */ new Set();
230
231
  function re(e, t) {
231
232
  !Ye || Me.has(e) || (Me.add(e), console.warn(`@umriss-ui/table: ${t}`));
232
233
  }
233
- const q = (e) => e == null || typeof e == "number" && Number.isNaN(e);
234
- function ve(e) {
235
- return q(e) ? "empty" : typeof e == "string" ? "text" : typeof e == "number" ? "number" : typeof e == "boolean" ? "boolean" : e instanceof Date ? Number.isNaN(e.getTime()) ? "empty" : "date" : "other";
234
+ const U = (e) => e == null || typeof e == "number" && Number.isNaN(e);
235
+ function ke(e) {
236
+ return U(e) ? "empty" : typeof e == "string" ? "text" : typeof e == "number" ? "number" : typeof e == "boolean" ? "boolean" : e instanceof Date ? Number.isNaN(e.getTime()) ? "empty" : "date" : "other";
236
237
  }
237
238
  function Mt(e, t) {
238
239
  for (const n of e) {
239
- const o = ve(t(n));
240
+ const o = ke(t(n));
240
241
  if (o !== "empty") return o;
241
242
  }
242
243
  return "empty";
243
244
  }
244
245
  const Xe = (e, t) => t ?? e === "number";
245
246
  function ae(e, t, n, o) {
246
- switch (ve(e)) {
247
+ switch (ke(e)) {
247
248
  case "text":
248
249
  return e;
249
250
  case "number": {
@@ -261,9 +262,9 @@ function ae(e, t, n, o) {
261
262
  }
262
263
  }
263
264
  function Je(e, t) {
264
- if (!q(e)) {
265
+ if (!U(e)) {
265
266
  if (t) return Je(t(e));
266
- switch (ve(e)) {
267
+ switch (ke(e)) {
267
268
  case "text":
268
269
  return e;
269
270
  case "number":
@@ -279,9 +280,9 @@ function Je(e, t) {
279
280
  }
280
281
  const Dt = "ja", Vt = "nein";
281
282
  function Qe(e, t) {
282
- if (!q(e)) {
283
+ if (!U(e)) {
283
284
  if (t) return Qe(t(e));
284
- switch (ve(e)) {
285
+ switch (ke(e)) {
285
286
  case "text":
286
287
  return e;
287
288
  case "number":
@@ -304,68 +305,68 @@ function Ht(e, t, n) {
304
305
  if (r !== 0)
305
306
  return n === "sum" ? o : o / r;
306
307
  }
307
- const Re = "absent", le = (e) => q(e) ? Re : e instanceof Date ? `value:${e.getTime()}` : `value:${String(e)}`, Bt = "_frame_17mg8_8", $t = "_children_17mg8_19", Wt = "_scroll_17mg8_23", Kt = "_footerTarget_17mg8_28", Gt = "_table_17mg8_32", qt = "_th_17mg8_40", Ut = "_sticky_17mg8_54", Yt = "_td_17mg8_62", Xt = "_rowHeader_17mg8_74", Jt = "_compact_17mg8_90", Qt = "_numeric_17mg8_105", Zt = "_absent_17mg8_117", en = "_striped_17mg8_121", tn = "_control_17mg8_136", nn = "_stickyCell_17mg8_145", on = "_sortButton_17mg8_157", rn = "_sortIndicator_17mg8_181", sn = "_sortArrow_17mg8_188", ln = "_sortArrowDesc_17mg8_192", cn = "_sortActive_17mg8_200", an = "_sortRank_17mg8_206", dn = "_thFlex_17mg8_214", un = "_footerKind_17mg8_235", fn = "_emptyCell_17mg8_243", hn = "_empty_17mg8_243", mn = "_emptyTitle_17mg8_259", pn = "_skeleton_17mg8_266", gn = "_toolbar_17mg8_294", bn = "_toolbarGroup_17mg8_307", vn = "_toolbarInfo_17mg8_315", wn = "_pagination_17mg8_321", _n = "_paginationControls_17mg8_332", kn = "_pageSize_17mg8_338", yn = "_paginationStatus_17mg8_350", Cn = "_filterButton_17mg8_359", Sn = "_filterActive_17mg8_381", Nn = "_filterPanel_17mg8_386", An = "_filterContent_17mg8_399", xn = "_filterFooter_17mg8_409", Tn = "_filterLabel_17mg8_423", On = "_filterValue_17mg8_433", Rn = "_filteredCount_17mg8_439", In = "_rangeFields_17mg8_450", Fn = "_rangePeriod_17mg8_460", Ln = "_conditions_17mg8_466", zn = "_conditionButton_17mg8_472", jn = "_condition_17mg8_466", En = "_columnsPanel_17mg8_496", Pn = "_columnsList_17mg8_504", Mn = "_columnsEntry_17mg8_513", Dn = "_move_17mg8_525", Vn = "_expander_17mg8_560", Hn = "_expanderOpen_17mg8_591", Bn = "_detailRow_17mg8_595", $n = "_detailCell_17mg8_595", Wn = "_actionsCell_17mg8_603", Kn = "_actions_17mg8_603", Gn = "_grip_17mg8_631", qn = "_virtualBody_17mg8_661", Un = "_virtualRow_17mg8_669", Yn = "_fillerRow_17mg8_674", f = {
308
+ const Re = "absent", le = (e) => U(e) ? Re : e instanceof Date ? `value:${e.getTime()}` : `value:${String(e)}`, Bt = "_frame_4dufk_11 _text_18b86_23", $t = "_children_4dufk_23", Wt = "_scroll_4dufk_27 _scroll_18b86_40", Kt = "_footerTarget_4dufk_33", Gt = "_table_4dufk_37", Ut = "_th_4dufk_45 _ring_18b86_65", qt = "_sticky_4dufk_60", Yt = "_td_4dufk_68", Xt = "_rowHeader_4dufk_80", Jt = "_compact_4dufk_96", Qt = "_numeric_4dufk_111", Zt = "_absent_4dufk_123", en = "_striped_4dufk_127", tn = "_stickyCell_4dufk_151", nn = "_sortButton_4dufk_163 _ring_18b86_65", on = "_sortIndicator_4dufk_188", rn = "_sortArrow_4dufk_195", sn = "_sortArrowDesc_4dufk_199", ln = "_sortActive_4dufk_207", cn = "_sortRank_4dufk_213", an = "_thFlex_4dufk_221", dn = "_footerKind_4dufk_242", un = "_emptyCell_4dufk_250", fn = "_empty_4dufk_250", hn = "_emptyTitle_4dufk_266", mn = "_skeleton_4dufk_273", pn = "_toolbar_4dufk_301 _text_18b86_23", gn = "_toolbarGroup_4dufk_315", bn = "_toolbarInfo_4dufk_323", kn = "_pagination_4dufk_329 _text_18b86_23", _n = "_paginationControls_4dufk_341", wn = "_pageSize_4dufk_347", vn = "_paginationStatus_4dufk_359", yn = "_filterButton_4dufk_368 _ring_18b86_65", Cn = "_filterActive_4dufk_391", Sn = "_filterPanel_4dufk_396", Nn = "_filterContent_4dufk_409 _scroll_18b86_40", An = "_filterFooter_4dufk_420", xn = "_filterLabel_4dufk_434", Tn = "_filterValue_4dufk_444", On = "_filteredCount_4dufk_450", Rn = "_rangeFields_4dufk_461", In = "_rangePeriod_4dufk_471", Fn = "_conditions_4dufk_477", Ln = "_conditionButton_4dufk_483", zn = "_condition_4dufk_477", jn = "_columnsPanel_4dufk_507", En = "_columnsList_4dufk_515", Pn = "_columnsEntry_4dufk_524", Mn = "_move_4dufk_536", Dn = "_expander_4dufk_571", Vn = "_expanderOpen_4dufk_602", Hn = "_detailRow_4dufk_606", Bn = "_detailCell_4dufk_606", $n = "_actionsCell_4dufk_614", Wn = "_actions_4dufk_614", Kn = "_grip_4dufk_642", Gn = "_virtualBody_4dufk_672", Un = "_virtualRow_4dufk_680", qn = "_fillerRow_4dufk_685", Yn = "_control_4dufk_142", f = {
308
309
  frame: Bt,
309
310
  children: $t,
310
311
  scroll: Wt,
311
312
  footerTarget: Kt,
312
313
  table: Gt,
313
- th: qt,
314
- sticky: Ut,
314
+ th: Ut,
315
+ sticky: qt,
315
316
  td: Yt,
316
317
  rowHeader: Xt,
317
318
  compact: Jt,
318
319
  numeric: Qt,
319
320
  absent: Zt,
320
321
  striped: en,
321
- control: tn,
322
- stickyCell: nn,
323
- sortButton: on,
324
- sortIndicator: rn,
325
- sortArrow: sn,
326
- sortArrowDesc: ln,
327
- sortActive: cn,
328
- sortRank: an,
329
- thFlex: dn,
330
- footerKind: un,
331
- emptyCell: fn,
332
- empty: hn,
333
- emptyTitle: mn,
334
- skeleton: pn,
335
- toolbar: gn,
336
- toolbarGroup: bn,
337
- toolbarInfo: vn,
338
- pagination: wn,
322
+ stickyCell: tn,
323
+ sortButton: nn,
324
+ sortIndicator: on,
325
+ sortArrow: rn,
326
+ sortArrowDesc: sn,
327
+ sortActive: ln,
328
+ sortRank: cn,
329
+ thFlex: an,
330
+ footerKind: dn,
331
+ emptyCell: un,
332
+ empty: fn,
333
+ emptyTitle: hn,
334
+ skeleton: mn,
335
+ toolbar: pn,
336
+ toolbarGroup: gn,
337
+ toolbarInfo: bn,
338
+ pagination: kn,
339
339
  paginationControls: _n,
340
- pageSize: kn,
341
- paginationStatus: yn,
342
- filterButton: Cn,
343
- filterActive: Sn,
344
- filterPanel: Nn,
345
- filterContent: An,
346
- filterFooter: xn,
347
- filterLabel: Tn,
348
- filterValue: On,
349
- filteredCount: Rn,
350
- rangeFields: In,
351
- rangePeriod: Fn,
352
- conditions: Ln,
353
- conditionButton: zn,
354
- condition: jn,
355
- columnsPanel: En,
356
- columnsList: Pn,
357
- columnsEntry: Mn,
358
- move: Dn,
359
- expander: Vn,
360
- expanderOpen: Hn,
361
- detailRow: Bn,
362
- detailCell: $n,
363
- actionsCell: Wn,
364
- actions: Kn,
365
- grip: Gn,
366
- virtualBody: qn,
340
+ pageSize: wn,
341
+ paginationStatus: vn,
342
+ filterButton: yn,
343
+ filterActive: Cn,
344
+ filterPanel: Sn,
345
+ filterContent: Nn,
346
+ filterFooter: An,
347
+ filterLabel: xn,
348
+ filterValue: Tn,
349
+ filteredCount: On,
350
+ rangeFields: Rn,
351
+ rangePeriod: In,
352
+ conditions: Fn,
353
+ conditionButton: Ln,
354
+ condition: zn,
355
+ columnsPanel: jn,
356
+ columnsList: En,
357
+ columnsEntry: Pn,
358
+ move: Mn,
359
+ expander: Dn,
360
+ expanderOpen: Vn,
361
+ detailRow: Hn,
362
+ detailCell: Bn,
363
+ actionsCell: $n,
364
+ actions: Wn,
365
+ grip: Kn,
366
+ virtualBody: Gn,
367
367
  virtualRow: Un,
368
- fillerRow: Yn
368
+ fillerRow: qn,
369
+ control: Yn
369
370
  };
370
371
  function jr(e) {
371
372
  return e;
@@ -385,7 +386,7 @@ function et(e, t) {
385
386
  }
386
387
  function Jn(e, t, n) {
387
388
  var o;
388
- return q(t) ? ((o = de.get(e)) == null ? void 0 : o.absentMatches(n)) ?? !1 : e.matches(t, n);
389
+ return U(t) ? ((o = de.get(e)) == null ? void 0 : o.absentMatches(n)) ?? !1 : e.matches(t, n);
389
390
  }
390
391
  function Qn(e, t, n) {
391
392
  const o = de.get(e);
@@ -400,7 +401,7 @@ function Zn(e, t, n) {
400
401
  let r = !1;
401
402
  for (const s of e) {
402
403
  const l = t(s);
403
- if (q(l)) {
404
+ if (U(l)) {
404
405
  r = !0;
405
406
  continue;
406
407
  }
@@ -414,7 +415,7 @@ function Se(e) {
414
415
  let t = Ve.get(e);
415
416
  return t || (t = new Set(e.map(le)), Ve.set(e, t)), t;
416
417
  }
417
- const Ne = (e, t) => q(e) ? t.wording.cellAbsentValue : ae(e, t.format, t.formats, t.wording) ?? String(e);
418
+ const Ne = (e, t) => U(e) ? t.wording.cellAbsentValue : ae(e, t.format, t.formats, t.wording) ?? String(e);
418
419
  function eo({
419
420
  condition: e,
420
421
  setCondition: t,
@@ -423,13 +424,13 @@ function eo({
423
424
  format: r
424
425
  }) {
425
426
  const i = te(), s = $(), l = V(() => e ?? [], [e]), a = V(() => {
426
- const h = { formats: i, wording: s, format: r }, v = n.map((_) => ({ key: le(_), text: Ne(_, h), value: _ }));
427
- v.sort(tt(i));
428
- const g = new Set(v.map((_) => _.key)), p = l.filter((_) => !q(_) && !g.has(le(_))).map((_) => ({ key: le(_), text: Ne(_, h), value: _ })), b = o || l.some(q) ? [{ key: Re, text: s.cellAbsentValue, value: null }] : [];
429
- return [...v, ...p, ...b];
427
+ const h = { formats: i, wording: s, format: r }, k = n.map((w) => ({ key: le(w), text: Ne(w, h), value: w }));
428
+ k.sort(tt(i));
429
+ const g = new Set(k.map((w) => w.key)), p = l.filter((w) => !U(w) && !g.has(le(w))).map((w) => ({ key: le(w), text: Ne(w, h), value: w })), b = o || l.some(U) ? [{ key: Re, text: s.cellAbsentValue, value: null }] : [];
430
+ return [...k, ...p, ...b];
430
431
  }, [n, l, o, r, i, s]), u = Se(l), d = (h) => {
431
- const v = u.has(h.key) ? l.filter((g) => le(g) !== h.key) : [...l, h.value];
432
- t(v.length > 0 ? v : null);
432
+ const k = u.has(h.key) ? l.filter((g) => le(g) !== h.key) : [...l, h.value];
433
+ t(k.length > 0 ? k : null);
433
434
  };
434
435
  return /* @__PURE__ */ c("div", { className: f.filterContent, children: a.map((h) => /* @__PURE__ */ c(
435
436
  ge,
@@ -445,7 +446,7 @@ const to = Ze(
445
446
  {
446
447
  matches: (e, t) => Se(t).has(le(e)),
447
448
  Input: eo,
448
- describe: (e) => e.map((t) => q(t) ? "–" : String(t)).join(", ")
449
+ describe: (e) => e.map((t) => U(t) ? "–" : String(t)).join(", ")
449
450
  },
450
451
  {
451
452
  isCondition: (e) => Array.isArray(e),
@@ -718,14 +719,14 @@ class ho {
718
719
  if (((s = this.modelCache) == null ? void 0 : s.key) === r && this.modelCache.rows === t && this.modelCache.formats === n)
719
720
  return this.modelCache.columns;
720
721
  const i = o.map((l) => {
721
- const { spec: a } = l, u = this.kindOf(l, t), d = this.isSortable(l, t), h = a.searchable ?? u === "text", v = (g) => Je(l.read(g), a.ownSortValue);
722
+ const { spec: a } = l, u = this.kindOf(l, t), d = this.isSortable(l, t), h = a.searchable ?? u === "text", k = (g) => Je(l.read(g), a.ownSortValue);
722
723
  return {
723
724
  id: a.id,
724
725
  label: a.label,
725
- value: d || h ? v : void 0,
726
+ value: d || h ? k : void 0,
726
727
  /* Text sorts with the provider's comparison, not with the built-in
727
728
  German one (spec, the table of defaults). */
728
- compare: u === "text" && !a.ownSortValue ? (g, p) => n.compareText(String(v(g)), String(v(p))) : void 0,
729
+ compare: u === "text" && !a.ownSortValue ? (g, p) => n.compareText(String(k(g)), String(k(p))) : void 0,
729
730
  searchable: h,
730
731
  hideable: !a.rowHeader,
731
732
  resizable: a.resizable,
@@ -839,14 +840,14 @@ function ot({
839
840
  setOpen: s,
840
841
  panelId: l
841
842
  }) {
842
- const a = $(), u = te(), { id: d, label: h, format: v } = e.spec, { values: g, absent: p } = V(() => Zn(n.admitted, e.read, u), [n.admitted, e, u]), b = se(e.spec.filter);
843
+ const a = $(), u = te(), { id: d, label: h, format: k } = e.spec, { values: g, absent: p } = V(() => Zn(n.admitted, e.read, u), [n.admitted, e, u]), b = se(e.spec.filter);
843
844
  if (!b) return null;
844
- const _ = n.publicSnapshot, m = b.Input, y = Xn(b) ? { absentOccurs: p, format: v, kind: t.kindOf(e, n.rows) } : {}, O = () => {
845
+ const w = n.publicSnapshot, m = b.Input, y = Xn(b) ? { absentOccurs: p, format: k, kind: t.kindOf(e, n.rows) } : {}, O = () => {
845
846
  var N;
846
847
  s(!1), (N = (r ?? o).current) == null || N.focus();
847
848
  };
848
849
  return /* @__PURE__ */ T(
849
- qe,
850
+ Ue,
850
851
  {
851
852
  open: i,
852
853
  onOpenChange: s,
@@ -860,15 +861,15 @@ function ot({
860
861
  /* @__PURE__ */ c(
861
862
  m,
862
863
  {
863
- condition: _.filter[d] ?? null,
864
- setCondition: (N) => _.setFilter(d, N),
864
+ condition: w.filter[d] ?? null,
865
+ setCondition: (N) => w.setFilter(d, N),
865
866
  values: g,
866
867
  column: { id: d, label: h },
867
868
  ...y
868
869
  }
869
870
  ),
870
871
  /* @__PURE__ */ T("div", { className: f.filterFooter, children: [
871
- /* @__PURE__ */ c(G, { size: "sm", variant: "ghost", onClick: () => _.setFilter(d, null), children: a.filterReset }),
872
+ /* @__PURE__ */ c(G, { size: "sm", variant: "ghost", onClick: () => w.setFilter(d, null), children: a.filterReset }),
872
873
  /* @__PURE__ */ c(G, { size: "sm", onClick: O, children: a.filterDone })
873
874
  ] })
874
875
  ]
@@ -927,9 +928,9 @@ function bo({ registry: e, hook: t }) {
927
928
  const u = { formats: o, wording: n, format: l.spec.format, kind: e.kindOf(l, t.rows) };
928
929
  return [{ entry: l, text: Qn(a, s, u) }];
929
930
  });
930
- return r.length === 0 ? null : /* @__PURE__ */ c(Ct, { "aria-label": n.conditions, className: f.conditions, children: r.map(({ entry: i, text: s }) => /* @__PURE__ */ c(vo, { entry: i, text: s, registry: e, hook: t }, i.spec.id)) });
931
+ return r.length === 0 ? null : /* @__PURE__ */ c(Ct, { "aria-label": n.conditions, className: f.conditions, children: r.map(({ entry: i, text: s }) => /* @__PURE__ */ c(ko, { entry: i, text: s, registry: e, hook: t }, i.spec.id)) });
931
932
  }
932
- function vo({
933
+ function ko({
933
934
  entry: e,
934
935
  text: t,
935
936
  registry: n,
@@ -978,15 +979,15 @@ function vo({
978
979
  )
979
980
  ] });
980
981
  }
981
- const Be = ";", wo = `\r
982
- `, _o = "\uFEFF", ko = (e) => String(e).replace(".", ","), rt = (e) => /[";\r\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e, yo = (e, t) => {
982
+ const Be = ";", _o = `\r
983
+ `, wo = "\uFEFF", vo = (e) => String(e).replace(".", ","), rt = (e) => /[";\r\n]/.test(e) ? `"${e.replace(/"/g, '""')}"` : e, yo = (e, t) => {
983
984
  var o;
984
985
  const n = (o = t.value) == null ? void 0 : o.call(t, e);
985
- return n == null ? "" : rt(typeof n == "number" ? ko(n) : String(n));
986
+ return n == null ? "" : rt(typeof n == "number" ? vo(n) : String(n));
986
987
  };
987
988
  function Co(e, t) {
988
989
  const n = t.map((r) => rt(r.label ?? r.id)).join(Be), o = e.map((r) => t.map((i) => yo(r, i)).join(Be));
989
- return _o + [n, ...o].join(wo);
990
+ return wo + [n, ...o].join(_o);
990
991
  }
991
992
  function st(e) {
992
993
  const t = new Map(e.orderedColumns().map((o) => [o.spec.id, o])), n = e.projection().columns.map((o) => t.get(o.id)).filter((o) => o !== void 0);
@@ -1017,13 +1018,13 @@ function lt({
1017
1018
  const r = $(), i = te(), s = (e == null ? void 0 : e.hook) ?? null;
1018
1019
  let l = null, a = null;
1019
1020
  if (e && s) {
1020
- const u = s.publicSnapshot, d = u.search !== "" || Object.keys(u.filter).length > 0, h = o ? [] : u.filtered.filter((g) => u.selection.isSelected(s.rowKey(g))), v = e.hasRowActions() ? e.actions.ordered().filter((g) => g.spec.bulk) : [];
1021
+ const u = s.publicSnapshot, d = u.search !== "" || Object.keys(u.filter).length > 0, h = o ? [] : u.filtered.filter((g) => u.selection.isSelected(s.rowKey(g))), k = e.hasRowActions() ? e.actions.ordered().filter((g) => g.spec.bulk) : [];
1021
1022
  l = /* @__PURE__ */ c(bo, { registry: e, hook: s }), a = /* @__PURE__ */ T("div", { className: f.toolbarGroup, children: [
1022
1023
  /* @__PURE__ */ c("span", { role: "status", className: f.filteredCount, children: d ? r.filteredOfTotal(i.count(u.filtered.length), i.count(s.admitted.length)) : "" }),
1023
1024
  d && /* @__PURE__ */ c(G, { size: "sm", variant: "ghost", onClick: () => it(u), children: r.resetAll }),
1024
1025
  h.length > 0 && /* @__PURE__ */ T(Q, { children: [
1025
1026
  /* @__PURE__ */ c("span", { className: f.toolbarInfo, children: r.selectedCount(h.length, i.count(h.length)) }),
1026
- v.map(({ key: g, spec: p }) => /* @__PURE__ */ c(
1027
+ k.map(({ key: g, spec: p }) => /* @__PURE__ */ c(
1027
1028
  G,
1028
1029
  {
1029
1030
  size: "sm",
@@ -1087,7 +1088,7 @@ function ct({ wording: e }) {
1087
1088
  function xo(e, t, n, o, r) {
1088
1089
  if (!t) return n.rowKey(e);
1089
1090
  const i = t.read(e);
1090
- return q(i) ? r.cellAbsentValue : ae(i, t.spec.format, o, r) ?? n.rowKey(e);
1091
+ return U(i) ? r.cellAbsentValue : ae(i, t.spec.format, o, r) ?? n.rowKey(e);
1091
1092
  }
1092
1093
  const me = 34;
1093
1094
  function To(e) {
@@ -1177,35 +1178,35 @@ function Ro({ registry: e, props: t }) {
1177
1178
  ariaLabel: h
1178
1179
  } = t;
1179
1180
  pe(e.subscribe, e.bodyVersion, e.bodyVersion);
1180
- const v = $(), g = te(), p = Ue(s, "regular"), b = Z(), _ = e.hook;
1181
- if (!_) return null;
1182
- const m = _.publicSnapshot, y = e.projection(), O = e.rowHeader(), N = st(e), P = e.detail, w = e.hasRowActions() ? e.actions.ordered() : [], S = _.companion.virtual, I = (n ? 1 : 0) + (P ? 1 : 0), A = I + N.length + (w.length > 0 ? 1 : 0), C = I * me, x = (M) => r && M === O, z = y.visible, F = N.some((M) => M.spec.footer), D = m.search !== "" || Object.keys(m.filter).length > 0, W = (M, K, _e) => /* @__PURE__ */ c(
1181
+ const k = $(), g = te(), p = qe(s, "regular"), b = Z(), w = e.hook;
1182
+ if (!w) return null;
1183
+ const m = w.publicSnapshot, y = e.projection(), O = e.rowHeader(), N = st(e), P = e.detail, _ = e.hasRowActions() ? e.actions.ordered() : [], S = w.companion.virtual, I = (n ? 1 : 0) + (P ? 1 : 0), A = I + N.length + (_.length > 0 ? 1 : 0), C = I * me, x = (M) => r && M === O, z = y.visible, F = N.some((M) => M.spec.footer), D = m.search !== "" || Object.keys(m.filter).length > 0, W = (M, K, we) => /* @__PURE__ */ c(
1183
1184
  Fo,
1184
1185
  {
1185
1186
  row: M,
1186
1187
  index: K,
1187
- absolute: S ? _e : void 0,
1188
+ absolute: S ? we : void 0,
1188
1189
  registry: e,
1189
- hook: _,
1190
+ hook: w,
1190
1191
  columns: N,
1191
1192
  header: O,
1192
1193
  selectable: n,
1193
- actions: w,
1194
+ actions: _,
1194
1195
  stickyRowHeader: r,
1195
1196
  rowHeaderLeft: C,
1196
1197
  columnCount: A,
1197
1198
  rowProps: d,
1198
1199
  baseId: b,
1199
1200
  formats: g,
1200
- wording: v
1201
+ wording: k
1201
1202
  },
1202
- _.rowKey(M)
1203
+ w.rowKey(M)
1203
1204
  );
1204
- let U;
1205
- return u ? U = /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c(Po, { columns: A }) }) : y.filtered.length === 0 ? U = /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: A, className: f.emptyCell, children: /* @__PURE__ */ c("div", { className: f.empty, children: _.admitted.length > 0 && D ? /* @__PURE__ */ T(Q, { children: [
1206
- /* @__PURE__ */ c("p", { className: f.emptyTitle, children: v.nothingMatchesFilters }),
1207
- /* @__PURE__ */ c(G, { size: "sm", variant: "ghost", onClick: () => it(m), children: v.resetAll })
1208
- ] }) : a ?? /* @__PURE__ */ c("p", { className: f.emptyTitle, children: v.noEntries }) }) }) }) }) : S ? U = /* @__PURE__ */ c(Mo, { virtual: S, colSpan: A, children: z.map((M, K) => W(M, K, S.from + K)) }) : U = /* @__PURE__ */ c("tbody", { children: z.map((M, K) => W(M, K, K)) }), /* @__PURE__ */ c(
1205
+ let q;
1206
+ return u ? q = /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c(Po, { columns: A }) }) : y.filtered.length === 0 ? q = /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: A, className: f.emptyCell, children: /* @__PURE__ */ c("div", { className: f.empty, children: w.admitted.length > 0 && D ? /* @__PURE__ */ T(Q, { children: [
1207
+ /* @__PURE__ */ c("p", { className: f.emptyTitle, children: k.nothingMatchesFilters }),
1208
+ /* @__PURE__ */ c(G, { size: "sm", variant: "ghost", onClick: () => it(m), children: k.resetAll })
1209
+ ] }) : a ?? /* @__PURE__ */ c("p", { className: f.emptyTitle, children: k.noEntries }) }) }) }) }) : S ? q = /* @__PURE__ */ c(Mo, { virtual: S, colSpan: A, children: z.map((M, K) => W(M, K, S.from + K)) }) : q = /* @__PURE__ */ c("tbody", { children: z.map((M, K) => W(M, K, K)) }), /* @__PURE__ */ c(
1209
1210
  "div",
1210
1211
  {
1211
1212
  ref: S == null ? void 0 : S.scrollRef,
@@ -1234,7 +1235,7 @@ function Ro({ registry: e, props: t }) {
1234
1235
  children: /* @__PURE__ */ c(
1235
1236
  ge,
1236
1237
  {
1237
- "aria-label": v.selectAllRows,
1238
+ "aria-label": k.selectAllRows,
1238
1239
  checked: m.selection.allSelected,
1239
1240
  indeterminate: m.selection.someSelected,
1240
1241
  onChange: m.selection.toggleAll
@@ -1254,15 +1255,15 @@ function Ro({ registry: e, props: t }) {
1254
1255
  {
1255
1256
  entry: M,
1256
1257
  registry: e,
1257
- hook: _,
1258
+ hook: w,
1258
1259
  sticky: x(M),
1259
1260
  left: C
1260
1261
  },
1261
1262
  M.key
1262
1263
  )),
1263
- w.length > 0 && /* @__PURE__ */ c("th", { scope: "col", className: H(f.th, f.actionsCell), children: /* @__PURE__ */ c(be, { children: v.rowActions }) })
1264
+ _.length > 0 && /* @__PURE__ */ c("th", { scope: "col", className: H(f.th, f.actionsCell), children: /* @__PURE__ */ c(be, { children: k.rowActions }) })
1264
1265
  ] }) }),
1265
- U,
1266
+ q,
1266
1267
  F && !u && /* @__PURE__ */ c("tfoot", { children: /* @__PURE__ */ T("tr", { children: [
1267
1268
  Array.from({ length: I }, (M, K) => /* @__PURE__ */ c(
1268
1269
  "td",
@@ -1278,13 +1279,13 @@ function Ro({ registry: e, props: t }) {
1278
1279
  entry: M,
1279
1280
  rows: y.filtered,
1280
1281
  formats: g,
1281
- wording: v,
1282
+ wording: k,
1282
1283
  sticky: x(M),
1283
1284
  left: C
1284
1285
  },
1285
1286
  M.key
1286
1287
  )),
1287
- w.length > 0 && /* @__PURE__ */ c("td", { className: f.td })
1288
+ _.length > 0 && /* @__PURE__ */ c("td", { className: f.td })
1288
1289
  ] }) })
1289
1290
  ]
1290
1291
  }
@@ -1299,11 +1300,11 @@ function Io({
1299
1300
  sticky: o,
1300
1301
  left: r
1301
1302
  }) {
1302
- const { spec: i } = e, s = n.publicSnapshot, l = t.kindOf(e, n.rows), a = Xe(l, i.rightAligned), u = t.isSortable(e, n.rows), d = i.id, h = s.sort.findIndex((w) => w.column === d), v = h === -1 ? void 0 : s.sort[h].direction, g = s.sort.length > 1 && h !== -1 ? h + 1 : void 0, p = s.widths[d], b = 48, _ = (w) => {
1303
- w.stopPropagation(), w.preventDefault();
1304
- const S = w.currentTarget, I = S.closest("th");
1303
+ const { spec: i } = e, s = n.publicSnapshot, l = t.kindOf(e, n.rows), a = Xe(l, i.rightAligned), u = t.isSortable(e, n.rows), d = i.id, h = s.sort.findIndex((_) => _.column === d), k = h === -1 ? void 0 : s.sort[h].direction, g = s.sort.length > 1 && h !== -1 ? h + 1 : void 0, p = s.widths[d], b = 48, w = (_) => {
1304
+ _.stopPropagation(), _.preventDefault();
1305
+ const S = _.currentTarget, I = S.closest("th");
1305
1306
  if (!I) return;
1306
- const A = w.clientX, C = I.getBoundingClientRect().width, x = w.pointerId;
1307
+ const A = _.clientX, C = I.getBoundingClientRect().width, x = _.pointerId;
1307
1308
  S.setPointerCapture(x);
1308
1309
  const z = (D) => {
1309
1310
  D.pointerId === x && s.setWidth(d, Math.max(b, C + (D.clientX - A)));
@@ -1311,10 +1312,10 @@ function Io({
1311
1312
  D.pointerId === x && (S.removeEventListener("pointermove", z), S.removeEventListener("pointerup", F), S.removeEventListener("pointercancel", F), S.hasPointerCapture(x) && S.releasePointerCapture(x));
1312
1313
  };
1313
1314
  S.addEventListener("pointermove", z), S.addEventListener("pointerup", F), S.addEventListener("pointercancel", F);
1314
- }, m = (w) => {
1315
- const S = w == null ? void 0 : w.parentElement, I = w == null ? void 0 : w.closest("table");
1316
- if (!w || !S || !I) return;
1317
- const A = Array.from(S.children).indexOf(w), C = S.children.length;
1315
+ }, m = (_) => {
1316
+ const S = _ == null ? void 0 : _.parentElement, I = _ == null ? void 0 : _.closest("table");
1317
+ if (!_ || !S || !I) return;
1318
+ const A = Array.from(S.children).indexOf(_), C = S.children.length;
1318
1319
  let x = 0;
1319
1320
  for (const z of Array.from(I.rows)) {
1320
1321
  if (z.cells.length !== C) continue;
@@ -1322,34 +1323,34 @@ function Io({
1322
1323
  F && (x = Math.max(x, F.scrollWidth));
1323
1324
  }
1324
1325
  x > 0 && s.setWidth(d, Math.max(b, x + 1));
1325
- }, y = (w) => {
1326
- if (!i.resizable || !w.altKey) return;
1327
- const S = w.key === "ArrowRight", I = w.key === "ArrowLeft", A = w.key === "Home";
1326
+ }, y = (_) => {
1327
+ if (!i.resizable || !_.altKey) return;
1328
+ const S = _.key === "ArrowRight", I = _.key === "ArrowLeft", A = _.key === "Home";
1328
1329
  if (!S && !I && !A) return;
1329
- w.preventDefault();
1330
- const C = w.currentTarget;
1330
+ _.preventDefault();
1331
+ const C = _.currentTarget;
1331
1332
  if (A) {
1332
1333
  m(C);
1333
1334
  return;
1334
1335
  }
1335
- const x = C.getBoundingClientRect().width, z = w.shiftKey ? 32 : 8;
1336
+ const x = C.getBoundingClientRect().width, z = _.shiftKey ? 32 : 8;
1336
1337
  s.setWidth(d, Math.max(b, x + (S ? z : -z)));
1337
1338
  }, O = u ? /* @__PURE__ */ T(
1338
1339
  "button",
1339
1340
  {
1340
1341
  type: "button",
1341
1342
  className: f.sortButton,
1342
- onClick: (w) => s.toggleSort(d, w.shiftKey || w.metaKey),
1343
+ onClick: (_) => s.toggleSort(d, _.shiftKey || _.metaKey),
1343
1344
  children: [
1344
1345
  /* @__PURE__ */ c("span", { children: i.label }),
1345
1346
  g !== void 0 && /* @__PURE__ */ c("span", { className: f.sortRank, "aria-hidden": "true", children: g }),
1346
- /* @__PURE__ */ c("span", { className: H(f.sortIndicator, v && f.sortActive), "aria-hidden": "true", children: v ? /* @__PURE__ */ c("svg", { viewBox: "0 0 10 10", width: "10", height: "10", className: H(f.sortArrow, v === "desc" && f.sortArrowDesc), children: /* @__PURE__ */ c("path", { d: "M2.2 6.2 5 3.4l2.8 2.8", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ T("svg", { viewBox: "0 0 10 12", width: "10", height: "12", children: [
1347
+ /* @__PURE__ */ c("span", { className: H(f.sortIndicator, k && f.sortActive), "aria-hidden": "true", children: k ? /* @__PURE__ */ c("svg", { viewBox: "0 0 10 10", width: "10", height: "10", className: H(f.sortArrow, k === "desc" && f.sortArrowDesc), children: /* @__PURE__ */ c("path", { d: "M2.2 6.2 5 3.4l2.8 2.8", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ T("svg", { viewBox: "0 0 10 12", width: "10", height: "12", children: [
1347
1348
  /* @__PURE__ */ c("path", { d: "M2.4 4.4 5 1.8l2.6 2.6", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
1348
1349
  /* @__PURE__ */ c("path", { d: "M2.4 7.6 5 10.2l2.6-2.6", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1349
1350
  ] }) })
1350
1351
  ]
1351
1352
  }
1352
- ) : i.label, N = v === "asc" ? "ascending" : v === "desc" ? "descending" : "none", P = se(i.filter) !== void 0 && !(i.filter === "list" && l === "other");
1353
+ ) : i.label, N = k === "asc" ? "ascending" : k === "desc" ? "descending" : "none", P = se(i.filter) !== void 0 && !(i.filter === "list" && l === "other");
1353
1354
  return /* @__PURE__ */ T(
1354
1355
  "th",
1355
1356
  {
@@ -1373,10 +1374,10 @@ function Io({
1373
1374
  {
1374
1375
  role: "presentation",
1375
1376
  className: f.grip,
1376
- onPointerDown: _,
1377
- onClick: (w) => w.stopPropagation(),
1378
- onDoubleClick: (w) => {
1379
- w.stopPropagation(), m(w.currentTarget.closest("th"));
1377
+ onPointerDown: w,
1378
+ onClick: (_) => _.stopPropagation(),
1379
+ onDoubleClick: (_) => {
1380
+ _.stopPropagation(), m(_.currentTarget.closest("th"));
1380
1381
  }
1381
1382
  }
1382
1383
  )
@@ -1397,12 +1398,12 @@ function Fo({
1397
1398
  stickyRowHeader: u,
1398
1399
  rowHeaderLeft: d,
1399
1400
  columnCount: h,
1400
- rowProps: v,
1401
+ rowProps: k,
1401
1402
  baseId: g,
1402
1403
  formats: p,
1403
1404
  wording: b
1404
1405
  }) {
1405
- const _ = xe(at), m = r.publicSnapshot, y = r.rowKey(e), O = xo(e, s, r, p, b), N = o.detail, P = N !== null && m.expanded.includes(y), w = `${g}-detail-${t}`, { className: S, ...I } = (v == null ? void 0 : v(e)) ?? {}, A = n !== void 0;
1406
+ const w = xe(at), m = r.publicSnapshot, y = r.rowKey(e), O = xo(e, s, r, p, b), N = o.detail, P = N !== null && m.expanded.includes(y), _ = `${g}-detail-${t}`, { className: S, ...I } = (k == null ? void 0 : k(e)) ?? {}, A = n !== void 0;
1406
1407
  return /* @__PURE__ */ T(Q, { children: [
1407
1408
  /* @__PURE__ */ T(
1408
1409
  "tr",
@@ -1410,7 +1411,7 @@ function Fo({
1410
1411
  ...I,
1411
1412
  className: H(S, A && f.virtualRow),
1412
1413
  "data-row": A ? n : void 0,
1413
- tabIndex: A ? n === _ ? 0 : -1 : void 0,
1414
+ tabIndex: A ? n === w ? 0 : -1 : void 0,
1414
1415
  "data-even": A && n % 2 === 1 ? "" : void 0,
1415
1416
  "aria-rowindex": A ? n + 2 : void 0,
1416
1417
  children: [
@@ -1439,7 +1440,7 @@ function Fo({
1439
1440
  {
1440
1441
  type: "button",
1441
1442
  "aria-expanded": P,
1442
- "aria-controls": P ? w : void 0,
1443
+ "aria-controls": P ? _ : void 0,
1443
1444
  "aria-label": P ? b.collapseRowNamed(O) : b.expandRowNamed(O),
1444
1445
  className: H(f.expander, P && f.expanderOpen),
1445
1446
  onClick: () => m.toggleRow(y),
@@ -1465,7 +1466,7 @@ function Fo({
1465
1466
  ]
1466
1467
  }
1467
1468
  ),
1468
- P && N && /* @__PURE__ */ c("tr", { id: w, className: f.detailRow, children: /* @__PURE__ */ c("td", { colSpan: h, className: f.detailCell, children: N.presentation(e) }) })
1469
+ P && N && /* @__PURE__ */ c("tr", { id: _, className: f.detailRow, children: /* @__PURE__ */ c("td", { colSpan: h, className: f.detailCell, children: N.presentation(e) }) })
1469
1470
  ] });
1470
1471
  }
1471
1472
  function Lo({
@@ -1479,7 +1480,7 @@ function Lo({
1479
1480
  }) {
1480
1481
  const { spec: l } = e, a = e.read(t), u = Xe(n, l.rightAligned);
1481
1482
  let d;
1482
- q(a) ? d = /* @__PURE__ */ c(ct, { wording: s }) : l.presentation ? d = l.presentation(a, t) : d = ae(a, l.format, i, s);
1483
+ U(a) ? d = /* @__PURE__ */ c(ct, { wording: s }) : l.presentation ? d = l.presentation(a, t) : d = ae(a, l.format, i, s);
1483
1484
  const h = l.rowHeader ? "th" : "td";
1484
1485
  return /* @__PURE__ */ c(
1485
1486
  h,
@@ -1559,19 +1560,19 @@ function Mo({
1559
1560
  var b;
1560
1561
  (b = g.querySelector(`[data-row="${p}"]`)) == null || b.focus();
1561
1562
  });
1562
- }, h = a >= e.from && a < e.to ? a : e.from, v = (g) => {
1563
+ }, h = a >= e.from && a < e.to ? a : e.from, k = (g) => {
1563
1564
  if (g.defaultPrevented || o === 0) return;
1564
1565
  const p = g.target, b = p.closest("[data-row]");
1565
1566
  if (b && p !== b) return;
1566
- const _ = b ? Number(b.dataset.row) : l.current ?? -1;
1567
+ const w = b ? Number(b.dataset.row) : l.current ?? -1;
1567
1568
  let m = null;
1568
- g.key === "ArrowDown" ? m = Math.min(o - 1, _ + 1) : g.key === "ArrowUp" ? m = Math.max(0, _ - 1) : g.key === "Home" ? m = 0 : g.key === "End" && (m = o - 1), !(m === null || m === _) && (g.preventDefault(), d(g.currentTarget, m));
1569
+ g.key === "ArrowDown" ? m = Math.min(o - 1, w + 1) : g.key === "ArrowUp" ? m = Math.max(0, w - 1) : g.key === "Home" ? m = 0 : g.key === "End" && (m = o - 1), !(m === null || m === w) && (g.preventDefault(), d(g.currentTarget, m));
1569
1570
  };
1570
1571
  return /* @__PURE__ */ c(
1571
1572
  "tbody",
1572
1573
  {
1573
1574
  className: f.virtualBody,
1574
- onKeyDown: v,
1575
+ onKeyDown: k,
1575
1576
  onFocus: (g) => {
1576
1577
  const p = g.target.closest("[data-row]");
1577
1578
  p && u(Number(p.dataset.row));
@@ -1584,7 +1585,7 @@ function Mo({
1584
1585
  }
1585
1586
  );
1586
1587
  }
1587
- const Do = "_verdict_1qt54_3", Vo = "_glyph_1qt54_10", Ho = "_value_1qt54_20", Bo = "_excess_1qt54_25", he = {
1588
+ const Do = "_verdict_a8pbv_6", Vo = "_glyph_a8pbv_13", Ho = "_value_a8pbv_23", Bo = "_excess_a8pbv_28", he = {
1588
1589
  verdict: Do,
1589
1590
  glyph: Vo,
1590
1591
  value: Ho,
@@ -1608,7 +1609,7 @@ function Ko({ reading: e, format: t }) {
1608
1609
  ] });
1609
1610
  }
1610
1611
  const Go = (e) => e.measured;
1611
- function qo(e) {
1612
+ function Uo(e) {
1612
1613
  return function({ id: n, value: o, label: r, limits: i, format: s, sortBy: l = "verdict", width: a, resizable: u }) {
1613
1614
  const d = JSON.stringify(i), h = V(() => {
1614
1615
  const g = JSON.parse(d);
@@ -1619,7 +1620,7 @@ function qo(e) {
1619
1620
  assessment: xt(b, g)
1620
1621
  };
1621
1622
  };
1622
- }, [o, d]), v = B(
1623
+ }, [o, d]), k = B(
1623
1624
  (g) => l === "value" ? g.measured : Tt(g.assessment.verdict),
1624
1625
  [l]
1625
1626
  );
@@ -1632,7 +1633,7 @@ function qo(e) {
1632
1633
  width: a,
1633
1634
  resizable: u,
1634
1635
  value: h,
1635
- sortValue: v,
1636
+ sortValue: k,
1636
1637
  exportValue: Go,
1637
1638
  children: (g) => /* @__PURE__ */ c(Ko, { reading: g, format: s })
1638
1639
  }
@@ -1649,7 +1650,7 @@ function ut(e, t, n) {
1649
1650
  const i = et(r, n);
1650
1651
  return i === "foreign" && dt(t), i === "effective";
1651
1652
  }
1652
- function Uo(e, t) {
1653
+ function qo(e, t) {
1653
1654
  if (e.length === 0) return;
1654
1655
  let n = -1, o = [];
1655
1656
  return (r) => {
@@ -1673,10 +1674,10 @@ function Yo(e, t) {
1673
1674
  return i || r({ source: e, result: n }), i ? o.result : n;
1674
1675
  }
1675
1676
  function Xo(e, t) {
1676
- var l, a, u, d, h, v;
1677
+ var l, a, u, d, h, k;
1677
1678
  if (t.size === 0) return e;
1678
1679
  const n = (l = e.sort) == null ? void 0 : l.filter((g) => t.has(g.column)), o = (a = e.hidden) == null ? void 0 : a.filter((g) => t.has(g)), r = (u = e.order) == null ? void 0 : u.filter((g) => t.has(g)), i = e.widths ? Object.fromEntries(Object.entries(e.widths).filter(([g]) => t.has(g))) : void 0;
1679
- return (n == null ? void 0 : n.length) === ((d = e.sort) == null ? void 0 : d.length) && (o == null ? void 0 : o.length) === ((h = e.hidden) == null ? void 0 : h.length) && (r == null ? void 0 : r.length) === ((v = e.order) == null ? void 0 : v.length) && Object.keys(i ?? {}).length === Object.keys(e.widths ?? {}).length ? e : {
1680
+ return (n == null ? void 0 : n.length) === ((d = e.sort) == null ? void 0 : d.length) && (o == null ? void 0 : o.length) === ((h = e.hidden) == null ? void 0 : h.length) && (r == null ? void 0 : r.length) === ((k = e.order) == null ? void 0 : k.length) && Object.keys(i ?? {}).length === Object.keys(e.widths ?? {}).length ? e : {
1680
1681
  ...e.search ? { search: e.search } : {},
1681
1682
  ...e.page ? { page: e.page } : {},
1682
1683
  ...e.pageSize ? { pageSize: e.pageSize } : {},
@@ -1695,17 +1696,17 @@ function Qo(e, t) {
1695
1696
  function Zo(e, t) {
1696
1697
  const [n] = E(() => new ho()), [o] = E(() => {
1697
1698
  const C = To(n);
1698
- return { ...C, VerdictColumn: qo(C.Column) };
1699
+ return { ...C, VerdictColumn: Uo(C.Column) };
1699
1700
  });
1700
1701
  pe(n.subscribe, n.structureVersion, n.structureVersion);
1701
- const r = te(), i = e, s = n.modelColumns(i, r), [l] = E(() => t.initialView), [a, u] = E(() => Object.entries((l == null ? void 0 : l.conditions) ?? {})), d = V(() => Uo(a, n), [a, n]), h = t.preFilter ?? t.filter, v = Yo(i, h), g = t.rowKey, p = Et(v, s, {
1702
+ const r = te(), i = e, s = n.modelColumns(i, r), [l] = E(() => t.initialView), [a, u] = E(() => Object.entries((l == null ? void 0 : l.conditions) ?? {})), d = V(() => qo(a, n), [a, n]), h = t.preFilter ?? t.filter, k = Yo(i, h), g = t.rowKey, p = Et(k, s, {
1702
1703
  rowKey: g,
1703
1704
  pageSize: t.pageSize,
1704
1705
  defaultSort: t.defaultSort,
1705
1706
  filter: d,
1706
1707
  initialView: l,
1707
1708
  virtual: t.virtual
1708
- }), { setPage: b } = p, _ = B(
1709
+ }), { setPage: b } = p, w = B(
1709
1710
  (C, x) => {
1710
1711
  let z = x == null;
1711
1712
  if (!z && n.orderedColumns().length > 0) {
@@ -1726,7 +1727,7 @@ function Zo(e, t) {
1726
1727
  }
1727
1728
  u((F) => {
1728
1729
  const D = F.findIndex(([W]) => W === C);
1729
- return z ? D === -1 ? F : F.filter((W, U) => U !== D) : D === -1 ? [...F, [C, x]] : F.map((W, U) => U === D ? [C, x] : W);
1730
+ return z ? D === -1 ? F : F.filter((W, q) => q !== D) : D === -1 ? [...F, [C, x]] : F.map((W, q) => q === D ? [C, x] : W);
1730
1731
  }), b(1);
1731
1732
  },
1732
1733
  [n, b]
@@ -1735,7 +1736,7 @@ function Zo(e, t) {
1735
1736
  const C = new Set([...y].filter((x) => !m.has(x)));
1736
1737
  O(m), a.some(([x]) => C.has(x)) && u((x) => x.filter(([z]) => !C.has(z)));
1737
1738
  }
1738
- const N = m.size === 0 ? a : a.filter(([C, x]) => ut(n, C, x)), P = Xo(p.view, m), w = N.length > 0 ? { ...P, conditions: Object.fromEntries(N) } : P, S = m.size === 0 ? p.sort : p.sort.filter((C) => m.has(C.column)), I = n.paginates() || t.virtual !== void 0, A = {
1739
+ const N = m.size === 0 ? a : a.filter(([C, x]) => ut(n, C, x)), P = Xo(p.view, m), _ = N.length > 0 ? { ...P, conditions: Object.fromEntries(N) } : P, S = m.size === 0 ? p.sort : p.sort.filter((C) => m.has(C.column)), I = n.paginates() || t.virtual !== void 0, A = {
1739
1740
  rows: e,
1740
1741
  filtered: p.filtered,
1741
1742
  visible: I ? p.visible : p.filtered,
@@ -1757,15 +1758,15 @@ function Zo(e, t) {
1757
1758
  expanded: p.expanded,
1758
1759
  toggleRow: p.toggleRow,
1759
1760
  filter: Object.fromEntries(N),
1760
- setFilter: _,
1761
+ setFilter: w,
1761
1762
  selection: t.selection ?? p.selection,
1762
- view: w,
1763
+ view: _,
1763
1764
  asCsv: () => So(n),
1764
1765
  virtual: t.virtual !== void 0
1765
1766
  };
1766
1767
  return n.setHook({
1767
1768
  rows: i,
1768
- admitted: v,
1769
+ admitted: k,
1769
1770
  modelColumns: s,
1770
1771
  companion: p,
1771
1772
  filter: d,
@@ -1812,7 +1813,7 @@ function Mr({ placeholder: e, "aria-label": t, className: n, of: o }) {
1812
1813
  );
1813
1814
  }
1814
1815
  function Dr({ of: e }) {
1815
- var _;
1816
+ var w;
1816
1817
  const t = ue(e), n = $(), [o, r] = E(!1), i = oe(null), s = oe(null), l = Z(), [a, u] = E(null);
1817
1818
  if (J(() => {
1818
1819
  var N;
@@ -1824,9 +1825,9 @@ function Dr({ of: e }) {
1824
1825
  );
1825
1826
  (N = y && !y.disabled ? y : O) == null || N.focus();
1826
1827
  }, [a]), !t) return null;
1827
- const { registry: d, snapshot: h } = t, v = d.hook, g = d.withStickyHeaderFirst(
1828
- Te(d.modelColumns(v.rows, v.formats), h.order)
1829
- ), p = d.stickyRowHeader ? ((_ = g[0]) == null ? void 0 : _.hideable) === !1 : !1, b = (m, y) => {
1828
+ const { registry: d, snapshot: h } = t, k = d.hook, g = d.withStickyHeaderFirst(
1829
+ Te(d.modelColumns(k.rows, k.formats), h.order)
1830
+ ), p = d.stickyRowHeader ? ((w = g[0]) == null ? void 0 : w.hideable) === !1 : !1, b = (m, y) => {
1830
1831
  const O = g.map((P) => P.id), N = m + y;
1831
1832
  N < 0 || N >= O.length || ([O[m], O[N]] = [O[N], O[m]], h.setOrder(O), u({ id: g[m].id, direction: y < 0 ? "forward" : "backward" }));
1832
1833
  };
@@ -1844,7 +1845,7 @@ function Dr({ of: e }) {
1844
1845
  }
1845
1846
  ),
1846
1847
  /* @__PURE__ */ c(
1847
- qe,
1848
+ Ue,
1848
1849
  {
1849
1850
  open: o,
1850
1851
  onOpenChange: r,
@@ -1936,7 +1937,7 @@ function Hr({ pageSizes: e = [10, 25, 50], className: t, of: n }) {
1936
1937
  ] });
1937
1938
  return o.inside ? o.footerTarget ? Lt(u, o.footerTarget) : null : u;
1938
1939
  }
1939
- const er = ["high", "medium", "low"], tr = (e) => er.indexOf(e), nr = (e) => e === "standing-unacknowledged" || e === "standing-acknowledged", we = (e) => e === "standing-acknowledged" || e === "cleared-acknowledged", or = (e) => e === "cleared-acknowledged";
1940
+ const er = ["high", "medium", "low"], tr = (e) => er.indexOf(e), nr = (e) => e === "standing-unacknowledged" || e === "standing-acknowledged", _e = (e) => e === "standing-acknowledged" || e === "cleared-acknowledged", or = (e) => e === "cleared-acknowledged";
1940
1941
  function rr(e, t) {
1941
1942
  switch (t) {
1942
1943
  case "raised":
@@ -1944,7 +1945,7 @@ function rr(e, t) {
1944
1945
  case "acknowledged":
1945
1946
  return nr(e) ? "standing-acknowledged" : "cleared-acknowledged";
1946
1947
  case "cleared":
1947
- return we(e) ? "cleared-acknowledged" : "cleared-unacknowledged";
1948
+ return _e(e) ? "cleared-acknowledged" : "cleared-unacknowledged";
1948
1949
  }
1949
1950
  }
1950
1951
  const Br = (e, t) => e.direction === "obere" ? t <= e.returnTo : t >= e.returnTo, Fe = (e, t, n) => e > n - t && e <= n, $r = (e, t, n) => e.reduce((o, r) => o + (Fe(r, t, n) ? 1 : 0), 0);
@@ -1980,14 +1981,14 @@ function cr(e, t, n) {
1980
1981
  function ar(e, t) {
1981
1982
  const n = new Set(t);
1982
1983
  return e.reduce(
1983
- (o, r) => o + (n.has(r.id) && !we(r.lifecycle) ? 1 : 0),
1984
+ (o, r) => o + (n.has(r.id) && !_e(r.lifecycle) ? 1 : 0),
1984
1985
  0
1985
1986
  );
1986
1987
  }
1987
1988
  function Wr(e, t, n) {
1988
1989
  const o = new Set(t);
1989
1990
  let r = 0;
1990
- return { alarms: e.map((s) => !o.has(s.id) || we(s.lifecycle) ? s : (r += 1, { ...s, lifecycle: rr(s.lifecycle, "acknowledged"), acknowledgedAt: n })), count: r };
1991
+ return { alarms: e.map((s) => !o.has(s.id) || _e(s.lifecycle) ? s : (r += 1, { ...s, lifecycle: rr(s.lifecycle, "acknowledged"), acknowledgedAt: n })), count: r };
1991
1992
  }
1992
1993
  const dr = (e) => [
1993
1994
  {
@@ -2003,7 +2004,7 @@ const dr = (e) => [
2003
2004
  level of the order asks only about the acknowledgement and expressly not
2004
2005
  about whether the alarm is still standing. Otherwise the fleeting alarm
2005
2006
  falls back down again. */
2006
- { id: "acknowledgement", label: e.columnAcknowledgement, value: (t) => we(t.lifecycle) ? 1 : 0 },
2007
+ { id: "acknowledgement", label: e.columnAcknowledgement, value: (t) => _e(t.lifecycle) ? 1 : 0 },
2007
2008
  { id: "raised", label: e.columnRaised, value: (t) => t.alarm.raised },
2008
2009
  { id: "age", label: e.columnAge, value: (t) => t.age },
2009
2010
  { id: "frequency", label: e.columnFrequency, value: (t) => t.frequency }
@@ -2025,20 +2026,20 @@ function Kr(e, t = {}) {
2025
2026
  flood: s,
2026
2027
  keepDone: l = !1,
2027
2028
  columns: a = ur
2028
- } = e, u = new Map(o.map((b) => [b.id, b])), d = sr(n, (i == null ? void 0 : i.windowMs) ?? 1 / 0, r), h = s ? cr(n, s, r) : null, v = new Set((h == null ? void 0 : h.alarms) ?? []), g = n.filter((b) => l || !or(b.lifecycle)).map((b) => {
2029
- const _ = u.get(b.type) ?? hr(b.type), m = d.get(b.type) ?? 0;
2029
+ } = e, u = new Map(o.map((b) => [b.id, b])), d = sr(n, (i == null ? void 0 : i.windowMs) ?? 1 / 0, r), h = s ? cr(n, s, r) : null, k = new Set((h == null ? void 0 : h.alarms) ?? []), g = n.filter((b) => l || !or(b.lifecycle)).map((b) => {
2030
+ const w = u.get(b.type) ?? hr(b.type), m = d.get(b.type) ?? 0;
2030
2031
  return {
2031
2032
  id: b.id,
2032
2033
  alarm: b,
2033
- type: _,
2034
+ type: w,
2034
2035
  lifecycle: b.lifecycle,
2035
- priority: _.priority,
2036
- rank: tr(_.priority),
2036
+ priority: w.priority,
2037
+ rank: tr(w.priority),
2037
2038
  age: r - b.raised,
2038
2039
  duration: (b.cleared ?? r) - b.raised,
2039
2040
  frequency: m,
2040
2041
  chatters: i !== void 0 && m >= i.atLeast,
2041
- inFlood: v.has(b.id)
2042
+ inFlood: k.has(b.id)
2042
2043
  };
2043
2044
  }), p = Oe(g, a, {
2044
2045
  ...t,
@@ -2048,20 +2049,20 @@ function Kr(e, t = {}) {
2048
2049
  ...p,
2049
2050
  flood: h,
2050
2051
  standingUnacknowledged: p.filtered.reduce(
2051
- (b, _) => b + (_.lifecycle === "standing-unacknowledged" ? 1 : 0),
2052
+ (b, w) => b + (w.lifecycle === "standing-unacknowledged" ? 1 : 0),
2052
2053
  0
2053
2054
  )
2054
2055
  };
2055
2056
  }
2056
- const mr = "_list_93k56_1", pr = "_bar_93k56_8", gr = "_heading_93k56_15", br = "_filler_93k56_21", vr = "_asOf_93k56_25", wr = "_live_93k56_42", _r = "_label_93k56_47", kr = "_counter_93k56_51", yr = "_lifecycle_93k56_55", Cr = "_empty_93k56_59", Sr = "_row_93k56_66", X = {
2057
+ const mr = "_list_alpwk_4 _text_18b86_23", pr = "_bar_alpwk_12", gr = "_heading_alpwk_19", br = "_filler_alpwk_25", kr = "_asOf_alpwk_29", _r = "_live_alpwk_46", wr = "_label_alpwk_51", vr = "_counter_alpwk_55", yr = "_lifecycle_alpwk_59", Cr = "_empty_alpwk_63", Sr = "_row_alpwk_70", X = {
2057
2058
  list: mr,
2058
2059
  bar: pr,
2059
2060
  heading: gr,
2060
2061
  filler: br,
2061
- asOf: vr,
2062
- live: wr,
2063
- label: _r,
2064
- counter: kr,
2062
+ asOf: kr,
2063
+ live: _r,
2064
+ label: wr,
2065
+ counter: vr,
2065
2066
  lifecycle: yr,
2066
2067
  empty: Cr,
2067
2068
  row: Sr
@@ -2109,7 +2110,7 @@ function ft({
2109
2110
  freshness: i,
2110
2111
  ...s
2111
2112
  }) {
2112
- const l = $(), a = te(), u = i !== null, d = (i == null ? void 0 : i.freshness) === "lost", { Table: h, Column: v } = Zo(e.visible, { rowKey: (m) => m.id, selection: t }), g = V(() => e.filtered.map((m) => m.alarm), [e.filtered]), p = V(() => t === void 0 ? [] : e.filtered.map((m) => m.id).filter((m) => t.selected.has(m)), [e.filtered, t]), b = V(() => ar(g, p), [g, p]), _ = Ue(o, "compact");
2113
+ const l = $(), a = te(), u = i !== null, d = (i == null ? void 0 : i.freshness) === "lost", { Table: h, Column: k } = Zo(e.visible, { rowKey: (m) => m.id, selection: t }), g = V(() => e.filtered.map((m) => m.alarm), [e.filtered]), p = V(() => t === void 0 ? [] : e.filtered.map((m) => m.id).filter((m) => t.selected.has(m)), [e.filtered, t]), b = V(() => ar(g, p), [g, p]), w = qe(o, "compact");
2113
2114
  return /* @__PURE__ */ T("div", { className: [X.list, r].filter(Boolean).join(" "), ...s, children: [
2114
2115
  /* @__PURE__ */ T("div", { className: X.bar, children: [
2115
2116
  /* @__PURE__ */ c("span", { className: X.heading, children: l.alarms }),
@@ -2126,19 +2127,19 @@ function ft({
2126
2127
  h,
2127
2128
  {
2128
2129
  selectable: t !== void 0,
2129
- density: _,
2130
+ density: w,
2130
2131
  stickyHeader: !0,
2131
2132
  rowProps: (m) => ({ className: X.row, "data-lifecycle": m.lifecycle, "data-priority": m.priority }),
2132
2133
  empty: /* @__PURE__ */ c("span", { className: X.empty, children: d ? l.noAlarmsDisconnected : l.noAlarms }),
2133
2134
  children: [
2134
- /* @__PURE__ */ c(v, { id: "type", label: l.columnAlarm, value: (m) => m.type.label, rowHeader: !0, sortable: !1, children: (m, y) => /* @__PURE__ */ T(Q, { children: [
2135
+ /* @__PURE__ */ c(k, { id: "type", label: l.columnAlarm, value: (m) => m.type.label, rowHeader: !0, sortable: !1, children: (m, y) => /* @__PURE__ */ T(Q, { children: [
2135
2136
  /* @__PURE__ */ c("span", { className: X.label, children: m }),
2136
2137
  y.chatters && /* @__PURE__ */ c(Ce, { tone: "warning", pill: !0, className: X.counter, children: l.chatterHint(y.frequency) })
2137
2138
  ] }) }),
2138
- /* @__PURE__ */ c(v, { value: "lifecycle", label: l.columnLifecycleState, sortable: !1, children: (m) => /* @__PURE__ */ c("span", { className: X.lifecycle, children: Nr(m, l) }) }),
2139
- /* @__PURE__ */ c(v, { value: "priority", label: l.columnPriority, sortable: !1, children: (m) => /* @__PURE__ */ c(Ce, { tone: xr(m), children: Ar(m, l) }) }),
2139
+ /* @__PURE__ */ c(k, { value: "lifecycle", label: l.columnLifecycleState, sortable: !1, children: (m) => /* @__PURE__ */ c("span", { className: X.lifecycle, children: Nr(m, l) }) }),
2140
+ /* @__PURE__ */ c(k, { value: "priority", label: l.columnPriority, sortable: !1, children: (m) => /* @__PURE__ */ c(Ce, { tone: xr(m), children: Ar(m, l) }) }),
2140
2141
  /* @__PURE__ */ c(
2141
- v,
2142
+ k,
2142
2143
  {
2143
2144
  id: "raised",
2144
2145
  label: l.columnRaised,
@@ -2147,8 +2148,8 @@ function ft({
2147
2148
  sortable: !1
2148
2149
  }
2149
2150
  ),
2150
- /* @__PURE__ */ c(v, { value: "duration", label: l.columnDuration, sortable: !1, children: (m) => Tr(m, l) }),
2151
- /* @__PURE__ */ c(v, { value: "frequency", label: l.columnFrequency, format: "count", sortable: !1 })
2151
+ /* @__PURE__ */ c(k, { value: "duration", label: l.columnDuration, sortable: !1, children: (m) => Tr(m, l) }),
2152
+ /* @__PURE__ */ c(k, { value: "frequency", label: l.columnFrequency, format: "count", sortable: !1 })
2152
2153
  ]
2153
2154
  }
2154
2155
  )
@@ -2174,7 +2175,7 @@ export {
2174
2175
  cr as detectFlood,
2175
2176
  sr as frequencyByType,
2176
2177
  Br as hasReturned,
2177
- we as isAcknowledged,
2178
+ _e as isAcknowledged,
2178
2179
  or as isDone,
2179
2180
  nr as isStanding,
2180
2181
  rr as nextLifecycleState,