@shtabapp/ui-kit 1.67.0 → 1.69.0

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 (29) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{STable-CJBdcrD2.js → STable-9Kb75bwz.js} +1226 -1225
  3. package/dist/STable-EpiUErdI.cjs +1 -0
  4. package/dist/components/SList/utils/resolveListItemFields.d.ts +1 -1
  5. package/dist/components/SList/utils/resolveListItemFields.d.ts.map +1 -1
  6. package/dist/components/STable/STable.types.d.ts +32 -1
  7. package/dist/components/STable/STable.types.d.ts.map +1 -1
  8. package/dist/components/STable/STable.vue.d.ts.map +1 -1
  9. package/dist/components/STable/index.d.ts +2 -2
  10. package/dist/components/STable/index.d.ts.map +1 -1
  11. package/dist/components/STable/parts/STableRow.vue.d.ts +6 -2
  12. package/dist/components/STable/parts/STableRow.vue.d.ts.map +1 -1
  13. package/dist/components/STable/utils/resolveTableRowColor.d.ts +5 -0
  14. package/dist/components/STable/utils/resolveTableRowColor.d.ts.map +1 -0
  15. package/dist/components/STable/utils/useTableCellPlans.d.ts +2 -0
  16. package/dist/components/STable/utils/useTableCellPlans.d.ts.map +1 -1
  17. package/dist/components/STable/utils/useTableColumns.d.ts +1 -0
  18. package/dist/components/STable/utils/useTableColumns.d.ts.map +1 -1
  19. package/dist/entries/table.cjs +1 -1
  20. package/dist/entries/table.d.ts +2 -2
  21. package/dist/entries/table.d.ts.map +1 -1
  22. package/dist/entries/table.js +2 -2
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +104 -104
  27. package/dist/uikit-components.css +1 -1
  28. package/package.json +2 -2
  29. package/dist/STable-PkWtyYaP.cjs +0 -1
@@ -1,48 +1,52 @@
1
- import { i as e, n as t, r as n, t as r } from "./SButton-LAOBxpd4.js";
2
- import { i, t as a } from "./SCheckbox-BMkOc5cn.js";
3
- import { a as o } from "./useFloatingOverlay-b9_eDGNE.js";
4
- import { t as s } from "./SDropdown-xNcC6JDy.js";
5
- import { t as c } from "./SDropdownMenu-2koPU6IG.js";
6
- import { a as l, o as u, r as d } from "./treeKeyboardNavigation-SmxTdnDz.js";
7
- import { t as f } from "./SListItem-BOSQGRWA.js";
8
- import { n as p, r as m, t as h } from "./SToggle-sGw-LSNd.js";
9
- import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, isMemoSame as E, markRaw as D, mergeModels as O, mergeProps as k, nextTick as A, normalizeClass as j, normalizeStyle as M, onBeforeUnmount as N, onMounted as P, openBlock as F, ref as I, renderList as L, renderSlot as R, shallowRef as z, toDisplayString as B, toRaw as V, toValue as H, unref as U, useId as ee, useModel as te, useSlots as ne, useTemplateRef as re, watch as W, withCtx as G, withModifiers as ie } from "vue";
10
- import { ESSkeletonType as ae, SIcon as oe, SSeparator as se, SSkeleton as K, useUiKitI18n as ce } from "@shtabapp/ui-kit-primitives";
11
- import { tryOnScopeDispose as le, useElementSize as ue, useEventListener as de, useRafFn as fe, useResizeObserver as pe, useTimeoutFn as me } from "@vueuse/core";
12
- import { elementScroll as he, observeElementOffset as ge, useVirtualizer as _e } from "@tanstack/vue-virtual";
13
- import { combine as ve } from "@atlaskit/pragmatic-drag-and-drop/combine";
14
- import { draggable as ye, dropTargetForElements as be, monitorForElements as q } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
15
- import { setCustomNativeDragPreview as xe } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
16
- import { pointerOutsideOfPreview as Se } from "@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview";
17
- import { attachClosestEdge as Ce, extractClosestEdge as we } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
18
- import { disableNativeDragPreview as Te } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
19
- import { autoScrollForElements as Ee } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
1
+ import { n as e, t } from "./contrastSurfaceTextColor-BDlLSSXC.js";
2
+ import { t as n } from "./colorValue-CSh0chxp.js";
3
+ import { i as r, n as i, r as a, t as o } from "./SButton-LAOBxpd4.js";
4
+ import { i as s, t as c } from "./SCheckbox-BMkOc5cn.js";
5
+ import { a as l } from "./useFloatingOverlay-b9_eDGNE.js";
6
+ import { t as u } from "./SDropdown-xNcC6JDy.js";
7
+ import { t as d } from "./SDropdownMenu-2koPU6IG.js";
8
+ import { a as f, o as p, r as m } from "./treeKeyboardNavigation-SmxTdnDz.js";
9
+ import { t as h } from "./SListItem-BOSQGRWA.js";
10
+ import { n as g, r as _, t as v } from "./SToggle-sGw-LSNd.js";
11
+ import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineComponent as O, isMemoSame as k, markRaw as A, mergeModels as j, mergeProps as M, nextTick as N, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, openBlock as R, ref as z, renderList as B, renderSlot as V, shallowRef as H, toDisplayString as U, toRaw as ee, toValue as W, unref as G, useId as te, useModel as ne, useSlots as re, useTemplateRef as ie, watch as K, withCtx as q, withModifiers as ae } from "vue";
12
+ import { ESSkeletonType as oe, SIcon as se, SSeparator as ce, SSkeleton as le, useUiKitI18n as ue } from "@shtabapp/ui-kit-primitives";
13
+ import { tryOnScopeDispose as de, useElementSize as fe, useEventListener as pe, useRafFn as me, useResizeObserver as he, useTimeoutFn as ge } from "@vueuse/core";
14
+ import { elementScroll as _e, observeElementOffset as ve, useVirtualizer as ye } from "@tanstack/vue-virtual";
15
+ import { combine as J } from "@atlaskit/pragmatic-drag-and-drop/combine";
16
+ import { draggable as be, dropTargetForElements as xe, monitorForElements as Se } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
17
+ import { setCustomNativeDragPreview as Ce } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
18
+ import { pointerOutsideOfPreview as we } from "@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview";
19
+ import { attachClosestEdge as Te, extractClosestEdge as Ee } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
20
+ import { disableNativeDragPreview as De } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
21
+ import { autoScrollForElements as Oe } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
20
22
  //#region src/components/STable/STable.types.ts
21
- var J = /* @__PURE__ */ function(e) {
23
+ var Y = /* @__PURE__ */ function(e) {
22
24
  return e.LEFT = "left", e.RIGHT = "right", e;
23
- }({}), De = /* @__PURE__ */ function(e) {
25
+ }({}), ke = /* @__PURE__ */ function(e) {
24
26
  return e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e;
25
- }({}), Y = /* @__PURE__ */ function(e) {
27
+ }({}), X = /* @__PURE__ */ function(e) {
26
28
  return e.ASC = "asc", e.DESC = "desc", e;
27
- }({}), Oe = /* @__PURE__ */ function(e) {
29
+ }({}), Ae = /* @__PURE__ */ function(e) {
28
30
  return e.DEFAULT = "default", e.COMPLETED = "completed", e;
29
- }({}), X = /* @__PURE__ */ function(e) {
31
+ }({}), je = /* @__PURE__ */ function(e) {
32
+ return e.RED_ORANGE = "red-orange", e.ORANGE = "orange", e.YELLOW = "yellow", e.GREEN = "green", e.TEAL = "teal", e.CYAN = "cyan", e.BLUE = "blue", e.INDIGO = "indigo", e.VIOLET = "violet", e.MAGENTA = "magenta", e.PINK = "pink", e.RED = "red", e;
33
+ }({}), Me = /* @__PURE__ */ function(e) {
30
34
  return e.DEFAULT = "default", e.DISABLED = "disabled", e.READONLY = "readonly", e.EDITING = "editing", e;
31
- }({}), ke = /* @__PURE__ */ function(e) {
35
+ }({}), Ne = /* @__PURE__ */ function(e) {
32
36
  return e.AUTO = "auto", e.FIXED = "fixed", e;
33
- }({}), Ae = /* @__PURE__ */ function(e) {
37
+ }({}), Pe = /* @__PURE__ */ function(e) {
34
38
  return e.FLAT = "flat", e.TREE = "tree", e;
35
- }({}), je = /* @__PURE__ */ function(e) {
39
+ }({}), Fe = /* @__PURE__ */ function(e) {
36
40
  return e.BEFORE = "before", e.AFTER = "after", e.CHILD = "child", e;
37
- }({}), Me = /* @__PURE__ */ function(e) {
41
+ }({}), Ie = /* @__PURE__ */ function(e) {
38
42
  return e.NEUTRAL = "neutral", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e;
39
43
  }({}), Z = /* @__PURE__ */ function(e) {
40
44
  return e.UNCHECKED = "unchecked", e.CHECKED = "checked", e.INDETERMINATE = "indeterminate", e;
41
45
  }({}), Q = /* @__PURE__ */ function(e) {
42
46
  return e.ROW = "row", e.GROUP = "group", e.DEPTH_FOOTER = "depthFooter", e.LOAD_MORE = "loadMore", e;
43
- }({}), Ne = 16e6, Pe = 1e5, Fe = 1e9, Ie = 2e3, Le = .3, Re = 1300, ze = "__s-ui-table-filler__", Be = /* @__PURE__ */ T({
47
+ }({}), Le = 16e6, Re = 1e5, ze = 1e9, Be = 2e3, Ve = .3, He = 1300, Ue = "__s-ui-table-filler__", We = /* @__PURE__ */ O({
44
48
  __name: "STableCheckbox",
45
- props: /*@__PURE__*/ O({
49
+ props: /*@__PURE__*/ j({
46
50
  screenReaderLabel: {},
47
51
  indeterminate: {
48
52
  type: Boolean,
@@ -57,34 +61,34 @@ var J = /* @__PURE__ */ function(e) {
57
61
  }),
58
62
  emits: ["update:modelValue"],
59
63
  setup(e) {
60
- let t = te(e, "modelValue"), n = re("checkboxRef");
61
- return W([n, () => e.screenReaderLabel], () => {
64
+ let t = ne(e, "modelValue"), n = ie("checkboxRef");
65
+ return K([n, () => e.screenReaderLabel], () => {
62
66
  let t = n.value?.$el, r = t instanceof HTMLElement ? t.querySelector("input") : void 0;
63
67
  r && (r.tabIndex = -1, r.setAttribute("aria-label", e.screenReaderLabel));
64
68
  }, {
65
69
  immediate: !0,
66
70
  flush: "post"
67
- }), (r, o) => (F(), v(U(a), {
71
+ }), (r, i) => (R(), x(G(c), {
68
72
  ref_key: "checkboxRef",
69
73
  ref: n,
70
74
  modelValue: t.value,
71
- "onUpdate:modelValue": o[0] ||= (e) => t.value = e,
75
+ "onUpdate:modelValue": i[0] ||= (e) => t.value = e,
72
76
  indeterminate: e.indeterminate,
73
- size: U(i).EXTRA_SMALL
77
+ size: G(s).EXTRA_SMALL
74
78
  }, null, 8, [
75
79
  "modelValue",
76
80
  "indeterminate",
77
81
  "size"
78
82
  ]));
79
83
  }
80
- }), Ve = [
84
+ }), Ge = [
81
85
  "id",
82
86
  "aria-colindex",
83
87
  "data-column-key",
84
88
  "data-row-key",
85
89
  "data-section",
86
90
  "tabindex"
87
- ], He = /* @__PURE__ */ T({
91
+ ], Ke = /* @__PURE__ */ O({
88
92
  __name: "STableContentRow",
89
93
  props: {
90
94
  cells: {},
@@ -98,23 +102,23 @@ var J = /* @__PURE__ */ function(e) {
98
102
  focusColumnKey: {}
99
103
  },
100
104
  setup(e) {
101
- return (t, n) => (F(), b("tr", null, [(F(!0), b(g, null, L(e.cells, ({ key: n, cellPlan: r }) => (F(), b(g, { key: n }, [r ? (F(), b("td", {
105
+ return (t, n) => (R(), C("tr", null, [(R(!0), C(y, null, B(e.cells, ({ key: n, cellPlan: r }) => (R(), C(y, { key: n }, [r ? (R(), C("td", {
102
106
  key: 1,
103
107
  id: `${e.cellIdPrefix}${e.rowKey ?? ""}-${r.descriptor.key}`,
104
- class: j([r.cellClass, e.cellClass]),
105
- style: M(r.style),
108
+ class: P([r.cellClass, e.cellClass]),
109
+ style: F(r.style),
106
110
  "aria-colindex": r.descriptor.colIndex,
107
111
  "data-column-key": r.descriptor.key,
108
112
  "data-row-key": e.rowKey,
109
113
  "data-section": e.section,
110
114
  tabindex: r.descriptor.key === e.focusColumnKey ? 0 : -1
111
- }, [r.descriptor.key === e.contentColumnKey ? (F(), b("div", {
115
+ }, [r.descriptor.key === e.contentColumnKey ? (R(), C("div", {
112
116
  key: 0,
113
- class: j(e.contentClass),
114
- style: M(e.contentStyle)
115
- }, [R(t.$slots, "default")], 6)) : y("", !0)], 14, Ve)) : (F(), b("td", {
117
+ class: P(e.contentClass),
118
+ style: F(e.contentStyle)
119
+ }, [V(t.$slots, "default")], 6)) : S("", !0)], 14, Ge)) : (R(), C("td", {
116
120
  key: 0,
117
- class: j([
121
+ class: P([
118
122
  "s-ui-table__cell",
119
123
  "s-ui-table__filler-cell",
120
124
  e.cellClass
@@ -122,36 +126,36 @@ var J = /* @__PURE__ */ function(e) {
122
126
  role: "presentation"
123
127
  }, null, 2))], 64))), 128))]));
124
128
  }
125
- }), Ue = /* @__PURE__ */ function(e) {
129
+ }), qe = /* @__PURE__ */ function(e) {
126
130
  return e.INDICATOR = "indicator", e.CHECKBOX = "checkbox", e.RIGHT_EDGE = "rightEdge", e.COLUMNS_MANAGER = "columnsManager", e;
127
- }({}), We = {
131
+ }({}), Je = {
128
132
  indicator: "indicator",
129
133
  checkbox: "checkbox",
130
134
  rightEdge: "right-edge",
131
135
  columnsManager: "columns-manager"
132
- }, Ge = new Set(["rightEdge", "columnsManager"]), Ke = (e) => Ge.has(e) ? J.RIGHT : J.LEFT, qe = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "-"), Je = (e) => `--s-ui-table-col-w-${qe(e)}`, Ye = (e) => `--s-ui-table-sticky-${qe(e)}`, Xe = (e) => `--s-ui-table-live-w-${qe(e)}`, Ze = (e) => `--s-ui-table-live-sticky-${qe(e)}`, Qe = (e, t) => e.maxWidth === void 0 ? Infinity : Math.max(0, e.maxWidth - e.baseWidth - t), $e = (e, t, n) => {
136
+ }, Ye = new Set(["rightEdge", "columnsManager"]), Xe = (e) => Ye.has(e) ? Y.RIGHT : Y.LEFT, Ze = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "-"), Qe = (e) => `--s-ui-table-col-w-${Ze(e)}`, $e = (e) => `--s-ui-table-sticky-${Ze(e)}`, et = (e) => `--s-ui-table-live-w-${Ze(e)}`, tt = (e) => `--s-ui-table-live-sticky-${Ze(e)}`, nt = (e, t) => e.maxWidth === void 0 ? Infinity : Math.max(0, e.maxWidth - e.baseWidth - t), rt = (e, t, n) => {
133
137
  let r = e.reduce((e, t) => e + t.baseWidth, 0), i = 0;
134
138
  return e.forEach((a, o) => {
135
- let s = o === e.length - 1 ? t - i : Math.floor(t * a.baseWidth / r), c = n.get(a.key) ?? 0, l = Math.min(s, Qe(a, c));
139
+ let s = o === e.length - 1 ? t - i : Math.floor(t * a.baseWidth / r), c = n.get(a.key) ?? 0, l = Math.min(s, nt(a, c));
136
140
  n.set(a.key, c + l), i += l;
137
141
  }), t - i;
138
- }, et = (e) => e ? 430 : 160, tt = (e) => {
139
- let t = e.filter((e) => e.sticky === J.LEFT), n = t[t.length - 1];
142
+ }, it = (e) => e ? 430 : 160, at = (e) => {
143
+ let t = e.filter((e) => e.sticky === Y.LEFT), n = t[t.length - 1];
140
144
  n && (n.lastStickyLeft = !0);
141
- let r = e.find((e) => e.sticky === J.RIGHT);
145
+ let r = e.find((e) => e.sticky === Y.RIGHT);
142
146
  r && (r.firstStickyRight = !0);
143
- }, nt = (e, t) => {
147
+ }, ot = (e, t) => {
144
148
  let n = /* @__PURE__ */ new Map(), r = t;
145
149
  for (let t = 0; t < e.length && r > 0; t += 1) {
146
- let t = e.filter((e) => Qe(e, n.get(e.key) ?? 0) > 0);
150
+ let t = e.filter((e) => nt(e, n.get(e.key) ?? 0) > 0);
147
151
  if (t.length === 0) return n;
148
- r = $e(t, r, n);
152
+ r = rt(t, r, n);
149
153
  }
150
154
  return n;
151
- }, rt = (e, t) => {
155
+ }, st = (e, t) => {
152
156
  let n = e.reduce((e, t) => e + t.baseWidth, 0), r = e.filter((e) => e.flexible), i = Math.floor(t) - n;
153
157
  if (i <= 0 || r.length === 0) return e;
154
- let a = nt(r, i);
158
+ let a = ot(r, i);
155
159
  return e.map((e) => {
156
160
  let t = a.get(e.key);
157
161
  return t ? {
@@ -159,12 +163,12 @@ var J = /* @__PURE__ */ function(e) {
159
163
  width: e.baseWidth + t
160
164
  } : e;
161
165
  });
162
- }, it = ({ columns: e, columnOrder: t, columnWidths: n, hiddenColumns: r, hasIndicator: i, hasCheckbox: a, hasRightEdge: o, hasColumnsManager: s, columnsResizable: c, columnsDraggable: l, viewportWidth: u }) => {
163
- let d = _(() => {
164
- let t = H(e);
166
+ }, ct = ({ columns: e, columnOrder: t, columnWidths: n, hiddenColumns: r, hasIndicator: i, hasCheckbox: a, hasRightEdge: o, hasColumnsManager: s, columnsResizable: c, columnsDraggable: l, viewportWidth: u }) => {
167
+ let d = b(() => {
168
+ let t = W(e);
165
169
  return t.find((e) => e.primary)?.key ?? t[0]?.key;
166
- }), f = _(() => {
167
- let n = H(e), i = new Set(r.value ?? []), a = t.value, o = new Map(n.map((e) => [e.key, e])), s = [];
170
+ }), f = b(() => {
171
+ let n = W(e), i = new Set(r.value ?? []), a = t.value, o = new Map(n.map((e) => [e.key, e])), s = [];
168
172
  a ? (a.forEach((e) => {
169
173
  o.has(e) && s.push(e);
170
174
  }), n.forEach((e) => {
@@ -179,7 +183,7 @@ var J = /* @__PURE__ */ function(e) {
179
183
  });
180
184
  let l = [], u = [], f = [], p = [];
181
185
  return c.forEach((e) => {
182
- e.key === d.value ? l.push(e) : e.sticky === J.LEFT ? u.push(e) : e.sticky === J.RIGHT ? p.push(e) : f.push(e);
186
+ e.key === d.value ? l.push(e) : e.sticky === Y.LEFT ? u.push(e) : e.sticky === Y.RIGHT ? p.push(e) : f.push(e);
183
187
  }), [
184
188
  ...l,
185
189
  ...u,
@@ -195,14 +199,14 @@ var J = /* @__PURE__ */ function(e) {
195
199
  baseWidth: e.width,
196
200
  flexible: !1
197
201
  } : {
198
- baseWidth: et(t),
199
- flexible: e.sticky !== J.RIGHT
202
+ baseWidth: it(t),
203
+ flexible: e.sticky !== Y.RIGHT
200
204
  };
201
205
  }, m = (e) => {
202
- H(o) && e("rightEdge", 40), H(s) && e("columnsManager", 32);
203
- }, h = _(() => {
204
- let e = [], t = H(c), n = H(l), r = (t, n) => {
205
- let r = Ke(t);
206
+ W(o) && e("rightEdge", 40), W(s) && e("columnsManager", 32);
207
+ }, h = b(() => {
208
+ let e = [], t = W(c), n = W(l), r = (t, n) => {
209
+ let r = Xe(t);
206
210
  e.push({
207
211
  key: `__s-ui-table-${t}`,
208
212
  service: t,
@@ -212,23 +216,23 @@ var J = /* @__PURE__ */ function(e) {
212
216
  minWidth: n,
213
217
  maxWidth: n,
214
218
  sticky: r,
215
- align: De.LEFT,
219
+ align: ke.LEFT,
216
220
  primary: !1,
217
221
  resizable: !1,
218
222
  draggable: !1,
219
223
  sortable: !1,
220
224
  hideable: !1,
221
225
  colIndex: 0,
222
- widthVar: Je(t),
223
- liveWidthVar: Xe(t),
224
- stickyOffsetVar: Ye(t),
225
- liveStickyOffsetVar: Ze(t),
226
+ widthVar: Qe(t),
227
+ liveWidthVar: et(t),
228
+ stickyOffsetVar: $e(t),
229
+ liveStickyOffsetVar: tt(t),
226
230
  lastStickyLeft: !1,
227
231
  firstStickyRight: !1
228
232
  });
229
233
  };
230
- H(i) && r("indicator", 2), H(a) && r("checkbox", 24), f.value.forEach((r) => {
231
- let i = r.key === d.value, a = i ? J.LEFT : r.sticky, { baseWidth: o, flexible: s } = p(r, i);
234
+ W(i) && r("indicator", 2), W(a) && r("checkbox", 24), f.value.forEach((r) => {
235
+ let i = r.key === d.value, a = i ? Y.LEFT : r.sticky, { baseWidth: o, flexible: s } = p(r, i);
232
236
  e.push({
233
237
  key: r.key,
234
238
  column: r,
@@ -238,50 +242,50 @@ var J = /* @__PURE__ */ function(e) {
238
242
  minWidth: r.minWidth ?? 60,
239
243
  maxWidth: r.maxWidth,
240
244
  sticky: a,
241
- align: r.align ?? De.LEFT,
245
+ align: r.align ?? ke.LEFT,
242
246
  primary: i,
243
247
  resizable: t && (r.resizable ?? !0),
244
248
  draggable: n && !i && (r.draggable ?? !0),
245
249
  sortable: r.sortable ?? !1,
246
250
  hideable: !i && (r.hideable ?? !0),
247
251
  colIndex: 0,
248
- widthVar: Je(r.key),
249
- liveWidthVar: Xe(r.key),
250
- stickyOffsetVar: a ? Ye(r.key) : void 0,
251
- liveStickyOffsetVar: a ? Ze(r.key) : void 0,
252
+ widthVar: Qe(r.key),
253
+ liveWidthVar: et(r.key),
254
+ stickyOffsetVar: a ? $e(r.key) : void 0,
255
+ liveStickyOffsetVar: a ? tt(r.key) : void 0,
252
256
  lastStickyLeft: !1,
253
257
  firstStickyRight: !1
254
258
  });
255
259
  }), m(r);
256
260
  let o = 0;
257
261
  return e.forEach((e) => {
258
- e.sticky !== J.RIGHT && (o += 1, e.colIndex = o);
262
+ e.sticky !== Y.RIGHT && (o += 1, e.colIndex = o);
259
263
  }), e.forEach((e) => {
260
- e.sticky === J.RIGHT && (o += 1, e.colIndex = o);
261
- }), tt(e), e;
262
- }), g = _(() => rt(h.value, H(u))), v = _(() => g.value.reduce((e, t) => e + t.width, 0)), y = _(() => {
264
+ e.sticky === Y.RIGHT && (o += 1, e.colIndex = o);
265
+ }), at(e), e;
266
+ }), g = b(() => st(h.value, W(u))), _ = b(() => g.value.reduce((e, t) => e + t.width, 0)), v = b(() => {
263
267
  let e = {}, t = 0;
264
268
  g.value.forEach((n) => {
265
- e[n.widthVar] = `${n.width}px`, n.sticky === J.LEFT && n.stickyOffsetVar && (e[n.stickyOffsetVar] = `${t}px`, t += n.width);
269
+ e[n.widthVar] = `${n.width}px`, n.sticky === Y.LEFT && n.stickyOffsetVar && (e[n.stickyOffsetVar] = `${t}px`, t += n.width);
266
270
  });
267
271
  let n = 0;
268
272
  return [...g.value].reverse().forEach((t) => {
269
- t.sticky === J.RIGHT && t.stickyOffsetVar && (e[t.stickyOffsetVar] = `${n}px`, n += t.width);
273
+ t.sticky === Y.RIGHT && t.stickyOffsetVar && (e[t.stickyOffsetVar] = `${n}px`, n += t.width);
270
274
  }), e;
271
275
  });
272
276
  return {
273
277
  primaryColumnKey: d,
274
278
  orderedDataColumns: f,
275
279
  columnDescriptors: g,
276
- dataColumnDescriptors: _(() => g.value.filter((e) => e.column)),
277
- columnCssVars: y,
278
- totalWidth: v,
279
- columnCount: _(() => g.value.length)
280
+ dataColumnDescriptors: b(() => g.value.filter((e) => e.column)),
281
+ columnCssVars: v,
282
+ totalWidth: _,
283
+ columnCount: b(() => g.value.length)
280
284
  };
281
285
  }, $ = /* @__PURE__ */ function(e) {
282
286
  return e.HEADER = "h", e.BODY = "b", e.CREATION = "c", e.AGGREGATE = "a", e;
283
- }({}), at = "button, a[href], input, select, textarea, [tabindex]", ot = Object.values($), st = (e) => ot.find((t) => t === e), ct = ({ tableRootElement: e, tableElement: t, scrollElement: n, columnDescriptors: r, flatRows: i, snapshot: a, groupColumnKey: o, depthFooterColumnKey: s, loadMoreColumnKey: c, creationColumnKey: l, hasCreationRow: u, hasAggregateRow: d, isRowNavigable: f, pageSize: p, buildCellDomId: m, onBodyRowFocused: h, scrollToRowIndex: g }) => {
284
- let v = z(), y = z(), b = z(!1), x = z(0), S = _(() => r.value.filter((e) => e.service !== Ue.INDICATOR).map((e) => e.key)), C = _(() => r.value.filter((e) => e.service !== Ue.INDICATOR && e.service !== Ue.COLUMNS_MANAGER).map((e) => e.key)), w = (e) => {
287
+ }({}), lt = "button, a[href], input, select, textarea, [tabindex]", ut = Object.values($), dt = (e) => ut.find((t) => t === e), ft = ({ tableRootElement: e, tableElement: t, scrollElement: n, columnDescriptors: r, flatRows: i, snapshot: a, groupColumnKey: o, depthFooterColumnKey: s, loadMoreColumnKey: c, creationColumnKey: l, hasCreationRow: u, hasAggregateRow: d, isRowNavigable: f, pageSize: p, buildCellDomId: m, onBodyRowFocused: h, scrollToRowIndex: g }) => {
288
+ let _ = H(), v = H(), y = H(!1), x = H(0), S = b(() => r.value.filter((e) => e.service !== qe.INDICATOR).map((e) => e.key)), C = b(() => r.value.filter((e) => e.service !== qe.INDICATOR && e.service !== qe.COLUMNS_MANAGER).map((e) => e.key)), w = (e) => {
285
289
  if (!e) return;
286
290
  let t = a.value.getRowIndexByKey(e);
287
291
  return t === void 0 ? void 0 : i.value[t];
@@ -289,18 +293,18 @@ var J = /* @__PURE__ */ function(e) {
289
293
  if (e.kind === Q.ROW) return C.value;
290
294
  let t = {
291
295
  [Q.ROW]: void 0,
292
- [Q.GROUP]: H(o),
293
- [Q.DEPTH_FOOTER]: H(s),
294
- [Q.LOAD_MORE]: H(c)
296
+ [Q.GROUP]: W(o),
297
+ [Q.DEPTH_FOOTER]: W(s),
298
+ [Q.LOAD_MORE]: W(c)
295
299
  }[e.kind];
296
300
  return t ? [t] : [];
297
301
  }, E = (e) => {
298
302
  if (e.section === "h") return S.value;
299
303
  if (e.section === "c") {
300
- let e = H(l);
301
- return H(u) && e ? [e] : [];
304
+ let e = W(l);
305
+ return W(u) && e ? [e] : [];
302
306
  }
303
- if (e.section === "a") return H(d) ? C.value : [];
307
+ if (e.section === "a") return W(d) ? C.value : [];
304
308
  let t = w(e.rowKey);
305
309
  return t && f(t) ? T(t) : [];
306
310
  }, D = (e, t) => {
@@ -312,21 +316,21 @@ var J = /* @__PURE__ */ function(e) {
312
316
  let t = Math.abs(n.indexOf(e) - r);
313
317
  t < o && (o = t, a = e);
314
318
  }), a;
315
- }, O = _(() => ({
319
+ }, O = b(() => ({
316
320
  section: "h",
317
- columnKey: D(S.value, y.value)
318
- })), k = _(() => {
319
- let e = v.value;
321
+ columnKey: D(S.value, v.value)
322
+ })), k = b(() => {
323
+ let e = _.value;
320
324
  if (!e) return O.value;
321
325
  let t = E(e);
322
326
  return t.length === 0 ? O.value : t.includes(e.columnKey) ? e : {
323
327
  ...e,
324
328
  columnKey: D(t, e.columnKey)
325
329
  };
326
- }), j = _(() => i.value.length), M = _(() => j.value + +!!H(u) + +!!H(d)), N = (e) => {
330
+ }), A = b(() => i.value.length), j = b(() => A.value + +!!W(u) + +!!W(d)), M = (e) => {
327
331
  if (e.section === "h") return 0;
328
- if (e.section === "c") return j.value + 1;
329
- if (e.section === "a") return j.value + 1 + +!!H(u);
332
+ if (e.section === "c") return A.value + 1;
333
+ if (e.section === "a") return A.value + 1 + +!!W(u);
330
334
  let t = e.rowKey === void 0 ? void 0 : a.value.getRowIndexByKey(e.rowKey);
331
335
  return t === void 0 ? void 0 : t + 1;
332
336
  }, P = (e, t) => {
@@ -334,7 +338,7 @@ var J = /* @__PURE__ */ function(e) {
334
338
  section: "h",
335
339
  columnKey: D(S.value, t)
336
340
  };
337
- if (e <= j.value) {
341
+ if (e <= A.value) {
338
342
  let n = i.value[e - 1];
339
343
  if (!n || !f(n)) return;
340
344
  let r = T(n);
@@ -344,21 +348,21 @@ var J = /* @__PURE__ */ function(e) {
344
348
  columnKey: D(r, t)
345
349
  };
346
350
  }
347
- if (H(u) && e === j.value + 1) {
348
- let e = H(l);
351
+ if (W(u) && e === A.value + 1) {
352
+ let e = W(l);
349
353
  return e ? {
350
354
  section: "c",
351
355
  columnKey: e
352
356
  } : void 0;
353
357
  }
354
- if (H(d) && e === M.value) return {
358
+ if (W(d) && e === j.value) return {
355
359
  section: "a",
356
360
  columnKey: D(S.value, t)
357
361
  };
358
362
  }, F = (e, t) => {
359
363
  let n = e;
360
- for (; n >= 0 && n <= M.value;) {
361
- let e = P(n, y.value);
364
+ for (; n >= 0 && n <= j.value;) {
365
+ let e = P(n, v.value);
362
366
  if (e) return e;
363
367
  n += t;
364
368
  }
@@ -375,90 +379,90 @@ var J = /* @__PURE__ */ function(e) {
375
379
  return;
376
380
  }
377
381
  u.right > s && (t.scrollLeft += u.right - s);
378
- }, B = (e, t) => {
379
- v.value = e, t && (y.value = e.columnKey);
380
- let n = N(e);
382
+ }, z = (e, t) => {
383
+ _.value = e, t && (v.value = e.columnKey);
384
+ let n = M(e);
381
385
  n !== void 0 && (x.value = n);
382
- }, V = (e, t) => {
386
+ }, B = (e, t) => {
383
387
  let n = E(e), r = n.length > 0 && !n.includes(e.columnKey) ? {
384
388
  ...e,
385
389
  columnKey: D(n, e.columnKey)
386
390
  } : e;
387
- if (B(r, t?.updateDesired ?? !0), b.value = !1, r.section === "b" && r.rowKey) {
391
+ if (z(r, t?.updateDesired ?? !0), y.value = !1, r.section === "b" && r.rowKey) {
388
392
  h(r.rowKey);
389
393
  let e = a.value.getRowIndexByKey(r.rowKey);
390
394
  (t?.scroll ?? !0) && e !== void 0 && g(e);
391
395
  }
392
- t?.focusElement !== !1 && A(() => {
396
+ t?.focusElement !== !1 && N(() => {
393
397
  L()?.focus({ preventScroll: !0 }), R();
394
398
  });
395
- }, U = (e, t) => {
399
+ }, V = (e, t) => {
396
400
  let n = k.value;
397
401
  if (t !== 0) {
398
402
  let e = E(n), r = e[e.indexOf(n.columnKey) + t];
399
- r && V({
403
+ r && B({
400
404
  ...n,
401
405
  columnKey: r
402
406
  });
403
407
  return;
404
408
  }
405
409
  if (e === 0) return;
406
- let r = e > 0 ? 1 : -1, i = F((N(n) ?? x.value) + r, r);
407
- i && V(i, { updateDesired: !1 });
408
- }, ee = (e) => {
410
+ let r = e > 0 ? 1 : -1, i = F((M(n) ?? x.value) + r, r);
411
+ i && B(i, { updateDesired: !1 });
412
+ }, U = (e) => {
409
413
  let t = k.value, n = E(t), r = e === "start" ? n[0] : n[n.length - 1];
410
- r && V({
414
+ r && B({
411
415
  ...t,
412
416
  columnKey: r
413
417
  });
414
- }, te = (e) => {
415
- let t = e === "first" ? F(0, 1) : F(M.value, -1);
418
+ }, ee = (e) => {
419
+ let t = e === "first" ? F(0, 1) : F(j.value, -1);
416
420
  if (!t) return;
417
421
  let n = E(t), r = e === "first" ? n[0] : n[n.length - 1];
418
- V(r ? {
422
+ B(r ? {
419
423
  ...t,
420
424
  columnKey: r
421
425
  } : t);
422
- }, ne = (e) => {
423
- let t = N(k.value) ?? x.value, n = Math.max(1, Math.round(H(p))), r = Math.min(M.value, Math.max(0, t + e * n)), i = F(r, e) ?? F(r, e === 1 ? -1 : 1);
424
- i && V(i, { updateDesired: !1 });
425
- }, re = (e) => {
426
+ }, G = (e) => {
427
+ let t = M(k.value) ?? x.value, n = Math.max(1, Math.round(W(p))), r = Math.min(j.value, Math.max(0, t + e * n)), i = F(r, e) ?? F(r, e === 1 ? -1 : 1);
428
+ i && B(i, { updateDesired: !1 });
429
+ }, te = (e) => {
426
430
  let t = [];
427
- return e.querySelectorAll(at).forEach((e) => {
431
+ return e.querySelectorAll(lt).forEach((e) => {
428
432
  !(e instanceof HTMLElement) || e.offsetParent === null || e.hasAttribute("disabled") || e.closest("[aria-hidden=\"true\"]") || t.push(e);
429
433
  }), t;
430
- }, G = () => {
431
- let e = L(), t = e ? re(e)[0] : void 0;
432
- return t ? (b.value = !0, t.focus(), !0) : !1;
433
- }, ie = () => {
434
- b.value = !1, L()?.focus({ preventScroll: !0 });
435
- }, ae = (e) => {
436
- let t = L(), n = t ? re(t) : [];
434
+ }, ne = () => {
435
+ let e = L(), t = e ? te(e)[0] : void 0;
436
+ return t ? (y.value = !0, t.focus(), !0) : !1;
437
+ }, re = () => {
438
+ y.value = !1, L()?.focus({ preventScroll: !0 });
439
+ }, ie = (e) => {
440
+ let t = L(), n = t ? te(t) : [];
437
441
  if (n.length === 0) return;
438
442
  let r = document.activeElement, i = n.findIndex((e) => e === r || r instanceof Node && e.contains(r));
439
443
  n[i === -1 ? e === 1 ? 0 : n.length - 1 : (i + e + n.length) % n.length]?.focus();
440
- }, oe = () => {
444
+ }, q = () => {
441
445
  let e = k.value, n = E(e);
442
446
  if (n.length > 0) {
443
- V({
447
+ B({
444
448
  ...e,
445
- columnKey: D(n, y.value)
449
+ columnKey: D(n, v.value)
446
450
  }, {
447
451
  scroll: !1,
448
452
  updateDesired: !1
449
453
  });
450
454
  return;
451
455
  }
452
- let r = Math.min(x.value, M.value), i = F(r, -1) ?? F(r, 1);
456
+ let r = Math.min(x.value, j.value), i = F(r, -1) ?? F(r, 1);
453
457
  if (i) {
454
- V(i, {
458
+ B(i, {
455
459
  scroll: !1,
456
460
  updateDesired: !1
457
461
  });
458
462
  return;
459
463
  }
460
464
  if (S.value.length > 0) {
461
- V(O.value, {
465
+ B(O.value, {
462
466
  scroll: !1,
463
467
  updateDesired: !1
464
468
  });
@@ -466,64 +470,64 @@ var J = /* @__PURE__ */ function(e) {
466
470
  }
467
471
  t.value?.focus();
468
472
  };
469
- W(() => {
470
- let e = v.value?.rowKey;
473
+ K(() => {
474
+ let e = _.value?.rowKey;
471
475
  return e === void 0 ? void 0 : a.value.getRowIndexByKey(e);
472
476
  }, (e, t) => {
473
- t === void 0 || e !== void 0 || document.activeElement === document.body && oe();
477
+ t === void 0 || e !== void 0 || document.activeElement === document.body && q();
474
478
  }, { flush: "post" });
475
- let se = (e, t) => {
476
- B(e, !0), b.value = t, e.section === "b" && e.rowKey && h(e.rowKey);
477
- }, K = (e, t, n) => {
479
+ let ae = (e, t) => {
480
+ z(e, !0), y.value = t, e.section === "b" && e.rowKey && h(e.rowKey);
481
+ }, oe = (e, t, n) => {
478
482
  let r = k.value;
479
483
  return r.section === e && r.rowKey === t && r.columnKey === n;
480
- }, ce = (e, t, n) => K(e, t, n) ? 0 : -1, le = _(() => {
484
+ }, se = (e, t, n) => oe(e, t, n) ? 0 : -1, ce = b(() => {
481
485
  let e = k.value;
482
486
  return e.section === "b" ? e.rowKey : void 0;
483
487
  });
484
488
  return {
485
489
  focusAddress: k,
486
- focusedBodyRowKey: le,
487
- focusBodyRowIndex: _(() => {
488
- let e = le.value;
490
+ focusedBodyRowKey: ce,
491
+ focusBodyRowIndex: b(() => {
492
+ let e = ce.value;
489
493
  return e === void 0 ? void 0 : a.value.getRowIndexByKey(e);
490
494
  }),
491
- cellEntered: b,
492
- isCellFocused: K,
493
- getCellTabIndex: ce,
494
- moveFocus: U,
495
- moveToRowEdge: ee,
496
- moveToGridEdge: te,
497
- moveByPage: ne,
498
- focusAddressNow: V,
499
- syncFocusAddress: se,
500
- enterCell: G,
501
- exitCell: ie,
502
- cycleCellFocus: ae,
503
- restoreFocusAfterUnmount: oe,
495
+ cellEntered: y,
496
+ isCellFocused: oe,
497
+ getCellTabIndex: se,
498
+ moveFocus: V,
499
+ moveToRowEdge: U,
500
+ moveToGridEdge: ee,
501
+ moveByPage: G,
502
+ focusAddressNow: B,
503
+ syncFocusAddress: ae,
504
+ enterCell: ne,
505
+ exitCell: re,
506
+ cycleCellFocus: ie,
507
+ restoreFocusAfterUnmount: q,
504
508
  ensureFocusedCellVisibleHorizontally: R,
505
509
  queryFocusedCellElement: L
506
510
  };
507
- }, lt = [
511
+ }, pt = [
508
512
  "data-index",
509
513
  "aria-rowindex",
510
514
  "aria-level",
511
515
  "aria-expanded"
512
- ], ut = [
516
+ ], mt = [
513
517
  "id",
514
518
  "aria-colindex",
515
519
  "data-column-key",
516
520
  "data-row-key",
517
521
  "data-section",
518
522
  "tabindex"
519
- ], dt = { class: "s-ui-table__group-main" }, ft = { class: "s-ui-table__group-title" }, pt = { class: "s-ui-table__group-counter" }, mt = [
523
+ ], ht = { class: "s-ui-table__group-main" }, gt = { class: "s-ui-table__group-title" }, _t = { class: "s-ui-table__group-counter" }, vt = [
520
524
  "id",
521
525
  "aria-colindex",
522
526
  "data-column-key",
523
527
  "data-row-key",
524
528
  "data-section",
525
529
  "tabindex"
526
- ], ht = /* @__PURE__ */ T({
530
+ ], yt = /* @__PURE__ */ O({
527
531
  __name: "STableGroupRow",
528
532
  props: {
529
533
  row: {},
@@ -555,53 +559,53 @@ var J = /* @__PURE__ */ function(e) {
555
559
  "rowClick",
556
560
  "menuOpen"
557
561
  ],
558
- setup(i, { emit: a }) {
559
- let l = a, u = ne(), { t: d } = ce(), f = I(!1), p = (e) => {
560
- l("menuOpen"), e();
561
- }, m = _(() => ({
562
- "s-ui-table__group-row--active": i.active,
563
- "s-ui-table__group-row--collapsed": !i.expanded,
564
- "s-ui-table__group-row--stuck": i.stuck,
565
- "s-ui-table__group-row--dragging": i.dragging,
566
- "s-ui-table__group-row--drop-before": i.dropPosition === "before",
567
- "s-ui-table__group-row--drop-after": i.dropPosition === "after",
568
- "s-ui-table__group-row--drop-inside": i.dropPosition === "inside"
569
- })), h = _(() => {
570
- if (i.row.depth !== 0) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${i.row.depth * i.treeIndent}px)` };
571
- }), S = _(() => i.total === void 0 ? String(i.count) : `${i.count}/${i.total}`), C = _(() => i.expanded ? "chevronMiniDown" : "chevronMiniRight"), T = _(() => i.expanded ? d("table.collapse") : d("table.expand"));
572
- return (a, _) => (F(), b("tr", {
573
- ref: i.dndRef,
574
- class: j(["s-ui-table__group-row", m.value]),
575
- "data-index": i.rowIndex,
576
- "aria-rowindex": i.rowIndex + 2,
577
- "aria-level": i.row.depth + 1,
578
- "aria-expanded": i.row.hasChildren ? i.expanded : void 0,
579
- onClick: _[3] ||= (e) => l("rowClick", e)
562
+ setup(e, { emit: t }) {
563
+ let n = t, s = re(), { t: c } = ue(), f = z(!1), p = (e) => {
564
+ n("menuOpen"), e();
565
+ }, m = b(() => ({
566
+ "s-ui-table__group-row--active": e.active,
567
+ "s-ui-table__group-row--collapsed": !e.expanded,
568
+ "s-ui-table__group-row--stuck": e.stuck,
569
+ "s-ui-table__group-row--dragging": e.dragging,
570
+ "s-ui-table__group-row--drop-before": e.dropPosition === "before",
571
+ "s-ui-table__group-row--drop-after": e.dropPosition === "after",
572
+ "s-ui-table__group-row--drop-inside": e.dropPosition === "inside"
573
+ })), h = b(() => {
574
+ if (e.row.depth !== 0) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e.row.depth * e.treeIndent}px)` };
575
+ }), g = b(() => e.total === void 0 ? String(e.count) : `${e.count}/${e.total}`), _ = b(() => e.expanded ? "chevronMiniDown" : "chevronMiniRight"), v = b(() => e.expanded ? c("table.collapse") : c("table.expand"));
576
+ return (t, b) => (R(), C("tr", {
577
+ ref: e.dndRef,
578
+ class: P(["s-ui-table__group-row", m.value]),
579
+ "data-index": e.rowIndex,
580
+ "aria-rowindex": e.rowIndex + 2,
581
+ "aria-level": e.row.depth + 1,
582
+ "aria-expanded": e.row.hasChildren ? e.expanded : void 0,
583
+ onClick: b[3] ||= (e) => n("rowClick", e)
580
584
  }, [
581
- (F(!0), b(g, null, L(i.leadingPlans, (m) => (F(), b("td", {
582
- id: `${i.cellIdPrefix}${i.row.key}-${m.descriptor.key}`,
585
+ (R(!0), C(y, null, B(e.leadingPlans, (m) => (R(), C("td", {
586
+ id: `${e.cellIdPrefix}${e.row.key}-${m.descriptor.key}`,
583
587
  key: m.descriptor.key,
584
- class: j([m.cellClass, "s-ui-table__group-cell"]),
585
- style: M(m.style),
588
+ class: P([m.cellClass, "s-ui-table__group-cell"]),
589
+ style: F(m.style),
586
590
  "aria-colindex": m.descriptor.colIndex,
587
591
  "data-column-key": m.descriptor.key,
588
- "data-row-key": i.row.key,
589
- "data-section": U($).BODY,
590
- tabindex: m.descriptor.key === i.focusColumnKey ? 0 : -1
591
- }, [m.descriptor.key === i.groupColumnKey ? (F(), b("div", {
592
+ "data-row-key": e.row.key,
593
+ "data-section": G($).BODY,
594
+ tabindex: m.descriptor.key === e.focusColumnKey ? 0 : -1
595
+ }, [m.descriptor.key === e.groupColumnKey ? (R(), C("div", {
592
596
  key: 0,
593
597
  class: "s-ui-table__group-content",
594
- style: M(h.value)
595
- }, [R(a.$slots, "row", {}, () => [
596
- w(U(r), {
598
+ style: F(h.value)
599
+ }, [V(t.$slots, "row", {}, () => [
600
+ D(G(o), {
597
601
  class: "s-ui-table__group-chevron",
598
- appearance: U(t).BARE,
599
- variant: U(e).NEUTRAL,
600
- size: U(n).SMALL,
601
- icon: C.value,
602
- "aria-label": T.value,
602
+ appearance: G(i).BARE,
603
+ variant: G(r).NEUTRAL,
604
+ size: G(a).SMALL,
605
+ icon: _.value,
606
+ "aria-label": v.value,
603
607
  tabindex: "-1",
604
- onClick: _[0] ||= ie((e) => l("toggle"), ["stop"])
608
+ onClick: b[0] ||= ae((e) => n("toggle"), ["stop"])
605
609
  }, null, 8, [
606
610
  "appearance",
607
611
  "variant",
@@ -609,26 +613,26 @@ var J = /* @__PURE__ */ function(e) {
609
613
  "icon",
610
614
  "aria-label"
611
615
  ]),
612
- x("div", dt, [R(a.$slots, "title", {}, () => [x("span", ft, B(i.title), 1)]), x("span", pt, B(S.value), 1)]),
613
- x("div", {
616
+ w("div", ht, [V(t.$slots, "title", {}, () => [w("span", gt, U(e.title), 1)]), w("span", _t, U(g.value), 1)]),
617
+ w("div", {
614
618
  class: "s-ui-table__group-actions",
615
- onClick: _[2] ||= ie(() => {}, ["stop"])
616
- }, [R(a.$slots, "actions"), U(u).menu ? (F(), v(U(s), {
619
+ onClick: b[2] ||= ae(() => {}, ["stop"])
620
+ }, [V(t.$slots, "actions"), G(s).menu ? (R(), x(G(u), {
617
621
  key: 0,
618
622
  modelValue: f.value,
619
- "onUpdate:modelValue": _[1] ||= (e) => f.value = e,
620
- placement: U(o).BOTTOM_END,
623
+ "onUpdate:modelValue": b[1] ||= (e) => f.value = e,
624
+ placement: G(l).BOTTOM_END,
621
625
  "teleport-to": !1
622
626
  }, {
623
- trigger: G(({ toggle: i }) => [w(U(r), {
624
- class: j(["s-ui-table__group-kebab", { "s-ui-table__group-kebab--open": f.value }]),
625
- appearance: U(t).BARE,
626
- variant: U(e).NEUTRAL,
627
- size: U(n).SMALL,
627
+ trigger: q(({ toggle: e }) => [D(G(o), {
628
+ class: P(["s-ui-table__group-kebab", { "s-ui-table__group-kebab--open": f.value }]),
629
+ appearance: G(i).BARE,
630
+ variant: G(r).NEUTRAL,
631
+ size: G(a).SMALL,
628
632
  icon: "menu",
629
- "aria-label": U(d)("table.groupMenu"),
633
+ "aria-label": G(c)("table.groupMenu"),
630
634
  tabindex: "-1",
631
- onClick: (e) => p(i)
635
+ onClick: (t) => p(e)
632
636
  }, null, 8, [
633
637
  "class",
634
638
  "appearance",
@@ -637,60 +641,60 @@ var J = /* @__PURE__ */ function(e) {
637
641
  "aria-label",
638
642
  "onClick"
639
643
  ])]),
640
- content: G(() => [w(U(c), { width: 220 }, {
641
- default: G(() => [R(a.$slots, "menu")]),
644
+ content: q(() => [D(G(d), { width: 220 }, {
645
+ default: q(() => [V(t.$slots, "menu")]),
642
646
  _: 3
643
647
  })]),
644
648
  _: 3
645
- }, 8, ["modelValue", "placement"])) : y("", !0)])
646
- ])], 4)) : y("", !0)], 14, ut))), 128)),
647
- _[4] ||= x("td", {
649
+ }, 8, ["modelValue", "placement"])) : S("", !0)])
650
+ ])], 4)) : S("", !0)], 14, mt))), 128)),
651
+ b[4] ||= w("td", {
648
652
  class: "s-ui-table__cell s-ui-table__filler-cell s-ui-table__group-cell",
649
653
  role: "presentation"
650
654
  }, null, -1),
651
- (F(!0), b(g, null, L(i.trailingPlans, (e) => (F(), b("td", {
652
- id: `${i.cellIdPrefix}${i.row.key}-${e.descriptor.key}`,
653
- key: e.descriptor.key,
654
- class: j([e.cellClass, "s-ui-table__group-cell"]),
655
- style: M(e.style),
656
- "aria-colindex": e.descriptor.colIndex,
657
- "data-column-key": e.descriptor.key,
658
- "data-row-key": i.row.key,
659
- "data-section": U($).BODY,
660
- tabindex: e.descriptor.key === i.focusColumnKey ? 0 : -1
661
- }, null, 14, mt))), 128))
662
- ], 10, lt));
655
+ (R(!0), C(y, null, B(e.trailingPlans, (t) => (R(), C("td", {
656
+ id: `${e.cellIdPrefix}${e.row.key}-${t.descriptor.key}`,
657
+ key: t.descriptor.key,
658
+ class: P([t.cellClass, "s-ui-table__group-cell"]),
659
+ style: F(t.style),
660
+ "aria-colindex": t.descriptor.colIndex,
661
+ "data-column-key": t.descriptor.key,
662
+ "data-row-key": e.row.key,
663
+ "data-section": G($).BODY,
664
+ tabindex: t.descriptor.key === e.focusColumnKey ? 0 : -1
665
+ }, null, 14, vt))), 128))
666
+ ], 10, pt));
663
667
  }
664
- }), gt = {
668
+ }), bt = {
665
669
  key: 0,
666
670
  class: "s-ui-table__hint-bubble",
667
671
  role: "tooltip"
668
- }, _t = /* @__PURE__ */ T({
672
+ }, xt = /* @__PURE__ */ O({
669
673
  __name: "STableHint",
670
674
  props: { text: {} },
671
675
  setup(e) {
672
- let t = I(!1);
673
- return (n, r) => (F(), b("span", {
676
+ let t = z(!1);
677
+ return (n, r) => (R(), C("span", {
674
678
  class: "s-ui-table__hint",
675
679
  tabindex: "-1",
676
680
  onPointerenter: r[0] ||= (e) => t.value = !0,
677
681
  onPointerleave: r[1] ||= (e) => t.value = !1,
678
682
  onFocusin: r[2] ||= (e) => t.value = !0,
679
683
  onFocusout: r[3] ||= (e) => t.value = !1
680
- }, [w(U(oe), {
684
+ }, [D(G(se), {
681
685
  class: "s-ui-table__hint-icon",
682
686
  name: "infoCircle",
683
687
  size: 16
684
- }), t.value ? (F(), b("span", gt, B(e.text), 1)) : y("", !0)], 32));
688
+ }), t.value ? (R(), C("span", bt, U(e.text), 1)) : S("", !0)], 32));
685
689
  }
686
- }), vt = {
690
+ }), St = {
687
691
  key: 0,
688
692
  class: "s-ui-table__header-grip-area"
689
- }, yt = { class: "s-ui-table__header-name" }, bt = { class: "s-ui-table__header-title" }, xt = {
693
+ }, Ct = { class: "s-ui-table__header-name" }, wt = { class: "s-ui-table__header-title" }, Tt = {
690
694
  key: 1,
691
695
  class: "s-ui-table__header-sort",
692
696
  "aria-hidden": "true"
693
- }, St = { class: "s-ui-table__header-sort-badge" }, Ct = /* @__PURE__ */ T({
697
+ }, Et = { class: "s-ui-table__header-sort-badge" }, Dt = /* @__PURE__ */ O({
694
698
  __name: "STableHeaderCell",
695
699
  props: {
696
700
  descriptor: {},
@@ -707,82 +711,82 @@ var J = /* @__PURE__ */ function(e) {
707
711
  "sortSet",
708
712
  "hide"
709
713
  ],
710
- setup(i, { emit: a }) {
711
- let l = a, u = ne(), { t: d } = ce(), p = _(() => !!u.menu || i.descriptor.sortable || i.descriptor.hideable), m = _(() => ({
712
- "s-ui-table__header-plaque--sorted": !!i.sortDirection,
713
- "s-ui-table__header-plaque--sortable": i.descriptor.sortable
714
- })), h = _(() => ({ "s-ui-table__header-actions--open": i.menuOpen })), S = _(() => i.sortDirection === Y.DESC ? "descending" : "ascending"), T = _(() => String(i.sortIndex ?? 1)), E = (e) => {
715
- i.descriptor.sortable && l("sortToggle", e.shiftKey || e.ctrlKey || e.metaKey);
716
- }, D = (e, t) => {
717
- l("sortSet", e), t();
714
+ setup(e, { emit: t }) {
715
+ let n = t, s = re(), { t: c } = ue(), f = b(() => !!s.menu || e.descriptor.sortable || e.descriptor.hideable), p = b(() => ({
716
+ "s-ui-table__header-plaque--sorted": !!e.sortDirection,
717
+ "s-ui-table__header-plaque--sortable": e.descriptor.sortable
718
+ })), m = b(() => ({ "s-ui-table__header-actions--open": e.menuOpen })), g = b(() => e.sortDirection === X.DESC ? "descending" : "ascending"), _ = b(() => String(e.sortIndex ?? 1)), v = (t) => {
719
+ e.descriptor.sortable && n("sortToggle", t.shiftKey || t.ctrlKey || t.metaKey);
720
+ }, T = (e, t) => {
721
+ n("sortSet", e), t();
718
722
  }, O = (e) => {
719
- l("hide"), e();
723
+ n("hide"), e();
720
724
  };
721
- return (a, _) => (F(), b("div", {
722
- class: j(["s-ui-table__header-plaque", m.value]),
723
- onClick: E
725
+ return (t, b) => (R(), C("div", {
726
+ class: P(["s-ui-table__header-plaque", p.value]),
727
+ onClick: v
724
728
  }, [
725
- i.descriptor.draggable ? (F(), b("span", vt, [w(U(r), {
729
+ e.descriptor.draggable ? (R(), C("span", St, [D(G(o), {
726
730
  class: "s-ui-table__header-grip",
727
- appearance: U(t).BARE,
728
- variant: U(e).NEUTRAL,
729
- size: U(n).SMALL,
731
+ appearance: G(i).BARE,
732
+ variant: G(r).NEUTRAL,
733
+ size: G(a).SMALL,
730
734
  icon: "dragAndDrop",
731
- "aria-label": U(d)("table.dragColumn"),
735
+ "aria-label": G(c)("table.dragColumn"),
732
736
  tabindex: "-1",
733
- onClick: _[0] ||= ie(() => {}, ["stop"])
737
+ onClick: b[0] ||= ae(() => {}, ["stop"])
734
738
  }, null, 8, [
735
739
  "appearance",
736
740
  "variant",
737
741
  "size",
738
742
  "aria-label"
739
- ])])) : y("", !0),
740
- x("span", yt, [
741
- x("span", bt, [R(a.$slots, "default", {}, () => [C(B(i.descriptor.column?.title), 1)])]),
742
- i.descriptor.column?.description ? (F(), v(_t, {
743
+ ])])) : S("", !0),
744
+ w("span", Ct, [
745
+ w("span", wt, [V(t.$slots, "default", {}, () => [E(U(e.descriptor.column?.title), 1)])]),
746
+ e.descriptor.column?.description ? (R(), x(xt, {
743
747
  key: 0,
744
- text: i.descriptor.column.description
745
- }, null, 8, ["text"])) : y("", !0),
746
- i.sortDirection ? (F(), b("span", xt, [w(U(oe), {
747
- name: S.value,
748
+ text: e.descriptor.column.description
749
+ }, null, 8, ["text"])) : S("", !0),
750
+ e.sortDirection ? (R(), C("span", Tt, [D(G(se), {
751
+ name: g.value,
748
752
  size: 16
749
- }, null, 8, ["name"]), x("span", St, B(T.value), 1)])) : y("", !0),
750
- i.descriptor.sortable && !i.sortDirection ? (F(), v(U(r), {
753
+ }, null, 8, ["name"]), w("span", Et, U(_.value), 1)])) : S("", !0),
754
+ e.descriptor.sortable && !e.sortDirection ? (R(), x(G(o), {
751
755
  key: 2,
752
756
  class: "s-ui-table__header-sort-button",
753
- appearance: U(t).BARE,
754
- variant: U(e).NEUTRAL,
755
- size: U(n).SMALL,
757
+ appearance: G(i).BARE,
758
+ variant: G(r).NEUTRAL,
759
+ size: G(a).SMALL,
756
760
  icon: "ascending",
757
- "aria-label": U(d)("table.sortAsc"),
761
+ "aria-label": G(c)("table.sortAsc"),
758
762
  tabindex: "-1",
759
- onClick: _[1] ||= ie((e) => l("sortToggle", e.shiftKey || e.ctrlKey || e.metaKey), ["stop"])
763
+ onClick: b[1] ||= ae((e) => n("sortToggle", e.shiftKey || e.ctrlKey || e.metaKey), ["stop"])
760
764
  }, null, 8, [
761
765
  "appearance",
762
766
  "variant",
763
767
  "size",
764
768
  "aria-label"
765
- ])) : y("", !0)
769
+ ])) : S("", !0)
766
770
  ]),
767
- x("span", {
768
- class: j(["s-ui-table__header-actions", h.value]),
769
- onClick: _[3] ||= ie(() => {}, ["stop"])
770
- }, [p.value ? (F(), v(U(s), {
771
+ w("span", {
772
+ class: P(["s-ui-table__header-actions", m.value]),
773
+ onClick: b[3] ||= ae(() => {}, ["stop"])
774
+ }, [f.value ? (R(), x(G(u), {
771
775
  key: 0,
772
- "model-value": i.menuOpen,
773
- placement: U(o).BOTTOM_END,
776
+ "model-value": e.menuOpen,
777
+ placement: G(l).BOTTOM_END,
774
778
  "teleport-to": !1,
775
- "onUpdate:modelValue": _[2] ||= (e) => l("update:menuOpen", e)
779
+ "onUpdate:modelValue": b[2] ||= (e) => n("update:menuOpen", e)
776
780
  }, {
777
- trigger: G(({ toggle: i }) => [w(U(r), {
781
+ trigger: q(({ toggle: e }) => [D(G(o), {
778
782
  class: "s-ui-table__header-kebab",
779
- appearance: U(t).BARE,
780
- variant: U(e).NEUTRAL,
781
- size: U(n).SMALL,
783
+ appearance: G(i).BARE,
784
+ variant: G(r).NEUTRAL,
785
+ size: G(a).SMALL,
782
786
  icon: "menu",
783
- "aria-label": U(d)("table.columnMenu"),
787
+ "aria-label": G(c)("table.columnMenu"),
784
788
  tabindex: "-1",
785
- onClick: (e) => i()
789
+ onClick: (t) => e()
786
790
  }, null, 8, [
787
791
  "appearance",
788
792
  "variant",
@@ -790,57 +794,57 @@ var J = /* @__PURE__ */ function(e) {
790
794
  "aria-label",
791
795
  "onClick"
792
796
  ])]),
793
- content: G(({ close: e }) => [w(U(c), { width: 220 }, {
794
- default: G(() => [U(u).menu ? R(a.$slots, "menu", { key: 0 }) : (F(), b(g, { key: 1 }, [
795
- i.descriptor.sortable ? (F(), v(U(f), {
797
+ content: q(({ close: n }) => [D(G(d), { width: 220 }, {
798
+ default: q(() => [G(s).menu ? V(t.$slots, "menu", { key: 0 }) : (R(), C(y, { key: 1 }, [
799
+ e.descriptor.sortable ? (R(), x(G(h), {
796
800
  key: 0,
797
- title: U(d)("table.sortAsc"),
801
+ title: G(c)("table.sortAsc"),
798
802
  "icon-left": "ascending",
799
- selected: i.sortDirection === U(Y).ASC,
800
- onClick: (t) => D(U(Y).ASC, e)
803
+ selected: e.sortDirection === G(X).ASC,
804
+ onClick: (e) => T(G(X).ASC, n)
801
805
  }, null, 8, [
802
806
  "title",
803
807
  "selected",
804
808
  "onClick"
805
- ])) : y("", !0),
806
- i.descriptor.sortable ? (F(), v(U(f), {
809
+ ])) : S("", !0),
810
+ e.descriptor.sortable ? (R(), x(G(h), {
807
811
  key: 1,
808
- title: U(d)("table.sortDesc"),
812
+ title: G(c)("table.sortDesc"),
809
813
  "icon-left": "descending",
810
- selected: i.sortDirection === U(Y).DESC,
811
- onClick: (t) => D(U(Y).DESC, e)
814
+ selected: e.sortDirection === G(X).DESC,
815
+ onClick: (e) => T(G(X).DESC, n)
812
816
  }, null, 8, [
813
817
  "title",
814
818
  "selected",
815
819
  "onClick"
816
- ])) : y("", !0),
817
- i.descriptor.sortable && i.sortDirection ? (F(), v(U(f), {
820
+ ])) : S("", !0),
821
+ e.descriptor.sortable && e.sortDirection ? (R(), x(G(h), {
818
822
  key: 2,
819
- title: U(d)("table.sortReset"),
823
+ title: G(c)("table.sortReset"),
820
824
  "icon-left": "closeMini",
821
- onClick: (t) => D(void 0, e)
822
- }, null, 8, ["title", "onClick"])) : y("", !0),
823
- i.descriptor.hideable ? (F(), v(U(f), {
825
+ onClick: (e) => T(void 0, n)
826
+ }, null, 8, ["title", "onClick"])) : S("", !0),
827
+ e.descriptor.hideable ? (R(), x(G(h), {
824
828
  key: 3,
825
- title: U(d)("table.hideColumn"),
829
+ title: G(c)("table.hideColumn"),
826
830
  "icon-left": "eyeOff",
827
- onClick: (t) => O(e)
828
- }, null, 8, ["title", "onClick"])) : y("", !0)
831
+ onClick: (e) => O(n)
832
+ }, null, 8, ["title", "onClick"])) : S("", !0)
829
833
  ], 64))]),
830
834
  _: 2
831
835
  }, 1024)]),
832
836
  _: 3
833
- }, 8, ["model-value", "placement"])) : y("", !0)], 2)
837
+ }, 8, ["model-value", "placement"])) : S("", !0)], 2)
834
838
  ], 2));
835
839
  }
836
- }), wt = ["data-index", "aria-rowindex"], Tt = {
840
+ }), Ot = ["data-index", "aria-rowindex"], kt = {
837
841
  key: 0,
838
842
  class: "s-ui-table__cell s-ui-table__filler-cell",
839
843
  role: "presentation"
840
- }, Et = ["data-column-key", "data-row-key"], Dt = {
844
+ }, At = ["data-column-key", "data-row-key"], jt = {
841
845
  key: 0,
842
846
  class: "s-ui-table__cell-body"
843
- }, Ot = /* @__PURE__ */ T({
847
+ }, Mt = /* @__PURE__ */ O({
844
848
  __name: "STablePlaceholderRow",
845
849
  props: {
846
850
  rowIndex: {},
@@ -849,34 +853,38 @@ var J = /* @__PURE__ */ function(e) {
849
853
  rowHeight: {}
850
854
  },
851
855
  setup(e) {
852
- let t = _(() => e.rowHeight ? { height: `${e.rowHeight}px` } : void 0);
853
- return (n, r) => (F(), b("tr", {
856
+ let t = b(() => e.rowHeight ? { height: `${e.rowHeight}px` } : void 0);
857
+ return (n, r) => (R(), C("tr", {
854
858
  class: "s-ui-table__row s-ui-table__row--placeholder",
855
- style: M(t.value),
859
+ style: F(t.value),
856
860
  "data-index": e.rowIndex,
857
861
  "aria-rowindex": e.rowIndex + 2,
858
862
  "data-placeholder": "true"
859
- }, [(F(!0), b(g, null, L(e.cells, (t) => (F(), b(g, { key: t.key }, [t.cellPlan ? (F(), b("td", {
863
+ }, [(R(!0), C(y, null, B(e.cells, (t) => (R(), C(y, { key: t.key }, [t.cellPlan ? (R(), C("td", {
860
864
  key: 1,
861
- class: j(t.cellPlan.cellClass),
862
- style: M(t.cellPlan.style),
865
+ class: P(t.cellPlan.cellClass),
866
+ style: F(t.cellPlan.style),
863
867
  "data-column-key": t.cellPlan.descriptor.key,
864
868
  "data-row-key": e.rowKey
865
- }, [t.cellPlan.descriptor.service ? y("", !0) : (F(), b("div", Dt, [...r[0] ||= [x("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]]))], 14, Et)) : (F(), b("td", Tt))], 64))), 128))], 12, wt));
869
+ }, [t.cellPlan.descriptor.service ? S("", !0) : (R(), C("div", jt, [...r[0] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]]))], 14, At)) : (R(), C("td", kt))], 64))), 128))], 12, Ot));
866
870
  }
867
- }), kt = "__s-ui-table-load-more:", At = "__s-ui-table-depth-footer:", jt = (e) => `${kt}${e}`, Mt = (e) => `${At}${e}`, Nt = u, Pt = (e, t) => {
871
+ }), Nt = (t) => e(t) || n(t), Pt = (e) => Nt(e) ? void 0 : `s-ui-table__row--color-${e}`, Ft = (n) => {
872
+ if (!Nt(n)) return;
873
+ let r = { "--s-ui-table-row-color": n };
874
+ return e(n) && (r["--s-ui-table-row-color-contrast"] = t(n)), r;
875
+ }, It = "__s-ui-table-load-more:", Lt = "__s-ui-table-depth-footer:", Rt = (e) => `${It}${e}`, zt = (e) => `${Lt}${e}`, Bt = p, Vt = (e, t) => {
868
876
  let n = e[t];
869
877
  if (Array.isArray(n)) return n;
870
- }, Ft = (e, t) => t ? typeof t == "function" ? t(e) === !0 : e[t] === !0 : !1, It = (e, t) => {
878
+ }, Ht = (e, t) => t ? typeof t == "function" ? t(e) === !0 : e[t] === !0 : !1, Ut = (e, t) => {
871
879
  if (!t) return;
872
880
  if (typeof t == "function") return t(e);
873
881
  let n = e[t];
874
882
  if (typeof n == "string" || typeof n == "number") return n;
875
- }, Lt = (e, t) => {
883
+ }, Wt = (e, t) => {
876
884
  if (!t) return;
877
885
  let n = e[t];
878
886
  return typeof n == "number" ? n : void 0;
879
- }, Rt = (e, t, n, r) => D({
887
+ }, Gt = (e, t, n, r) => A({
880
888
  key: e,
881
889
  item: t,
882
890
  depth: n,
@@ -886,10 +894,10 @@ var J = /* @__PURE__ */ function(e) {
886
894
  expanded: !1,
887
895
  parentKey: r,
888
896
  subtreeEnd: 0
889
- }), zt = ({ items: e, itemKey: t, childrenKey: n, groupRow: r, expanded: i, depthFooter: a, hasMoreChildrenKey: o }) => {
897
+ }), Kt = ({ items: e, itemKey: t, childrenKey: n, groupRow: r, expanded: i, depthFooter: a, hasMoreChildrenKey: o }) => {
890
898
  let s = /* @__PURE__ */ new WeakMap(), c = (e, t, n) => {
891
899
  let r = /* @__PURE__ */ new Map(), i = [], a = (e, i, a) => {
892
- let s = Nt(e, t);
900
+ let s = Bt(e, t);
893
901
  if (!s) return;
894
902
  let c = {
895
903
  key: s,
@@ -901,7 +909,7 @@ var J = /* @__PURE__ */ function(e) {
901
909
  row: void 0
902
910
  };
903
911
  r.set(s, c);
904
- let l = Pt(e, n);
912
+ let l = Vt(e, n);
905
913
  return l && o(c, l), c;
906
914
  }, o = (e, t) => {
907
915
  let n = [];
@@ -913,13 +921,13 @@ var J = /* @__PURE__ */ function(e) {
913
921
  return e.forEach((e) => {
914
922
  let t = a(e, 0, void 0);
915
923
  t && s.push(t);
916
- }), D({
924
+ }), A({
917
925
  nodeByKey: r,
918
926
  roots: s,
919
927
  expandableKeys: i
920
928
  });
921
- }, l = _(() => {
922
- let r = V(H(e)), i = H(t), a = H(n), o = s.get(r);
929
+ }, l = b(() => {
930
+ let r = ee(W(e)), i = W(t), a = W(n), o = s.get(r);
923
931
  if (o && o.itemKeyValue === i && o.childrenKeyValue === a) return o.index;
924
932
  let l = c(r, i, a);
925
933
  return s.set(r, {
@@ -927,33 +935,33 @@ var J = /* @__PURE__ */ function(e) {
927
935
  childrenKeyValue: a,
928
936
  index: l
929
937
  }), l;
930
- }), u = _(() => new Set(i.value)), d = /* @__PURE__ */ new WeakMap(), f = (e) => {
938
+ }), u = b(() => new Set(i.value)), d = /* @__PURE__ */ new WeakMap(), f = (e) => {
931
939
  let t = d.get(e);
932
940
  if (t) return t;
933
941
  let n = /* @__PURE__ */ new Map();
934
942
  return d.set(e, n), n;
935
- }, p = _(() => {
936
- let t = V(H(e)), { roots: n, nodeByKey: i } = l.value, s = H(r), c = H(a), d = H(o), p = u.value, m = c ? new Set(c.depths) : void 0, h = c?.show ?? (() => !0), g = f(t), _ = [], v = [], y = /* @__PURE__ */ new Map(), b = (e, t, n, r) => (e.index = _.length, e.kind = t, e.hasChildren = n, e.expanded = r, e.subtreeEnd = e.index, _.push(e), e), x = (e, t, n, r) => (e.row ||= Rt(e.key, e.item, e.depth, e.parentKey), b(e.row, t, n, r)), S = (e, t, n) => {
943
+ }, p = b(() => {
944
+ let t = ee(W(e)), { roots: n, nodeByKey: i } = l.value, s = W(r), c = W(a), d = W(o), p = u.value, m = c ? new Set(c.depths) : void 0, h = c?.show ?? (() => !0), g = f(t), _ = [], v = [], y = /* @__PURE__ */ new Map(), b = (e, t, n, r) => (e.index = _.length, e.kind = t, e.hasChildren = n, e.expanded = r, e.subtreeEnd = e.index, _.push(e), e), x = (e, t, n, r) => (e.row ||= Gt(e.key, e.item, e.depth, e.parentKey), b(e.row, t, n, r)), S = (e, t, n) => {
937
945
  let r = g.get(e);
938
- return r || (r = Rt(e, t.item, t.depth + 1, t.key), g.set(e, r)), b(r, n, !1, !1);
946
+ return r || (r = Gt(e, t.item, t.depth + 1, t.key), g.set(e, r)), b(r, n, !1, !1);
939
947
  }, C = (e) => {
940
- d && e.item[d] === !0 && S(jt(e.key), e, Q.LOAD_MORE);
948
+ d && e.item[d] === !0 && S(Rt(e.key), e, Q.LOAD_MORE);
941
949
  }, w = (e) => {
942
950
  if (m !== void 0 && m.has(e.depth) && h(e.item, e.depth)) {
943
- let t = S(Mt(e.key), e, Q.DEPTH_FOOTER);
951
+ let t = S(zt(e.key), e, Q.DEPTH_FOOTER);
944
952
  y.set(e.key, t.index);
945
953
  }
946
- }, T = (e) => s && Ft(e.item, s) ? Q.GROUP : Q.ROW, E = (e) => e.children !== void 0 && e.children.length > 0, O = (e, t, n) => (t || n) && p.has(e.key), k = (e) => {
947
- let t = T(e), n = t === Q.GROUP, r = E(e), i = O(e, r, n), a = x(e, t, r, i);
948
- n && v.push(a.index), i && (e.children?.forEach((e) => k(e)), C(e), w(e)), a.subtreeEnd = _.length - 1;
954
+ }, T = (e) => s && Ht(e.item, s) ? Q.GROUP : Q.ROW, E = (e) => e.children !== void 0 && e.children.length > 0, D = (e, t, n) => (t || n) && p.has(e.key), O = (e) => {
955
+ let t = T(e), n = t === Q.GROUP, r = E(e), i = D(e, r, n), a = x(e, t, r, i);
956
+ n && v.push(a.index), i && (e.children?.forEach((e) => O(e)), C(e), w(e)), a.subtreeEnd = _.length - 1;
949
957
  };
950
- n.forEach((e) => k(e));
951
- let A = D(_), j = (e) => i.get(e)?.row ?? g.get(e), M = (e) => {
958
+ n.forEach((e) => O(e));
959
+ let k = A(_), j = (e) => i.get(e)?.row ?? g.get(e), M = (e) => {
952
960
  let t = j(e);
953
- return t && A[t.index] === t ? t : void 0;
961
+ return t && k[t.index] === t ? t : void 0;
954
962
  };
955
- return D({
956
- flatRows: A,
963
+ return A({
964
+ flatRows: k,
957
965
  getRowIndexByKey: (e) => M(e)?.index,
958
966
  getSubtreeRangeByKey: (e) => {
959
967
  let t = M(e);
@@ -962,7 +970,7 @@ var J = /* @__PURE__ */ function(e) {
962
970
  groupRowIndexes: v,
963
971
  depthFooterIndexByParentKey: y
964
972
  });
965
- }), m = _(() => p.value.flatRows), h = (e) => u.value.has(e), g = (e, t) => {
973
+ }), m = b(() => p.value.flatRows), h = (e) => u.value.has(e), g = (e, t) => {
966
974
  l.value.nodeByKey.get(e)?.children?.forEach((e) => {
967
975
  t.add(e.key), g(e.key, t);
968
976
  });
@@ -990,30 +998,30 @@ var J = /* @__PURE__ */ function(e) {
990
998
  i.value = [];
991
999
  }
992
1000
  };
993
- }, Bt = {
1001
+ }, qt = {
994
1002
  key: 0,
995
1003
  class: "s-ui-table__cell-text"
996
- }, Vt = {
1004
+ }, Jt = {
997
1005
  key: 1,
998
1006
  class: "s-ui-table__cell-placeholder"
999
- }, Ht = /* @__PURE__ */ T({
1007
+ }, Yt = /* @__PURE__ */ O({
1000
1008
  __name: "STableCellText",
1001
1009
  props: {
1002
1010
  column: {},
1003
1011
  item: {}
1004
1012
  },
1005
1013
  setup(e) {
1006
- let t = _(() => It(e.item, e.column.value ?? e.column.key)), n = _(() => t.value !== void 0 && t.value !== "");
1007
- return (r, i) => n.value ? (F(), b("span", Bt, B(t.value), 1)) : e.column.placeholder ? (F(), b("span", Vt, B(e.column.placeholder), 1)) : y("", !0);
1014
+ let t = b(() => Ut(e.item, e.column.value ?? e.column.key)), n = b(() => t.value !== void 0 && t.value !== "");
1015
+ return (r, i) => n.value ? (R(), C("span", qt, U(t.value), 1)) : e.column.placeholder ? (R(), C("span", Jt, U(e.column.placeholder), 1)) : S("", !0);
1008
1016
  }
1009
- }), Ut = [
1017
+ }), Xt = [
1010
1018
  "id",
1011
1019
  "data-index",
1012
1020
  "aria-rowindex",
1013
1021
  "aria-level",
1014
1022
  "aria-expanded",
1015
1023
  "aria-selected"
1016
- ], Wt = [
1024
+ ], Zt = [
1017
1025
  "id",
1018
1026
  "aria-colindex",
1019
1027
  "data-column-key",
@@ -1022,13 +1030,13 @@ var J = /* @__PURE__ */ function(e) {
1022
1030
  "aria-disabled",
1023
1031
  "aria-readonly",
1024
1032
  "tabindex"
1025
- ], Gt = {
1033
+ ], Qt = {
1026
1034
  key: 2,
1027
1035
  class: "s-ui-table__chevron-spacer"
1028
- }, Kt = {
1036
+ }, $t = {
1029
1037
  key: 3,
1030
1038
  class: "s-ui-table__cell-body-action"
1031
- }, qt = [
1039
+ }, en = [
1032
1040
  "id",
1033
1041
  "aria-colindex",
1034
1042
  "data-column-key",
@@ -1037,13 +1045,13 @@ var J = /* @__PURE__ */ function(e) {
1037
1045
  "aria-disabled",
1038
1046
  "aria-readonly",
1039
1047
  "tabindex"
1040
- ], Jt = {
1048
+ ], tn = {
1041
1049
  key: 0,
1042
1050
  class: "s-ui-table__right-edge"
1043
- }, Yt = {
1051
+ }, nn = {
1044
1052
  key: 2,
1045
1053
  class: "s-ui-table__cell-body-action"
1046
- }, Xt = /* @__PURE__ */ T({
1054
+ }, rn = /* @__PURE__ */ O({
1047
1055
  __name: "STableRow",
1048
1056
  props: {
1049
1057
  row: {},
@@ -1077,7 +1085,9 @@ var J = /* @__PURE__ */ function(e) {
1077
1085
  },
1078
1086
  treeIndent: {},
1079
1087
  rowState: {},
1088
+ rowColor: {},
1080
1089
  extraRowClass: {},
1090
+ extraRowStyle: {},
1081
1091
  dndRef: { type: Function },
1082
1092
  dragging: {
1083
1093
  type: Boolean,
@@ -1099,218 +1109,225 @@ var J = /* @__PURE__ */ function(e) {
1099
1109
  "toggleExpand",
1100
1110
  "toggleSelected"
1101
1111
  ],
1102
- setup(i, { emit: a }) {
1103
- let o = a, s = ne(), { t: c } = ce(), l = $.BODY, u = (e) => `${i.cellIdPrefix}${i.row.key}-${e}`, d = (e) => e === i.focusColumnKey ? 0 : -1, f = _(() => [
1112
+ setup(e, { emit: t }) {
1113
+ let n = t, s = re(), { t: c } = ue(), l = $.BODY, u = (t) => `${e.cellIdPrefix}${e.row.key}-${t}`, d = (t) => t === e.focusColumnKey ? 0 : -1, f = b(() => [
1104
1114
  {
1105
- "s-ui-table__row--selected": i.selected,
1106
- "s-ui-table__row--active": i.active,
1107
- "s-ui-table__row--disabled": i.disabled,
1108
- "s-ui-table__row--dragging": i.dragging,
1109
- "s-ui-table__row--drop-before": i.dropPosition === "before",
1110
- "s-ui-table__row--drop-after": i.dropPosition === "after",
1111
- "s-ui-table__row--drop-inside": i.dropPosition === "inside"
1115
+ "s-ui-table__row--selected": e.selected,
1116
+ "s-ui-table__row--active": e.active,
1117
+ "s-ui-table__row--disabled": e.disabled,
1118
+ "s-ui-table__row--dragging": e.dragging,
1119
+ "s-ui-table__row--drop-before": e.dropPosition === "before",
1120
+ "s-ui-table__row--drop-after": e.dropPosition === "after",
1121
+ "s-ui-table__row--drop-inside": e.dropPosition === "inside",
1122
+ "s-ui-table__row--colored": !!e.rowColor
1112
1123
  },
1113
- D.value,
1114
- i.extraRowClass
1115
- ]), p = _(() => {
1116
- if (!(!i.placeholder || !i.placeholderHeight)) return { height: `${i.placeholderHeight}px` };
1117
- }), m = (e) => {
1118
- if (!(!e.chevron || i.row.depth === 0)) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${i.row.depth * i.treeIndent}px)` };
1119
- }, h = {
1120
- [Oe.DEFAULT]: void 0,
1121
- [Oe.COMPLETED]: "s-ui-table__row--state-completed"
1122
- }, S = {
1123
- [X.DEFAULT]: void 0,
1124
- [X.DISABLED]: "s-ui-table__cell-body--state-disabled",
1125
- [X.READONLY]: "s-ui-table__cell-body--state-readonly",
1126
- [X.EDITING]: "s-ui-table__cell-body--state-editing"
1127
- }, C = (e) => {
1128
- let t = e.descriptor.column?.cellState;
1129
- return t ? typeof t == "function" ? t(i.row.item) : t : X.DEFAULT;
1130
- }, w = (e) => S[C(e)], T = (e) => C(e) === X.DISABLED || void 0, E = (e) => C(e) === X.READONLY || void 0, D = _(() => i.rowState ? h[i.rowState] : void 0), O = () => ({
1131
- ...i.row,
1132
- selected: i.selected,
1133
- indeterminate: i.indeterminate,
1134
- active: i.active,
1135
- disabled: i.disabled,
1136
- group: i.row.kind === Q.GROUP,
1124
+ k.value,
1125
+ p.value,
1126
+ e.extraRowClass
1127
+ ]), p = b(() => e.rowColor ? Pt(e.rowColor) : void 0), m = b(() => e.rowColor ? Ft(e.rowColor) : void 0), h = b(() => {
1128
+ let t = e.placeholder && e.placeholderHeight ? { height: `${e.placeholderHeight}px` } : void 0;
1129
+ if (!(!e.extraRowStyle && !t && !m.value)) return {
1130
+ ...e.extraRowStyle,
1131
+ ...m.value,
1132
+ ...t
1133
+ };
1134
+ }), g = (t) => {
1135
+ if (!(!t.chevron || e.row.depth === 0)) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e.row.depth * e.treeIndent}px)` };
1136
+ }, _ = {
1137
+ [Ae.DEFAULT]: void 0,
1138
+ [Ae.COMPLETED]: "s-ui-table__row--state-completed"
1139
+ }, v = {
1140
+ [Me.DEFAULT]: void 0,
1141
+ [Me.DISABLED]: "s-ui-table__cell-body--state-disabled",
1142
+ [Me.READONLY]: "s-ui-table__cell-body--state-readonly",
1143
+ [Me.EDITING]: "s-ui-table__cell-body--state-editing"
1144
+ }, T = (t) => {
1145
+ let n = t.descriptor.column?.cellState;
1146
+ return n ? typeof n == "function" ? n(e.row.item) : n : Me.DEFAULT;
1147
+ }, E = (e) => v[T(e)], D = (e) => T(e) === Me.DISABLED || void 0, O = (e) => T(e) === Me.READONLY || void 0, k = b(() => e.rowState ? _[e.rowState] : void 0), A = () => ({
1148
+ ...e.row,
1149
+ selected: e.selected,
1150
+ indeterminate: e.indeterminate,
1151
+ active: e.active,
1152
+ disabled: e.disabled,
1153
+ group: e.row.kind === Q.GROUP,
1137
1154
  toggleExpanded: () => {
1138
- o("toggleExpand");
1155
+ n("toggleExpand");
1139
1156
  },
1140
1157
  toggleSelected: () => {
1141
- o("toggleSelected");
1158
+ n("toggleSelected");
1142
1159
  }
1143
- }), A = (e) => {
1144
- let t = e.descriptor.column ?? { key: e.descriptor.key };
1160
+ }), j = (t) => {
1161
+ let n = t.descriptor.column ?? { key: t.descriptor.key };
1145
1162
  return {
1146
- ...O(),
1147
- column: t,
1148
- value: It(i.row.item, t.value ?? t.key),
1149
- cellState: C(e)
1163
+ ...A(),
1164
+ column: n,
1165
+ value: Ut(e.row.item, n.value ?? n.key),
1166
+ cellState: T(t)
1150
1167
  };
1151
- }, N = (e) => {
1152
- let t = [...i.leadingPlans, ...i.trailingPlans].find((t) => t.descriptor.key === e);
1153
- return t ? C(t) === X.DISABLED : !1;
1154
- }, P = (e) => {
1168
+ }, N = (t) => {
1169
+ let n = [...e.leadingPlans, ...e.trailingPlans].find((e) => e.descriptor.key === t);
1170
+ return n ? T(n) === Me.DISABLED : !1;
1171
+ }, I = (e) => {
1155
1172
  let t = e.target;
1156
1173
  if (t instanceof Element) {
1157
- let n = t.closest("td[data-column-key]")?.getAttribute("data-column-key");
1158
- n && !N(n) && o("cellClick", n, e);
1174
+ let r = t.closest("td[data-column-key]")?.getAttribute("data-column-key");
1175
+ r && !N(r) && n("cellClick", r, e);
1159
1176
  }
1160
- o("rowClick", e);
1177
+ n("rowClick", e);
1161
1178
  };
1162
- return (a, h) => (F(), b("tr", {
1163
- id: i.domId,
1164
- ref: i.dndRef,
1165
- class: j(["s-ui-table__row", f.value]),
1166
- style: M(p.value),
1167
- "data-index": i.rowIndex,
1168
- "aria-rowindex": i.rowIndex + 2,
1169
- "aria-level": i.row.depth + 1,
1170
- "aria-expanded": i.row.hasChildren ? i.rowExpanded : void 0,
1171
- "aria-selected": i.selected || void 0,
1172
- onClick: P,
1173
- onContextmenu: h[3] ||= (e) => o("rowContextMenu", e)
1179
+ return (t, p) => (R(), C("tr", {
1180
+ id: e.domId,
1181
+ ref: e.dndRef,
1182
+ class: P(["s-ui-table__row", f.value]),
1183
+ style: F(h.value),
1184
+ "data-index": e.rowIndex,
1185
+ "aria-rowindex": e.rowIndex + 2,
1186
+ "aria-level": e.row.depth + 1,
1187
+ "aria-expanded": e.row.hasChildren ? e.rowExpanded : void 0,
1188
+ "aria-selected": e.selected || void 0,
1189
+ onClick: I,
1190
+ onContextmenu: p[3] ||= (e) => n("rowContextMenu", e)
1174
1191
  }, [
1175
- (F(!0), b(g, null, L(i.leadingPlans, (f) => (F(), b("td", {
1192
+ (R(!0), C(y, null, B(e.leadingPlans, (f) => (R(), C("td", {
1176
1193
  id: u(f.descriptor.key),
1177
1194
  key: f.descriptor.key,
1178
- class: j(f.cellClass),
1179
- style: M(f.style),
1195
+ class: P(f.cellClass),
1196
+ style: F(f.style),
1180
1197
  "aria-colindex": f.descriptor.colIndex,
1181
1198
  "data-column-key": f.descriptor.key,
1182
- "data-row-key": i.row.key,
1183
- "data-section": U(l),
1184
- "aria-disabled": T(f),
1185
- "aria-readonly": E(f),
1199
+ "data-row-key": e.row.key,
1200
+ "data-section": G(l),
1201
+ "aria-disabled": D(f),
1202
+ "aria-readonly": O(f),
1186
1203
  tabindex: d(f.descriptor.key)
1187
- }, [f.descriptor.service === U(Ue).INDICATOR ? (F(), b(g, { key: 0 }, [i.placeholder ? y("", !0) : R(a.$slots, "indicator", k({
1204
+ }, [f.descriptor.service === G(qe).INDICATOR ? (R(), C(y, { key: 0 }, [e.placeholder ? S("", !0) : V(t.$slots, "indicator", M({
1188
1205
  key: 0,
1189
1206
  ref_for: !0
1190
- }, O()))], 64)) : f.descriptor.service === U(Ue).CHECKBOX ? (F(), b(g, { key: 1 }, [U(s).checkbox && !i.placeholder ? R(a.$slots, "checkbox", k({
1207
+ }, A()))], 64)) : f.descriptor.service === G(qe).CHECKBOX ? (R(), C(y, { key: 1 }, [G(s).checkbox && !e.placeholder ? V(t.$slots, "checkbox", M({
1191
1208
  key: 0,
1192
1209
  ref_for: !0
1193
- }, O())) : i.rowSelectable && !i.placeholder ? (F(), v(Be, {
1210
+ }, A())) : e.rowSelectable && !e.placeholder ? (R(), x(We, {
1194
1211
  key: 1,
1195
- class: j(["s-ui-table__row-checkbox", { "s-ui-table__row-checkbox--active": i.selected || i.indeterminate }]),
1196
- "model-value": i.selected,
1197
- indeterminate: i.indeterminate,
1198
- "screen-reader-label": U(c)("table.selectRow"),
1199
- "onUpdate:modelValue": h[0] ||= (e) => o("toggleSelected"),
1200
- onClick: h[1] ||= ie(() => {}, ["stop"])
1212
+ class: P(["s-ui-table__row-checkbox", { "s-ui-table__row-checkbox--active": e.selected || e.indeterminate }]),
1213
+ "model-value": e.selected,
1214
+ indeterminate: e.indeterminate,
1215
+ "screen-reader-label": G(c)("table.selectRow"),
1216
+ "onUpdate:modelValue": p[0] ||= (e) => n("toggleSelected"),
1217
+ onClick: p[1] ||= ae(() => {}, ["stop"])
1201
1218
  }, null, 8, [
1202
1219
  "class",
1203
1220
  "model-value",
1204
1221
  "indeterminate",
1205
1222
  "screen-reader-label"
1206
- ])) : y("", !0)], 64)) : i.placeholder ? (F(), b("div", {
1223
+ ])) : S("", !0)], 64)) : e.placeholder ? (R(), C("div", {
1207
1224
  key: 2,
1208
1225
  class: "s-ui-table__cell-body",
1209
- style: M(m(f))
1210
- }, [...h[4] ||= [x("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (F(), b("div", {
1226
+ style: F(g(f))
1227
+ }, [...p[4] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (R(), C("div", {
1211
1228
  key: 3,
1212
- class: j(["s-ui-table__cell-body", w(f)]),
1213
- style: M(m(f))
1229
+ class: P(["s-ui-table__cell-body", E(f)]),
1230
+ style: F(g(f))
1214
1231
  }, [
1215
- f.chevron ? (F(), b(g, { key: 0 }, [U(s).chevron ? R(a.$slots, "chevron", k({
1232
+ f.chevron ? (R(), C(y, { key: 0 }, [G(s).chevron ? V(t.$slots, "chevron", M({
1216
1233
  key: 0,
1217
1234
  ref_for: !0
1218
- }, O())) : i.row.hasChildren ? (F(), v(U(r), {
1235
+ }, A())) : e.row.hasChildren ? (R(), x(G(o), {
1219
1236
  key: 1,
1220
1237
  class: "s-ui-table__chevron",
1221
- appearance: U(t).BARE,
1222
- variant: U(e).NEUTRAL,
1223
- size: U(n).SMALL,
1224
- icon: i.rowExpanded ? "chevronMiniDown" : "chevronMiniRight",
1225
- "aria-label": i.rowExpanded ? U(c)("table.collapse") : U(c)("table.expand"),
1238
+ appearance: G(i).BARE,
1239
+ variant: G(r).NEUTRAL,
1240
+ size: G(a).SMALL,
1241
+ icon: e.rowExpanded ? "chevronMiniDown" : "chevronMiniRight",
1242
+ "aria-label": e.rowExpanded ? G(c)("table.collapse") : G(c)("table.expand"),
1226
1243
  tabindex: "-1",
1227
- onClick: h[2] ||= ie((e) => o("toggleExpand"), ["stop"])
1244
+ onClick: p[2] ||= ae((e) => n("toggleExpand"), ["stop"])
1228
1245
  }, null, 8, [
1229
1246
  "appearance",
1230
1247
  "variant",
1231
1248
  "size",
1232
1249
  "icon",
1233
1250
  "aria-label"
1234
- ])) : (F(), b("span", Gt))], 64)) : y("", !0),
1235
- U(s)[`cell:${f.descriptor.key}`] ? R(a.$slots, `cell:${f.descriptor.key}`, k({
1251
+ ])) : (R(), C("span", Qt))], 64)) : S("", !0),
1252
+ G(s)[`cell:${f.descriptor.key}`] ? V(t.$slots, `cell:${f.descriptor.key}`, M({
1236
1253
  key: 1,
1237
1254
  ref_for: !0
1238
- }, A(f))) : f.descriptor.column ? (F(), v(Ht, {
1255
+ }, j(f))) : f.descriptor.column ? (R(), x(Yt, {
1239
1256
  key: 2,
1240
1257
  column: f.descriptor.column,
1241
- item: i.row.item
1242
- }, null, 8, ["column", "item"])) : y("", !0),
1243
- U(s)["cell-actions"] && !i.placeholder ? (F(), b("span", Kt, [R(a.$slots, "cell-actions", k({ ref_for: !0 }, A(f)))])) : y("", !0)
1244
- ], 6))], 14, Wt))), 128)),
1245
- h[6] ||= x("td", {
1258
+ item: e.row.item
1259
+ }, null, 8, ["column", "item"])) : S("", !0),
1260
+ G(s)["cell-actions"] && !e.placeholder ? (R(), C("span", $t, [V(t.$slots, "cell-actions", M({ ref_for: !0 }, j(f)))])) : S("", !0)
1261
+ ], 6))], 14, Zt))), 128)),
1262
+ p[6] ||= w("td", {
1246
1263
  class: "s-ui-table__cell s-ui-table__filler-cell",
1247
1264
  role: "presentation"
1248
1265
  }, null, -1),
1249
- (F(!0), b(g, null, L(i.trailingPlans, (e) => (F(), b("td", {
1250
- id: u(e.descriptor.key),
1251
- key: e.descriptor.key,
1252
- class: j(e.cellClass),
1253
- style: M(e.style),
1254
- "aria-colindex": e.descriptor.colIndex,
1255
- "data-column-key": e.descriptor.key,
1256
- "data-row-key": i.row.key,
1257
- "data-section": U(l),
1258
- "aria-disabled": T(e),
1259
- "aria-readonly": E(e),
1260
- tabindex: d(e.descriptor.key)
1261
- }, [e.descriptor.service === U(Ue).RIGHT_EDGE ? (F(), b(g, { key: 0 }, [i.placeholder ? y("", !0) : (F(), b("div", Jt, [R(a.$slots, "right-edge", k({ ref_for: !0 }, O()))]))], 64)) : i.placeholder ? (F(), b("div", {
1266
+ (R(!0), C(y, null, B(e.trailingPlans, (n) => (R(), C("td", {
1267
+ id: u(n.descriptor.key),
1268
+ key: n.descriptor.key,
1269
+ class: P(n.cellClass),
1270
+ style: F(n.style),
1271
+ "aria-colindex": n.descriptor.colIndex,
1272
+ "data-column-key": n.descriptor.key,
1273
+ "data-row-key": e.row.key,
1274
+ "data-section": G(l),
1275
+ "aria-disabled": D(n),
1276
+ "aria-readonly": O(n),
1277
+ tabindex: d(n.descriptor.key)
1278
+ }, [n.descriptor.service === G(qe).RIGHT_EDGE ? (R(), C(y, { key: 0 }, [e.placeholder ? S("", !0) : (R(), C("div", tn, [V(t.$slots, "right-edge", M({ ref_for: !0 }, A()))]))], 64)) : e.placeholder ? (R(), C("div", {
1262
1279
  key: 1,
1263
1280
  class: "s-ui-table__cell-body",
1264
- style: M(m(e))
1265
- }, [...h[5] ||= [x("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (F(), b("div", {
1281
+ style: F(g(n))
1282
+ }, [...p[5] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (R(), C("div", {
1266
1283
  key: 2,
1267
- class: j(["s-ui-table__cell-body", w(e)]),
1268
- style: M(m(e))
1269
- }, [U(s)[`cell:${e.descriptor.key}`] ? R(a.$slots, `cell:${e.descriptor.key}`, k({
1284
+ class: P(["s-ui-table__cell-body", E(n)]),
1285
+ style: F(g(n))
1286
+ }, [G(s)[`cell:${n.descriptor.key}`] ? V(t.$slots, `cell:${n.descriptor.key}`, M({
1270
1287
  key: 0,
1271
1288
  ref_for: !0
1272
- }, A(e))) : e.descriptor.column ? (F(), v(Ht, {
1289
+ }, j(n))) : n.descriptor.column ? (R(), x(Yt, {
1273
1290
  key: 1,
1274
- column: e.descriptor.column,
1275
- item: i.row.item
1276
- }, null, 8, ["column", "item"])) : y("", !0), U(s)["cell-actions"] && !i.placeholder ? (F(), b("span", Yt, [R(a.$slots, "cell-actions", k({ ref_for: !0 }, A(e)))])) : y("", !0)], 6))], 14, qt))), 128))
1277
- ], 46, Ut));
1291
+ column: n.descriptor.column,
1292
+ item: e.row.item
1293
+ }, null, 8, ["column", "item"])) : S("", !0), G(s)["cell-actions"] && !e.placeholder ? (R(), C("span", nn, [V(t.$slots, "cell-actions", M({ ref_for: !0 }, j(n)))])) : S("", !0)], 6))], 14, en))), 128))
1294
+ ], 46, Xt));
1278
1295
  }
1279
- }), Zt = {
1296
+ }), an = {
1280
1297
  class: "s-ui-table__row s-ui-table__row--skeleton",
1281
1298
  "aria-hidden": "true"
1282
- }, Qt = { class: "s-ui-table__cell-body" }, $t = /* @__PURE__ */ T({
1299
+ }, on = { class: "s-ui-table__cell-body" }, sn = /* @__PURE__ */ O({
1283
1300
  __name: "STableSkeletonRow",
1284
1301
  props: {
1285
1302
  leadingPlans: {},
1286
1303
  trailingPlans: {}
1287
1304
  },
1288
1305
  setup(e) {
1289
- return (t, n) => (F(), b("tr", Zt, [
1290
- (F(!0), b(g, null, L(e.leadingPlans, (e) => (F(), b("td", {
1306
+ return (t, n) => (R(), C("tr", an, [
1307
+ (R(!0), C(y, null, B(e.leadingPlans, (e) => (R(), C("td", {
1291
1308
  key: e.descriptor.key,
1292
- class: j(e.cellClass),
1293
- style: M(e.style)
1294
- }, [e.descriptor.column ? R(t.$slots, "default", {
1309
+ class: P(e.cellClass),
1310
+ style: F(e.style)
1311
+ }, [e.descriptor.column ? V(t.$slots, "default", {
1295
1312
  key: 0,
1296
1313
  descriptor: e.descriptor
1297
- }, () => [x("div", Qt, [w(U(K), {
1314
+ }, () => [w("div", on, [D(G(le), {
1298
1315
  class: "s-ui-table__skeleton",
1299
- type: e.descriptor.primary ? U(ae).S_TABLE_ROW : U(ae).S_TABLE_CELL
1300
- }, null, 8, ["type"])])]) : y("", !0)], 6))), 128)),
1301
- n[0] ||= x("td", {
1316
+ type: e.descriptor.primary ? G(oe).S_TABLE_ROW : G(oe).S_TABLE_CELL
1317
+ }, null, 8, ["type"])])]) : S("", !0)], 6))), 128)),
1318
+ n[0] ||= w("td", {
1302
1319
  class: "s-ui-table__cell s-ui-table__filler-cell",
1303
1320
  role: "presentation"
1304
1321
  }, null, -1),
1305
- (F(!0), b(g, null, L(e.trailingPlans, (e) => (F(), b("td", {
1322
+ (R(!0), C(y, null, B(e.trailingPlans, (e) => (R(), C("td", {
1306
1323
  key: e.descriptor.key,
1307
- class: j(e.cellClass),
1308
- style: M(e.style)
1324
+ class: P(e.cellClass),
1325
+ style: F(e.style)
1309
1326
  }, null, 6))), 128))
1310
1327
  ]));
1311
1328
  }
1312
- }), en = "s-ui-table-column", tn = "s-ui-table-row", nn = (e, t) => e.type === "s-ui-table-column" && e.tableId === t, rn = (e, t) => e.type === "s-ui-table-row" && e.tableId === t, an = ({ tableId: e, tableRootElement: t, enabled: n, columnDescriptors: r, onReorder: i, isResizing: a }) => {
1313
- let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = z(), l = z(), u = (e) => r.value.find((t) => t.key === e), d = (e, t) => {
1329
+ }), cn = "s-ui-table-column", ln = "s-ui-table-row", un = (e, t) => e.type === "s-ui-table-column" && e.tableId === t, dn = (e, t) => e.type === "s-ui-table-row" && e.tableId === t, fn = ({ tableId: e, tableRootElement: t, enabled: n, columnDescriptors: r, onReorder: i, isResizing: a }) => {
1330
+ let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = H(), l = H(), u = (e) => r.value.find((t) => t.key === e), d = (e, t) => {
1314
1331
  let n = u(e), r = u(t);
1315
1332
  if (!n || !r || r.primary) return !1;
1316
1333
  let i = (e) => e.sticky ?? "regular";
@@ -1324,22 +1341,22 @@ var J = /* @__PURE__ */ function(e) {
1324
1341
  }
1325
1342
  if (s.get(r) === t) return;
1326
1343
  o.get(r)?.(), s.set(r, t);
1327
- let i = ve(ye({
1344
+ let i = J(be({
1328
1345
  element: r,
1329
1346
  canDrag: () => {
1330
1347
  let e = u(t);
1331
- return !!(H(n) && e?.draggable && !H(a));
1348
+ return !!(W(n) && e?.draggable && !W(a));
1332
1349
  },
1333
1350
  getInitialData: () => ({
1334
- type: en,
1351
+ type: cn,
1335
1352
  tableId: e,
1336
1353
  columnKey: t
1337
1354
  }),
1338
1355
  onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
1339
1356
  let n = u(t);
1340
- xe({
1357
+ Ce({
1341
1358
  nativeSetDragImage: e,
1342
- getOffset: Se({
1359
+ getOffset: we({
1343
1360
  x: "8px",
1344
1361
  y: "8px"
1345
1362
  }),
@@ -1355,16 +1372,16 @@ var J = /* @__PURE__ */ function(e) {
1355
1372
  onDrop: () => {
1356
1373
  c.value = void 0, l.value = void 0;
1357
1374
  }
1358
- }), be({
1375
+ }), xe({
1359
1376
  element: r,
1360
- canDrop: ({ source: n }) => nn(n.data, e) && n.data.columnKey !== t && d(n.data.columnKey, t),
1361
- getData: ({ input: e, element: n }) => Ce({ columnKey: t }, {
1377
+ canDrop: ({ source: n }) => un(n.data, e) && n.data.columnKey !== t && d(n.data.columnKey, t),
1378
+ getData: ({ input: e, element: n }) => Te({ columnKey: t }, {
1362
1379
  input: e,
1363
1380
  element: n,
1364
1381
  allowedEdges: ["left", "right"]
1365
1382
  }),
1366
1383
  onDrag: ({ self: e }) => {
1367
- let n = we(e.data);
1384
+ let n = Ee(e.data);
1368
1385
  if (n === "left" || n === "right") {
1369
1386
  let e = l.value;
1370
1387
  (e?.targetKey !== t || e.edge !== n) && (l.value = {
@@ -1378,23 +1395,23 @@ var J = /* @__PURE__ */ function(e) {
1378
1395
  }
1379
1396
  }));
1380
1397
  o.set(r, i);
1381
- }, p = q({
1382
- canMonitor: ({ source: t }) => nn(t.data, e),
1398
+ }, p = Se({
1399
+ canMonitor: ({ source: t }) => un(t.data, e),
1383
1400
  onDrop: ({ source: t, location: n }) => {
1384
1401
  c.value = void 0, l.value = void 0;
1385
1402
  let r = n.current.dropTargets[0];
1386
- if (!r || !nn(t.data, e)) return;
1387
- let a = r.data, o = a.columnKey, s = we(a);
1403
+ if (!r || !un(t.data, e)) return;
1404
+ let a = r.data, o = a.columnKey, s = Ee(a);
1388
1405
  typeof o != "string" || s !== "left" && s !== "right" || o !== t.data.columnKey && i(t.data.columnKey, o, s);
1389
1406
  }
1390
1407
  });
1391
- N(() => {
1408
+ I(() => {
1392
1409
  p(), o.forEach((e) => {
1393
1410
  e();
1394
1411
  }), o.clear(), s.clear();
1395
1412
  });
1396
- let m = z();
1397
- return W(l, (e) => {
1413
+ let m = H();
1414
+ return K(l, (e) => {
1398
1415
  let n = t.value, r = e ? n?.querySelector(`th[data-column-key="${e.targetKey}"]`) : void 0;
1399
1416
  if (!e || !n || !r) {
1400
1417
  m.value = void 0;
@@ -1408,12 +1425,12 @@ var J = /* @__PURE__ */ function(e) {
1408
1425
  dropIndicator: l,
1409
1426
  dropLineStyle: m
1410
1427
  };
1411
- }, on = {
1412
- [De.LEFT]: "s-ui-table__cell--align-left",
1413
- [De.CENTER]: "s-ui-table__cell--align-center",
1414
- [De.RIGHT]: "s-ui-table__cell--align-right"
1415
- }, sn = ({ columnDescriptors: e, hasTreeStructure: t, expandColumnKey: n, primaryColumnKey: r }) => {
1416
- let i = _(() => e.value.filter((e) => e.sticky !== J.RIGHT)), a = _(() => e.value.filter((e) => e.sticky === J.RIGHT)), o = _(() => {
1428
+ }, pn = {
1429
+ [ke.LEFT]: "s-ui-table__cell--align-left",
1430
+ [ke.CENTER]: "s-ui-table__cell--align-center",
1431
+ [ke.RIGHT]: "s-ui-table__cell--align-right"
1432
+ }, mn = ({ columnDescriptors: e, hasTreeStructure: t, expandColumnKey: n, primaryColumnKey: r }) => {
1433
+ let i = b(() => e.value.filter((e) => e.sticky !== Y.RIGHT)), a = b(() => e.value.filter((e) => e.sticky === Y.RIGHT)), o = b(() => {
1417
1434
  let e = (e) => ({
1418
1435
  key: e.key,
1419
1436
  descriptor: e
@@ -1421,7 +1438,7 @@ var J = /* @__PURE__ */ function(e) {
1421
1438
  return [
1422
1439
  ...i.value.map(e),
1423
1440
  {
1424
- key: ze,
1441
+ key: Ue,
1425
1442
  descriptor: void 0
1426
1443
  },
1427
1444
  ...a.value.map(e)
@@ -1429,22 +1446,25 @@ var J = /* @__PURE__ */ function(e) {
1429
1446
  }), s = (e) => {
1430
1447
  if (!e.sticky || !e.stickyOffsetVar || !e.liveStickyOffsetVar) return;
1431
1448
  let t = `var(${e.liveStickyOffsetVar}, var(${e.stickyOffsetVar}))`;
1432
- return e.sticky === J.LEFT ? { left: t } : { right: t };
1449
+ return e.sticky === Y.LEFT ? {
1450
+ left: t,
1451
+ "--s-ui-table-cell-inline-offset": t
1452
+ } : { right: t };
1433
1453
  }, c = (e) => {
1434
- let t = e.service ? We[e.service] : void 0;
1454
+ let t = e.service ? Je[e.service] : void 0;
1435
1455
  return {
1436
- "s-ui-table__cell--sticky-left": e.sticky === J.LEFT,
1437
- "s-ui-table__cell--sticky-right": e.sticky === J.RIGHT,
1456
+ "s-ui-table__cell--sticky-left": e.sticky === Y.LEFT,
1457
+ "s-ui-table__cell--sticky-right": e.sticky === Y.RIGHT,
1438
1458
  "s-ui-table__cell--last-sticky-left": e.lastStickyLeft,
1439
1459
  "s-ui-table__cell--first-sticky-right": e.firstStickyRight,
1440
1460
  "s-ui-table__cell--primary": e.primary,
1441
1461
  [`s-ui-table__cell--service-${t}`]: !!t,
1442
- [on[e.align]]: !!e.column
1462
+ [pn[e.align]]: !!e.column
1443
1463
  };
1444
1464
  }, l = (e) => {
1445
- if (!H(t) || !e.column) return !1;
1446
- let i = H(n);
1447
- return e.key === (i ?? H(r));
1465
+ if (!W(t) || !e.column) return !1;
1466
+ let i = W(n);
1467
+ return e.key === (i ?? W(r));
1448
1468
  }, u = (e) => {
1449
1469
  let t = ["s-ui-table__cell"];
1450
1470
  return Object.entries(c(e)).forEach(([e, n]) => {
@@ -1455,7 +1475,7 @@ var J = /* @__PURE__ */ function(e) {
1455
1475
  style: s(e),
1456
1476
  chevron: l(e)
1457
1477
  };
1458
- }, d = _(() => i.value.map(u)), f = _(() => a.value.map(u));
1478
+ }, d = b(() => i.value.map(u)), f = b(() => a.value.map(u));
1459
1479
  return {
1460
1480
  leadingDescriptors: i,
1461
1481
  trailingDescriptors: a,
@@ -1464,7 +1484,7 @@ var J = /* @__PURE__ */ function(e) {
1464
1484
  getHeaderCellClasses: c,
1465
1485
  leadingCellPlans: d,
1466
1486
  trailingCellPlans: f,
1467
- rowCellPlans: _(() => {
1487
+ rowCellPlans: b(() => {
1468
1488
  let e = (e) => ({
1469
1489
  key: e.descriptor.key,
1470
1490
  cellPlan: e
@@ -1472,15 +1492,15 @@ var J = /* @__PURE__ */ function(e) {
1472
1492
  return [
1473
1493
  ...d.value.map(e),
1474
1494
  {
1475
- key: ze,
1495
+ key: Ue,
1476
1496
  cellPlan: void 0
1477
1497
  },
1478
1498
  ...f.value.map(e)
1479
1499
  ];
1480
1500
  })
1481
1501
  };
1482
- }, cn = ({ tableRootElement: e, scrollElement: t, columnDescriptors: n, columnWidths: r, enabled: i, onResizeEnd: a, remeasureRows: o }) => {
1483
- let s = I(), c = _(() => s.value?.columnKey), l = (e, t) => {
1502
+ }, hn = ({ tableRootElement: e, scrollElement: t, columnDescriptors: n, columnWidths: r, enabled: i, onResizeEnd: a, remeasureRows: o }) => {
1503
+ let s = z(), c = b(() => s.value?.columnKey), l = (e, t) => {
1484
1504
  let n = Math.max(e.minWidth, t);
1485
1505
  return e.maxWidth ? Math.min(e.maxWidth, n) : n;
1486
1506
  }, u = (t, r) => {
@@ -1490,11 +1510,11 @@ var J = /* @__PURE__ */ function(e) {
1490
1510
  s && i.style.setProperty(s.liveWidthVar, `${r}px`);
1491
1511
  let c = 0;
1492
1512
  o.forEach((e) => {
1493
- e.sticky === J.LEFT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${c}px`), c += a(e));
1513
+ e.sticky === Y.LEFT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${c}px`), c += a(e));
1494
1514
  });
1495
1515
  let l = 0;
1496
1516
  [...o].reverse().forEach((e) => {
1497
- e.sticky === J.RIGHT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${l}px`), l += a(e));
1517
+ e.sticky === Y.RIGHT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${l}px`), l += a(e));
1498
1518
  });
1499
1519
  }, d = () => {
1500
1520
  let t = e.value;
@@ -1510,25 +1530,25 @@ var J = /* @__PURE__ */ function(e) {
1510
1530
  let t = s.value;
1511
1531
  t && (s.value = void 0, e && f(t.columnKey, t.liveWidth), d());
1512
1532
  };
1513
- return de("pointermove", (e) => {
1533
+ return pe("pointermove", (e) => {
1514
1534
  let t = s.value;
1515
1535
  if (!t || e.pointerId !== t.pointerId) return;
1516
1536
  let r = n.value.find((e) => e.key === t.columnKey);
1517
1537
  if (!r) return;
1518
1538
  let i = l(r, t.startWidth + (e.clientX - t.startClientX));
1519
1539
  i !== t.liveWidth && (t.liveWidth = i, u(t.columnKey, i));
1520
- }), de("pointerup", (e) => {
1540
+ }), pe("pointerup", (e) => {
1521
1541
  s.value && e.pointerId === s.value.pointerId && p(!0);
1522
- }), de("pointercancel", () => {
1542
+ }), pe("pointercancel", () => {
1523
1543
  p(!1);
1524
- }), de("blur", () => {
1544
+ }), pe("blur", () => {
1525
1545
  p(!1);
1526
- }), de("keydown", (e) => {
1546
+ }), pe("keydown", (e) => {
1527
1547
  s.value && e.key === "Escape" && (e.preventDefault(), p(!1));
1528
1548
  }), {
1529
1549
  resizingColumnKey: c,
1530
1550
  handleResizeHandlePointerdown: (e, t) => {
1531
- if (!H(i)) return;
1551
+ if (!W(i)) return;
1532
1552
  let r = n.value.find((e) => e.key === t);
1533
1553
  r?.resizable && (e.preventDefault(), e.stopPropagation(), e.isTrusted && e.target instanceof Element && e.target.setPointerCapture(e.pointerId), s.value = {
1534
1554
  columnKey: t,
@@ -1539,7 +1559,7 @@ var J = /* @__PURE__ */ function(e) {
1539
1559
  });
1540
1560
  },
1541
1561
  handleResizeHandleKeydown: (e, t) => {
1542
- if (!H(i) || e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
1562
+ if (!W(i) || e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
1543
1563
  let r = n.value.find((e) => e.key === t);
1544
1564
  if (!r?.resizable) return;
1545
1565
  e.preventDefault();
@@ -1547,7 +1567,7 @@ var J = /* @__PURE__ */ function(e) {
1547
1567
  s !== r.width && f(t, s);
1548
1568
  },
1549
1569
  handleResizeHandleDblclick: (e) => {
1550
- if (!H(i)) return;
1570
+ if (!W(i)) return;
1551
1571
  let r = n.value.find((t) => t.key === e), a = t.value;
1552
1572
  if (!r?.resizable || !a) return;
1553
1573
  let o = r.minWidth;
@@ -1558,19 +1578,19 @@ var J = /* @__PURE__ */ function(e) {
1558
1578
  s !== r.width && f(e, s);
1559
1579
  }
1560
1580
  };
1561
- }, ln = ({ gridFocus: e, columnDescriptors: t, flatRows: n, expandColumnKey: r, primaryColumnKey: i, groupColumnKey: a, selectable: o, openMenuColumnKey: s, toggleExpanded: c, toggleRowSelected: l, applySortCycle: u, setColumnMenuOpen: f, resizeColumnByKeyboard: p, onDepthFooterActivate: m, onLoadMoreActivate: h, onRowActivate: g }) => {
1581
+ }, gn = ({ gridFocus: e, columnDescriptors: t, flatRows: n, expandColumnKey: r, primaryColumnKey: i, groupColumnKey: a, selectable: o, openMenuColumnKey: s, toggleExpanded: c, toggleRowSelected: l, applySortCycle: u, setColumnMenuOpen: d, resizeColumnByKeyboard: f, onDepthFooterActivate: p, onLoadMoreActivate: h, onRowActivate: g }) => {
1562
1582
  let _ = () => {
1563
1583
  let n = e.focusAddress.value.columnKey;
1564
1584
  return t.value.find((e) => e.key === n);
1565
1585
  }, v = () => {
1566
1586
  let t = e.focusBodyRowIndex.value;
1567
1587
  return t === void 0 ? void 0 : n.value[t];
1568
- }, y = (e) => e.kind === Q.GROUP ? H(a) : H(r) ?? H(i), b = (t) => {
1588
+ }, y = (e) => e.kind === Q.GROUP ? W(a) : W(r) ?? W(i), b = (t) => {
1569
1589
  let n = t.target;
1570
1590
  if (!(n instanceof HTMLElement)) return;
1571
1591
  let r = n.closest("[data-section]");
1572
1592
  if (!(r instanceof HTMLElement)) return;
1573
- let i = st(r.dataset.section ?? null), a = r.dataset.columnKey;
1593
+ let i = dt(r.dataset.section ?? null), a = r.dataset.columnKey;
1574
1594
  !i || !a || e.syncFocusAddress({
1575
1595
  section: i,
1576
1596
  rowKey: r.dataset.rowKey,
@@ -1581,7 +1601,7 @@ var J = /* @__PURE__ */ function(e) {
1581
1601
  if (r.section !== $.BODY || !r.rowKey) return !1;
1582
1602
  let i = v();
1583
1603
  if (!i || i.kind === Q.DEPTH_FOOTER || r.columnKey !== y(i)) return !1;
1584
- let a = d(t, i.key, n.value);
1604
+ let a = m(t, i.key, n.value);
1585
1605
  return a ? a.type === "select" ? (e.focusAddressNow({
1586
1606
  section: $.BODY,
1587
1607
  rowKey: a.rowKey,
@@ -1604,7 +1624,7 @@ var J = /* @__PURE__ */ function(e) {
1604
1624
  return;
1605
1625
  }
1606
1626
  if (r.kind === Q.DEPTH_FOOTER) {
1607
- m(r);
1627
+ p(r);
1608
1628
  return;
1609
1629
  }
1610
1630
  if (r.kind === Q.LOAD_MORE) {
@@ -1626,9 +1646,9 @@ var J = /* @__PURE__ */ function(e) {
1626
1646
  let n = _();
1627
1647
  if (!n) return !1;
1628
1648
  let r = t.key === "ArrowLeft" || t.key === "ArrowRight";
1629
- if (t.altKey && t.shiftKey && r) return t.preventDefault(), p(n, t.key === "ArrowRight" ? 1 : -1), !0;
1649
+ if (t.altKey && t.shiftKey && r) return t.preventDefault(), f(n, t.key === "ArrowRight" ? 1 : -1), !0;
1630
1650
  let i = t.altKey && t.key === "ArrowDown" || t.key === "ContextMenu", a = e.focusAddress.value.section === $.HEADER;
1631
- return n.column && a && i ? (t.preventDefault(), f(n.key, H(s) !== n.key), !0) : !1;
1651
+ return n.column && a && i ? (t.preventDefault(), d(n.key, W(s) !== n.key), !0) : !1;
1632
1652
  };
1633
1653
  return {
1634
1654
  handleGridFocusIn: b,
@@ -1672,7 +1692,7 @@ var J = /* @__PURE__ */ function(e) {
1672
1692
  case "Spacebar": {
1673
1693
  t.preventDefault();
1674
1694
  let n = e.focusedBodyRowKey.value;
1675
- if (!H(o) || !n) break;
1695
+ if (!W(o) || !n) break;
1676
1696
  l(n);
1677
1697
  break;
1678
1698
  }
@@ -1680,36 +1700,36 @@ var J = /* @__PURE__ */ function(e) {
1680
1700
  }
1681
1701
  }
1682
1702
  };
1683
- }, un = ({ tableId: e, enabled: t, dragMode: n, snapshot: r, scrollElement: i, isRowDraggable: a, dragExpandDelayMs: o, isExpanded: s, onHoverExpand: c, onReorder: l, onTreeDrop: u, resolveRowPreviewTitle: d }) => {
1684
- let f = /* @__PURE__ */ new Map(), p = z(), m = z(), h = (e) => {
1703
+ }, _n = ({ tableId: e, enabled: t, dragMode: n, snapshot: r, scrollElement: i, isRowDraggable: a, dragExpandDelayMs: o, isExpanded: s, onHoverExpand: c, onReorder: l, onTreeDrop: u, resolveRowPreviewTitle: d }) => {
1704
+ let f = /* @__PURE__ */ new Map(), p = H(), m = H(), h = (e) => {
1685
1705
  if (!(e instanceof HTMLElement)) return;
1686
1706
  let t = Number(e.dataset.index);
1687
1707
  if (Number.isInteger(t)) return r.value.flatRows[t];
1688
1708
  }, g = (e) => {
1689
- if (!e || !H(t) || e.kind !== Q.ROW && e.kind !== Q.GROUP) return !1;
1690
- let n = H(a);
1709
+ if (!e || !W(t) || e.kind !== Q.ROW && e.kind !== Q.GROUP) return !1;
1710
+ let n = W(a);
1691
1711
  return n ? n(e.item) !== !1 : !0;
1692
1712
  }, _ = (e, t) => {
1693
1713
  let { getSubtreeRangeByKey: n, getRowIndexByKey: i } = r.value, a = n(e), o = i(t);
1694
1714
  return !a || o === void 0 ? !1 : o >= a[0] && o <= a[1];
1695
- }, v = me(() => {
1715
+ }, v = ge(() => {
1696
1716
  let e = y.value;
1697
1717
  e && !s(e) && c(e);
1698
- }, () => H(o) ?? 500, { immediate: !1 }), y = z(), b = me(() => {
1718
+ }, () => W(o) ?? 500, { immediate: !1 }), y = H(), b = ge(() => {
1699
1719
  S.value = x.value;
1700
- }, Re, { immediate: !1 }), x = z(), S = z(), C = (e) => {
1720
+ }, He, { immediate: !1 }), x = H(), S = H(), C = (e) => {
1701
1721
  !(e.hasChildren || e.kind === Q.GROUP) || e.expanded || y.value !== e.key && (y.value = e.key, v.stop(), v.start());
1702
1722
  }, w = () => {
1703
1723
  v.stop(), y.value = void 0, b.stop(), x.value = void 0, S.value = void 0;
1704
1724
  }, T = (e, t, r, i) => {
1705
- if (H(n) === Ae.TREE) {
1706
- let n = t.getBoundingClientRect(), i = Le * n.height / 2;
1725
+ if (W(n) === Pe.TREE) {
1726
+ let n = t.getBoundingClientRect(), i = Ve * n.height / 2;
1707
1727
  if (Math.abs(r - (n.top + n.height / 2)) <= i) {
1708
- if (e.kind === Q.GROUP || S.value === e.key) return je.CHILD;
1728
+ if (e.kind === Q.GROUP || S.value === e.key) return Fe.CHILD;
1709
1729
  x.value !== e.key && (x.value = e.key, b.stop(), b.start());
1710
1730
  } else x.value === e.key && (b.stop(), x.value = void 0, S.value = void 0);
1711
1731
  }
1712
- return i === "top" ? je.BEFORE : je.AFTER;
1732
+ return i === "top" ? Fe.BEFORE : Fe.AFTER;
1713
1733
  }, E, D = (e) => {
1714
1734
  [e, ...e.querySelectorAll("[id], [tabindex]")].forEach((e) => {
1715
1735
  e.removeAttribute("id"), e.removeAttribute("tabindex");
@@ -1732,10 +1752,10 @@ var J = /* @__PURE__ */ function(e) {
1732
1752
  }, j = (e) => {
1733
1753
  A(e.clientX, e.clientY);
1734
1754
  }, M = (e, t, n) => {
1735
- P(), E = document.createElement("div"), E.className = "s-ui-table__row-drag-layer", E.appendChild(e), document.body.appendChild(E), document.addEventListener("dragover", j), A(t, n);
1736
- }, P = () => {
1755
+ N(), E = document.createElement("div"), E.className = "s-ui-table__row-drag-layer", E.appendChild(e), document.body.appendChild(E), document.addEventListener("dragover", j), A(t, n);
1756
+ }, N = () => {
1737
1757
  document.removeEventListener("dragover", j), E?.remove(), E = void 0;
1738
- }, F = (t) => {
1758
+ }, P = (t) => {
1739
1759
  if (!(t instanceof HTMLElement)) {
1740
1760
  f.forEach((e, t) => {
1741
1761
  t.isConnected || (e(), f.delete(t));
@@ -1743,13 +1763,13 @@ var J = /* @__PURE__ */ function(e) {
1743
1763
  return;
1744
1764
  }
1745
1765
  if (f.has(t)) return;
1746
- let n = ve(ye({
1766
+ let n = J(be({
1747
1767
  element: t,
1748
1768
  canDrag: () => g(h(t)),
1749
1769
  getInitialData: () => {
1750
1770
  let n = h(t);
1751
1771
  return {
1752
- type: tn,
1772
+ type: ln,
1753
1773
  tableId: e,
1754
1774
  rowKey: n?.key ?? "",
1755
1775
  rowIndex: n?.index ?? -1
@@ -1757,22 +1777,22 @@ var J = /* @__PURE__ */ function(e) {
1757
1777
  },
1758
1778
  onGenerateDragPreview: ({ nativeSetDragImage: e, location: n }) => {
1759
1779
  let r = k(t, h(t)), { clientX: i, clientY: a } = n.current.input;
1760
- Te({ nativeSetDragImage: e }), M(r, i, a);
1780
+ De({ nativeSetDragImage: e }), M(r, i, a);
1761
1781
  },
1762
1782
  onDragStart: () => {
1763
1783
  p.value = h(t)?.key;
1764
1784
  },
1765
1785
  onDrop: () => {
1766
- p.value = void 0, m.value = void 0, w(), P();
1786
+ p.value = void 0, m.value = void 0, w(), N();
1767
1787
  }
1768
- }), be({
1788
+ }), xe({
1769
1789
  element: t,
1770
1790
  canDrop: ({ source: n }) => {
1771
- if (!rn(n.data, e)) return !1;
1791
+ if (!dn(n.data, e)) return !1;
1772
1792
  let r = h(t);
1773
1793
  return !r || r.key === n.data.rowKey ? !1 : !_(n.data.rowKey, r.key);
1774
1794
  },
1775
- getData: ({ input: e, element: t }) => Ce({ rowKey: h(t)?.key ?? "" }, {
1795
+ getData: ({ input: e, element: t }) => Te({ rowKey: h(t)?.key ?? "" }, {
1776
1796
  input: e,
1777
1797
  element: t,
1778
1798
  allowedEdges: ["top", "bottom"]
@@ -1781,7 +1801,7 @@ var J = /* @__PURE__ */ function(e) {
1781
1801
  let r = h(t);
1782
1802
  if (!r) return;
1783
1803
  C(r);
1784
- let i = we(e.data), a = i === "top" || i === "bottom" ? i : null, o = T(r, t, n.current.input.clientY, a), s = o === je.CHILD ? r.depth + 1 : r.depth, c = m.value;
1804
+ let i = Ee(e.data), a = i === "top" || i === "bottom" ? i : null, o = T(r, t, n.current.input.clientY, a), s = o === Fe.CHILD ? r.depth + 1 : r.depth, c = m.value;
1785
1805
  (c?.targetKey !== r.key || c.action !== o || c.depth !== s) && (m.value = {
1786
1806
  targetKey: r.key,
1787
1807
  action: o,
@@ -1794,15 +1814,15 @@ var J = /* @__PURE__ */ function(e) {
1794
1814
  }
1795
1815
  }));
1796
1816
  f.set(t, n);
1797
- }, I = q({
1798
- canMonitor: ({ source: t }) => rn(t.data, e),
1817
+ }, F = Se({
1818
+ canMonitor: ({ source: t }) => dn(t.data, e),
1799
1819
  onDrop: ({ source: t, location: i }) => {
1800
1820
  let a = m.value;
1801
- if (p.value = void 0, m.value = void 0, w(), !i.current.dropTargets[0] || !a || !rn(t.data, e)) return;
1821
+ if (p.value = void 0, m.value = void 0, w(), !i.current.dropTargets[0] || !a || !dn(t.data, e)) return;
1802
1822
  let { flatRows: o, getRowIndexByKey: s } = r.value, c = s(t.data.rowKey), d = s(a.targetKey), f = c === void 0 ? void 0 : o[c], h = d === void 0 ? void 0 : o[d];
1803
1823
  if (!f || !h || f.key === h.key || _(f.key, h.key)) return;
1804
- if (H(n) === Ae.FLAT) {
1805
- if (a.action === je.CHILD) return;
1824
+ if (W(n) === Pe.FLAT) {
1825
+ if (a.action === Fe.CHILD) return;
1806
1826
  l({
1807
1827
  action: a.action,
1808
1828
  sourceKey: f.key,
@@ -1814,7 +1834,7 @@ var J = /* @__PURE__ */ function(e) {
1814
1834
  });
1815
1835
  return;
1816
1836
  }
1817
- let g = a.action === je.CHILD, v = g ? h.key : h.parentKey, y = v === void 0 ? void 0 : s(v), b = y === void 0 ? void 0 : o[y];
1837
+ let g = a.action === Fe.CHILD, v = g ? h.key : h.parentKey, y = v === void 0 ? void 0 : s(v), b = y === void 0 ? void 0 : o[y];
1818
1838
  u({
1819
1839
  action: a.action,
1820
1840
  sourceKey: f.key,
@@ -1827,26 +1847,26 @@ var J = /* @__PURE__ */ function(e) {
1827
1847
  });
1828
1848
  }
1829
1849
  }), L;
1830
- return W(i, (t) => {
1831
- L?.(), L = void 0, t && (L = Ee({
1850
+ return K(i, (t) => {
1851
+ L?.(), L = void 0, t && (L = Oe({
1832
1852
  element: t,
1833
- canScroll: ({ source: t }) => rn(t.data, e)
1853
+ canScroll: ({ source: t }) => dn(t.data, e)
1834
1854
  }));
1835
- }, { immediate: !0 }), N(() => {
1836
- I(), L?.(), P(), f.forEach((e) => {
1855
+ }, { immediate: !0 }), I(() => {
1856
+ F(), L?.(), N(), f.forEach((e) => {
1837
1857
  e();
1838
1858
  }), f.clear();
1839
1859
  }), {
1840
- registerRowElement: F,
1860
+ registerRowElement: P,
1841
1861
  draggingRowKey: p,
1842
1862
  dropIndicator: m
1843
1863
  };
1844
- }, dn = ({ flatRows: e, virtualEnabled: t, windowIndexes: n, uiTotalSize: r, getRowUiOffset: i, activeGroupRowIndex: a, activeDepthFooterRowIndexes: o, leavingDepthFooterRowIndex: s, slidingDepthFooterRowIndexes: c, farDepthFooterRowIndexes: l, activeRowIndex: u }) => {
1845
- let d = _(() => {
1864
+ }, vn = ({ flatRows: e, virtualEnabled: t, windowIndexes: n, uiTotalSize: r, getRowUiOffset: i, activeGroupRowIndex: a, activeDepthFooterRowIndexes: o, leavingDepthFooterRowIndex: s, slidingDepthFooterRowIndexes: c, farDepthFooterRowIndexes: l, activeRowIndex: u }) => {
1865
+ let d = b(() => {
1846
1866
  let e = [];
1847
1867
  return a.value !== void 0 && e.push(a.value), e.push(...o.value), u.value !== void 0 && e.push(u.value), e;
1848
1868
  });
1849
- return { renderEntries: _(() => {
1869
+ return { renderEntries: b(() => {
1850
1870
  let u = e.value, f = a.value, p = new Set(o.value), m = new Set(c.value), h = new Set(l.value), g = s.value, _ = g === void 0 ? void 0 : i(g), v = _ ? _.end - _.start : void 0, y = [], b = (e, t, n) => e && !t && !n ? v : void 0, x = (e) => {
1851
1871
  let t = i(e.index), n = p.has(e.index), r = e.index === g, a = m.has(e.index);
1852
1872
  y.push({
@@ -1861,7 +1881,7 @@ var J = /* @__PURE__ */ function(e) {
1861
1881
  rowHeight: t ? t.end - t.start : void 0
1862
1882
  });
1863
1883
  };
1864
- if (!H(t)) return u.forEach(x), y;
1884
+ if (!W(t)) return u.forEach(x), y;
1865
1885
  let S = r.value, C = n.value.filter((e) => {
1866
1886
  let t = i(e);
1867
1887
  return !t || t.end > 0 && t.start < S;
@@ -1905,23 +1925,23 @@ var J = /* @__PURE__ */ function(e) {
1905
1925
  k = r + n;
1906
1926
  }), A(S - k), y;
1907
1927
  }) };
1908
- }, fn = ({ selected: e, cascade: t, treeIndex: n, groupRow: r, disabledKey: i, isItemSelectable: a }) => {
1909
- let o = _(() => new Set(e.value)), s = (e) => n.value.nodeByKey.get(e)?.parentKey, c = (e) => {
1928
+ }, yn = ({ selected: e, cascade: t, treeIndex: n, groupRow: r, disabledKey: i, isItemSelectable: a }) => {
1929
+ let o = b(() => new Set(e.value)), s = (e) => n.value.nodeByKey.get(e)?.parentKey, c = (e) => {
1910
1930
  let t = n.value.nodeByKey.get(e);
1911
- if (!t || Ft(t.item, H(r)) || Ft(t.item, H(i))) return !1;
1912
- let o = H(a);
1931
+ if (!t || Ht(t.item, W(r)) || Ht(t.item, W(i))) return !1;
1932
+ let o = W(a);
1913
1933
  return o ? o(t.item) !== !1 : !0;
1914
- }, l = _(() => {
1934
+ }, l = b(() => {
1915
1935
  let e = [];
1916
1936
  return n.value.nodeByKey.forEach((t, n) => {
1917
1937
  c(n) && e.push(n);
1918
- }), D(e);
1919
- }), u = _(() => {
1938
+ }), A(e);
1939
+ }), u = b(() => {
1920
1940
  let e = /* @__PURE__ */ new Map();
1921
1941
  return o.value.forEach((t) => {
1922
1942
  let n = s(t);
1923
1943
  for (; n;) e.set(n, (e.get(n) ?? 0) + 1), n = s(n);
1924
- }), D(e);
1944
+ }), A(e);
1925
1945
  }), d = (e) => o.value.has(e), f = (e) => o.value.has(e) ? Z.CHECKED : (u.value.get(e) ?? 0) > 0 ? Z.INDETERMINATE : Z.UNCHECKED, p = (e, t) => {
1926
1946
  c(e) && t.push(e), n.value.nodeByKey.get(e)?.children?.forEach((e) => {
1927
1947
  p(e.key, t);
@@ -1939,10 +1959,10 @@ var J = /* @__PURE__ */ function(e) {
1939
1959
  }, g = (e, t) => {
1940
1960
  let n = s(e);
1941
1961
  for (; n;) t.delete(n), n = s(n);
1942
- }, v = (n) => {
1962
+ }, _ = (n) => {
1943
1963
  if (!c(n)) return;
1944
1964
  let r = new Set(e.value);
1945
- if (!H(t)) {
1965
+ if (!W(t)) {
1946
1966
  r.has(n) ? r.delete(n) : r.add(n), e.value = [...r];
1947
1967
  return;
1948
1968
  }
@@ -1952,7 +1972,7 @@ var J = /* @__PURE__ */ function(e) {
1952
1972
  }), h(n, r)) : (i.forEach((e) => {
1953
1973
  r.delete(e);
1954
1974
  }), g(n, r)), e.value = [...r];
1955
- }, y = _(() => {
1975
+ }, v = b(() => {
1956
1976
  let e = l.value.length, t = l.value.reduce((e, t) => o.value.has(t) ? e + 1 : e, 0);
1957
1977
  return e === 0 || t === 0 ? Z.UNCHECKED : t >= e ? Z.CHECKED : Z.INDETERMINATE;
1958
1978
  });
@@ -1960,10 +1980,10 @@ var J = /* @__PURE__ */ function(e) {
1960
1980
  isSelected: d,
1961
1981
  isNodeSelectable: c,
1962
1982
  getCheckState: f,
1963
- toggleRow: v,
1964
- headerCheckState: y,
1983
+ toggleRow: _,
1984
+ headerCheckState: v,
1965
1985
  toggleSelectAll: () => {
1966
- if (y.value === Z.CHECKED) {
1986
+ if (v.value === Z.CHECKED) {
1967
1987
  e.value = [];
1968
1988
  return;
1969
1989
  }
@@ -1973,11 +1993,11 @@ var J = /* @__PURE__ */ function(e) {
1973
1993
  e.value = [];
1974
1994
  }
1975
1995
  };
1976
- }, pn = ({ columns: e, primaryColumnKey: t, treeNodeByKey: n, groupTotalKey: r, depthFooter: i, groupContentColumnKey: a, creationContentColumnKey: o, loadMoreContentColumnKey: s, treeIndent: c, loadingMoreChildrenKeys: l, footerValues: u, stuckDepthFooterRowIndex: d, onDepthFooterClick: f, onLoadMoreChildren: p }) => {
1977
- let m = _(() => H(e).find((e) => e.key === t.value)), h = _(() => H(i)?.columnKey ?? t.value), g = _(() => H(a) ?? t.value), v = _(() => H(o) ?? t.value), y = _(() => H(s) ?? t.value), b = (e) => n.value.get(e.key)?.subtreeSize ?? 0, x = (e) => Lt(e.item, H(r)), S = (e) => {
1978
- let t = It(e.item, m.value?.value ?? m.value?.key);
1996
+ }, bn = ({ columns: e, primaryColumnKey: t, treeNodeByKey: n, groupTotalKey: r, depthFooter: i, groupContentColumnKey: a, creationContentColumnKey: o, loadMoreContentColumnKey: s, treeIndent: c, loadingMoreChildrenKeys: l, footerValues: u, stuckDepthFooterRowIndex: d, onDepthFooterClick: f, onLoadMoreChildren: p }) => {
1997
+ let m = b(() => W(e).find((e) => e.key === t.value)), h = b(() => W(i)?.columnKey ?? t.value), g = b(() => W(a) ?? t.value), _ = b(() => W(o) ?? t.value), v = b(() => W(s) ?? t.value), y = (e) => n.value.get(e.key)?.subtreeSize ?? 0, x = (e) => Wt(e.item, W(r)), S = (e) => {
1998
+ let t = Ut(e.item, m.value?.value ?? m.value?.key);
1979
1999
  return t === void 0 ? void 0 : String(t);
1980
- }, C = (e) => ({ paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e * H(c)}px)` }), w = (e) => {
2000
+ }, C = (e) => ({ paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e * W(c)}px)` }), w = (e) => {
1981
2001
  f({
1982
2002
  parentKey: e.parentKey ?? "",
1983
2003
  parentItem: e.item,
@@ -1991,7 +2011,7 @@ var J = /* @__PURE__ */ function(e) {
1991
2011
  click: () => {
1992
2012
  w(e);
1993
2013
  }
1994
- }), E = _(() => new Set(H(l))), D = (e) => e.parentKey ? E.value.has(e.parentKey) : !1, O = (e) => {
2014
+ }), E = b(() => new Set(W(l))), D = (e) => e.parentKey ? E.value.has(e.parentKey) : !1, O = (e) => {
1995
2015
  !e.parentKey || D(e) || p({
1996
2016
  key: e.parentKey,
1997
2017
  item: e.item
@@ -2004,13 +2024,13 @@ var J = /* @__PURE__ */ function(e) {
2004
2024
  loadMore: () => {
2005
2025
  O(e);
2006
2026
  }
2007
- }), A = (e) => H(u)?.[e];
2027
+ }), A = (e) => W(u)?.[e];
2008
2028
  return {
2009
2029
  depthFooterColumnKey: h,
2010
2030
  groupColumnKey: g,
2011
- creationColumnKey: v,
2012
- loadMoreColumnKey: y,
2013
- getGroupCount: b,
2031
+ creationColumnKey: _,
2032
+ loadMoreColumnKey: v,
2033
+ getGroupCount: y,
2014
2034
  getGroupTotal: x,
2015
2035
  getGroupTitle: S,
2016
2036
  getDepthIndentStyle: C,
@@ -2028,12 +2048,12 @@ var J = /* @__PURE__ */ function(e) {
2028
2048
  return t ? `s-ui-table__aggregate-cell--tone-${t}` : void 0;
2029
2049
  },
2030
2050
  getFooterSlotScope: (t) => ({
2031
- column: H(e).find((e) => e.key === t) ?? { key: t },
2051
+ column: W(e).find((e) => e.key === t) ?? { key: t },
2032
2052
  footerValue: A(t)
2033
2053
  })
2034
2054
  };
2035
- }, mn = ({ sortState: e, onSortChange: t }) => {
2036
- let n = _(() => new Map(e.value.map((e) => [e.key, e]))), r = (e) => n.value.get(e)?.direction, i = (t) => {
2055
+ }, xn = ({ sortState: e, onSortChange: t }) => {
2056
+ let n = b(() => new Map(e.value.map((e) => [e.key, e]))), r = (e) => n.value.get(e)?.direction, i = (t) => {
2037
2057
  if (e.value.length < 2) return;
2038
2058
  let n = e.value.findIndex((e) => e.key === t);
2039
2059
  return n === -1 ? void 0 : n + 1;
@@ -2044,12 +2064,12 @@ var J = /* @__PURE__ */ function(e) {
2044
2064
  getColumnSortDirection: r,
2045
2065
  getColumnSortIndex: i,
2046
2066
  applySortCycle: (t, n) => {
2047
- let r = [...e.value], i = r.findIndex((e) => e.key === t), o = i === -1 ? void 0 : r[i], s = o ? o.direction === Y.ASC ? {
2067
+ let r = [...e.value], i = r.findIndex((e) => e.key === t), o = i === -1 ? void 0 : r[i], s = o ? o.direction === X.ASC ? {
2048
2068
  key: t,
2049
- direction: Y.DESC
2069
+ direction: X.DESC
2050
2070
  } : void 0 : {
2051
2071
  key: t,
2052
- direction: Y.ASC
2072
+ direction: X.ASC
2053
2073
  };
2054
2074
  if (!n) {
2055
2075
  a(s ? [s] : []);
@@ -2072,7 +2092,7 @@ var J = /* @__PURE__ */ function(e) {
2072
2092
  getHeaderAriaSort: (e) => {
2073
2093
  if (!e.column) return;
2074
2094
  let t = r(e.key);
2075
- if (t) return t === Y.ASC ? "ascending" : "descending";
2095
+ if (t) return t === X.ASC ? "ascending" : "descending";
2076
2096
  },
2077
2097
  getHeaderSlotScope: (e) => e.column ? {
2078
2098
  column: e.column,
@@ -2080,8 +2100,8 @@ var J = /* @__PURE__ */ function(e) {
2080
2100
  sortIndex: i(e.key)
2081
2101
  } : { column: { key: e.key } }
2082
2102
  };
2083
- }, hn = ({ windowIndexes: e, visibleRange: t, getRowKey: n, pinnedRowKey: r, enabled: i }) => {
2084
- let a = /* @__PURE__ */ new Set(), o = z(/* @__PURE__ */ new Set()), s = [], c = 12, l = 0, u = !1, d = !1, f = 0, p = "", m = () => {
2103
+ }, Sn = ({ windowIndexes: e, visibleRange: t, getRowKey: n, pinnedRowKey: r, enabled: i }) => {
2104
+ let a = /* @__PURE__ */ new Set(), o = H(/* @__PURE__ */ new Set()), s = [], c = 12, l = 0, u = !1, d = !1, f = 0, p = "", m = () => {
2085
2105
  l = performance.now(), u = !0, o.value = new Set(a);
2086
2106
  }, h = (e) => {
2087
2107
  let t = s.splice(0, e);
@@ -2096,7 +2116,7 @@ var J = /* @__PURE__ */ function(e) {
2096
2116
  e < 20 && (c = Math.min(64, c + 2));
2097
2117
  }, _ = () => {
2098
2118
  u && (u = !1, g(performance.now() - l));
2099
- }, v = fe(() => {
2119
+ }, v = me(() => {
2100
2120
  f = 0, _(), d ? d = !1 : h(c) > 0 && m(), s.length === 0 && v.pause();
2101
2121
  }, { immediate: !1 }), y = (e) => {
2102
2122
  let n = t.value, r = n ? (n.startIndex + n.endIndex) / 2 : 0;
@@ -2108,7 +2128,7 @@ var J = /* @__PURE__ */ function(e) {
2108
2128
  r !== void 0 && !a.has(r) && t.push(r);
2109
2129
  }), t;
2110
2130
  }, x = (e) => {
2111
- let t = H(r), n = t === void 0 ? -1 : e.indexOf(t);
2131
+ let t = W(r), n = t === void 0 ? -1 : e.indexOf(t);
2112
2132
  return n > 0 && (e.splice(n, 1), e.unshift(t ?? "")), e;
2113
2133
  }, S = (e) => {
2114
2134
  let t = new Set(e.map(n)), r = 0;
@@ -2121,25 +2141,25 @@ var J = /* @__PURE__ */ function(e) {
2121
2141
  (s.length > 0 || e > 0) && v.resume();
2122
2142
  }, T = (e) => `${e[0]}:${e[e.length - 1]}:${e.length}`, E = (e) => {
2123
2143
  let t = T(e);
2124
- if (!H(i) || t === p) return;
2144
+ if (!W(i) || t === p) return;
2125
2145
  p = t, s = x(b(e));
2126
2146
  let n = S(e), r = h(Math.max(0, c - f));
2127
2147
  f += r, C(n + r), w(r);
2128
2148
  };
2129
- return W(e, E, {
2149
+ return K(e, E, {
2130
2150
  flush: "sync",
2131
2151
  immediate: !0
2132
- }), W(() => H(i), () => {
2152
+ }), K(() => W(i), () => {
2133
2153
  p = "", E(e.value);
2134
2154
  }), {
2135
- isRowHydrated: (e) => !H(i) || e === H(r) || o.value.has(e),
2155
+ isRowHydrated: (e) => !W(i) || e === W(r) || o.value.has(e),
2136
2156
  hydratedKeys: o
2137
2157
  };
2138
- }, gn = {
2158
+ }, Cn = {
2139
2159
  pinned: [],
2140
2160
  sliding: []
2141
- }, _n = ({ snapshot: e, visibleRange: t, depthFooterSticky: n, bottomVisibleRowIndex: r, getRowOffset: i }) => {
2142
- let a = _(() => {
2161
+ }, wn = ({ snapshot: e, visibleRange: t, depthFooterSticky: n, bottomVisibleRowIndex: r, getRowOffset: i }) => {
2162
+ let a = b(() => {
2143
2163
  let n = t.value;
2144
2164
  if (!n) return;
2145
2165
  let { flatRows: r, getRowIndexByKey: i } = e.value, a = r[n.startIndex];
@@ -2178,32 +2198,32 @@ var J = /* @__PURE__ */ function(e) {
2178
2198
  }, f = (t, n) => {
2179
2199
  let { flatRows: r } = e.value;
2180
2200
  return [t - 2, t - 1].filter((e) => r[e]?.kind === Q.DEPTH_FOOTER && !n.includes(e));
2181
- }, p = _(() => {
2201
+ }, p = b(() => {
2182
2202
  let e = r.value;
2183
- if (!H(n) || e === void 0) return gn;
2203
+ if (!W(n) || e === void 0) return Cn;
2184
2204
  let t = d(e);
2185
2205
  return {
2186
2206
  pinned: t,
2187
2207
  sliding: f(e, t)
2188
2208
  };
2189
- }), m = _(() => {
2209
+ }), m = b(() => {
2190
2210
  let { pinned: e, sliding: t } = p.value;
2191
2211
  return [...t, ...e];
2192
2212
  });
2193
2213
  return {
2194
2214
  activeGroupRowIndex: a,
2195
- activeDepthFooterRowIndex: _(() => p.value.pinned[0]),
2215
+ activeDepthFooterRowIndex: b(() => p.value.pinned[0]),
2196
2216
  activeDepthFooterRowIndexes: m,
2197
- leavingDepthFooterRowIndex: _(() => {
2217
+ leavingDepthFooterRowIndex: b(() => {
2198
2218
  let [e, t] = p.value.pinned;
2199
2219
  return t === void 0 ? void 0 : e;
2200
2220
  }),
2201
- slidingDepthFooterRowIndexes: _(() => p.value.sliding),
2202
- farDepthFooterRowIndexes: _(() => p.value.pinned.slice(2))
2221
+ slidingDepthFooterRowIndexes: b(() => p.value.sliding),
2222
+ farDepthFooterRowIndexes: b(() => p.value.pinned.slice(2))
2203
2223
  };
2204
- }, vn = (e) => typeof e == "number" ? `${e}px` : e || void 0, yn = ({ tfootBarStackHeight: e, hasFooterValues: t, scrollClientWidth: n, columnCssVars: r, totalWidth: i, height: a, maxHeight: o }) => ({
2205
- rootStyle: _(() => {
2206
- let i = H(n);
2224
+ }, Tn = (e) => typeof e == "number" ? `${e}px` : e || void 0, En = ({ tfootBarStackHeight: e, hasFooterValues: t, scrollClientWidth: n, columnCssVars: r, totalWidth: i, height: a, maxHeight: o }) => ({
2225
+ rootStyle: b(() => {
2226
+ let i = W(n);
2207
2227
  return {
2208
2228
  "--s-ui-table-header-height": "40px",
2209
2229
  "--s-ui-table-row-min-height": "40px",
@@ -2212,30 +2232,30 @@ var J = /* @__PURE__ */ function(e) {
2212
2232
  "--s-ui-table-bottom-stack": `${e.value}px`,
2213
2233
  "--s-ui-table-footer-bar-height": "40px",
2214
2234
  "--s-ui-table-create-row-height": "40px",
2215
- "--s-ui-table-aggregate-offset": H(t) ? "40px" : "0px",
2235
+ "--s-ui-table-aggregate-offset": W(t) ? "40px" : "0px",
2216
2236
  ...i > 0 ? { "--s-ui-table-viewport-width": `${i}px` } : {},
2217
2237
  ...r.value
2218
2238
  };
2219
2239
  }),
2220
- scrollStyle: _(() => ({
2221
- height: vn(H(a)),
2222
- maxHeight: vn(H(o))
2240
+ scrollStyle: b(() => ({
2241
+ height: Tn(W(a)),
2242
+ maxHeight: Tn(W(o))
2223
2243
  })),
2224
- tableStyle: _(() => ({ width: `max(100%, ${i.value}px)` }))
2225
- }), bn, xn = () => {
2226
- if (bn !== void 0) return bn;
2227
- if (typeof document > "u") return bn = Ne, bn;
2244
+ tableStyle: b(() => ({ width: `max(100%, ${i.value}px)` }))
2245
+ }), Dn, On = () => {
2246
+ if (Dn !== void 0) return Dn;
2247
+ if (typeof document > "u") return Dn = Le, Dn;
2228
2248
  let e = document.createElement("div");
2229
- e.style.cssText = `position:absolute;visibility:hidden;pointer-events:none;width:1px;height:${Fe}px`, document.body.appendChild(e);
2249
+ e.style.cssText = `position:absolute;visibility:hidden;pointer-events:none;width:1px;height:${ze}px`, document.body.appendChild(e);
2230
2250
  let t = e.offsetHeight;
2231
- return e.remove(), bn = t > 0 ? t : Ne, bn;
2232
- }, Sn = (e) => e > 16e6 ? xn() - Pe : Infinity, Cn = (e, t, n) => {
2251
+ return e.remove(), Dn = t > 0 ? t : Le, Dn;
2252
+ }, kn = (e) => e > 16e6 ? On() - Re : Infinity, An = (e, t, n) => {
2233
2253
  if (!e) return 0;
2234
- let r = Math.max(t, Ie);
2254
+ let r = Math.max(t, Be);
2235
2255
  return n > 4 * r ? r : 0;
2236
- }, wn = (e, t) => !e.active || t <= e.edgeZone ? t : t >= e.maxUiScrollTop - e.edgeZone ? Math.min(e.maxModelScrollTop, e.maxModelScrollTop - (e.maxUiScrollTop - t)) : e.edgeZone + (t - e.edgeZone) * e.ratio, Tn = (e, t) => e.active ? t <= e.edgeZone ? Math.max(0, t) : t >= e.maxModelScrollTop - e.edgeZone ? Math.min(e.maxUiScrollTop, e.maxUiScrollTop - (e.maxModelScrollTop - t)) : e.edgeZone + (t - e.edgeZone) / e.ratio : t, En = (e, t) => e.active === t.active && e.maxUiScrollTop === t.maxUiScrollTop && e.maxModelScrollTop === t.maxModelScrollTop && e.edgeZone === t.edgeZone, Dn = (e, t) => !En(e, t) && (e.active || t.active), On = ({ scrollElement: e, totalSize: t, viewportHeight: n, extraHeight: r, onRescale: i }) => {
2237
- let a = z(0), o = _(() => {
2238
- let e = H(t), i = H(r), a = H(n), o = Sn(e), s = e > o, c = s ? o : e, l = Math.max(1, c + i - a), u = Math.max(0, e + i - a), d = Cn(s, a, l);
2256
+ }, jn = (e, t) => !e.active || t <= e.edgeZone ? t : t >= e.maxUiScrollTop - e.edgeZone ? Math.min(e.maxModelScrollTop, e.maxModelScrollTop - (e.maxUiScrollTop - t)) : e.edgeZone + (t - e.edgeZone) * e.ratio, Mn = (e, t) => e.active ? t <= e.edgeZone ? Math.max(0, t) : t >= e.maxModelScrollTop - e.edgeZone ? Math.min(e.maxUiScrollTop, e.maxUiScrollTop - (e.maxModelScrollTop - t)) : e.edgeZone + (t - e.edgeZone) / e.ratio : t, Nn = (e, t) => e.active === t.active && e.maxUiScrollTop === t.maxUiScrollTop && e.maxModelScrollTop === t.maxModelScrollTop && e.edgeZone === t.edgeZone, Pn = (e, t) => !Nn(e, t) && (e.active || t.active), Fn = ({ scrollElement: e, totalSize: t, viewportHeight: n, extraHeight: r, onRescale: i }) => {
2257
+ let a = H(0), o = b(() => {
2258
+ let e = W(t), i = W(r), a = W(n), o = kn(e), s = e > o, c = s ? o : e, l = Math.max(1, c + i - a), u = Math.max(0, e + i - a), d = An(s, a, l);
2239
2259
  return {
2240
2260
  active: s,
2241
2261
  uiHeight: c,
@@ -2244,32 +2264,32 @@ var J = /* @__PURE__ */ function(e) {
2244
2264
  edgeZone: d,
2245
2265
  ratio: s ? (u - 2 * d) / (l - 2 * d) : 1
2246
2266
  };
2247
- }), s = (e) => wn(o.value, e), c = (e) => Tn(o.value, e), l = z(0), u = z(-1);
2248
- de(e, "scroll", () => {
2267
+ }), s = (e) => jn(o.value, e), c = (e) => Mn(o.value, e), l = H(0), u = H(-1);
2268
+ pe(e, "scroll", () => {
2249
2269
  let t = e.value;
2250
2270
  t && (a.value = t.scrollTop, t.scrollTop !== u.value && (u.value = t.scrollTop, l.value = s(t.scrollTop)));
2251
2271
  }, { passive: !0 });
2252
- let d = (e) => e.scrollTop === u.value ? l.value : s(e.scrollTop), f = _(() => o.value.active ? l.value : s(a.value)), p = _(() => o.value.active ? f.value - a.value : 0), m = _(() => o.value.uiHeight), h = _(() => o.value.maxModelScrollTop), g = _(() => o.value.active), v = (e, t, n) => {
2272
+ let d = (e) => e.scrollTop === u.value ? l.value : s(e.scrollTop), f = b(() => o.value.active ? l.value : s(a.value)), p = b(() => o.value.active ? f.value - a.value : 0), m = b(() => o.value.uiHeight), h = b(() => o.value.maxModelScrollTop), g = b(() => o.value.active), _ = (e, t, n) => {
2253
2273
  e.scrollTop = t, a.value = e.scrollTop, u.value = e.scrollTop, l.value = n !== void 0 && Math.abs(e.scrollTop - t) <= 4 ? Math.max(0, Math.min(o.value.maxModelScrollTop, n)) : s(e.scrollTop);
2254
- }, y = (t) => t === "y" ? H(n) : e.value?.clientWidth ?? 0, b = (e, t) => e === WheelEvent.DOM_DELTA_LINE ? 40 : e === WheelEvent.DOM_DELTA_PAGE ? y(t) : 1, x = (e, t) => (t === "x" ? e.deltaX : e.deltaY) * b(e.deltaMode, t), S = (e) => o.value.active && e.deltaY !== 0 && !e.ctrlKey, C = (t) => {
2274
+ }, v = (t) => t === "y" ? W(n) : e.value?.clientWidth ?? 0, y = (e, t) => e === WheelEvent.DOM_DELTA_LINE ? 40 : e === WheelEvent.DOM_DELTA_PAGE ? v(t) : 1, x = (e, t) => (t === "x" ? e.deltaX : e.deltaY) * y(e.deltaMode, t), S = (e) => o.value.active && e.deltaY !== 0 && !e.ctrlKey, C = (t) => {
2255
2275
  let n = e.value;
2256
2276
  if (!n || !S(t)) return;
2257
2277
  let { maxModelScrollTop: r } = o.value, i = d(n), a = Math.max(0, Math.min(r, i + x(t, "y")));
2258
- a !== i && (t.preventDefault(), v(n, c(a), a), n.scrollLeft += x(t, "x"));
2278
+ a !== i && (t.preventDefault(), _(n, c(a), a), n.scrollLeft += x(t, "x"));
2259
2279
  }, w, T = (t) => {
2260
- w?.(), w = t ? de(e, "wheel", C, { passive: !1 }) : void 0;
2280
+ w?.(), w = t ? pe(e, "wheel", C, { passive: !1 }) : void 0;
2261
2281
  };
2262
- le(() => {
2282
+ de(() => {
2263
2283
  w?.();
2264
2284
  });
2265
- let E = (e, t) => e.scrollTop === u.value ? l.value : wn(t, e.scrollTop);
2266
- return P(() => {
2267
- W(o, (t, n) => {
2285
+ let E = (e, t) => e.scrollTop === u.value ? l.value : jn(t, e.scrollTop);
2286
+ return L(() => {
2287
+ K(o, (t, n) => {
2268
2288
  let r = e.value;
2269
- if (!r || !Dn(t, n)) return;
2289
+ if (!r || !Pn(t, n)) return;
2270
2290
  let a = E(r, n);
2271
- v(r, Tn(t, a), a), i?.(a);
2272
- }), W(g, T, { immediate: !0 });
2291
+ _(r, Mn(t, a), a), i?.(a);
2292
+ }), K(g, T, { immediate: !0 });
2273
2293
  }), {
2274
2294
  uiScrollTop: a,
2275
2295
  modelScrollOffset: f,
@@ -2280,43 +2300,43 @@ var J = /* @__PURE__ */ function(e) {
2280
2300
  uiToModel: s,
2281
2301
  modelToUi: c,
2282
2302
  resolveModelOffset: d,
2283
- setScrollTop: v
2303
+ setScrollTop: _
2284
2304
  };
2285
- }, kn = ({ rowCount: e, enabled: t, autoMeasure: n, estimateRowSize: r, estimateRowSizeByIndex: i, overscan: a, scrollElement: o, getRowKey: s, rowsVersion: c, viewportHeight: l, extraHeight: u, headerHeight: d }) => {
2286
- let f, p = On({
2305
+ }, In = ({ rowCount: e, enabled: t, autoMeasure: n, estimateRowSize: r, estimateRowSizeByIndex: i, overscan: a, scrollElement: o, getRowKey: s, rowsVersion: c, viewportHeight: l, extraHeight: u, headerHeight: d }) => {
2306
+ let f, p = Fn({
2287
2307
  scrollElement: o,
2288
- totalSize: () => v.value.getTotalSize(),
2308
+ totalSize: () => _.value.getTotalSize(),
2289
2309
  viewportHeight: l,
2290
2310
  extraHeight: u,
2291
2311
  onRescale: (e) => {
2292
2312
  f?.(e, !1);
2293
2313
  }
2294
- }), m = z(0), h = 0, g = (e, t, n) => {
2314
+ }), m = H(0), h = 0, g = (e, t, n) => {
2295
2315
  let r = Math.round((e - h) / n);
2296
2316
  h = e, m.value = t ? Math.max(-24, Math.min(24, r)) : 0;
2297
- }, v = _e(_(() => {
2298
- let n = H(r);
2317
+ }, _ = ye(b(() => {
2318
+ let n = W(r);
2299
2319
  return {
2300
- count: H(e),
2301
- enabled: H(t),
2320
+ count: W(e),
2321
+ enabled: W(t),
2302
2322
  getScrollElement: () => o.value,
2303
2323
  estimateSize: (e) => i?.(e) ?? n,
2304
2324
  getItemKey: s,
2305
- overscan: H(a),
2325
+ overscan: W(a),
2306
2326
  shouldAdjustScrollPositionOnItemSizeChange: () => !1,
2307
- observeElementOffset: (e, t) => (f = t, ge(e, (e, r) => {
2327
+ observeElementOffset: (e, t) => (f = t, ve(e, (e, r) => {
2308
2328
  let i = p.uiToModel(e);
2309
2329
  g(i, r, n), t(i, r);
2310
2330
  })),
2311
2331
  scrollToFn: (e, t, n) => {
2312
- he(p.modelToUi(e + (t.adjustments ?? 0)), { behavior: t.behavior }, n);
2332
+ _e(p.modelToUi(e + (t.adjustments ?? 0)), { behavior: t.behavior }, n);
2313
2333
  }
2314
2334
  };
2315
- })), y = _(() => H(t) ? v.value.getVirtualItems() : []), b = _(() => v.value.getTotalSize()), x = (e, t) => Array.from({ length: Math.max(0, t - e + 1) }, (t, n) => e + n), S = (t, n) => {
2335
+ })), v = b(() => W(t) ? _.value.getVirtualItems() : []), y = b(() => _.value.getTotalSize()), x = (e, t) => Array.from({ length: Math.max(0, t - e + 1) }, (t, n) => e + n), S = (t, n) => {
2316
2336
  let r = t[0], i = t[t.length - 1];
2317
- if (!(!r || !i)) return n > 0 ? [i.index + 1, Math.min(H(e) - 1, i.index + n)] : [Math.max(0, r.index + n), r.index - 1];
2318
- }, C = _(() => {
2319
- let e = y.value, t = e.map((e) => e.index), n = m.value, r = n === 0 ? void 0 : S(e, n);
2337
+ if (!(!r || !i)) return n > 0 ? [i.index + 1, Math.min(W(e) - 1, i.index + n)] : [Math.max(0, r.index + n), r.index - 1];
2338
+ }, C = b(() => {
2339
+ let e = v.value, t = e.map((e) => e.index), n = m.value, r = n === 0 ? void 0 : S(e, n);
2320
2340
  if (!r) return t;
2321
2341
  let i = x(r[0], r[1]);
2322
2342
  return n > 0 ? [...t, ...i] : [...i, ...t];
@@ -2325,7 +2345,7 @@ var J = /* @__PURE__ */ function(e) {
2325
2345
  let t = Number(e.dataset.index);
2326
2346
  return Number.isInteger(t) ? t : void 0;
2327
2347
  }, E = (e) => {
2328
- if (!H(t) || !H(n)) return;
2348
+ if (!W(t) || !W(n)) return;
2329
2349
  let r = o.value;
2330
2350
  if (!r) return;
2331
2351
  let i = r.querySelectorAll("tr[data-index]"), a = [];
@@ -2333,7 +2353,7 @@ var J = /* @__PURE__ */ function(e) {
2333
2353
  let n = T(t);
2334
2354
  n === void 0 || !(t instanceof HTMLElement) || (!e || !w.has(s(n))) && a.push(t);
2335
2355
  }), a.length === 0) return;
2336
- let c = v.value.measurementsCache, l = r.getBoundingClientRect().top + H(d), u = p.resolveModelOffset(r), f = [], m = Infinity;
2356
+ let c = _.value.measurementsCache, l = r.getBoundingClientRect().top + W(d), u = p.resolveModelOffset(r), f = [], m = Infinity;
2337
2357
  a.forEach((e) => {
2338
2358
  let t = Number(e.dataset.index), n = e.getBoundingClientRect();
2339
2359
  f.push([t, Math.round(n.height)]), n.bottom > l + 1 && t < m && (m = t);
@@ -2343,29 +2363,29 @@ var J = /* @__PURE__ */ function(e) {
2343
2363
  if (t <= 0) return;
2344
2364
  w.add(s(e));
2345
2365
  let n = c[e]?.size;
2346
- e < m && n !== void 0 && (h += t - n), v.value.resizeItem(e, t);
2366
+ e < m && n !== void 0 && (h += t - n), _.value.resizeItem(e, t);
2347
2367
  }), h !== 0 && p.setScrollTop(r, p.modelToUi(u + h), u + h);
2348
2368
  };
2349
- W(C, () => E(!0), { flush: "post" });
2369
+ K(C, () => E(!0), { flush: "post" });
2350
2370
  let D = () => {
2351
2371
  E(!0);
2352
2372
  }, O = () => {
2353
2373
  w.clear(), E(!1);
2354
2374
  };
2355
- pe(o, () => {
2375
+ he(o, () => {
2356
2376
  O();
2357
- }), W(() => H(c), () => {
2377
+ }), K(() => W(c), () => {
2358
2378
  w.clear(), E(!1);
2359
2379
  }, { flush: "post" });
2360
2380
  let k = (e, t) => {
2361
2381
  if (e !== "auto") return e;
2362
- let n = H(l) - H(u), r = p.modelScrollOffset.value;
2382
+ let n = W(l) - W(u), r = p.modelScrollOffset.value;
2363
2383
  return t.end >= r + n ? "end" : t.start <= r ? "start" : void 0;
2364
2384
  }, A = (e, t) => {
2365
- let n = H(l) - H(u);
2385
+ let n = W(l) - W(u);
2366
2386
  return e === "start" ? t.start : e === "end" ? t.end - n : t.start - (n - t.size) / 2;
2367
2387
  }, j = (e, t) => {
2368
- let n = v.value.measurementsCache, r = n[Math.max(0, Math.min(e, n.length - 1))];
2388
+ let n = _.value.measurementsCache, r = n[Math.max(0, Math.min(e, n.length - 1))];
2369
2389
  if (!r) return;
2370
2390
  let i = k(t, r);
2371
2391
  if (!i) return;
@@ -2374,15 +2394,15 @@ var J = /* @__PURE__ */ function(e) {
2374
2394
  }, M = (e, t = "auto") => {
2375
2395
  let n = o.value;
2376
2396
  if (!p.active.value || !n) {
2377
- v.value.scrollToIndex(e, { align: t });
2397
+ _.value.scrollToIndex(e, { align: t });
2378
2398
  return;
2379
2399
  }
2380
2400
  let r = j(e, t);
2381
2401
  r !== void 0 && p.setScrollTop(n, p.modelToUi(r), r);
2382
- }, N = _(() => {
2383
- if (!(!H(t) || y.value.length === 0)) return v.value.range ?? void 0;
2402
+ }, N = b(() => {
2403
+ if (!(!W(t) || v.value.length === 0)) return _.value.range ?? void 0;
2384
2404
  }), P = (e) => {
2385
- let t = v.value.measurementsCache;
2405
+ let t = _.value.measurementsCache;
2386
2406
  if (t.length === 0) return;
2387
2407
  let n = 0, r = t.length - 1;
2388
2408
  for (; n < r;) {
@@ -2392,17 +2412,17 @@ var J = /* @__PURE__ */ function(e) {
2392
2412
  }
2393
2413
  return n;
2394
2414
  }, F = (e) => {
2395
- let t = v.value.measurementsCache[e];
2415
+ let t = _.value.measurementsCache[e];
2396
2416
  if (t) return {
2397
2417
  start: t.start,
2398
2418
  end: t.end
2399
2419
  };
2400
2420
  };
2401
2421
  return {
2402
- rowVirtualizer: v,
2403
- virtualItems: y,
2422
+ rowVirtualizer: _,
2423
+ virtualItems: v,
2404
2424
  windowIndexes: C,
2405
- totalSize: b,
2425
+ totalSize: y,
2406
2426
  uiTotalSize: p.uiTotalSize,
2407
2427
  modelScrollOffset: p.modelScrollOffset,
2408
2428
  scrollCompressed: p.active,
@@ -2422,60 +2442,60 @@ var J = /* @__PURE__ */ function(e) {
2422
2442
  },
2423
2443
  getRowIndexAtOffset: P
2424
2444
  };
2425
- }, An = [
2445
+ }, Ln = [
2426
2446
  "role",
2427
2447
  "aria-rowcount",
2428
2448
  "aria-colcount",
2429
2449
  "aria-busy"
2430
- ], jn = { class: "s-ui-table__head" }, Mn = {
2450
+ ], Rn = { class: "s-ui-table__head" }, zn = {
2431
2451
  class: "s-ui-table__head-row",
2432
2452
  "aria-rowindex": 1
2433
- }, Nn = {
2453
+ }, Bn = {
2434
2454
  key: 0,
2435
2455
  class: "s-ui-table__header-cell s-ui-table__filler-cell",
2436
2456
  role: "presentation"
2437
- }, Pn = [
2457
+ }, Vn = [
2438
2458
  "id",
2439
2459
  "data-column-key",
2440
2460
  "data-section",
2441
2461
  "aria-colindex",
2442
2462
  "aria-sort",
2443
2463
  "tabindex"
2444
- ], Fn = {
2464
+ ], Hn = {
2445
2465
  key: 2,
2446
2466
  class: "s-ui-table__columns-manager"
2447
- }, In = { class: "s-ui-table__columns-item-main" }, Ln = { class: "s-ui-table__columns-item-title" }, Rn = [
2467
+ }, Un = { class: "s-ui-table__columns-item-main" }, Wn = { class: "s-ui-table__columns-item-title" }, Gn = [
2448
2468
  "aria-label",
2449
2469
  "onPointerdown",
2450
2470
  "onKeydown",
2451
2471
  "onDblclick"
2452
- ], zn = { class: "s-ui-table__body" }, Bn = {
2472
+ ], Kn = { class: "s-ui-table__body" }, qn = {
2453
2473
  key: 0,
2454
2474
  class: "s-ui-table__empty-row",
2455
2475
  "aria-rowindex": 2
2456
- }, Vn = ["colspan"], Hn = { class: "s-ui-table__empty-content" }, Un = { class: "s-ui-table__empty-text" }, Wn = {
2476
+ }, Jn = ["colspan"], Yn = { class: "s-ui-table__empty-content" }, Xn = { class: "s-ui-table__empty-text" }, Zn = {
2457
2477
  key: 0,
2458
2478
  class: "s-ui-table__spacer",
2459
2479
  "aria-hidden": "true"
2460
- }, Gn = ["colspan"], Kn = {
2480
+ }, Qn = ["colspan"], $n = {
2461
2481
  key: 0,
2462
2482
  class: "s-ui-table__foot"
2463
- }, qn = ["aria-rowindex"], Jn = {
2483
+ }, er = ["aria-rowindex"], tr = {
2464
2484
  key: 0,
2465
2485
  class: "s-ui-table__aggregate-cell s-ui-table__filler-cell",
2466
2486
  role: "presentation"
2467
- }, Yn = [
2487
+ }, nr = [
2468
2488
  "id",
2469
2489
  "aria-colindex",
2470
2490
  "data-column-key",
2471
2491
  "data-section",
2472
2492
  "tabindex"
2473
- ], Xn = {
2493
+ ], rr = {
2474
2494
  key: 1,
2475
2495
  class: "s-ui-table__aggregate-text"
2476
- }, Zn = /* @__PURE__ */ T({
2496
+ }, ir = /* @__PURE__ */ O({
2477
2497
  __name: "STable",
2478
- props: /*@__PURE__*/ O({
2498
+ props: /*@__PURE__*/ j({
2479
2499
  items: {},
2480
2500
  columns: {},
2481
2501
  itemKey: {
@@ -2498,6 +2518,7 @@ var J = /* @__PURE__ */ function(e) {
2498
2518
  isItemSelectable: { type: Function },
2499
2519
  columnsManageable: { type: Boolean },
2500
2520
  rowState: { type: Function },
2521
+ rowColor: { type: Function },
2501
2522
  expandColumnKey: {},
2502
2523
  expandOnClick: {
2503
2524
  type: Boolean,
@@ -2515,7 +2536,7 @@ var J = /* @__PURE__ */ function(e) {
2515
2536
  type: Boolean,
2516
2537
  default: !0
2517
2538
  },
2518
- rowHeightMode: { default: () => ke.AUTO },
2539
+ rowHeightMode: { default: () => Ne.AUTO },
2519
2540
  estimateRowSize: { default: () => 40 },
2520
2541
  overscan: { default: () => 8 },
2521
2542
  height: {},
@@ -2553,7 +2574,8 @@ var J = /* @__PURE__ */ function(e) {
2553
2574
  type: Boolean,
2554
2575
  default: !0
2555
2576
  },
2556
- rowClass: { type: Function }
2577
+ rowClass: { type: Function },
2578
+ rowStyle: { type: Function }
2557
2579
  }, {
2558
2580
  modelValue: {},
2559
2581
  modelModifiers: {},
@@ -2570,7 +2592,7 @@ var J = /* @__PURE__ */ function(e) {
2570
2592
  sortState: { default: () => [] },
2571
2593
  sortStateModifiers: {}
2572
2594
  }),
2573
- emits: /*@__PURE__*/ O([
2595
+ emits: /*@__PURE__*/ j([
2574
2596
  "rowClick",
2575
2597
  "rowContextMenu",
2576
2598
  "cellClick",
@@ -2592,71 +2614,71 @@ var J = /* @__PURE__ */ function(e) {
2592
2614
  "update:hiddenColumns",
2593
2615
  "update:sortState"
2594
2616
  ]),
2595
- setup(i, { expose: a, emit: u }) {
2596
- let d = te(i, "modelValue"), f = te(i, "selected"), T = te(i, "expanded"), D = te(i, "columnOrder"), O = te(i, "columnWidths"), N = te(i, "hiddenColumns"), P = te(i, "sortState"), I = u, V = ne(), { t: H } = ce(), ae = ee(), K = re("scrollElementRef"), le = re("tableElementRef"), de = re("tableRootRef"), { width: fe, height: pe } = ue(K), { primaryColumnKey: me, columnDescriptors: he, columnCssVars: ge, totalWidth: _e, columnCount: ve } = it({
2597
- columns: () => i.columns,
2598
- columnOrder: D,
2599
- columnWidths: O,
2600
- hiddenColumns: N,
2601
- hasIndicator: () => !!V.indicator,
2602
- hasCheckbox: () => i.selectable,
2603
- hasRightEdge: () => !!V["right-edge"],
2604
- hasColumnsManager: () => i.columnsManageable,
2605
- columnsResizable: () => i.columnsResizable,
2606
- columnsDraggable: () => i.columnsDraggable,
2607
- viewportWidth: () => fe.value
2608
- }), { treeIndex: ye, snapshot: be, flatRows: q, toggleExpanded: xe, expandAll: Se, collapseAll: Ce } = zt({
2609
- items: () => i.items,
2610
- itemKey: () => i.itemKey,
2611
- childrenKey: () => i.childrenKey,
2612
- groupRow: () => i.groupRow,
2613
- expanded: T,
2614
- depthFooter: () => i.depthFooter,
2615
- hasMoreChildrenKey: () => i.hasMoreChildrenKey
2616
- }), { leadingDescriptors: we, trailingDescriptors: Te, headerCells: Ee, getStickyCellStyle: J, getHeaderCellClasses: De, leadingCellPlans: Y, trailingCellPlans: Oe, rowCellPlans: X } = sn({
2617
- columnDescriptors: he,
2618
- hasTreeStructure: () => Ne.value,
2619
- expandColumnKey: () => i.expandColumnKey,
2620
- primaryColumnKey: me
2621
- }), Me = _(() => he.value.length + 1), Ne = _(() => ye.value.expandableKeys.length > 0), Pe = _(() => Ne.value ? "treegrid" : "grid"), Fe = _(() => q.value.length + 1 + +!!i.creationRow + +!!i.footerValues), Ie = _(() => i.virtual), Le = _(() => ({ "s-ui-table--rows-fixed": i.rowHeightMode === ke.FIXED })), Re = _(() => {
2622
- let e = 0;
2623
- return i.footerValues && (e += 40), i.creationRow && (e += 40), e;
2617
+ setup(e, { expose: t, emit: n }) {
2618
+ let s = ne(e, "modelValue"), c = ne(e, "selected"), p = ne(e, "expanded"), m = ne(e, "columnOrder"), h = ne(e, "columnWidths"), O = ne(e, "hiddenColumns"), A = ne(e, "sortState"), j = n, I = re(), { t: L } = ue(), z = te(), ee = ie("scrollElementRef"), W = ie("tableElementRef"), oe = ie("tableRootRef"), { width: le, height: de } = fe(ee), { primaryColumnKey: pe, columnDescriptors: me, columnCssVars: he, totalWidth: ge, columnCount: _e } = ct({
2619
+ columns: () => e.columns,
2620
+ columnOrder: m,
2621
+ columnWidths: h,
2622
+ hiddenColumns: O,
2623
+ hasIndicator: () => !!I.indicator,
2624
+ hasCheckbox: () => e.selectable,
2625
+ hasRightEdge: () => !!I["right-edge"],
2626
+ hasColumnsManager: () => e.columnsManageable,
2627
+ columnsResizable: () => e.columnsResizable,
2628
+ columnsDraggable: () => e.columnsDraggable,
2629
+ viewportWidth: () => le.value
2630
+ }), { treeIndex: ve, snapshot: ye, flatRows: J, toggleExpanded: be, expandAll: xe, collapseAll: Se } = Kt({
2631
+ items: () => e.items,
2632
+ itemKey: () => e.itemKey,
2633
+ childrenKey: () => e.childrenKey,
2634
+ groupRow: () => e.groupRow,
2635
+ expanded: p,
2636
+ depthFooter: () => e.depthFooter,
2637
+ hasMoreChildrenKey: () => e.hasMoreChildrenKey
2638
+ }), { leadingDescriptors: Ce, trailingDescriptors: we, headerCells: Te, getStickyCellStyle: Ee, getHeaderCellClasses: De, leadingCellPlans: Oe, trailingCellPlans: Y, rowCellPlans: ke } = mn({
2639
+ columnDescriptors: me,
2640
+ hasTreeStructure: () => Ae.value,
2641
+ expandColumnKey: () => e.expandColumnKey,
2642
+ primaryColumnKey: pe
2643
+ }), X = b(() => me.value.length + 1), Ae = b(() => ve.value.expandableKeys.length > 0), je = b(() => Ae.value ? "treegrid" : "grid"), Me = b(() => J.value.length + 1 + +!!e.creationRow + +!!e.footerValues), Ie = b(() => e.virtual), Le = b(() => ({ "s-ui-table--rows-fixed": e.rowHeightMode === Ne.FIXED })), Re = b(() => {
2644
+ let t = 0;
2645
+ return e.footerValues && (t += 40), e.creationRow && (t += 40), t;
2624
2646
  }), ze = [];
2625
- W(q, (e) => {
2647
+ K(J, (e) => {
2626
2648
  ze = e;
2627
2649
  }, {
2628
2650
  flush: "sync",
2629
2651
  immediate: !0
2630
2652
  });
2631
- let { windowIndexes: Ve, uiTotalSize: We, modelScrollOffset: Ge, scrollToIndex: Ke, visibleRange: qe, getRowOffset: Je, getRowUiOffset: Ye, getRowIndexAtOffset: Xe, measureWindowRows: Ze, measureNewRows: Qe } = kn({
2632
- rowCount: () => q.value.length,
2653
+ let { windowIndexes: Be, uiTotalSize: Ve, modelScrollOffset: He, scrollToIndex: Ue, visibleRange: Ge, getRowOffset: Je, getRowUiOffset: Ye, getRowIndexAtOffset: Xe, measureWindowRows: Ze, measureNewRows: Qe } = In({
2654
+ rowCount: () => J.value.length,
2633
2655
  enabled: Ie,
2634
- autoMeasure: () => i.rowHeightMode === ke.AUTO,
2635
- estimateRowSize: () => i.estimateRowSize,
2656
+ autoMeasure: () => e.rowHeightMode === Ne.AUTO,
2657
+ estimateRowSize: () => e.estimateRowSize,
2636
2658
  estimateRowSizeByIndex: void 0,
2637
- overscan: () => i.overscan,
2638
- scrollElement: K,
2659
+ overscan: () => e.overscan,
2660
+ scrollElement: ee,
2639
2661
  getRowKey: (e) => ze[e]?.key ?? e,
2640
- rowsVersion: q,
2641
- viewportHeight: () => pe.value,
2662
+ rowsVersion: J,
2663
+ viewportHeight: () => de.value,
2642
2664
  extraHeight: () => 40 + Re.value,
2643
2665
  headerHeight: () => 40
2644
- }), { isRowHydrated: $e, hydratedKeys: et } = hn({
2645
- windowIndexes: Ve,
2646
- visibleRange: qe,
2666
+ }), { isRowHydrated: $e, hydratedKeys: et } = Sn({
2667
+ windowIndexes: Be,
2668
+ visibleRange: Ge,
2647
2669
  getRowKey: (e) => ze[e]?.key,
2648
- pinnedRowKey: () => d.value,
2649
- enabled: () => Ie.value && i.scrollSeekPlaceholders
2670
+ pinnedRowKey: () => s.value,
2671
+ enabled: () => Ie.value && e.scrollSeekPlaceholders
2650
2672
  });
2651
- W(et, Qe, { flush: "post" });
2652
- let { resizingColumnKey: tt, handleResizeHandlePointerdown: nt, handleResizeHandleKeydown: rt, handleResizeHandleDblclick: at } = cn({
2653
- tableRootElement: de,
2654
- scrollElement: K,
2655
- columnDescriptors: he,
2656
- columnWidths: O,
2657
- enabled: () => i.columnsResizable,
2673
+ K(et, Qe, { flush: "post" });
2674
+ let { resizingColumnKey: tt, handleResizeHandlePointerdown: nt, handleResizeHandleKeydown: rt, handleResizeHandleDblclick: it } = hn({
2675
+ tableRootElement: oe,
2676
+ scrollElement: ee,
2677
+ columnDescriptors: me,
2678
+ columnWidths: h,
2679
+ enabled: () => e.columnsResizable,
2658
2680
  onResizeEnd: (e, t) => {
2659
- I("columnResizeEnd", {
2681
+ j("columnResizeEnd", {
2660
2682
  key: e,
2661
2683
  width: t
2662
2684
  });
@@ -2664,104 +2686,104 @@ var J = /* @__PURE__ */ function(e) {
2664
2686
  remeasureRows: () => {
2665
2687
  Ze();
2666
2688
  }
2667
- }), ot = _(() => i.rowsDragMode ? i.rowsDragMode : Ne.value ? Ae.TREE : Ae.FLAT), { registerColumnHeaderElement: st, draggingColumnKey: lt, dropLineStyle: ut } = an({
2668
- tableId: ae,
2669
- tableRootElement: de,
2670
- enabled: () => i.columnsDraggable,
2671
- columnDescriptors: he,
2672
- onReorder: (e, t, n) => {
2673
- let r = D.value?.length ? [...D.value] : i.columns.map((e) => e.key);
2674
- i.columns.forEach((e) => {
2675
- r.includes(e.key) || r.push(e.key);
2689
+ }), at = b(() => e.rowsDragMode ? e.rowsDragMode : Ae.value ? Pe.TREE : Pe.FLAT), { registerColumnHeaderElement: ot, draggingColumnKey: st, dropLineStyle: lt } = fn({
2690
+ tableId: z,
2691
+ tableRootElement: oe,
2692
+ enabled: () => e.columnsDraggable,
2693
+ columnDescriptors: me,
2694
+ onReorder: (t, n, r) => {
2695
+ let i = m.value?.length ? [...m.value] : e.columns.map((e) => e.key);
2696
+ e.columns.forEach((e) => {
2697
+ i.includes(e.key) || i.push(e.key);
2676
2698
  });
2677
- let a = r.filter((t) => t !== e), o = a.indexOf(t);
2699
+ let a = i.filter((e) => e !== t), o = a.indexOf(n);
2678
2700
  if (o === -1) return;
2679
- let s = n === "left" ? o : o + 1;
2680
- a.splice(s, 0, e), D.value = a, I("columnReorder", {
2681
- key: e,
2701
+ let s = r === "left" ? o : o + 1;
2702
+ a.splice(s, 0, t), m.value = a, j("columnReorder", {
2703
+ key: t,
2682
2704
  toIndex: s,
2683
2705
  order: a
2684
2706
  });
2685
2707
  },
2686
2708
  isResizing: () => !!tt.value
2687
- }), dt = (e, t) => {
2688
- (e instanceof Element || e === null) && st(t, e);
2689
- }, { registerRowElement: ft, draggingRowKey: pt, dropIndicator: mt } = un({
2690
- tableId: ae,
2691
- enabled: () => i.rowsDraggable,
2692
- dragMode: ot,
2693
- snapshot: be,
2694
- scrollElement: K,
2695
- isRowDraggable: () => i.isRowDraggable,
2696
- dragExpandDelayMs: () => i.dragExpandDelayMs,
2697
- isExpanded: (e) => T.value.includes(e),
2709
+ }), ut = (e, t) => {
2710
+ (e instanceof Element || e === null) && ot(t, e);
2711
+ }, { registerRowElement: dt, draggingRowKey: pt, dropIndicator: mt } = _n({
2712
+ tableId: z,
2713
+ enabled: () => e.rowsDraggable,
2714
+ dragMode: at,
2715
+ snapshot: ye,
2716
+ scrollElement: ee,
2717
+ isRowDraggable: () => e.isRowDraggable,
2718
+ dragExpandDelayMs: () => e.dragExpandDelayMs,
2719
+ isExpanded: (e) => p.value.includes(e),
2698
2720
  onHoverExpand: (e) => {
2699
- xe(e);
2721
+ be(e);
2700
2722
  },
2701
2723
  onReorder: (e) => {
2702
- I("rowsReorder", e);
2724
+ j("rowsReorder", e);
2703
2725
  },
2704
2726
  onTreeDrop: (e) => {
2705
- I("rowsDrop", e);
2727
+ j("rowsDrop", e);
2706
2728
  },
2707
2729
  resolveRowPreviewTitle: (e) => Dn(e) ?? e.key
2708
- }), gt = (e) => {
2709
- (e instanceof Element || e === null) && ft(e);
2710
- }, _t = (e) => {
2730
+ }), ht = (e) => {
2731
+ (e instanceof Element || e === null) && dt(e);
2732
+ }, gt = (e) => {
2711
2733
  let t = mt.value;
2712
- if (!(!t || t.targetKey !== e)) return t.action === je.CHILD ? "inside" : t.action === je.BEFORE ? "before" : "after";
2713
- }, { activeGroupRowIndex: vt, activeDepthFooterRowIndex: yt, activeDepthFooterRowIndexes: bt, leavingDepthFooterRowIndex: xt, slidingDepthFooterRowIndexes: St, farDepthFooterRowIndexes: wt } = _n({
2714
- snapshot: be,
2715
- visibleRange: qe,
2716
- depthFooterSticky: () => i.depthFooter?.sticky !== !1,
2717
- bottomVisibleRowIndex: _(() => {
2718
- if (!Ie.value || pe.value === 0) return;
2719
- let e = Ge.value + pe.value - 40 - Re.value;
2734
+ if (!(!t || t.targetKey !== e)) return t.action === Fe.CHILD ? "inside" : t.action === Fe.BEFORE ? "before" : "after";
2735
+ }, { activeGroupRowIndex: _t, activeDepthFooterRowIndex: vt, activeDepthFooterRowIndexes: bt, leavingDepthFooterRowIndex: xt, slidingDepthFooterRowIndexes: St, farDepthFooterRowIndexes: Ct } = wn({
2736
+ snapshot: ye,
2737
+ visibleRange: Ge,
2738
+ depthFooterSticky: () => e.depthFooter?.sticky !== !1,
2739
+ bottomVisibleRowIndex: b(() => {
2740
+ if (!Ie.value || de.value === 0) return;
2741
+ let e = He.value + de.value - 40 - Re.value;
2720
2742
  return Xe(Math.max(0, e));
2721
2743
  }),
2722
2744
  getRowOffset: Je
2723
- }), { renderEntries: Tt } = dn({
2724
- flatRows: q,
2745
+ }), { renderEntries: wt } = vn({
2746
+ flatRows: J,
2725
2747
  virtualEnabled: Ie,
2726
- windowIndexes: Ve,
2727
- uiTotalSize: We,
2748
+ windowIndexes: Be,
2749
+ uiTotalSize: Ve,
2728
2750
  getRowUiOffset: Ye,
2729
- activeGroupRowIndex: vt,
2751
+ activeGroupRowIndex: _t,
2730
2752
  activeDepthFooterRowIndexes: bt,
2731
2753
  leavingDepthFooterRowIndex: xt,
2732
2754
  slidingDepthFooterRowIndexes: St,
2733
- farDepthFooterRowIndexes: wt,
2734
- activeRowIndex: _(() => {
2735
- if (d.value) return be.value.getRowIndexByKey(d.value);
2755
+ farDepthFooterRowIndexes: Ct,
2756
+ activeRowIndex: b(() => {
2757
+ if (s.value) return ye.value.getRowIndexByKey(s.value);
2736
2758
  })
2737
- }), Et = _(() => !i.loading && q.value.length === 0), { rootStyle: Dt, scrollStyle: kt, tableStyle: At } = yn({
2759
+ }), Tt = b(() => !e.loading && J.value.length === 0), { rootStyle: Et, scrollStyle: Ot, tableStyle: kt } = En({
2738
2760
  tfootBarStackHeight: Re,
2739
- hasFooterValues: () => !!i.footerValues,
2740
- scrollClientWidth: () => fe.value,
2741
- columnCssVars: ge,
2742
- totalWidth: _e,
2743
- height: () => i.height,
2744
- maxHeight: () => i.maxHeight
2745
- }), { getColumnSortDirection: jt, getColumnSortIndex: Mt, applySortCycle: Nt, applySortExact: Pt, getHeaderAriaSort: It, getHeaderSlotScope: Lt } = mn({
2746
- sortState: P,
2761
+ hasFooterValues: () => !!e.footerValues,
2762
+ scrollClientWidth: () => le.value,
2763
+ columnCssVars: he,
2764
+ totalWidth: ge,
2765
+ height: () => e.height,
2766
+ maxHeight: () => e.maxHeight
2767
+ }), { getColumnSortDirection: At, getColumnSortIndex: jt, applySortCycle: Nt, applySortExact: Pt, getHeaderAriaSort: Ft, getHeaderSlotScope: It } = xn({
2768
+ sortState: A,
2747
2769
  onSortChange: (e) => {
2748
- I("sortChange", e);
2770
+ j("sortChange", e);
2749
2771
  }
2750
- }), Rt = z(), Bt = (e, t) => {
2751
- Rt.value = t ? e : void 0;
2752
- }, Vt = (e, t) => {
2753
- if (!i.columnsResizable || !e.resizable) return;
2754
- let n = Math.min(e.maxWidth ?? Infinity, Math.max(e.minWidth, e.width + t * 8));
2755
- n !== e.width && (O.value = {
2756
- ...O.value,
2757
- [e.key]: n
2758
- }, I("columnResizeEnd", {
2759
- key: e.key,
2760
- width: n
2772
+ }), Lt = H(), Rt = (e, t) => {
2773
+ Lt.value = t ? e : void 0;
2774
+ }, zt = (t, n) => {
2775
+ if (!e.columnsResizable || !t.resizable) return;
2776
+ let r = Math.min(t.maxWidth ?? Infinity, Math.max(t.minWidth, t.width + n * 8));
2777
+ r !== t.width && (h.value = {
2778
+ ...h.value,
2779
+ [t.key]: r
2780
+ }, j("columnResizeEnd", {
2781
+ key: t.key,
2782
+ width: r
2761
2783
  }));
2762
- }, Ht = z(!1), Ut = _(() => i.columns.filter((e) => e.key !== me.value && (e.hideable ?? !0))), Wt = (e) => (N.value ?? []).includes(e), Gt = _(() => {
2763
- let e = Ut.value.map((e) => {
2764
- let t = Wt(e.key);
2784
+ }, Bt = H(!1), Vt = b(() => e.columns.filter((e) => e.key !== pe.value && (e.hideable ?? !0))), Ut = (e) => (O.value ?? []).includes(e), Wt = b(() => {
2785
+ let e = Vt.value.map((e) => {
2786
+ let t = Ut(e.key);
2765
2787
  return {
2766
2788
  column: e,
2767
2789
  hidden: t,
@@ -2769,273 +2791,275 @@ var J = /* @__PURE__ */ function(e) {
2769
2791
  };
2770
2792
  });
2771
2793
  return [e.filter((e) => !e.hidden), e.filter((e) => e.hidden)].filter((e) => e.length > 0);
2772
- }), Kt = (e) => {
2773
- let t = new Set(N.value ?? []);
2774
- t.has(e) ? t.delete(e) : t.add(e), N.value = [...t];
2794
+ }), Gt = (e) => {
2795
+ let t = new Set(O.value ?? []);
2796
+ t.has(e) ? t.delete(e) : t.add(e), O.value = [...t];
2775
2797
  }, qt = (e) => {
2776
- let t = new Set(N.value ?? []);
2777
- t.add(e), N.value = [...t];
2778
- }, Jt = fn({
2779
- selected: f,
2780
- cascade: () => i.cascadeSelection,
2781
- treeIndex: ye,
2782
- groupRow: () => i.groupRow,
2783
- disabledKey: () => i.disabledKey,
2784
- isItemSelectable: () => i.isItemSelectable
2785
- }), Yt = Jt.headerCheckState, Zt = (e) => Jt.isSelected(e), Qt = (e) => i.cascadeSelection && Jt.getCheckState(e) === Z.INDETERMINATE, en = (e) => {
2798
+ let t = new Set(O.value ?? []);
2799
+ t.add(e), O.value = [...t];
2800
+ }, Jt = yn({
2801
+ selected: c,
2802
+ cascade: () => e.cascadeSelection,
2803
+ treeIndex: ve,
2804
+ groupRow: () => e.groupRow,
2805
+ disabledKey: () => e.disabledKey,
2806
+ isItemSelectable: () => e.isItemSelectable
2807
+ }), Yt = Jt.headerCheckState, Xt = (e) => Jt.isSelected(e), Zt = (t) => e.cascadeSelection && Jt.getCheckState(t) === Z.INDETERMINATE, Qt = (e) => {
2786
2808
  Jt.toggleRow(e);
2787
- }, tn = (e) => Ft(e.item, i.disabledKey), nn = ({ row: e, spacerHeight: t, rowHeight: n, stuckTop: r, stuckBottom: a, stuckBottomLeaving: o, stuckBottomSliding: s, stuckBottomCoverHeight: c, stuckBottomFar: l }, u) => [
2788
- e ?? t,
2789
- e?.index,
2790
- e?.expanded,
2791
- e?.item,
2792
- e?.kind,
2793
- e?.hasChildren,
2794
- e?.depth,
2795
- e?.parentKey,
2796
- e ? Zt(e.key) : !1,
2797
- e ? Qt(e.key) : !1,
2798
- e ? d.value === e.key : !1,
2799
- e ? _r(e.key) : void 0,
2800
- e ? pt.value === e.key : !1,
2801
- e ? _t(e.key) : void 0,
2802
- n,
2809
+ }, $t = (t) => Ht(t.item, e.disabledKey), en = ({ row: t, spacerHeight: n, rowHeight: r, stuckTop: i, stuckBottom: a, stuckBottomLeaving: o, stuckBottomSliding: c, stuckBottomCoverHeight: l, stuckBottomFar: u }, d) => [
2810
+ t ?? n,
2811
+ t?.index,
2812
+ t?.expanded,
2813
+ t?.item,
2814
+ t?.kind,
2815
+ t?.hasChildren,
2816
+ t?.depth,
2817
+ t?.parentKey,
2818
+ t ? Xt(t.key) : !1,
2819
+ t ? Zt(t.key) : !1,
2820
+ t ? s.value === t.key : !1,
2821
+ t ? _r(t.key) : void 0,
2822
+ t ? pt.value === t.key : !1,
2823
+ t ? gt(t.key) : void 0,
2803
2824
  r,
2825
+ i,
2804
2826
  a,
2805
2827
  o,
2806
- s,
2807
2828
  c,
2808
2829
  l,
2809
- he.value,
2810
- xn.value,
2811
- wn.value,
2812
2830
  u,
2813
- i.loadingMoreChildrenKeys,
2814
- i.treeIndent,
2815
- i.rowClass,
2816
- i.rowState,
2817
- i.selectable,
2818
- i.cascadeSelection,
2819
- i.rowsDraggable
2820
- ], rn = (e) => {
2831
+ me.value,
2832
+ ln.value,
2833
+ pn.value,
2834
+ d,
2835
+ e.loadingMoreChildrenKeys,
2836
+ e.treeIndent,
2837
+ e.rowClass,
2838
+ e.rowStyle,
2839
+ e.rowState,
2840
+ e.rowColor,
2841
+ e.selectable,
2842
+ e.cascadeSelection,
2843
+ e.rowsDraggable
2844
+ ], tn = (e) => {
2821
2845
  if (e !== void 0) return { "--s-ui-table-stuck-cover-height": `${e}px` };
2822
- }, on = _(() => Tt.value.map((e) => {
2846
+ }, nn = b(() => wt.value.map((e) => {
2823
2847
  let t = e.row?.kind === Q.ROW && !$e(e.row.key);
2824
2848
  return {
2825
2849
  ...e,
2826
2850
  placeholder: t,
2827
- memoKeys: nn(e, t)
2851
+ memoKeys: en(e, t)
2828
2852
  };
2829
- })), gn = _(() => Object.keys(V).filter((e) => e.startsWith("cell:"))), vn = (e) => `s-ui-table-${ae}-row-${e}`, bn = (e) => ({
2853
+ })), an = b(() => Object.keys(I).filter((e) => e.startsWith("cell:"))), on = (e) => `s-ui-table-${z}-row-${e}`, cn = (e) => ({
2830
2854
  ...e,
2831
- selected: Zt(e.key),
2855
+ selected: Xt(e.key),
2832
2856
  indeterminate: !1,
2833
- active: d.value === e.key,
2834
- disabled: tn(e),
2857
+ active: s.value === e.key,
2858
+ disabled: $t(e),
2835
2859
  group: e.kind === Q.GROUP,
2836
2860
  toggleExpanded: () => {
2837
- xe(e.key);
2861
+ be(e.key);
2838
2862
  },
2839
2863
  toggleSelected: () => {
2840
- en(e.key);
2864
+ Qt(e.key);
2841
2865
  }
2842
- }), { depthFooterColumnKey: xn, groupColumnKey: Sn, creationColumnKey: Cn, loadMoreColumnKey: wn, getGroupCount: Tn, getGroupTotal: En, getGroupTitle: Dn, getDepthIndentStyle: On, emitDepthFooterClick: Zn, getDepthFooterSlotScope: Qn, isLoadMoreRowLoading: $n, emitLoadMoreChildren: er, getLoadMoreSlotScope: tr, getFooterValueText: nr, getFooterToneClass: rr, getFooterSlotScope: ir } = pn({
2843
- columns: () => i.columns,
2844
- primaryColumnKey: me,
2845
- treeNodeByKey: _(() => ye.value.nodeByKey),
2846
- groupTotalKey: () => i.groupTotalKey,
2847
- depthFooter: () => i.depthFooter,
2848
- groupContentColumnKey: () => i.groupContentColumnKey,
2849
- creationContentColumnKey: () => i.creationContentColumnKey,
2850
- loadMoreContentColumnKey: () => i.loadMoreContentColumnKey,
2851
- treeIndent: () => i.treeIndent,
2852
- loadingMoreChildrenKeys: () => i.loadingMoreChildrenKeys,
2853
- footerValues: () => i.footerValues,
2854
- stuckDepthFooterRowIndex: yt,
2866
+ }), { depthFooterColumnKey: ln, groupColumnKey: un, creationColumnKey: dn, loadMoreColumnKey: pn, getGroupCount: Cn, getGroupTotal: Tn, getGroupTitle: Dn, getDepthIndentStyle: On, emitDepthFooterClick: kn, getDepthFooterSlotScope: An, isLoadMoreRowLoading: jn, emitLoadMoreChildren: Mn, getLoadMoreSlotScope: Nn, getFooterValueText: Pn, getFooterToneClass: Fn, getFooterSlotScope: ir } = bn({
2867
+ columns: () => e.columns,
2868
+ primaryColumnKey: pe,
2869
+ treeNodeByKey: b(() => ve.value.nodeByKey),
2870
+ groupTotalKey: () => e.groupTotalKey,
2871
+ depthFooter: () => e.depthFooter,
2872
+ groupContentColumnKey: () => e.groupContentColumnKey,
2873
+ creationContentColumnKey: () => e.creationContentColumnKey,
2874
+ loadMoreContentColumnKey: () => e.loadMoreContentColumnKey,
2875
+ treeIndent: () => e.treeIndent,
2876
+ loadingMoreChildrenKeys: () => e.loadingMoreChildrenKeys,
2877
+ footerValues: () => e.footerValues,
2878
+ stuckDepthFooterRowIndex: vt,
2855
2879
  onDepthFooterClick: (e) => {
2856
- I("depthFooterClick", e);
2880
+ j("depthFooterClick", e);
2857
2881
  },
2858
2882
  onLoadMoreChildren: (e) => {
2859
- I("loadMoreChildren", e);
2883
+ j("loadMoreChildren", e);
2860
2884
  }
2861
2885
  }), ar = (e) => ({
2862
- ...bn(e),
2863
- count: Tn(e),
2864
- total: En(e)
2865
- }), or = (e, t) => {
2866
- tn(e) || (d.value = e.key, i.expandOnClick && (e.hasChildren || e.kind === Q.GROUP) && xe(e.key), I("rowClick", {
2867
- key: e.key,
2868
- item: e.item,
2869
- event: t
2886
+ ...cn(e),
2887
+ count: Cn(e),
2888
+ total: Tn(e)
2889
+ }), or = (t, n) => {
2890
+ $t(t) || (s.value = t.key, e.expandOnClick && (t.hasChildren || t.kind === Q.GROUP) && be(t.key), j("rowClick", {
2891
+ key: t.key,
2892
+ item: t.item,
2893
+ event: n
2870
2894
  }));
2871
2895
  }, sr = (e, t) => {
2872
- I("rowContextMenu", {
2896
+ j("rowContextMenu", {
2873
2897
  key: e.key,
2874
2898
  item: e.item,
2875
2899
  event: t
2876
2900
  });
2877
- }, cr = _(() => {
2901
+ }, cr = b(() => {
2878
2902
  let e = /* @__PURE__ */ new Set();
2879
- return he.value.forEach((t) => {
2903
+ return me.value.forEach((t) => {
2880
2904
  t.column && e.add(t.key);
2881
2905
  }), e;
2882
2906
  }), lr = (e, t, n) => {
2883
- !cr.value.has(t) || tn(e) || I("cellClick", {
2907
+ !cr.value.has(t) || $t(e) || j("cellClick", {
2884
2908
  key: e.key,
2885
2909
  item: e.item,
2886
2910
  columnKey: t,
2887
2911
  event: n
2888
2912
  });
2889
- }, ur = (e) => e ? !tn(e) : !1, dr = _(() => {
2890
- let e = pe.value - 40 - Re.value;
2891
- return Math.max(1, Math.floor(e / i.estimateRowSize));
2913
+ }, ur = (e) => e ? !$t(e) : !1, dr = b(() => {
2914
+ let t = de.value - 40 - Re.value;
2915
+ return Math.max(1, Math.floor(t / e.estimateRowSize));
2892
2916
  });
2893
- l(() => K.value, {
2894
- distance: () => i.endReachedDistance,
2895
- canLoadMore: () => i.canLoadMore?.() ?? !0,
2917
+ f(() => ee.value, {
2918
+ distance: () => e.endReachedDistance,
2919
+ canLoadMore: () => e.canLoadMore?.() ?? !0,
2896
2920
  onEndReached: () => {
2897
- I("endReached", { direction: "bottom" });
2921
+ j("endReached", { direction: "bottom" });
2898
2922
  }
2899
2923
  });
2900
2924
  let fr = (e, t) => {
2901
- let n = be.value.getRowIndexByKey(e);
2925
+ let n = ye.value.getRowIndexByKey(e);
2902
2926
  if (n !== void 0) {
2903
2927
  if (Ie.value) {
2904
- Ke(n, t?.align ?? "auto");
2928
+ Ue(n, t?.align ?? "auto");
2905
2929
  return;
2906
2930
  }
2907
- document.getElementById(vn(e))?.scrollIntoView({ block: t?.align === "center" ? "center" : "nearest" });
2931
+ document.getElementById(on(e))?.scrollIntoView({ block: t?.align === "center" ? "center" : "nearest" });
2908
2932
  }
2909
- }, pr = (e) => `s-ui-table-${ae}-cell-${e.section}-${e.rowKey ?? ""}-${e.columnKey}`, mr = ct({
2910
- tableRootElement: de,
2911
- tableElement: le,
2912
- scrollElement: K,
2913
- columnDescriptors: he,
2914
- flatRows: q,
2915
- snapshot: be,
2916
- groupColumnKey: Sn,
2917
- depthFooterColumnKey: xn,
2918
- loadMoreColumnKey: wn,
2919
- creationColumnKey: Cn,
2920
- hasCreationRow: () => !!i.creationRow,
2921
- hasAggregateRow: () => !!i.footerValues,
2933
+ }, pr = (e) => `s-ui-table-${z}-cell-${e.section}-${e.rowKey ?? ""}-${e.columnKey}`, mr = ft({
2934
+ tableRootElement: oe,
2935
+ tableElement: W,
2936
+ scrollElement: ee,
2937
+ columnDescriptors: me,
2938
+ flatRows: J,
2939
+ snapshot: ye,
2940
+ groupColumnKey: un,
2941
+ depthFooterColumnKey: ln,
2942
+ loadMoreColumnKey: pn,
2943
+ creationColumnKey: dn,
2944
+ hasCreationRow: () => !!e.creationRow,
2945
+ hasAggregateRow: () => !!e.footerValues,
2922
2946
  isRowNavigable: ur,
2923
2947
  pageSize: dr,
2924
2948
  buildCellDomId: pr,
2925
2949
  onBodyRowFocused: (e) => {
2926
- d.value = e;
2950
+ s.value = e;
2927
2951
  },
2928
2952
  scrollToRowIndex: (e) => {
2929
- let t = q.value[e];
2953
+ let t = J.value[e];
2930
2954
  t && fr(t.key);
2931
2955
  }
2932
- }), hr = `s-ui-table-${ae}-cell-${$.BODY}-`, gr = `s-ui-table-${ae}-cell-${$.CREATION}-`, _r = (e) => mr.focusedBodyRowKey.value === e ? mr.focusAddress.value.columnKey : void 0, vr = (e) => {
2956
+ }), hr = `s-ui-table-${z}-cell-${$.BODY}-`, gr = `s-ui-table-${z}-cell-${$.CREATION}-`, _r = (e) => mr.focusedBodyRowKey.value === e ? mr.focusAddress.value.columnKey : void 0, vr = (e) => {
2933
2957
  let t = mr.focusAddress.value;
2934
2958
  return t.section === e ? t.columnKey : void 0;
2935
- }, yr = (e, t, n) => mr.getCellTabIndex(e, t, n), { handleGridFocusIn: br, handleGridKeydown: xr } = ln({
2959
+ }, yr = (e, t, n) => mr.getCellTabIndex(e, t, n), { handleGridFocusIn: br, handleGridKeydown: xr } = gn({
2936
2960
  gridFocus: mr,
2937
- columnDescriptors: he,
2938
- flatRows: q,
2939
- expandColumnKey: () => i.expandColumnKey,
2940
- primaryColumnKey: me,
2941
- groupColumnKey: Sn,
2942
- selectable: () => i.selectable,
2943
- openMenuColumnKey: Rt,
2944
- toggleExpanded: xe,
2961
+ columnDescriptors: me,
2962
+ flatRows: J,
2963
+ expandColumnKey: () => e.expandColumnKey,
2964
+ primaryColumnKey: pe,
2965
+ groupColumnKey: un,
2966
+ selectable: () => e.selectable,
2967
+ openMenuColumnKey: Lt,
2968
+ toggleExpanded: be,
2945
2969
  toggleRowSelected: (e) => {
2946
2970
  Jt.toggleRow(e);
2947
2971
  },
2948
2972
  applySortCycle: Nt,
2949
- setColumnMenuOpen: Bt,
2950
- resizeColumnByKeyboard: Vt,
2951
- onDepthFooterActivate: Zn,
2952
- onLoadMoreActivate: er,
2973
+ setColumnMenuOpen: Rt,
2974
+ resizeColumnByKeyboard: zt,
2975
+ onDepthFooterActivate: kn,
2976
+ onLoadMoreActivate: Mn,
2953
2977
  onRowActivate: (e, t) => {
2954
- I("rowClick", {
2978
+ j("rowClick", {
2955
2979
  key: e.key,
2956
2980
  item: e.item,
2957
2981
  event: t
2958
2982
  });
2959
2983
  }
2960
2984
  });
2961
- return a({
2985
+ return t({
2962
2986
  focusNavigation: async () => {
2963
- mr.focusAddressNow(mr.focusAddress.value), await A();
2987
+ mr.focusAddressNow(mr.focusAddress.value), await N();
2964
2988
  },
2965
2989
  scrollToRow: fr,
2966
- expandAll: Se,
2967
- collapseAll: Ce,
2990
+ expandAll: xe,
2991
+ collapseAll: Se,
2968
2992
  clearSelection: () => {
2969
2993
  Jt.clearSelection();
2970
2994
  },
2971
- getScrollElement: () => K.value ?? void 0
2972
- }), (a, l) => (F(), b("div", {
2995
+ getScrollElement: () => ee.value ?? void 0
2996
+ }), (t, n) => (R(), C("div", {
2973
2997
  ref_key: "tableRootRef",
2974
- ref: de,
2975
- class: j(["s-ui-table", Le.value]),
2976
- style: M(U(Dt))
2977
- }, [x("div", {
2998
+ ref: oe,
2999
+ class: P(["s-ui-table", Le.value]),
3000
+ style: F(G(Et))
3001
+ }, [w("div", {
2978
3002
  ref_key: "scrollElementRef",
2979
- ref: K,
3003
+ ref: ee,
2980
3004
  class: "s-ui-table__scroll",
2981
- style: M(U(kt))
2982
- }, [x("table", {
3005
+ style: F(G(Ot))
3006
+ }, [w("table", {
2983
3007
  class: "s-ui-table__table",
2984
- style: M(U(At)),
2985
- role: Pe.value,
2986
- "aria-rowcount": Fe.value,
2987
- "aria-colcount": U(ve),
2988
- "aria-busy": i.loading || i.loadingMore || void 0,
3008
+ style: F(G(kt)),
3009
+ role: je.value,
3010
+ "aria-rowcount": Me.value,
3011
+ "aria-colcount": G(_e),
3012
+ "aria-busy": e.loading || e.loadingMore || void 0,
2989
3013
  ref_key: "tableElementRef",
2990
- ref: le,
3014
+ ref: W,
2991
3015
  tabindex: "-1",
2992
- onKeydown: l[5] ||= (...e) => U(xr) && U(xr)(...e),
2993
- onFocusin: l[6] ||= (...e) => U(br) && U(br)(...e)
3016
+ onKeydown: n[5] ||= (...e) => G(xr) && G(xr)(...e),
3017
+ onFocusin: n[6] ||= (...e) => G(br) && G(br)(...e)
2994
3018
  }, [
2995
- x("colgroup", null, [
2996
- (F(!0), b(g, null, L(U(we), (e) => (F(), b("col", {
3019
+ w("colgroup", null, [
3020
+ (R(!0), C(y, null, B(G(Ce), (e) => (R(), C("col", {
2997
3021
  key: e.key,
2998
- style: M({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
3022
+ style: F({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
2999
3023
  }, null, 4))), 128)),
3000
- l[7] ||= x("col", { class: "s-ui-table__filler-col" }, null, -1),
3001
- (F(!0), b(g, null, L(U(Te), (e) => (F(), b("col", {
3024
+ n[7] ||= w("col", { class: "s-ui-table__filler-col" }, null, -1),
3025
+ (R(!0), C(y, null, B(G(we), (e) => (R(), C("col", {
3002
3026
  key: e.key,
3003
- style: M({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
3027
+ style: F({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
3004
3028
  }, null, 4))), 128))
3005
3029
  ]),
3006
- x("thead", jn, [x("tr", Mn, [(F(!0), b(g, null, L(U(Ee), ({ key: i, descriptor: u }) => (F(), b(g, { key: i }, [u ? (F(), b("th", {
3030
+ w("thead", Rn, [w("tr", zn, [(R(!0), C(y, null, B(G(Te), ({ key: e, descriptor: s }) => (R(), C(y, { key: e }, [s ? (R(), C("th", {
3007
3031
  key: 1,
3008
3032
  id: pr({
3009
- section: U($).HEADER,
3010
- columnKey: u.key
3033
+ section: G($).HEADER,
3034
+ columnKey: s.key
3011
3035
  }),
3012
3036
  ref_for: !0,
3013
- ref: (e) => dt(e, u.key),
3014
- class: j(["s-ui-table__header-cell", [U(De)(u), { "s-ui-table__header-cell--dragging": U(lt) === u.key }]]),
3015
- style: M(U(J)(u)),
3016
- "data-column-key": u.key,
3017
- "data-section": U($).HEADER,
3018
- "aria-colindex": u.colIndex,
3019
- "aria-sort": U(It)(u),
3020
- tabindex: yr(U($).HEADER, void 0, u.key),
3037
+ ref: (e) => ut(e, s.key),
3038
+ class: P(["s-ui-table__header-cell", [G(De)(s), { "s-ui-table__header-cell--dragging": G(st) === s.key }]]),
3039
+ style: F(G(Ee)(s)),
3040
+ "data-column-key": s.key,
3041
+ "data-section": G($).HEADER,
3042
+ "aria-colindex": s.colIndex,
3043
+ "aria-sort": G(Ft)(s),
3044
+ tabindex: yr(G($).HEADER, void 0, s.key),
3021
3045
  scope: "col"
3022
- }, [u.column ? (F(), v(Ct, {
3046
+ }, [s.column ? (R(), x(Dt, {
3023
3047
  key: 0,
3024
- descriptor: u,
3025
- "sort-direction": U(jt)(u.key),
3026
- "sort-index": U(Mt)(u.key),
3027
- "menu-open": Rt.value === u.key,
3028
- "onUpdate:menuOpen": (e) => Bt(u.key, e),
3029
- onSortToggle: (e) => U(Nt)(u.key, e),
3030
- onSortSet: (e) => U(Pt)(u.key, e),
3031
- onHide: (e) => qt(u.key)
3032
- }, S({ _: 2 }, [U(V)[`header:${u.key}`] ? {
3048
+ descriptor: s,
3049
+ "sort-direction": G(At)(s.key),
3050
+ "sort-index": G(jt)(s.key),
3051
+ "menu-open": Lt.value === s.key,
3052
+ "onUpdate:menuOpen": (e) => Rt(s.key, e),
3053
+ onSortToggle: (e) => G(Nt)(s.key, e),
3054
+ onSortSet: (e) => G(Pt)(s.key, e),
3055
+ onHide: (e) => qt(s.key)
3056
+ }, T({ _: 2 }, [G(I)[`header:${s.key}`] ? {
3033
3057
  name: "default",
3034
- fn: G(() => [R(a.$slots, `header:${u.key}`, k({ ref_for: !0 }, U(Lt)(u)))]),
3058
+ fn: q(() => [V(t.$slots, `header:${s.key}`, M({ ref_for: !0 }, G(It)(s)))]),
3035
3059
  key: "0"
3036
- } : void 0, U(V)[`header-menu:${u.key}`] ? {
3060
+ } : void 0, G(I)[`header-menu:${s.key}`] ? {
3037
3061
  name: "menu",
3038
- fn: G(() => [R(a.$slots, `header-menu:${u.key}`, k({ ref_for: !0 }, U(Lt)(u)))]),
3062
+ fn: q(() => [V(t.$slots, `header-menu:${s.key}`, M({ ref_for: !0 }, G(It)(s)))]),
3039
3063
  key: "1"
3040
3064
  } : void 0]), 1032, [
3041
3065
  "descriptor",
@@ -3046,34 +3070,34 @@ var J = /* @__PURE__ */ function(e) {
3046
3070
  "onSortToggle",
3047
3071
  "onSortSet",
3048
3072
  "onHide"
3049
- ])) : u.service === U(Ue).CHECKBOX ? (F(), v(Be, {
3073
+ ])) : s.service === G(qe).CHECKBOX ? (R(), x(We, {
3050
3074
  key: 1,
3051
- class: j(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": U(Yt) !== U(Z).UNCHECKED }]),
3052
- "model-value": U(Yt) === U(Z).CHECKED,
3053
- indeterminate: U(Yt) === U(Z).INDETERMINATE,
3054
- "screen-reader-label": U(Yt) === U(Z).CHECKED ? U(H)("table.deselectAll") : U(H)("table.selectAll"),
3055
- "onUpdate:modelValue": l[0] ||= (e) => U(Jt).toggleSelectAll()
3075
+ class: P(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": G(Yt) !== G(Z).UNCHECKED }]),
3076
+ "model-value": G(Yt) === G(Z).CHECKED,
3077
+ indeterminate: G(Yt) === G(Z).INDETERMINATE,
3078
+ "screen-reader-label": G(Yt) === G(Z).CHECKED ? G(L)("table.deselectAll") : G(L)("table.selectAll"),
3079
+ "onUpdate:modelValue": n[0] ||= (e) => G(Jt).toggleSelectAll()
3056
3080
  }, null, 8, [
3057
3081
  "class",
3058
3082
  "model-value",
3059
3083
  "indeterminate",
3060
3084
  "screen-reader-label"
3061
- ])) : u.service === U(Ue).COLUMNS_MANAGER ? (F(), b("div", Fn, [w(U(s), {
3062
- modelValue: Ht.value,
3063
- "onUpdate:modelValue": l[1] ||= (e) => Ht.value = e,
3064
- placement: U(o).BOTTOM_END,
3085
+ ])) : s.service === G(qe).COLUMNS_MANAGER ? (R(), C("div", Hn, [D(G(u), {
3086
+ modelValue: Bt.value,
3087
+ "onUpdate:modelValue": n[1] ||= (e) => Bt.value = e,
3088
+ placement: G(l).BOTTOM_END,
3065
3089
  shift: "",
3066
3090
  "fit-viewport": ""
3067
3091
  }, {
3068
- trigger: G(({ toggle: i }) => [w(U(r), {
3092
+ trigger: q(({ toggle: e }) => [D(G(o), {
3069
3093
  class: "s-ui-table__columns-manager-button",
3070
- appearance: U(t).BARE,
3071
- variant: U(e).NEUTRAL,
3072
- size: U(n).SMALL,
3094
+ appearance: G(i).BARE,
3095
+ variant: G(r).NEUTRAL,
3096
+ size: G(a).SMALL,
3073
3097
  icon: "tablePlus",
3074
- "aria-label": U(H)("table.manageColumns"),
3098
+ "aria-label": G(L)("table.manageColumns"),
3075
3099
  tabindex: "-1",
3076
- onClick: (e) => i()
3100
+ onClick: (t) => e()
3077
3101
  }, null, 8, [
3078
3102
  "appearance",
3079
3103
  "variant",
@@ -3081,30 +3105,30 @@ var J = /* @__PURE__ */ function(e) {
3081
3105
  "aria-label",
3082
3106
  "onClick"
3083
3107
  ])]),
3084
- content: G(() => [w(U(c), {
3108
+ content: q(() => [D(G(d), {
3085
3109
  class: "s-ui-table__columns-menu",
3086
3110
  width: 300
3087
3111
  }, {
3088
- default: G(() => [R(a.$slots, "columns-menu", {
3089
- columns: Ut.value,
3090
- isColumnHidden: Wt,
3091
- toggleColumn: Kt
3092
- }, () => [(F(!0), b(g, null, L(Gt.value, (e, t) => (F(), b(g, { key: t }, [t > 0 ? (F(), v(U(se), {
3112
+ default: q(() => [V(t.$slots, "columns-menu", {
3113
+ columns: Vt.value,
3114
+ isColumnHidden: Ut,
3115
+ toggleColumn: Gt
3116
+ }, () => [(R(!0), C(y, null, B(Wt.value, (e, t) => (R(), C(y, { key: t }, [t > 0 ? (R(), x(G(ce), {
3093
3117
  key: 0,
3094
3118
  class: "s-ui-table__columns-separator"
3095
- })) : y("", !0), (F(!0), b(g, null, L(e, (e) => (F(), v(U(h), {
3119
+ })) : S("", !0), (R(!0), C(y, null, B(e, (e) => (R(), x(G(v), {
3096
3120
  key: e.column.key,
3097
- class: j(["s-ui-table__columns-item", e.classes]),
3098
- size: U(m).SMALL,
3099
- "label-placement": U(p).LEFT,
3121
+ class: P(["s-ui-table__columns-item", e.classes]),
3122
+ size: G(_).SMALL,
3123
+ "label-placement": G(g).LEFT,
3100
3124
  "model-value": !e.hidden,
3101
- "onUpdate:modelValue": (t) => Kt(e.column.key)
3125
+ "onUpdate:modelValue": (t) => Gt(e.column.key)
3102
3126
  }, {
3103
- default: G(() => [x("span", In, [e.column.icon ? (F(), v(U(oe), {
3127
+ default: q(() => [w("span", Un, [e.column.icon ? (R(), x(G(se), {
3104
3128
  key: 0,
3105
3129
  name: e.column.icon,
3106
3130
  size: 16
3107
- }, null, 8, ["name"])) : y("", !0), x("span", Ln, B(e.column.title ?? e.column.key), 1)])]),
3131
+ }, null, 8, ["name"])) : S("", !0), w("span", Wn, U(e.column.title ?? e.column.key), 1)])]),
3108
3132
  _: 2
3109
3133
  }, 1032, [
3110
3134
  "class",
@@ -3116,83 +3140,83 @@ var J = /* @__PURE__ */ function(e) {
3116
3140
  _: 3
3117
3141
  })]),
3118
3142
  _: 3
3119
- }, 8, ["modelValue", "placement"])])) : y("", !0), u.resizable ? (F(), b("span", {
3143
+ }, 8, ["modelValue", "placement"])])) : S("", !0), s.resizable ? (R(), C("span", {
3120
3144
  key: 3,
3121
- class: j(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": U(tt) === u.key }]),
3145
+ class: P(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": G(tt) === s.key }]),
3122
3146
  role: "separator",
3123
3147
  "aria-orientation": "vertical",
3124
- "aria-label": U(H)("table.resizeColumn"),
3148
+ "aria-label": G(L)("table.resizeColumn"),
3125
3149
  tabindex: "-1",
3126
- onPointerdown: (e) => U(nt)(e, u.key),
3127
- onKeydown: (e) => U(rt)(e, u.key),
3128
- onDblclick: (e) => U(at)(u.key),
3129
- onClick: l[2] ||= ie(() => {}, ["stop"])
3130
- }, null, 42, Rn)) : y("", !0)], 14, Pn)) : (F(), b("th", Nn))], 64))), 128))])]),
3131
- x("tbody", zn, [
3132
- Et.value ? (F(), b("tr", Bn, [x("td", {
3150
+ onPointerdown: (e) => G(nt)(e, s.key),
3151
+ onKeydown: (e) => G(rt)(e, s.key),
3152
+ onDblclick: (e) => G(it)(s.key),
3153
+ onClick: n[2] ||= ae(() => {}, ["stop"])
3154
+ }, null, 42, Gn)) : S("", !0)], 14, Vn)) : (R(), C("th", Bn))], 64))), 128))])]),
3155
+ w("tbody", Kn, [
3156
+ Tt.value ? (R(), C("tr", qn, [w("td", {
3133
3157
  class: "s-ui-table__empty-cell",
3134
- colspan: Me.value
3135
- }, [x("div", Hn, [R(a.$slots, "empty", {}, () => [x("span", Un, B(U(H)("table.empty")), 1)])])], 8, Vn)])) : y("", !0),
3136
- i.loading ? (F(!0), b(g, { key: 1 }, L(i.skeletonRowCount, (e) => (F(), v($t, {
3158
+ colspan: X.value
3159
+ }, [w("div", Yn, [V(t.$slots, "empty", {}, () => [w("span", Xn, U(G(L)("table.empty")), 1)])])], 8, Jn)])) : S("", !0),
3160
+ e.loading ? (R(!0), C(y, { key: 1 }, B(e.skeletonRowCount, (e) => (R(), x(sn, {
3137
3161
  key: `skeleton-${e}`,
3138
- "leading-plans": U(Y),
3139
- "trailing-plans": U(Oe)
3140
- }, S({ _: 2 }, [U(V)["skeleton-row"] ? {
3162
+ "leading-plans": G(Oe),
3163
+ "trailing-plans": G(Y)
3164
+ }, T({ _: 2 }, [G(I)["skeleton-row"] ? {
3141
3165
  name: "default",
3142
- fn: G((e) => [R(a.$slots, "skeleton-row", { column: e.descriptor.column })]),
3166
+ fn: q((e) => [V(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
3143
3167
  key: "0"
3144
- } : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (F(!0), b(g, { key: 2 }, L(on.value, ({ row: o, renderKey: s, spacer: c, spacerHeight: l, rowHeight: u, stuckTop: f, stuckBottom: p, stuckBottomLeaving: m, stuckBottomSliding: h, stuckBottomCoverHeight: _, stuckBottomFar: T, placeholder: D, memoKeys: O }, A, N, P) => {
3145
- let z = O;
3146
- if (P && P.el && P.key === s && E(P, z)) return P;
3147
- let ee = (F(), b(g, { key: s }, [c ? (F(), b("tr", Wn, [x("td", {
3168
+ } : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (R(!0), C(y, { key: 2 }, B(nn.value, ({ row: n, renderKey: c, spacer: l, spacerHeight: u, rowHeight: d, stuckTop: f, stuckBottom: p, stuckBottomLeaving: m, stuckBottomSliding: h, stuckBottomCoverHeight: g, stuckBottomFar: _, placeholder: v, memoKeys: b }, O, A, N) => {
3169
+ let z = b;
3170
+ if (N && N.el && N.key === c && k(N, z)) return N;
3171
+ let H = (R(), C(y, { key: c }, [l ? (R(), C("tr", Zn, [w("td", {
3148
3172
  class: "s-ui-table__spacer-cell",
3149
- colspan: Me.value,
3150
- style: M({ height: `${l}px` })
3151
- }, null, 12, Gn)])) : o && o.kind === U(Q).GROUP ? (F(), v(ht, {
3173
+ colspan: X.value,
3174
+ style: F({ height: `${u}px` })
3175
+ }, null, 12, Qn)])) : n && n.kind === G(Q).GROUP ? (R(), x(yt, {
3152
3176
  key: 1,
3153
- id: vn(o.key),
3177
+ id: on(n.key),
3154
3178
  stuck: f,
3155
- row: o,
3156
- "dnd-ref": i.rowsDraggable ? gt : void 0,
3157
- dragging: U(pt) === o.key,
3158
- "drop-position": _t(o.key),
3159
- "row-index": o.index,
3160
- "leading-plans": U(Y),
3161
- "trailing-plans": U(Oe),
3162
- "group-column-key": U(Sn),
3163
- "tree-indent": i.treeIndent,
3164
- count: U(Tn)(o),
3165
- total: U(En)(o),
3166
- title: U(Dn)(o),
3167
- expanded: o.expanded,
3168
- active: d.value === o.key,
3179
+ row: n,
3180
+ "dnd-ref": e.rowsDraggable ? ht : void 0,
3181
+ dragging: G(pt) === n.key,
3182
+ "drop-position": gt(n.key),
3183
+ "row-index": n.index,
3184
+ "leading-plans": G(Oe),
3185
+ "trailing-plans": G(Y),
3186
+ "group-column-key": G(un),
3187
+ "tree-indent": e.treeIndent,
3188
+ count: G(Cn)(n),
3189
+ total: G(Tn)(n),
3190
+ title: G(Dn)(n),
3191
+ expanded: n.expanded,
3192
+ active: s.value === n.key,
3169
3193
  "cell-id-prefix": hr,
3170
- "focus-column-key": _r(o.key),
3171
- onToggle: (e) => U(xe)(o.key),
3172
- onRowClick: (e) => or(o, e),
3173
- onMenuOpen: (e) => I("groupMenuOpen", {
3174
- key: o.key,
3175
- item: o.item
3194
+ "focus-column-key": _r(n.key),
3195
+ onToggle: (e) => G(be)(n.key),
3196
+ onRowClick: (e) => or(n, e),
3197
+ onMenuOpen: (e) => j("groupMenuOpen", {
3198
+ key: n.key,
3199
+ item: n.item
3176
3200
  })
3177
- }, S({ _: 2 }, [
3178
- U(V)["group-menu"] ? {
3201
+ }, T({ _: 2 }, [
3202
+ G(I)["group-menu"] ? {
3179
3203
  name: "menu",
3180
- fn: G(() => [R(a.$slots, "group-menu", k({ ref_for: !0 }, ar(o)))]),
3204
+ fn: q(() => [V(t.$slots, "group-menu", M({ ref_for: !0 }, ar(n)))]),
3181
3205
  key: "0"
3182
3206
  } : void 0,
3183
- U(V)["group-row"] ? {
3207
+ G(I)["group-row"] ? {
3184
3208
  name: "row",
3185
- fn: G(() => [R(a.$slots, "group-row", k({ ref_for: !0 }, ar(o)))]),
3209
+ fn: q(() => [V(t.$slots, "group-row", M({ ref_for: !0 }, ar(n)))]),
3186
3210
  key: "1"
3187
3211
  } : void 0,
3188
- U(V)["group-title"] ? {
3212
+ G(I)["group-title"] ? {
3189
3213
  name: "title",
3190
- fn: G(() => [R(a.$slots, "group-title", k({ ref_for: !0 }, ar(o)))]),
3214
+ fn: q(() => [V(t.$slots, "group-title", M({ ref_for: !0 }, ar(n)))]),
3191
3215
  key: "2"
3192
3216
  } : void 0,
3193
- U(V)["group-actions"] ? {
3217
+ G(I)["group-actions"] ? {
3194
3218
  name: "actions",
3195
- fn: G(() => [R(a.$slots, "group-actions", k({ ref_for: !0 }, ar(o)))]),
3219
+ fn: q(() => [V(t.$slots, "group-actions", M({ ref_for: !0 }, ar(n)))]),
3196
3220
  key: "3"
3197
3221
  } : void 0
3198
3222
  ]), 1032, [
@@ -3216,29 +3240,29 @@ var J = /* @__PURE__ */ function(e) {
3216
3240
  "onToggle",
3217
3241
  "onRowClick",
3218
3242
  "onMenuOpen"
3219
- ])) : o && o.kind === U(Q).DEPTH_FOOTER ? (F(), v(He, {
3243
+ ])) : n && n.kind === G(Q).DEPTH_FOOTER ? (R(), x(Ke, {
3220
3244
  key: 2,
3221
- class: j(["s-ui-table__depth-footer-row", {
3245
+ class: P(["s-ui-table__depth-footer-row", {
3222
3246
  "s-ui-table__depth-footer-row--stuck": p,
3223
3247
  "s-ui-table__depth-footer-row--stuck-leaving": m,
3224
3248
  "s-ui-table__depth-footer-row--stuck-sliding": h,
3225
- "s-ui-table__depth-footer-row--stuck-covered": _ !== void 0,
3226
- "s-ui-table__depth-footer-row--stuck-covered-far": T
3249
+ "s-ui-table__depth-footer-row--stuck-covered": g !== void 0,
3250
+ "s-ui-table__depth-footer-row--stuck-covered-far": _
3227
3251
  }]),
3228
- style: M(rn(_)),
3229
- "data-index": o.index,
3230
- "aria-rowindex": o.index + 2,
3231
- cells: U(X),
3232
- "content-column-key": U(xn),
3252
+ style: F(tn(g)),
3253
+ "data-index": n.index,
3254
+ "aria-rowindex": n.index + 2,
3255
+ cells: G(ke),
3256
+ "content-column-key": G(ln),
3233
3257
  "cell-class": "s-ui-table__depth-footer-cell",
3234
3258
  "content-class": "s-ui-table__depth-footer-content",
3235
- "content-style": U(On)(o.depth),
3236
- section: U($).BODY,
3237
- "row-key": o.key,
3259
+ "content-style": G(On)(n.depth),
3260
+ section: G($).BODY,
3261
+ "row-key": n.key,
3238
3262
  "cell-id-prefix": hr,
3239
- "focus-column-key": _r(o.key)
3263
+ "focus-column-key": _r(n.key)
3240
3264
  }, {
3241
- default: G(() => [R(a.$slots, "depth-footer", k({ ref_for: !0 }, U(Qn)(o)))]),
3265
+ default: q(() => [V(t.$slots, "depth-footer", M({ ref_for: !0 }, G(An)(n)))]),
3242
3266
  _: 2
3243
3267
  }, 1032, [
3244
3268
  "class",
@@ -3251,29 +3275,29 @@ var J = /* @__PURE__ */ function(e) {
3251
3275
  "section",
3252
3276
  "row-key",
3253
3277
  "focus-column-key"
3254
- ])) : o && o.kind === U(Q).LOAD_MORE ? (F(), v(He, {
3278
+ ])) : n && n.kind === G(Q).LOAD_MORE ? (R(), x(Ke, {
3255
3279
  key: 3,
3256
3280
  class: "s-ui-table__load-more-row",
3257
- "data-index": o.index,
3258
- "aria-rowindex": o.index + 2,
3259
- cells: U(X),
3260
- "content-column-key": U(wn),
3281
+ "data-index": n.index,
3282
+ "aria-rowindex": n.index + 2,
3283
+ cells: G(ke),
3284
+ "content-column-key": G(pn),
3261
3285
  "content-class": "s-ui-table__load-more-content",
3262
- "content-style": U(On)(o.depth),
3263
- section: U($).BODY,
3264
- "row-key": o.key,
3286
+ "content-style": G(On)(n.depth),
3287
+ section: G($).BODY,
3288
+ "row-key": n.key,
3265
3289
  "cell-id-prefix": hr,
3266
- "focus-column-key": _r(o.key)
3290
+ "focus-column-key": _r(n.key)
3267
3291
  }, {
3268
- default: G(() => [R(a.$slots, "load-more", k({ ref_for: !0 }, U(tr)(o)), () => [w(U(r), {
3269
- appearance: U(t).BARE,
3270
- variant: U(e).NEUTRAL,
3271
- size: U(n).SMALL,
3272
- loading: U($n)(o),
3292
+ default: q(() => [V(t.$slots, "load-more", M({ ref_for: !0 }, G(Nn)(n)), () => [D(G(o), {
3293
+ appearance: G(i).BARE,
3294
+ variant: G(r).NEUTRAL,
3295
+ size: G(a).SMALL,
3296
+ loading: G(jn)(n),
3273
3297
  tabindex: "-1",
3274
- onClick: (e) => U(er)(o)
3298
+ onClick: (e) => G(Mn)(n)
3275
3299
  }, {
3276
- default: G(() => [C(B(U(H)("table.loadMore")), 1)]),
3300
+ default: q(() => [E(U(G(L)("table.loadMore")), 1)]),
3277
3301
  _: 1
3278
3302
  }, 8, [
3279
3303
  "appearance",
@@ -3292,125 +3316,102 @@ var J = /* @__PURE__ */ function(e) {
3292
3316
  "section",
3293
3317
  "row-key",
3294
3318
  "focus-column-key"
3295
- ])) : o && D ? (F(), v(Ot, {
3319
+ ])) : n && v ? (R(), x(Mt, {
3296
3320
  key: 4,
3297
- "row-index": o.index,
3298
- "row-key": o.key,
3299
- cells: U(X),
3300
- "row-height": u
3321
+ "row-index": n.index,
3322
+ "row-key": n.key,
3323
+ cells: G(ke),
3324
+ "row-height": d
3301
3325
  }, null, 8, [
3302
3326
  "row-index",
3303
3327
  "row-key",
3304
3328
  "cells",
3305
3329
  "row-height"
3306
- ])) : o ? (F(), v(Xt, {
3330
+ ])) : n ? (R(), x(rn, {
3307
3331
  key: 5,
3308
- row: o,
3309
- "row-index": o.index,
3310
- "row-expanded": o.expanded,
3311
- "leading-plans": U(Y),
3312
- "trailing-plans": U(Oe),
3313
- "dnd-ref": i.rowsDraggable ? gt : void 0,
3314
- dragging: U(pt) === o.key,
3315
- "drop-position": _t(o.key),
3316
- "placeholder-height": u,
3317
- "dom-id": vn(o.key),
3318
- selected: Zt(o.key),
3319
- indeterminate: Qt(o.key),
3320
- "row-selectable": i.selectable && U(Jt).isNodeSelectable(o.key),
3321
- active: d.value === o.key,
3322
- disabled: tn(o),
3323
- "tree-indent": i.treeIndent,
3324
- "row-state": i.rowState?.(o.item),
3325
- "extra-row-class": i.rowClass?.(o.item, o),
3332
+ row: n,
3333
+ "row-index": n.index,
3334
+ "row-expanded": n.expanded,
3335
+ "leading-plans": G(Oe),
3336
+ "trailing-plans": G(Y),
3337
+ "dnd-ref": e.rowsDraggable ? ht : void 0,
3338
+ dragging: G(pt) === n.key,
3339
+ "drop-position": gt(n.key),
3340
+ "placeholder-height": d,
3341
+ "dom-id": on(n.key),
3342
+ selected: Xt(n.key),
3343
+ indeterminate: Zt(n.key),
3344
+ "row-selectable": e.selectable && G(Jt).isNodeSelectable(n.key),
3345
+ active: s.value === n.key,
3346
+ disabled: $t(n),
3347
+ "tree-indent": e.treeIndent,
3348
+ "row-state": e.rowState?.(n.item),
3349
+ "row-color": e.rowColor?.(n.item, n),
3350
+ "extra-row-class": e.rowClass?.(n.item, n),
3351
+ "extra-row-style": e.rowStyle?.(n.item, n),
3326
3352
  "cell-id-prefix": hr,
3327
- "focus-column-key": _r(o.key),
3328
- onRowClick: (e) => or(o, e),
3329
- onRowContextMenu: (e) => sr(o, e),
3330
- onCellClick: (e, t) => lr(o, e, t),
3331
- onToggleExpand: (e) => U(xe)(o.key),
3332
- onToggleSelected: (e) => en(o.key)
3333
- }, S({ _: 2 }, [
3334
- L(gn.value, (e) => ({
3353
+ "focus-column-key": _r(n.key),
3354
+ onRowClick: (e) => or(n, e),
3355
+ onRowContextMenu: (e) => sr(n, e),
3356
+ onCellClick: (e, t) => lr(n, e, t),
3357
+ onToggleExpand: (e) => G(be)(n.key),
3358
+ onToggleSelected: (e) => Qt(n.key)
3359
+ }, T({ _: 2 }, [
3360
+ B(an.value, (e) => ({
3335
3361
  name: e,
3336
- fn: G((t) => [R(a.$slots, e, k({ ref_for: !0 }, t))])
3362
+ fn: q((n) => [V(t.$slots, e, M({ ref_for: !0 }, n))])
3337
3363
  })),
3338
- U(V).chevron ? {
3364
+ G(I).chevron ? {
3339
3365
  name: "chevron",
3340
- fn: G((e) => [R(a.$slots, "chevron", k({ ref_for: !0 }, e))]),
3366
+ fn: q((e) => [V(t.$slots, "chevron", M({ ref_for: !0 }, e))]),
3341
3367
  key: "0"
3342
3368
  } : void 0,
3343
- U(V)["cell-actions"] ? {
3369
+ G(I)["cell-actions"] ? {
3344
3370
  name: "cell-actions",
3345
- fn: G((e) => [R(a.$slots, "cell-actions", k({ ref_for: !0 }, e))]),
3371
+ fn: q((e) => [V(t.$slots, "cell-actions", M({ ref_for: !0 }, e))]),
3346
3372
  key: "1"
3347
3373
  } : void 0,
3348
- U(V).indicator ? {
3374
+ G(I).indicator ? {
3349
3375
  name: "indicator",
3350
- fn: G((e) => [R(a.$slots, "indicator", k({ ref_for: !0 }, e))]),
3376
+ fn: q((e) => [V(t.$slots, "indicator", M({ ref_for: !0 }, e))]),
3351
3377
  key: "2"
3352
3378
  } : void 0,
3353
- U(V).checkbox ? {
3379
+ G(I).checkbox ? {
3354
3380
  name: "checkbox",
3355
- fn: G((e) => [R(a.$slots, "checkbox", k({ ref_for: !0 }, e))]),
3381
+ fn: q((e) => [V(t.$slots, "checkbox", M({ ref_for: !0 }, e))]),
3356
3382
  key: "3"
3357
3383
  } : void 0,
3358
- U(V)["right-edge"] ? {
3384
+ G(I)["right-edge"] ? {
3359
3385
  name: "right-edge",
3360
- fn: G((e) => [R(a.$slots, "right-edge", k({ ref_for: !0 }, e))]),
3386
+ fn: q((e) => [V(t.$slots, "right-edge", M({ ref_for: !0 }, e))]),
3361
3387
  key: "4"
3362
3388
  } : void 0
3363
- ]), 1032, [
3364
- "row",
3365
- "row-index",
3366
- "row-expanded",
3367
- "leading-plans",
3368
- "trailing-plans",
3369
- "dnd-ref",
3370
- "dragging",
3371
- "drop-position",
3372
- "placeholder-height",
3373
- "dom-id",
3374
- "selected",
3375
- "indeterminate",
3376
- "row-selectable",
3377
- "active",
3378
- "disabled",
3379
- "tree-indent",
3380
- "row-state",
3381
- "extra-row-class",
3382
- "focus-column-key",
3383
- "onRowClick",
3384
- "onRowContextMenu",
3385
- "onCellClick",
3386
- "onToggleExpand",
3387
- "onToggleSelected"
3388
- ])) : y("", !0)], 64));
3389
- return ee.memo = z, ee;
3390
- }, l, 3), 128)),
3391
- i.loadingMore && !i.loading ? (F(!0), b(g, { key: 3 }, L(Math.min(3, i.skeletonRowCount), (e) => (F(), v($t, {
3389
+ ]), 1032, /* @__PURE__ */ "row.row-index.row-expanded.leading-plans.trailing-plans.dnd-ref.dragging.drop-position.placeholder-height.dom-id.selected.indeterminate.row-selectable.active.disabled.tree-indent.row-state.row-color.extra-row-class.extra-row-style.focus-column-key.onRowClick.onRowContextMenu.onCellClick.onToggleExpand.onToggleSelected".split("."))) : S("", !0)], 64));
3390
+ return H.memo = z, H;
3391
+ }, n, 3), 128)),
3392
+ e.loadingMore && !e.loading ? (R(!0), C(y, { key: 3 }, B(Math.min(3, e.skeletonRowCount), (e) => (R(), x(sn, {
3392
3393
  key: `skeleton-more-${e}`,
3393
- "leading-plans": U(Y),
3394
- "trailing-plans": U(Oe)
3395
- }, S({ _: 2 }, [U(V)["skeleton-row"] ? {
3394
+ "leading-plans": G(Oe),
3395
+ "trailing-plans": G(Y)
3396
+ }, T({ _: 2 }, [G(I)["skeleton-row"] ? {
3396
3397
  name: "default",
3397
- fn: G((e) => [R(a.$slots, "skeleton-row", { column: e.descriptor.column })]),
3398
+ fn: q((e) => [V(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
3398
3399
  key: "0"
3399
- } : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : y("", !0)
3400
+ } : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : S("", !0)
3400
3401
  ]),
3401
- i.creationRow || i.footerValues ? (F(), b("tfoot", Kn, [i.creationRow ? (F(), v(He, {
3402
+ e.creationRow || e.footerValues ? (R(), C("tfoot", $n, [e.creationRow ? (R(), x(Ke, {
3402
3403
  key: 0,
3403
3404
  class: "s-ui-table__create-row",
3404
- "aria-rowindex": U(q).length + 2,
3405
- cells: U(X),
3406
- "content-column-key": U(Cn),
3405
+ "aria-rowindex": G(J).length + 2,
3406
+ cells: G(ke),
3407
+ "content-column-key": G(dn),
3407
3408
  "cell-class": "s-ui-table__create-cell",
3408
3409
  "content-class": "s-ui-table__create-content",
3409
- section: U($).CREATION,
3410
+ section: G($).CREATION,
3410
3411
  "cell-id-prefix": gr,
3411
- "focus-column-key": vr(U($).CREATION)
3412
+ "focus-column-key": vr(G($).CREATION)
3412
3413
  }, {
3413
- default: G(() => [R(a.$slots, "creation-row")]),
3414
+ default: q(() => [V(t.$slots, "creation-row")]),
3414
3415
  _: 3
3415
3416
  }, 8, [
3416
3417
  "aria-rowindex",
@@ -3418,33 +3419,33 @@ var J = /* @__PURE__ */ function(e) {
3418
3419
  "content-column-key",
3419
3420
  "section",
3420
3421
  "focus-column-key"
3421
- ])) : y("", !0), i.footerValues ? (F(), b("tr", {
3422
+ ])) : S("", !0), e.footerValues ? (R(), C("tr", {
3422
3423
  key: 1,
3423
3424
  class: "s-ui-table__aggregate-row",
3424
- "aria-rowindex": U(q).length + 2 + +!!i.creationRow
3425
- }, [(F(!0), b(g, null, L(U(X), ({ key: e, cellPlan: t }) => (F(), b(g, { key: e }, [t ? (F(), b("td", {
3425
+ "aria-rowindex": G(J).length + 2 + +!!e.creationRow
3426
+ }, [(R(!0), C(y, null, B(G(ke), ({ key: e, cellPlan: n }) => (R(), C(y, { key: e }, [n ? (R(), C("td", {
3426
3427
  key: 1,
3427
3428
  id: pr({
3428
- section: U($).AGGREGATE,
3429
- columnKey: t.descriptor.key
3429
+ section: G($).AGGREGATE,
3430
+ columnKey: n.descriptor.key
3430
3431
  }),
3431
- class: j(["s-ui-table__aggregate-cell", [t.cellClass, U(rr)(t.descriptor.key)]]),
3432
- style: M(t.style),
3433
- "aria-colindex": t.descriptor.colIndex,
3434
- "data-column-key": t.descriptor.key,
3435
- "data-section": U($).AGGREGATE,
3436
- tabindex: yr(U($).AGGREGATE, void 0, t.descriptor.key)
3437
- }, [t.descriptor.column ? (F(), b(g, { key: 0 }, [U(V)[`footer:${t.descriptor.key}`] ? R(a.$slots, `footer:${t.descriptor.key}`, k({
3432
+ class: P(["s-ui-table__aggregate-cell", [n.cellClass, G(Fn)(n.descriptor.key)]]),
3433
+ style: F(n.style),
3434
+ "aria-colindex": n.descriptor.colIndex,
3435
+ "data-column-key": n.descriptor.key,
3436
+ "data-section": G($).AGGREGATE,
3437
+ tabindex: yr(G($).AGGREGATE, void 0, n.descriptor.key)
3438
+ }, [n.descriptor.column ? (R(), C(y, { key: 0 }, [G(I)[`footer:${n.descriptor.key}`] ? V(t.$slots, `footer:${n.descriptor.key}`, M({
3438
3439
  key: 0,
3439
3440
  ref_for: !0
3440
- }, U(ir)(t.descriptor.key))) : (F(), b("span", Xn, B(U(nr)(t.descriptor.key)), 1))], 64)) : y("", !0)], 14, Yn)) : (F(), b("td", Jn))], 64))), 128))], 8, qn)) : y("", !0)])) : y("", !0)
3441
- ], 44, An)], 4), U(ut) ? (F(), b("div", {
3441
+ }, G(ir)(n.descriptor.key))) : (R(), C("span", rr, U(G(Pn)(n.descriptor.key)), 1))], 64)) : S("", !0)], 14, nr)) : (R(), C("td", tr))], 64))), 128))], 8, er)) : S("", !0)])) : S("", !0)
3442
+ ], 44, Ln)], 4), G(lt) ? (R(), C("div", {
3442
3443
  key: 0,
3443
3444
  class: "s-ui-table__column-drop-line",
3444
- style: M(U(ut)),
3445
+ style: F(G(lt)),
3445
3446
  "aria-hidden": "true"
3446
- }, null, 4)) : y("", !0)], 6));
3447
+ }, null, 4)) : S("", !0)], 6));
3447
3448
  }
3448
3449
  });
3449
3450
  //#endregion
3450
- export { J as a, ke as c, Ae as d, Y as f, De as i, Q as l, X as n, je as o, Z as r, Me as s, Zn as t, Oe as u };
3451
+ export { Y as a, je as c, Ae as d, Pe as f, ke as i, Ne as l, Me as n, Fe as o, X as p, Z as r, Ie as s, ir as t, Q as u };