@shtabapp/ui-kit 1.71.0 → 1.72.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.
- package/CHANGELOG.md +19 -0
- package/dist/{SColorPicker-BmaA5Xnp.js → SColorPicker-BjtlrGHZ.js} +3 -3
- package/dist/{SColorPicker-D7mTRL7K.cjs → SColorPicker-Ct8FVU0D.cjs} +1 -1
- package/dist/SDropdown-B8Z4oNMk.cjs +1 -0
- package/dist/SDropdown-cNmJ5Lrz.js +400 -0
- package/dist/SSelect-mnobObXO.cjs +1 -0
- package/dist/{SSelect-DUtNtnqM.js → SSelect-rpJCD5PL.js} +22 -19
- package/dist/{STable-CunQFK-x.js → STable-DjJYfejr.js} +692 -674
- package/dist/STable-yU2XUABP.cjs +1 -0
- package/dist/components/SBanner/SBanner.types.d.ts +2 -0
- package/dist/components/SBanner/SBanner.types.d.ts.map +1 -1
- package/dist/components/SBanner/SBanner.vue.d.ts.map +1 -1
- package/dist/components/SDropdown/SDropdown.types.d.ts +4 -4
- package/dist/components/SDropdown/SDropdown.types.d.ts.map +1 -1
- package/dist/components/SDropdown/SDropdown.vue.d.ts +8 -8
- package/dist/components/SDropdown/SDropdown.vue.d.ts.map +1 -1
- package/dist/components/SDropdown/parts/SDropdownSheet.types.d.ts +2 -0
- package/dist/components/SDropdown/parts/SDropdownSheet.types.d.ts.map +1 -1
- package/dist/components/SDropdown/parts/SDropdownSheet.vue.d.ts +3 -1
- package/dist/components/SDropdown/parts/SDropdownSheet.vue.d.ts.map +1 -1
- package/dist/components/SDropdown/utils/context.d.ts +13 -0
- package/dist/components/SDropdown/utils/context.d.ts.map +1 -0
- package/dist/components/SDropdown/utils/useDropdownTree.d.ts +18 -0
- package/dist/components/SDropdown/utils/useDropdownTree.d.ts.map +1 -0
- package/dist/components/SNotification/SNotification.types.d.ts +2 -0
- package/dist/components/SNotification/SNotification.types.d.ts.map +1 -1
- package/dist/components/SNotification/SNotification.vue.d.ts.map +1 -1
- package/dist/components/SSelect/SSelect.vue.d.ts.map +1 -1
- package/dist/components/STable/STable.types.d.ts +12 -0
- package/dist/components/STable/STable.types.d.ts.map +1 -1
- package/dist/components/STable/STable.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableHeaderCell.vue.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableRowDnd.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableStickyRows.d.ts +2 -1
- package/dist/components/STable/utils/useTableStickyRows.d.ts.map +1 -1
- package/dist/components/STag/STag.types.d.ts +1 -1
- package/dist/components/STag/STag.types.d.ts.map +1 -1
- package/dist/composables/connectedPosition/computeConnectedPosition.d.ts.map +1 -1
- package/dist/composables/connectedPosition/getOverflow.d.ts +1 -0
- package/dist/composables/connectedPosition/getOverflow.d.ts.map +1 -1
- package/dist/composables/useEscapeDismiss.d.ts +15 -0
- package/dist/composables/useEscapeDismiss.d.ts.map +1 -0
- package/dist/composables/useFloatingOverlay.d.ts +4 -0
- package/dist/composables/useFloatingOverlay.d.ts.map +1 -1
- package/dist/entries/color-picker.cjs +1 -1
- package/dist/entries/color-picker.js +1 -1
- package/dist/entries/composables.cjs +1 -1
- package/dist/entries/composables.js +2 -2
- package/dist/entries/dropdown.cjs +1 -1
- package/dist/entries/dropdown.js +2 -2
- package/dist/entries/select.cjs +1 -1
- package/dist/entries/select.js +1 -1
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +221 -193
- package/dist/uikit-components.css +1 -1
- package/dist/useFloatingOverlay-CwGCMrig.cjs +1 -0
- package/dist/{useFloatingOverlay-b9_eDGNE.js → useFloatingOverlay-TxzVisMJ.js} +89 -86
- package/package.json +3 -3
- package/dist/SDropdown-BdgpPzfl.cjs +0 -1
- package/dist/SDropdown-xNcC6JDy.js +0 -362
- package/dist/SSelect-Coyrc99Y.cjs +0 -1
- package/dist/STable-Ch7thYCy.cjs +0 -1
- package/dist/useFloatingOverlay-Dp44TxvN.cjs +0 -1
|
@@ -2,27 +2,27 @@ import { n as e, t } from "./contrastSurfaceTextColor-BDlLSSXC.js";
|
|
|
2
2
|
import { t as n } from "./colorValue-CSh0chxp.js";
|
|
3
3
|
import { i as r, n as i, r as a, t as o } from "./SButton-LAOBxpd4.js";
|
|
4
4
|
import { i as s, t as c } from "./SCheckbox-BMkOc5cn.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as u } from "./SDropdown-
|
|
5
|
+
import { s as l } from "./useFloatingOverlay-TxzVisMJ.js";
|
|
6
|
+
import { t as u } from "./SDropdown-cNmJ5Lrz.js";
|
|
7
7
|
import { t as d } from "./SDropdownMenu-2koPU6IG.js";
|
|
8
8
|
import { a as f, o as p, r as m } from "./treeKeyboardNavigation-SmxTdnDz.js";
|
|
9
9
|
import { t as h } from "./SListItem-BOSQGRWA.js";
|
|
10
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
|
|
12
|
-
import { ESSkeletonType as
|
|
13
|
-
import { tryOnScopeDispose as
|
|
14
|
-
import { elementScroll as
|
|
15
|
-
import { combine as
|
|
16
|
-
import { draggable as
|
|
17
|
-
import { setCustomNativeDragPreview as
|
|
18
|
-
import { pointerOutsideOfPreview as
|
|
19
|
-
import { attachClosestEdge as
|
|
20
|
-
import { disableNativeDragPreview as
|
|
21
|
-
import { autoScrollForElements as
|
|
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 ee, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as I, openBlock as L, ref as R, renderList as z, renderSlot as B, shallowRef as V, toDisplayString as H, toRaw as te, toValue as U, unref as W, useId as ne, useModel as re, useSlots as ie, useTemplateRef as ae, watch as G, withCtx as K, withModifiers as oe } from "vue";
|
|
12
|
+
import { ESSkeletonType as se, SIcon as ce, SSeparator as le, SSkeleton as ue, useUiKitI18n as de } from "@shtabapp/ui-kit-primitives";
|
|
13
|
+
import { tryOnScopeDispose as fe, useElementSize as pe, useEventListener as me, useRafFn as he, useResizeObserver as ge, useTimeoutFn as _e } from "@vueuse/core";
|
|
14
|
+
import { elementScroll as ve, observeElementOffset as ye, useVirtualizer as be } from "@tanstack/vue-virtual";
|
|
15
|
+
import { combine as q } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
16
|
+
import { draggable as xe, dropTargetForElements as Se, monitorForElements as Ce } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
|
17
|
+
import { setCustomNativeDragPreview as we } from "@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview";
|
|
18
|
+
import { pointerOutsideOfPreview as Te } from "@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview";
|
|
19
|
+
import { attachClosestEdge as Ee, extractClosestEdge as De } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
|
|
20
|
+
import { disableNativeDragPreview as Oe } from "@atlaskit/pragmatic-drag-and-drop/element/disable-native-drag-preview";
|
|
21
|
+
import { autoScrollForElements as ke } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element";
|
|
22
22
|
//#region src/components/STable/STable.types.ts
|
|
23
|
-
var
|
|
23
|
+
var J = /* @__PURE__ */ function(e) {
|
|
24
24
|
return e.LEFT = "left", e.RIGHT = "right", e;
|
|
25
|
-
}({}),
|
|
25
|
+
}({}), Y = /* @__PURE__ */ function(e) {
|
|
26
26
|
return e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e;
|
|
27
27
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
28
28
|
return e.ASC = "asc", e.DESC = "desc", e;
|
|
@@ -61,20 +61,20 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
61
61
|
}),
|
|
62
62
|
emits: ["update:modelValue"],
|
|
63
63
|
setup(e) {
|
|
64
|
-
let t =
|
|
65
|
-
return
|
|
64
|
+
let t = re(e, "modelValue"), n = ae("checkboxRef");
|
|
65
|
+
return G([n, () => e.screenReaderLabel], () => {
|
|
66
66
|
let t = n.value?.$el, r = t instanceof HTMLElement ? t.querySelector("input") : void 0;
|
|
67
67
|
r && (r.tabIndex = -1, r.setAttribute("aria-label", e.screenReaderLabel));
|
|
68
68
|
}, {
|
|
69
69
|
immediate: !0,
|
|
70
70
|
flush: "post"
|
|
71
|
-
}), (r, i) => (
|
|
71
|
+
}), (r, i) => (L(), x(W(c), {
|
|
72
72
|
ref_key: "checkboxRef",
|
|
73
73
|
ref: n,
|
|
74
74
|
modelValue: t.value,
|
|
75
75
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e,
|
|
76
76
|
indeterminate: e.indeterminate,
|
|
77
|
-
size:
|
|
77
|
+
size: W(s).EXTRA_SMALL
|
|
78
78
|
}, null, 8, [
|
|
79
79
|
"modelValue",
|
|
80
80
|
"indeterminate",
|
|
@@ -102,23 +102,23 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
102
102
|
focusColumnKey: {}
|
|
103
103
|
},
|
|
104
104
|
setup(e) {
|
|
105
|
-
return (t, n) => (
|
|
105
|
+
return (t, n) => (L(), C("tr", null, [(L(!0), C(y, null, z(e.cells, ({ key: n, cellPlan: r }) => (L(), C(y, { key: n }, [r ? (L(), C("td", {
|
|
106
106
|
key: 1,
|
|
107
107
|
id: `${e.cellIdPrefix}${e.rowKey ?? ""}-${r.descriptor.key}`,
|
|
108
|
-
class:
|
|
109
|
-
style:
|
|
108
|
+
class: N([r.cellClass, e.cellClass]),
|
|
109
|
+
style: P(r.style),
|
|
110
110
|
"aria-colindex": r.descriptor.colIndex,
|
|
111
111
|
"data-column-key": r.descriptor.key,
|
|
112
112
|
"data-row-key": e.rowKey,
|
|
113
113
|
"data-section": e.section,
|
|
114
114
|
tabindex: r.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
115
|
-
}, [r.descriptor.key === e.contentColumnKey ? (
|
|
115
|
+
}, [r.descriptor.key === e.contentColumnKey ? (L(), C("div", {
|
|
116
116
|
key: 0,
|
|
117
|
-
class:
|
|
118
|
-
style:
|
|
119
|
-
}, [
|
|
117
|
+
class: N(e.contentClass),
|
|
118
|
+
style: P(e.contentStyle)
|
|
119
|
+
}, [B(t.$slots, "default")], 6)) : S("", !0)], 14, Ge)) : (L(), C("td", {
|
|
120
120
|
key: 0,
|
|
121
|
-
class:
|
|
121
|
+
class: N([
|
|
122
122
|
"s-ui-table__cell",
|
|
123
123
|
"s-ui-table__filler-cell",
|
|
124
124
|
e.cellClass
|
|
@@ -133,16 +133,16 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
133
133
|
checkbox: "checkbox",
|
|
134
134
|
rightEdge: "right-edge",
|
|
135
135
|
columnsManager: "columns-manager"
|
|
136
|
-
}, Ye = new Set(["rightEdge", "columnsManager"]), Xe = (e) => Ye.has(e) ?
|
|
136
|
+
}, Ye = new Set(["rightEdge", "columnsManager"]), Xe = (e) => Ye.has(e) ? J.RIGHT : J.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) => {
|
|
137
137
|
let r = e.reduce((e, t) => e + t.baseWidth, 0), i = 0;
|
|
138
138
|
return e.forEach((a, o) => {
|
|
139
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));
|
|
140
140
|
n.set(a.key, c + l), i += l;
|
|
141
141
|
}), t - i;
|
|
142
142
|
}, it = (e) => e ? 430 : 160, at = (e) => {
|
|
143
|
-
let t = e.filter((e) => e.sticky ===
|
|
143
|
+
let t = e.filter((e) => e.sticky === J.LEFT), n = t[t.length - 1];
|
|
144
144
|
n && (n.lastStickyLeft = !0);
|
|
145
|
-
let r = e.find((e) => e.sticky ===
|
|
145
|
+
let r = e.find((e) => e.sticky === J.RIGHT);
|
|
146
146
|
r && (r.firstStickyRight = !0);
|
|
147
147
|
}, ot = (e, t) => {
|
|
148
148
|
let n = /* @__PURE__ */ new Map(), r = t;
|
|
@@ -165,10 +165,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
165
165
|
});
|
|
166
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
167
|
let d = b(() => {
|
|
168
|
-
let t =
|
|
168
|
+
let t = U(e);
|
|
169
169
|
return t.find((e) => e.primary)?.key ?? t[0]?.key;
|
|
170
170
|
}), f = b(() => {
|
|
171
|
-
let n =
|
|
171
|
+
let n = U(e), i = new Set(r.value ?? []), a = t.value, o = new Map(n.map((e) => [e.key, e])), s = [];
|
|
172
172
|
a ? (a.forEach((e) => {
|
|
173
173
|
o.has(e) && s.push(e);
|
|
174
174
|
}), n.forEach((e) => {
|
|
@@ -183,7 +183,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
183
183
|
});
|
|
184
184
|
let l = [], u = [], f = [], p = [];
|
|
185
185
|
return c.forEach((e) => {
|
|
186
|
-
e.key === d.value ? l.push(e) : e.sticky ===
|
|
186
|
+
e.key === d.value ? l.push(e) : e.sticky === J.LEFT ? u.push(e) : e.sticky === J.RIGHT ? p.push(e) : f.push(e);
|
|
187
187
|
}), [
|
|
188
188
|
...l,
|
|
189
189
|
...u,
|
|
@@ -200,12 +200,12 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
200
200
|
flexible: !1
|
|
201
201
|
} : {
|
|
202
202
|
baseWidth: it(t),
|
|
203
|
-
flexible: e.sticky !==
|
|
203
|
+
flexible: e.sticky !== J.RIGHT
|
|
204
204
|
};
|
|
205
205
|
}, m = (e) => {
|
|
206
|
-
|
|
206
|
+
U(o) && e("rightEdge", 40), U(s) && e("columnsManager", 32);
|
|
207
207
|
}, h = b(() => {
|
|
208
|
-
let e = [], t =
|
|
208
|
+
let e = [], t = U(c), n = U(l), r = (t, n) => {
|
|
209
209
|
let r = Xe(t);
|
|
210
210
|
e.push({
|
|
211
211
|
key: `__s-ui-table-${t}`,
|
|
@@ -216,7 +216,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
216
216
|
minWidth: n,
|
|
217
217
|
maxWidth: n,
|
|
218
218
|
sticky: r,
|
|
219
|
-
align:
|
|
219
|
+
align: Y.LEFT,
|
|
220
220
|
primary: !1,
|
|
221
221
|
resizable: !1,
|
|
222
222
|
draggable: !1,
|
|
@@ -231,8 +231,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
231
231
|
firstStickyRight: !1
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
|
-
|
|
235
|
-
let i = r.key === d.value, a = i ?
|
|
234
|
+
U(i) && r("indicator", 2), U(a) && r("checkbox", 24), f.value.forEach((r) => {
|
|
235
|
+
let i = r.key === d.value, a = i ? J.LEFT : r.sticky, { baseWidth: o, flexible: s } = p(r, i);
|
|
236
236
|
e.push({
|
|
237
237
|
key: r.key,
|
|
238
238
|
column: r,
|
|
@@ -242,7 +242,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
242
242
|
minWidth: r.minWidth ?? 60,
|
|
243
243
|
maxWidth: r.maxWidth,
|
|
244
244
|
sticky: a,
|
|
245
|
-
align: r.align ??
|
|
245
|
+
align: r.align ?? Y.LEFT,
|
|
246
246
|
primary: i,
|
|
247
247
|
resizable: t && (r.resizable ?? !0),
|
|
248
248
|
draggable: n && !i && (r.draggable ?? !0),
|
|
@@ -259,18 +259,18 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
259
259
|
}), m(r);
|
|
260
260
|
let o = 0;
|
|
261
261
|
return e.forEach((e) => {
|
|
262
|
-
e.sticky !==
|
|
262
|
+
e.sticky !== J.RIGHT && (o += 1, e.colIndex = o);
|
|
263
263
|
}), e.forEach((e) => {
|
|
264
|
-
e.sticky ===
|
|
264
|
+
e.sticky === J.RIGHT && (o += 1, e.colIndex = o);
|
|
265
265
|
}), at(e), e;
|
|
266
|
-
}), g = b(() => st(h.value,
|
|
266
|
+
}), g = b(() => st(h.value, U(u))), _ = b(() => g.value.reduce((e, t) => e + t.width, 0)), v = b(() => {
|
|
267
267
|
let e = {}, t = 0;
|
|
268
268
|
g.value.forEach((n) => {
|
|
269
|
-
e[n.widthVar] = `${n.width}px`, n.sticky ===
|
|
269
|
+
e[n.widthVar] = `${n.width}px`, n.sticky === J.LEFT && n.stickyOffsetVar && (e[n.stickyOffsetVar] = `${t}px`, t += n.width);
|
|
270
270
|
});
|
|
271
271
|
let n = 0;
|
|
272
272
|
return [...g.value].reverse().forEach((t) => {
|
|
273
|
-
t.sticky ===
|
|
273
|
+
t.sticky === J.RIGHT && t.stickyOffsetVar && (e[t.stickyOffsetVar] = `${n}px`, n += t.width);
|
|
274
274
|
}), e;
|
|
275
275
|
});
|
|
276
276
|
return {
|
|
@@ -285,7 +285,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
285
285
|
}, $ = /* @__PURE__ */ function(e) {
|
|
286
286
|
return e.HEADER = "h", e.BODY = "b", e.CREATION = "c", e.AGGREGATE = "a", e;
|
|
287
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 _ =
|
|
288
|
+
let _ = V(), v = V(), y = V(!1), x = V(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) => {
|
|
289
289
|
if (!e) return;
|
|
290
290
|
let t = a.value.getRowIndexByKey(e);
|
|
291
291
|
return t === void 0 ? void 0 : i.value[t];
|
|
@@ -293,18 +293,18 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
293
293
|
if (e.kind === Q.ROW) return C.value;
|
|
294
294
|
let t = {
|
|
295
295
|
[Q.ROW]: void 0,
|
|
296
|
-
[Q.GROUP]:
|
|
297
|
-
[Q.DEPTH_FOOTER]:
|
|
298
|
-
[Q.LOAD_MORE]:
|
|
296
|
+
[Q.GROUP]: U(o),
|
|
297
|
+
[Q.DEPTH_FOOTER]: U(s),
|
|
298
|
+
[Q.LOAD_MORE]: U(c)
|
|
299
299
|
}[e.kind];
|
|
300
300
|
return t ? [t] : [];
|
|
301
301
|
}, E = (e) => {
|
|
302
302
|
if (e.section === "h") return S.value;
|
|
303
303
|
if (e.section === "c") {
|
|
304
|
-
let e =
|
|
305
|
-
return
|
|
304
|
+
let e = U(l);
|
|
305
|
+
return U(u) && e ? [e] : [];
|
|
306
306
|
}
|
|
307
|
-
if (e.section === "a") return
|
|
307
|
+
if (e.section === "a") return U(d) ? C.value : [];
|
|
308
308
|
let t = w(e.rowKey);
|
|
309
309
|
return t && f(t) ? T(t) : [];
|
|
310
310
|
}, D = (e, t) => {
|
|
@@ -327,13 +327,13 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
327
327
|
...e,
|
|
328
328
|
columnKey: D(t, e.columnKey)
|
|
329
329
|
};
|
|
330
|
-
}), A = b(() => i.value.length), j = b(() => A.value + +!!
|
|
330
|
+
}), A = b(() => i.value.length), j = b(() => A.value + +!!U(u) + +!!U(d)), M = (e) => {
|
|
331
331
|
if (e.section === "h") return 0;
|
|
332
332
|
if (e.section === "c") return A.value + 1;
|
|
333
|
-
if (e.section === "a") return A.value + 1 + +!!
|
|
333
|
+
if (e.section === "a") return A.value + 1 + +!!U(u);
|
|
334
334
|
let t = e.rowKey === void 0 ? void 0 : a.value.getRowIndexByKey(e.rowKey);
|
|
335
335
|
return t === void 0 ? void 0 : t + 1;
|
|
336
|
-
},
|
|
336
|
+
}, N = (e, t) => {
|
|
337
337
|
if (e <= 0) return {
|
|
338
338
|
section: "h",
|
|
339
339
|
columnKey: D(S.value, t)
|
|
@@ -348,26 +348,26 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
348
348
|
columnKey: D(r, t)
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
if (
|
|
352
|
-
let e =
|
|
351
|
+
if (U(u) && e === A.value + 1) {
|
|
352
|
+
let e = U(l);
|
|
353
353
|
return e ? {
|
|
354
354
|
section: "c",
|
|
355
355
|
columnKey: e
|
|
356
356
|
} : void 0;
|
|
357
357
|
}
|
|
358
|
-
if (
|
|
358
|
+
if (U(d) && e === j.value) return {
|
|
359
359
|
section: "a",
|
|
360
360
|
columnKey: D(S.value, t)
|
|
361
361
|
};
|
|
362
|
-
},
|
|
362
|
+
}, P = (e, t) => {
|
|
363
363
|
let n = e;
|
|
364
364
|
for (; n >= 0 && n <= j.value;) {
|
|
365
|
-
let e =
|
|
365
|
+
let e = N(n, v.value);
|
|
366
366
|
if (e) return e;
|
|
367
367
|
n += t;
|
|
368
368
|
}
|
|
369
|
-
},
|
|
370
|
-
let t = n.value, r =
|
|
369
|
+
}, F = (e) => document.getElementById(m(e)) ?? void 0, I = () => F(k.value), L = () => {
|
|
370
|
+
let t = n.value, r = I();
|
|
371
371
|
if (!t || !r || r.classList.contains("s-ui-table__cell--sticky-left") || r.classList.contains("s-ui-table__cell--sticky-right")) return;
|
|
372
372
|
let i = t.getBoundingClientRect(), a = e.value, o = i.left, s = i.right, c = a?.querySelector("th.s-ui-table__cell--last-sticky-left");
|
|
373
373
|
c && (o = Math.max(o, c.getBoundingClientRect().right));
|
|
@@ -379,72 +379,72 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
379
379
|
return;
|
|
380
380
|
}
|
|
381
381
|
u.right > s && (t.scrollLeft += u.right - s);
|
|
382
|
-
},
|
|
382
|
+
}, R = (e, t) => {
|
|
383
383
|
_.value = e, t && (v.value = e.columnKey);
|
|
384
384
|
let n = M(e);
|
|
385
385
|
n !== void 0 && (x.value = n);
|
|
386
|
-
},
|
|
386
|
+
}, z = (e, t) => {
|
|
387
387
|
let n = E(e), r = n.length > 0 && !n.includes(e.columnKey) ? {
|
|
388
388
|
...e,
|
|
389
389
|
columnKey: D(n, e.columnKey)
|
|
390
390
|
} : e;
|
|
391
|
-
if (
|
|
391
|
+
if (R(r, t?.updateDesired ?? !0), y.value = !1, r.section === "b" && r.rowKey) {
|
|
392
392
|
h(r.rowKey);
|
|
393
393
|
let e = a.value.getRowIndexByKey(r.rowKey);
|
|
394
394
|
(t?.scroll ?? !0) && e !== void 0 && g(e);
|
|
395
395
|
}
|
|
396
|
-
t?.focusElement !== !1 &&
|
|
397
|
-
|
|
396
|
+
t?.focusElement !== !1 && ee(() => {
|
|
397
|
+
I()?.focus({ preventScroll: !0 }), L();
|
|
398
398
|
});
|
|
399
|
-
},
|
|
399
|
+
}, B = (e, t) => {
|
|
400
400
|
let n = k.value;
|
|
401
401
|
if (t !== 0) {
|
|
402
402
|
let e = E(n), r = e[e.indexOf(n.columnKey) + t];
|
|
403
|
-
r &&
|
|
403
|
+
r && z({
|
|
404
404
|
...n,
|
|
405
405
|
columnKey: r
|
|
406
406
|
});
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
if (e === 0) return;
|
|
410
|
-
let r = e > 0 ? 1 : -1, i =
|
|
411
|
-
i &&
|
|
412
|
-
},
|
|
410
|
+
let r = e > 0 ? 1 : -1, i = P((M(n) ?? x.value) + r, r);
|
|
411
|
+
i && z(i, { updateDesired: !1 });
|
|
412
|
+
}, H = (e) => {
|
|
413
413
|
let t = k.value, n = E(t), r = e === "start" ? n[0] : n[n.length - 1];
|
|
414
|
-
r &&
|
|
414
|
+
r && z({
|
|
415
415
|
...t,
|
|
416
416
|
columnKey: r
|
|
417
417
|
});
|
|
418
|
-
},
|
|
419
|
-
let t = e === "first" ?
|
|
418
|
+
}, te = (e) => {
|
|
419
|
+
let t = e === "first" ? P(0, 1) : P(j.value, -1);
|
|
420
420
|
if (!t) return;
|
|
421
421
|
let n = E(t), r = e === "first" ? n[0] : n[n.length - 1];
|
|
422
|
-
|
|
422
|
+
z(r ? {
|
|
423
423
|
...t,
|
|
424
424
|
columnKey: r
|
|
425
425
|
} : t);
|
|
426
|
-
},
|
|
427
|
-
let t = M(k.value) ?? x.value, n = Math.max(1, Math.round(
|
|
428
|
-
i &&
|
|
429
|
-
},
|
|
426
|
+
}, W = (e) => {
|
|
427
|
+
let t = M(k.value) ?? x.value, n = Math.max(1, Math.round(U(p))), r = Math.min(j.value, Math.max(0, t + e * n)), i = P(r, e) ?? P(r, e === 1 ? -1 : 1);
|
|
428
|
+
i && z(i, { updateDesired: !1 });
|
|
429
|
+
}, ne = (e) => {
|
|
430
430
|
let t = [];
|
|
431
431
|
return e.querySelectorAll(lt).forEach((e) => {
|
|
432
432
|
!(e instanceof HTMLElement) || e.offsetParent === null || e.hasAttribute("disabled") || e.closest("[aria-hidden=\"true\"]") || t.push(e);
|
|
433
433
|
}), 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
434
|
}, re = () => {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
435
|
+
let e = I(), t = e ? ne(e)[0] : void 0;
|
|
436
|
+
return t ? (y.value = !0, t.focus(), !0) : !1;
|
|
437
|
+
}, ie = () => {
|
|
438
|
+
y.value = !1, I()?.focus({ preventScroll: !0 });
|
|
439
|
+
}, ae = (e) => {
|
|
440
|
+
let t = I(), n = t ? ne(t) : [];
|
|
441
441
|
if (n.length === 0) return;
|
|
442
442
|
let r = document.activeElement, i = n.findIndex((e) => e === r || r instanceof Node && e.contains(r));
|
|
443
443
|
n[i === -1 ? e === 1 ? 0 : n.length - 1 : (i + e + n.length) % n.length]?.focus();
|
|
444
|
-
},
|
|
444
|
+
}, K = () => {
|
|
445
445
|
let e = k.value, n = E(e);
|
|
446
446
|
if (n.length > 0) {
|
|
447
|
-
|
|
447
|
+
z({
|
|
448
448
|
...e,
|
|
449
449
|
columnKey: D(n, v.value)
|
|
450
450
|
}, {
|
|
@@ -453,16 +453,16 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
453
453
|
});
|
|
454
454
|
return;
|
|
455
455
|
}
|
|
456
|
-
let r = Math.min(x.value, j.value), i =
|
|
456
|
+
let r = Math.min(x.value, j.value), i = P(r, -1) ?? P(r, 1);
|
|
457
457
|
if (i) {
|
|
458
|
-
|
|
458
|
+
z(i, {
|
|
459
459
|
scroll: !1,
|
|
460
460
|
updateDesired: !1
|
|
461
461
|
});
|
|
462
462
|
return;
|
|
463
463
|
}
|
|
464
464
|
if (S.value.length > 0) {
|
|
465
|
-
|
|
465
|
+
z(O.value, {
|
|
466
466
|
scroll: !1,
|
|
467
467
|
updateDesired: !1
|
|
468
468
|
});
|
|
@@ -470,43 +470,43 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
470
470
|
}
|
|
471
471
|
t.value?.focus();
|
|
472
472
|
};
|
|
473
|
-
|
|
473
|
+
G(() => {
|
|
474
474
|
let e = _.value?.rowKey;
|
|
475
475
|
return e === void 0 ? void 0 : a.value.getRowIndexByKey(e);
|
|
476
476
|
}, (e, t) => {
|
|
477
|
-
t === void 0 || e !== void 0 || document.activeElement === document.body &&
|
|
477
|
+
t === void 0 || e !== void 0 || document.activeElement === document.body && K();
|
|
478
478
|
}, { flush: "post" });
|
|
479
|
-
let
|
|
480
|
-
|
|
481
|
-
},
|
|
479
|
+
let oe = (e, t) => {
|
|
480
|
+
R(e, !0), y.value = t, e.section === "b" && e.rowKey && h(e.rowKey);
|
|
481
|
+
}, se = (e, t, n) => {
|
|
482
482
|
let r = k.value;
|
|
483
483
|
return r.section === e && r.rowKey === t && r.columnKey === n;
|
|
484
|
-
},
|
|
484
|
+
}, ce = (e, t, n) => se(e, t, n) ? 0 : -1, le = b(() => {
|
|
485
485
|
let e = k.value;
|
|
486
486
|
return e.section === "b" ? e.rowKey : void 0;
|
|
487
487
|
});
|
|
488
488
|
return {
|
|
489
489
|
focusAddress: k,
|
|
490
|
-
focusedBodyRowKey:
|
|
490
|
+
focusedBodyRowKey: le,
|
|
491
491
|
focusBodyRowIndex: b(() => {
|
|
492
|
-
let e =
|
|
492
|
+
let e = le.value;
|
|
493
493
|
return e === void 0 ? void 0 : a.value.getRowIndexByKey(e);
|
|
494
494
|
}),
|
|
495
495
|
cellEntered: y,
|
|
496
|
-
isCellFocused:
|
|
497
|
-
getCellTabIndex:
|
|
498
|
-
moveFocus:
|
|
499
|
-
moveToRowEdge:
|
|
500
|
-
moveToGridEdge:
|
|
501
|
-
moveByPage:
|
|
502
|
-
focusAddressNow:
|
|
503
|
-
syncFocusAddress:
|
|
504
|
-
enterCell:
|
|
505
|
-
exitCell:
|
|
506
|
-
cycleCellFocus:
|
|
507
|
-
restoreFocusAfterUnmount:
|
|
508
|
-
ensureFocusedCellVisibleHorizontally:
|
|
509
|
-
queryFocusedCellElement:
|
|
496
|
+
isCellFocused: se,
|
|
497
|
+
getCellTabIndex: ce,
|
|
498
|
+
moveFocus: B,
|
|
499
|
+
moveToRowEdge: H,
|
|
500
|
+
moveToGridEdge: te,
|
|
501
|
+
moveByPage: W,
|
|
502
|
+
focusAddressNow: z,
|
|
503
|
+
syncFocusAddress: oe,
|
|
504
|
+
enterCell: re,
|
|
505
|
+
exitCell: ie,
|
|
506
|
+
cycleCellFocus: ae,
|
|
507
|
+
restoreFocusAfterUnmount: K,
|
|
508
|
+
ensureFocusedCellVisibleHorizontally: L,
|
|
509
|
+
queryFocusedCellElement: I
|
|
510
510
|
};
|
|
511
511
|
}, pt = [
|
|
512
512
|
"data-index",
|
|
@@ -561,7 +561,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
561
561
|
"menuOpen"
|
|
562
562
|
],
|
|
563
563
|
setup(e, { emit: t }) {
|
|
564
|
-
let n = t, s =
|
|
564
|
+
let n = t, s = ie(), { t: c } = de(), f = R(!1), p = (e) => {
|
|
565
565
|
n("menuOpen"), e();
|
|
566
566
|
}, m = b(() => ({
|
|
567
567
|
"s-ui-table__group-row--active": e.active,
|
|
@@ -574,40 +574,40 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
574
574
|
})), h = b(() => {
|
|
575
575
|
if (e.row.depth !== 0) return { paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e.row.depth * e.treeIndent}px)` };
|
|
576
576
|
}), 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"));
|
|
577
|
-
return (t, b) => (
|
|
577
|
+
return (t, b) => (L(), C("tr", {
|
|
578
578
|
ref: e.dndRef,
|
|
579
|
-
class:
|
|
580
|
-
style:
|
|
579
|
+
class: N(["s-ui-table__group-row", m.value]),
|
|
580
|
+
style: P(e.extraRowStyle),
|
|
581
581
|
"data-index": e.rowIndex,
|
|
582
582
|
"aria-rowindex": e.rowIndex + 2,
|
|
583
583
|
"aria-level": e.row.depth + 1,
|
|
584
584
|
"aria-expanded": e.row.hasChildren ? e.expanded : void 0,
|
|
585
585
|
onClick: b[3] ||= (e) => n("rowClick", e)
|
|
586
586
|
}, [
|
|
587
|
-
(
|
|
587
|
+
(L(!0), C(y, null, z(e.leadingPlans, (m) => (L(), C("td", {
|
|
588
588
|
id: `${e.cellIdPrefix}${e.row.key}-${m.descriptor.key}`,
|
|
589
589
|
key: m.descriptor.key,
|
|
590
|
-
class:
|
|
591
|
-
style:
|
|
590
|
+
class: N([m.cellClass, "s-ui-table__group-cell"]),
|
|
591
|
+
style: P(m.style),
|
|
592
592
|
"aria-colindex": m.descriptor.colIndex,
|
|
593
593
|
"data-column-key": m.descriptor.key,
|
|
594
594
|
"data-row-key": e.row.key,
|
|
595
|
-
"data-section":
|
|
595
|
+
"data-section": W($).BODY,
|
|
596
596
|
tabindex: m.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
597
|
-
}, [m.descriptor.key === e.groupColumnKey ? (
|
|
597
|
+
}, [m.descriptor.key === e.groupColumnKey ? (L(), C("div", {
|
|
598
598
|
key: 0,
|
|
599
599
|
class: "s-ui-table__group-content",
|
|
600
|
-
style:
|
|
601
|
-
}, [
|
|
602
|
-
D(
|
|
600
|
+
style: P(h.value)
|
|
601
|
+
}, [B(t.$slots, "row", {}, () => [
|
|
602
|
+
D(W(o), {
|
|
603
603
|
class: "s-ui-table__group-chevron",
|
|
604
|
-
appearance:
|
|
605
|
-
variant:
|
|
606
|
-
size:
|
|
604
|
+
appearance: W(i).BARE,
|
|
605
|
+
variant: W(r).NEUTRAL,
|
|
606
|
+
size: W(a).SMALL,
|
|
607
607
|
icon: _.value,
|
|
608
608
|
"aria-label": v.value,
|
|
609
609
|
tabindex: "-1",
|
|
610
|
-
onClick: b[0] ||=
|
|
610
|
+
onClick: b[0] ||= oe((e) => n("toggle"), ["stop"])
|
|
611
611
|
}, null, 8, [
|
|
612
612
|
"appearance",
|
|
613
613
|
"variant",
|
|
@@ -615,24 +615,24 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
615
615
|
"icon",
|
|
616
616
|
"aria-label"
|
|
617
617
|
]),
|
|
618
|
-
w("div", ht, [
|
|
618
|
+
w("div", ht, [B(t.$slots, "title", {}, () => [w("span", gt, H(e.title), 1)]), w("span", _t, H(g.value), 1)]),
|
|
619
619
|
w("div", {
|
|
620
620
|
class: "s-ui-table__group-actions",
|
|
621
|
-
onClick: b[2] ||=
|
|
622
|
-
}, [
|
|
621
|
+
onClick: b[2] ||= oe(() => {}, ["stop"])
|
|
622
|
+
}, [B(t.$slots, "actions"), W(s).menu ? (L(), x(W(u), {
|
|
623
623
|
key: 0,
|
|
624
624
|
modelValue: f.value,
|
|
625
625
|
"onUpdate:modelValue": b[1] ||= (e) => f.value = e,
|
|
626
|
-
placement:
|
|
626
|
+
placement: W(l).BOTTOM_END,
|
|
627
627
|
"teleport-to": !1
|
|
628
628
|
}, {
|
|
629
|
-
trigger:
|
|
630
|
-
class:
|
|
631
|
-
appearance:
|
|
632
|
-
variant:
|
|
633
|
-
size:
|
|
629
|
+
trigger: K(({ toggle: e }) => [D(W(o), {
|
|
630
|
+
class: N(["s-ui-table__group-kebab", { "s-ui-table__group-kebab--open": f.value }]),
|
|
631
|
+
appearance: W(i).BARE,
|
|
632
|
+
variant: W(r).NEUTRAL,
|
|
633
|
+
size: W(a).SMALL,
|
|
634
634
|
icon: "menu",
|
|
635
|
-
"aria-label":
|
|
635
|
+
"aria-label": W(c)("table.groupMenu"),
|
|
636
636
|
tabindex: "-1",
|
|
637
637
|
onClick: (t) => p(e)
|
|
638
638
|
}, null, 8, [
|
|
@@ -643,8 +643,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
643
643
|
"aria-label",
|
|
644
644
|
"onClick"
|
|
645
645
|
])]),
|
|
646
|
-
content:
|
|
647
|
-
default:
|
|
646
|
+
content: K(() => [D(W(d), { width: 220 }, {
|
|
647
|
+
default: K(() => [B(t.$slots, "menu")]),
|
|
648
648
|
_: 3
|
|
649
649
|
})]),
|
|
650
650
|
_: 3
|
|
@@ -654,15 +654,15 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
654
654
|
class: "s-ui-table__cell s-ui-table__filler-cell s-ui-table__group-cell",
|
|
655
655
|
role: "presentation"
|
|
656
656
|
}, null, -1),
|
|
657
|
-
(
|
|
657
|
+
(L(!0), C(y, null, z(e.trailingPlans, (t) => (L(), C("td", {
|
|
658
658
|
id: `${e.cellIdPrefix}${e.row.key}-${t.descriptor.key}`,
|
|
659
659
|
key: t.descriptor.key,
|
|
660
|
-
class:
|
|
661
|
-
style:
|
|
660
|
+
class: N([t.cellClass, "s-ui-table__group-cell"]),
|
|
661
|
+
style: P(t.style),
|
|
662
662
|
"aria-colindex": t.descriptor.colIndex,
|
|
663
663
|
"data-column-key": t.descriptor.key,
|
|
664
664
|
"data-row-key": e.row.key,
|
|
665
|
-
"data-section":
|
|
665
|
+
"data-section": W($).BODY,
|
|
666
666
|
tabindex: t.descriptor.key === e.focusColumnKey ? 0 : -1
|
|
667
667
|
}, null, 14, vt))), 128))
|
|
668
668
|
], 14, pt));
|
|
@@ -675,19 +675,19 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
675
675
|
__name: "STableHint",
|
|
676
676
|
props: { text: {} },
|
|
677
677
|
setup(e) {
|
|
678
|
-
let t =
|
|
679
|
-
return (n, r) => (
|
|
678
|
+
let t = R(!1);
|
|
679
|
+
return (n, r) => (L(), C("span", {
|
|
680
680
|
class: "s-ui-table__hint",
|
|
681
681
|
tabindex: "-1",
|
|
682
682
|
onPointerenter: r[0] ||= (e) => t.value = !0,
|
|
683
683
|
onPointerleave: r[1] ||= (e) => t.value = !1,
|
|
684
684
|
onFocusin: r[2] ||= (e) => t.value = !0,
|
|
685
685
|
onFocusout: r[3] ||= (e) => t.value = !1
|
|
686
|
-
}, [D(
|
|
686
|
+
}, [D(W(ce), {
|
|
687
687
|
class: "s-ui-table__hint-icon",
|
|
688
688
|
name: "infoCircle",
|
|
689
689
|
size: 16
|
|
690
|
-
}), t.value ? (
|
|
690
|
+
}), t.value ? (L(), C("span", bt, H(e.text), 1)) : S("", !0)], 32));
|
|
691
691
|
}
|
|
692
692
|
}), St = {
|
|
693
693
|
key: 0,
|
|
@@ -714,9 +714,11 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
714
714
|
"hide"
|
|
715
715
|
],
|
|
716
716
|
setup(e, { emit: t }) {
|
|
717
|
-
let n = t, s =
|
|
717
|
+
let n = t, s = ie(), { t: c } = de(), f = b(() => !!s.menu || e.descriptor.sortable || e.descriptor.hideable), p = b(() => ({
|
|
718
718
|
"s-ui-table__header-plaque--sorted": !!e.sortDirection,
|
|
719
|
-
"s-ui-table__header-plaque--sortable": e.descriptor.sortable
|
|
719
|
+
"s-ui-table__header-plaque--sortable": e.descriptor.sortable,
|
|
720
|
+
"s-ui-table__header-plaque--align-center": e.descriptor.align === Y.CENTER,
|
|
721
|
+
"s-ui-table__header-plaque--align-right": e.descriptor.align === Y.RIGHT
|
|
720
722
|
})), 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) => {
|
|
721
723
|
e.descriptor.sortable && n("sortToggle", t.shiftKey || t.ctrlKey || t.metaKey);
|
|
722
724
|
}, T = (e, t) => {
|
|
@@ -724,19 +726,19 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
724
726
|
}, O = (e) => {
|
|
725
727
|
n("hide"), e();
|
|
726
728
|
};
|
|
727
|
-
return (t, b) => (
|
|
728
|
-
class:
|
|
729
|
+
return (t, b) => (L(), C("div", {
|
|
730
|
+
class: N(["s-ui-table__header-plaque", p.value]),
|
|
729
731
|
onClick: v
|
|
730
732
|
}, [
|
|
731
|
-
e.descriptor.draggable ? (
|
|
733
|
+
e.descriptor.draggable ? (L(), C("span", St, [D(W(o), {
|
|
732
734
|
class: "s-ui-table__header-grip",
|
|
733
|
-
appearance:
|
|
734
|
-
variant:
|
|
735
|
-
size:
|
|
735
|
+
appearance: W(i).BARE,
|
|
736
|
+
variant: W(r).NEUTRAL,
|
|
737
|
+
size: W(a).SMALL,
|
|
736
738
|
icon: "dragAndDrop",
|
|
737
|
-
"aria-label":
|
|
739
|
+
"aria-label": W(c)("table.dragColumn"),
|
|
738
740
|
tabindex: "-1",
|
|
739
|
-
onClick: b[0] ||=
|
|
741
|
+
onClick: b[0] ||= oe(() => {}, ["stop"])
|
|
740
742
|
}, null, 8, [
|
|
741
743
|
"appearance",
|
|
742
744
|
"variant",
|
|
@@ -744,25 +746,25 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
744
746
|
"aria-label"
|
|
745
747
|
])])) : S("", !0),
|
|
746
748
|
w("span", Ct, [
|
|
747
|
-
w("span", wt, [
|
|
748
|
-
e.descriptor.column?.description ? (
|
|
749
|
+
w("span", wt, [B(t.$slots, "default", {}, () => [E(H(e.descriptor.column?.title), 1)])]),
|
|
750
|
+
e.descriptor.column?.description ? (L(), x(xt, {
|
|
749
751
|
key: 0,
|
|
750
752
|
text: e.descriptor.column.description
|
|
751
753
|
}, null, 8, ["text"])) : S("", !0),
|
|
752
|
-
e.sortDirection ? (
|
|
754
|
+
e.sortDirection ? (L(), C("span", Tt, [D(W(ce), {
|
|
753
755
|
name: g.value,
|
|
754
756
|
size: 16
|
|
755
|
-
}, null, 8, ["name"]), w("span", Et,
|
|
756
|
-
e.descriptor.sortable && !e.sortDirection ? (
|
|
757
|
+
}, null, 8, ["name"]), w("span", Et, H(_.value), 1)])) : S("", !0),
|
|
758
|
+
e.descriptor.sortable && !e.sortDirection ? (L(), x(W(o), {
|
|
757
759
|
key: 2,
|
|
758
760
|
class: "s-ui-table__header-sort-button",
|
|
759
|
-
appearance:
|
|
760
|
-
variant:
|
|
761
|
-
size:
|
|
761
|
+
appearance: W(i).BARE,
|
|
762
|
+
variant: W(r).NEUTRAL,
|
|
763
|
+
size: W(a).SMALL,
|
|
762
764
|
icon: "ascending",
|
|
763
|
-
"aria-label":
|
|
765
|
+
"aria-label": W(c)("table.sortAsc"),
|
|
764
766
|
tabindex: "-1",
|
|
765
|
-
onClick: b[1] ||=
|
|
767
|
+
onClick: b[1] ||= oe((e) => n("sortToggle", e.shiftKey || e.ctrlKey || e.metaKey), ["stop"])
|
|
766
768
|
}, null, 8, [
|
|
767
769
|
"appearance",
|
|
768
770
|
"variant",
|
|
@@ -770,23 +772,23 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
770
772
|
"aria-label"
|
|
771
773
|
])) : S("", !0)
|
|
772
774
|
]),
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
775
|
+
f.value ? (L(), C("span", {
|
|
776
|
+
key: 1,
|
|
777
|
+
class: N(["s-ui-table__header-actions", m.value]),
|
|
778
|
+
onClick: b[3] ||= oe(() => {}, ["stop"])
|
|
779
|
+
}, [D(W(u), {
|
|
778
780
|
"model-value": e.menuOpen,
|
|
779
|
-
placement:
|
|
781
|
+
placement: W(l).BOTTOM_END,
|
|
780
782
|
"teleport-to": !1,
|
|
781
783
|
"onUpdate:modelValue": b[2] ||= (e) => n("update:menuOpen", e)
|
|
782
784
|
}, {
|
|
783
|
-
trigger:
|
|
785
|
+
trigger: K(({ toggle: e }) => [D(W(o), {
|
|
784
786
|
class: "s-ui-table__header-kebab",
|
|
785
|
-
appearance:
|
|
786
|
-
variant:
|
|
787
|
-
size:
|
|
787
|
+
appearance: W(i).BARE,
|
|
788
|
+
variant: W(r).NEUTRAL,
|
|
789
|
+
size: W(a).SMALL,
|
|
788
790
|
icon: "menu",
|
|
789
|
-
"aria-label":
|
|
791
|
+
"aria-label": W(c)("table.columnMenu"),
|
|
790
792
|
tabindex: "-1",
|
|
791
793
|
onClick: (t) => e()
|
|
792
794
|
}, null, 8, [
|
|
@@ -796,39 +798,39 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
796
798
|
"aria-label",
|
|
797
799
|
"onClick"
|
|
798
800
|
])]),
|
|
799
|
-
content:
|
|
800
|
-
default:
|
|
801
|
-
e.descriptor.sortable ? (
|
|
801
|
+
content: K(({ close: n }) => [D(W(d), { width: 220 }, {
|
|
802
|
+
default: K(() => [W(s).menu ? B(t.$slots, "menu", { key: 0 }) : (L(), C(y, { key: 1 }, [
|
|
803
|
+
e.descriptor.sortable ? (L(), x(W(h), {
|
|
802
804
|
key: 0,
|
|
803
|
-
title:
|
|
805
|
+
title: W(c)("table.sortAsc"),
|
|
804
806
|
"icon-left": "ascending",
|
|
805
|
-
selected: e.sortDirection ===
|
|
806
|
-
onClick: (e) => T(
|
|
807
|
+
selected: e.sortDirection === W(X).ASC,
|
|
808
|
+
onClick: (e) => T(W(X).ASC, n)
|
|
807
809
|
}, null, 8, [
|
|
808
810
|
"title",
|
|
809
811
|
"selected",
|
|
810
812
|
"onClick"
|
|
811
813
|
])) : S("", !0),
|
|
812
|
-
e.descriptor.sortable ? (
|
|
814
|
+
e.descriptor.sortable ? (L(), x(W(h), {
|
|
813
815
|
key: 1,
|
|
814
|
-
title:
|
|
816
|
+
title: W(c)("table.sortDesc"),
|
|
815
817
|
"icon-left": "descending",
|
|
816
|
-
selected: e.sortDirection ===
|
|
817
|
-
onClick: (e) => T(
|
|
818
|
+
selected: e.sortDirection === W(X).DESC,
|
|
819
|
+
onClick: (e) => T(W(X).DESC, n)
|
|
818
820
|
}, null, 8, [
|
|
819
821
|
"title",
|
|
820
822
|
"selected",
|
|
821
823
|
"onClick"
|
|
822
824
|
])) : S("", !0),
|
|
823
|
-
e.descriptor.sortable && e.sortDirection ? (
|
|
825
|
+
e.descriptor.sortable && e.sortDirection ? (L(), x(W(h), {
|
|
824
826
|
key: 2,
|
|
825
|
-
title:
|
|
827
|
+
title: W(c)("table.sortReset"),
|
|
826
828
|
"icon-left": "closeMini",
|
|
827
829
|
onClick: (e) => T(void 0, n)
|
|
828
830
|
}, null, 8, ["title", "onClick"])) : S("", !0),
|
|
829
|
-
e.descriptor.hideable ? (
|
|
831
|
+
e.descriptor.hideable ? (L(), x(W(h), {
|
|
830
832
|
key: 3,
|
|
831
|
-
title:
|
|
833
|
+
title: W(c)("table.hideColumn"),
|
|
832
834
|
"icon-left": "eyeOff",
|
|
833
835
|
onClick: (e) => O(n)
|
|
834
836
|
}, null, 8, ["title", "onClick"])) : S("", !0)
|
|
@@ -836,7 +838,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
836
838
|
_: 2
|
|
837
839
|
}, 1024)]),
|
|
838
840
|
_: 3
|
|
839
|
-
}, 8, ["model-value", "placement"])) : S("", !0)
|
|
841
|
+
}, 8, ["model-value", "placement"])], 2)) : S("", !0)
|
|
840
842
|
], 2));
|
|
841
843
|
}
|
|
842
844
|
}), Ot = ["data-index", "aria-rowindex"], kt = {
|
|
@@ -856,19 +858,19 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
856
858
|
},
|
|
857
859
|
setup(e) {
|
|
858
860
|
let t = b(() => e.rowHeight ? { height: `${e.rowHeight}px` } : void 0);
|
|
859
|
-
return (n, r) => (
|
|
861
|
+
return (n, r) => (L(), C("tr", {
|
|
860
862
|
class: "s-ui-table__row s-ui-table__row--placeholder",
|
|
861
|
-
style:
|
|
863
|
+
style: P(t.value),
|
|
862
864
|
"data-index": e.rowIndex,
|
|
863
865
|
"aria-rowindex": e.rowIndex + 2,
|
|
864
866
|
"data-placeholder": "true"
|
|
865
|
-
}, [(
|
|
867
|
+
}, [(L(!0), C(y, null, z(e.cells, (t) => (L(), C(y, { key: t.key }, [t.cellPlan ? (L(), C("td", {
|
|
866
868
|
key: 1,
|
|
867
|
-
class:
|
|
868
|
-
style:
|
|
869
|
+
class: N(t.cellPlan.cellClass),
|
|
870
|
+
style: P(t.cellPlan.style),
|
|
869
871
|
"data-column-key": t.cellPlan.descriptor.key,
|
|
870
872
|
"data-row-key": e.rowKey
|
|
871
|
-
}, [t.cellPlan.descriptor.service ? S("", !0) : (
|
|
873
|
+
}, [t.cellPlan.descriptor.service ? S("", !0) : (L(), C("div", jt, [...r[0] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]]))], 14, At)) : (L(), C("td", kt))], 64))), 128))], 12, Ot));
|
|
872
874
|
}
|
|
873
875
|
}), Nt = (t) => e(t) || n(t), Pt = (e) => Nt(e) ? void 0 : `s-ui-table__row--color-${e}`, Ft = (n) => {
|
|
874
876
|
if (!Nt(n)) return;
|
|
@@ -929,7 +931,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
929
931
|
expandableKeys: i
|
|
930
932
|
});
|
|
931
933
|
}, l = b(() => {
|
|
932
|
-
let r =
|
|
934
|
+
let r = te(U(e)), i = U(t), a = U(n), o = s.get(r);
|
|
933
935
|
if (o && o.itemKeyValue === i && o.childrenKeyValue === a) return o.index;
|
|
934
936
|
let l = c(r, i, a);
|
|
935
937
|
return s.set(r, {
|
|
@@ -943,7 +945,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
943
945
|
let n = /* @__PURE__ */ new Map();
|
|
944
946
|
return d.set(e, n), n;
|
|
945
947
|
}, p = b(() => {
|
|
946
|
-
let t =
|
|
948
|
+
let t = te(U(e)), { roots: n, nodeByKey: i } = l.value, s = U(r), c = U(a), d = U(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) => {
|
|
947
949
|
let r = g.get(e);
|
|
948
950
|
return r || (r = Gt(e, t.item, t.depth + 1, t.key), g.set(e, r)), b(r, n, !1, !1);
|
|
949
951
|
}, C = (e) => {
|
|
@@ -1014,7 +1016,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1014
1016
|
},
|
|
1015
1017
|
setup(e) {
|
|
1016
1018
|
let t = b(() => Ut(e.item, e.column.value ?? e.column.key)), n = b(() => t.value !== void 0 && t.value !== "");
|
|
1017
|
-
return (r, i) => n.value ? (
|
|
1019
|
+
return (r, i) => n.value ? (L(), C("span", qt, H(t.value), 1)) : e.column.placeholder ? (L(), C("span", Jt, H(e.column.placeholder), 1)) : S("", !0);
|
|
1018
1020
|
}
|
|
1019
1021
|
}), Xt = [
|
|
1020
1022
|
"id",
|
|
@@ -1112,7 +1114,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1112
1114
|
"toggleSelected"
|
|
1113
1115
|
],
|
|
1114
1116
|
setup(e, { emit: t }) {
|
|
1115
|
-
let n = t, s =
|
|
1117
|
+
let n = t, s = ie(), { t: c } = de(), l = $.BODY, u = (t) => `${e.cellIdPrefix}${e.row.key}-${t}`, d = (t) => t === e.focusColumnKey ? 0 : -1, f = b(() => [
|
|
1116
1118
|
{
|
|
1117
1119
|
"s-ui-table__row--selected": e.selected,
|
|
1118
1120
|
"s-ui-table__row--active": e.active,
|
|
@@ -1167,132 +1169,132 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1167
1169
|
value: Ut(e.row.item, n.value ?? n.key),
|
|
1168
1170
|
cellState: T(t)
|
|
1169
1171
|
};
|
|
1170
|
-
},
|
|
1172
|
+
}, ee = (t) => {
|
|
1171
1173
|
let n = [...e.leadingPlans, ...e.trailingPlans].find((e) => e.descriptor.key === t);
|
|
1172
1174
|
return n ? T(n) === Me.DISABLED : !1;
|
|
1173
|
-
},
|
|
1175
|
+
}, F = (e) => {
|
|
1174
1176
|
let t = e.target;
|
|
1175
1177
|
if (t instanceof Element) {
|
|
1176
1178
|
let r = t.closest("td[data-column-key]")?.getAttribute("data-column-key");
|
|
1177
|
-
r && !
|
|
1179
|
+
r && !ee(r) && n("cellClick", r, e);
|
|
1178
1180
|
}
|
|
1179
1181
|
n("rowClick", e);
|
|
1180
1182
|
};
|
|
1181
|
-
return (t, p) => (
|
|
1183
|
+
return (t, p) => (L(), C("tr", {
|
|
1182
1184
|
id: e.domId,
|
|
1183
1185
|
ref: e.dndRef,
|
|
1184
|
-
class:
|
|
1185
|
-
style:
|
|
1186
|
+
class: N(["s-ui-table__row", f.value]),
|
|
1187
|
+
style: P(h.value),
|
|
1186
1188
|
"data-index": e.rowIndex,
|
|
1187
1189
|
"aria-rowindex": e.rowIndex + 2,
|
|
1188
1190
|
"aria-level": e.row.depth + 1,
|
|
1189
1191
|
"aria-expanded": e.row.hasChildren ? e.rowExpanded : void 0,
|
|
1190
1192
|
"aria-selected": e.selected || void 0,
|
|
1191
|
-
onClick:
|
|
1193
|
+
onClick: F,
|
|
1192
1194
|
onContextmenu: p[3] ||= (e) => n("rowContextMenu", e)
|
|
1193
1195
|
}, [
|
|
1194
|
-
(
|
|
1196
|
+
(L(!0), C(y, null, z(e.leadingPlans, (f) => (L(), C("td", {
|
|
1195
1197
|
id: u(f.descriptor.key),
|
|
1196
1198
|
key: f.descriptor.key,
|
|
1197
|
-
class:
|
|
1198
|
-
style:
|
|
1199
|
+
class: N(f.cellClass),
|
|
1200
|
+
style: P(f.style),
|
|
1199
1201
|
"aria-colindex": f.descriptor.colIndex,
|
|
1200
1202
|
"data-column-key": f.descriptor.key,
|
|
1201
1203
|
"data-row-key": e.row.key,
|
|
1202
|
-
"data-section":
|
|
1204
|
+
"data-section": W(l),
|
|
1203
1205
|
"aria-disabled": D(f),
|
|
1204
1206
|
"aria-readonly": O(f),
|
|
1205
1207
|
tabindex: d(f.descriptor.key)
|
|
1206
|
-
}, [f.descriptor.service ===
|
|
1208
|
+
}, [f.descriptor.service === W(qe).INDICATOR ? (L(), C(y, { key: 0 }, [e.placeholder ? S("", !0) : B(t.$slots, "indicator", M({
|
|
1207
1209
|
key: 0,
|
|
1208
1210
|
ref_for: !0
|
|
1209
|
-
}, A()))], 64)) : f.descriptor.service ===
|
|
1211
|
+
}, A()))], 64)) : f.descriptor.service === W(qe).CHECKBOX ? (L(), C(y, { key: 1 }, [W(s).checkbox && !e.placeholder ? B(t.$slots, "checkbox", M({
|
|
1210
1212
|
key: 0,
|
|
1211
1213
|
ref_for: !0
|
|
1212
|
-
}, A())) : e.rowSelectable && !e.placeholder ? (
|
|
1214
|
+
}, A())) : e.rowSelectable && !e.placeholder ? (L(), x(We, {
|
|
1213
1215
|
key: 1,
|
|
1214
|
-
class:
|
|
1216
|
+
class: N(["s-ui-table__row-checkbox", { "s-ui-table__row-checkbox--active": e.selected || e.indeterminate }]),
|
|
1215
1217
|
"model-value": e.selected,
|
|
1216
1218
|
indeterminate: e.indeterminate,
|
|
1217
|
-
"screen-reader-label":
|
|
1219
|
+
"screen-reader-label": W(c)("table.selectRow"),
|
|
1218
1220
|
"onUpdate:modelValue": p[0] ||= (e) => n("toggleSelected"),
|
|
1219
|
-
onClick: p[1] ||=
|
|
1221
|
+
onClick: p[1] ||= oe(() => {}, ["stop"])
|
|
1220
1222
|
}, null, 8, [
|
|
1221
1223
|
"class",
|
|
1222
1224
|
"model-value",
|
|
1223
1225
|
"indeterminate",
|
|
1224
1226
|
"screen-reader-label"
|
|
1225
|
-
])) : S("", !0)], 64)) : e.placeholder ? (
|
|
1227
|
+
])) : S("", !0)], 64)) : e.placeholder ? (L(), C("div", {
|
|
1226
1228
|
key: 2,
|
|
1227
1229
|
class: "s-ui-table__cell-body",
|
|
1228
|
-
style:
|
|
1229
|
-
}, [...p[4] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (
|
|
1230
|
+
style: P(g(f))
|
|
1231
|
+
}, [...p[4] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (L(), C("div", {
|
|
1230
1232
|
key: 3,
|
|
1231
|
-
class:
|
|
1232
|
-
style:
|
|
1233
|
+
class: N(["s-ui-table__cell-body", E(f)]),
|
|
1234
|
+
style: P(g(f))
|
|
1233
1235
|
}, [
|
|
1234
|
-
f.chevron ? (
|
|
1236
|
+
f.chevron ? (L(), C(y, { key: 0 }, [W(s).chevron ? B(t.$slots, "chevron", M({
|
|
1235
1237
|
key: 0,
|
|
1236
1238
|
ref_for: !0
|
|
1237
|
-
}, A())) : e.row.hasChildren ? (
|
|
1239
|
+
}, A())) : e.row.hasChildren ? (L(), x(W(o), {
|
|
1238
1240
|
key: 1,
|
|
1239
1241
|
class: "s-ui-table__chevron",
|
|
1240
|
-
appearance:
|
|
1241
|
-
variant:
|
|
1242
|
-
size:
|
|
1242
|
+
appearance: W(i).BARE,
|
|
1243
|
+
variant: W(r).NEUTRAL,
|
|
1244
|
+
size: W(a).SMALL,
|
|
1243
1245
|
icon: e.rowExpanded ? "chevronMiniDown" : "chevronMiniRight",
|
|
1244
|
-
"aria-label": e.rowExpanded ?
|
|
1246
|
+
"aria-label": e.rowExpanded ? W(c)("table.collapse") : W(c)("table.expand"),
|
|
1245
1247
|
tabindex: "-1",
|
|
1246
|
-
onClick: p[2] ||=
|
|
1248
|
+
onClick: p[2] ||= oe((e) => n("toggleExpand"), ["stop"])
|
|
1247
1249
|
}, null, 8, [
|
|
1248
1250
|
"appearance",
|
|
1249
1251
|
"variant",
|
|
1250
1252
|
"size",
|
|
1251
1253
|
"icon",
|
|
1252
1254
|
"aria-label"
|
|
1253
|
-
])) : (
|
|
1254
|
-
|
|
1255
|
+
])) : (L(), C("span", Qt))], 64)) : S("", !0),
|
|
1256
|
+
W(s)[`cell:${f.descriptor.key}`] ? B(t.$slots, `cell:${f.descriptor.key}`, M({
|
|
1255
1257
|
key: 1,
|
|
1256
1258
|
ref_for: !0
|
|
1257
|
-
}, j(f))) : f.descriptor.column ? (
|
|
1259
|
+
}, j(f))) : f.descriptor.column ? (L(), x(Yt, {
|
|
1258
1260
|
key: 2,
|
|
1259
1261
|
column: f.descriptor.column,
|
|
1260
1262
|
item: e.row.item
|
|
1261
1263
|
}, null, 8, ["column", "item"])) : S("", !0),
|
|
1262
|
-
|
|
1264
|
+
W(s)["cell-actions"] && !e.placeholder ? (L(), C("span", $t, [B(t.$slots, "cell-actions", M({ ref_for: !0 }, j(f)))])) : S("", !0)
|
|
1263
1265
|
], 6))], 14, Zt))), 128)),
|
|
1264
1266
|
p[6] ||= w("td", {
|
|
1265
1267
|
class: "s-ui-table__cell s-ui-table__filler-cell",
|
|
1266
1268
|
role: "presentation"
|
|
1267
1269
|
}, null, -1),
|
|
1268
|
-
(
|
|
1270
|
+
(L(!0), C(y, null, z(e.trailingPlans, (n) => (L(), C("td", {
|
|
1269
1271
|
id: u(n.descriptor.key),
|
|
1270
1272
|
key: n.descriptor.key,
|
|
1271
|
-
class:
|
|
1272
|
-
style:
|
|
1273
|
+
class: N(n.cellClass),
|
|
1274
|
+
style: P(n.style),
|
|
1273
1275
|
"aria-colindex": n.descriptor.colIndex,
|
|
1274
1276
|
"data-column-key": n.descriptor.key,
|
|
1275
1277
|
"data-row-key": e.row.key,
|
|
1276
|
-
"data-section":
|
|
1278
|
+
"data-section": W(l),
|
|
1277
1279
|
"aria-disabled": D(n),
|
|
1278
1280
|
"aria-readonly": O(n),
|
|
1279
1281
|
tabindex: d(n.descriptor.key)
|
|
1280
|
-
}, [n.descriptor.service ===
|
|
1282
|
+
}, [n.descriptor.service === W(qe).RIGHT_EDGE ? (L(), C(y, { key: 0 }, [e.placeholder ? S("", !0) : (L(), C("div", tn, [B(t.$slots, "right-edge", M({ ref_for: !0 }, A()))]))], 64)) : e.placeholder ? (L(), C("div", {
|
|
1281
1283
|
key: 1,
|
|
1282
1284
|
class: "s-ui-table__cell-body",
|
|
1283
|
-
style:
|
|
1284
|
-
}, [...p[5] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (
|
|
1285
|
+
style: P(g(n))
|
|
1286
|
+
}, [...p[5] ||= [w("span", { class: "s-ui-table__placeholder-bar" }, null, -1)]], 4)) : (L(), C("div", {
|
|
1285
1287
|
key: 2,
|
|
1286
|
-
class:
|
|
1287
|
-
style:
|
|
1288
|
-
}, [
|
|
1288
|
+
class: N(["s-ui-table__cell-body", E(n)]),
|
|
1289
|
+
style: P(g(n))
|
|
1290
|
+
}, [W(s)[`cell:${n.descriptor.key}`] ? B(t.$slots, `cell:${n.descriptor.key}`, M({
|
|
1289
1291
|
key: 0,
|
|
1290
1292
|
ref_for: !0
|
|
1291
|
-
}, j(n))) : n.descriptor.column ? (
|
|
1293
|
+
}, j(n))) : n.descriptor.column ? (L(), x(Yt, {
|
|
1292
1294
|
key: 1,
|
|
1293
1295
|
column: n.descriptor.column,
|
|
1294
1296
|
item: e.row.item
|
|
1295
|
-
}, null, 8, ["column", "item"])) : S("", !0),
|
|
1297
|
+
}, null, 8, ["column", "item"])) : S("", !0), W(s)["cell-actions"] && !e.placeholder ? (L(), C("span", nn, [B(t.$slots, "cell-actions", M({ ref_for: !0 }, j(n)))])) : S("", !0)], 6))], 14, en))), 128))
|
|
1296
1298
|
], 46, Xt));
|
|
1297
1299
|
}
|
|
1298
1300
|
}), an = {
|
|
@@ -1305,31 +1307,31 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1305
1307
|
trailingPlans: {}
|
|
1306
1308
|
},
|
|
1307
1309
|
setup(e) {
|
|
1308
|
-
return (t, n) => (
|
|
1309
|
-
(
|
|
1310
|
+
return (t, n) => (L(), C("tr", an, [
|
|
1311
|
+
(L(!0), C(y, null, z(e.leadingPlans, (e) => (L(), C("td", {
|
|
1310
1312
|
key: e.descriptor.key,
|
|
1311
|
-
class:
|
|
1312
|
-
style:
|
|
1313
|
-
}, [e.descriptor.column ?
|
|
1313
|
+
class: N(e.cellClass),
|
|
1314
|
+
style: P(e.style)
|
|
1315
|
+
}, [e.descriptor.column ? B(t.$slots, "default", {
|
|
1314
1316
|
key: 0,
|
|
1315
1317
|
descriptor: e.descriptor
|
|
1316
|
-
}, () => [w("div", on, [D(
|
|
1318
|
+
}, () => [w("div", on, [D(W(ue), {
|
|
1317
1319
|
class: "s-ui-table__skeleton",
|
|
1318
|
-
type: e.descriptor.primary ?
|
|
1320
|
+
type: e.descriptor.primary ? W(se).S_TABLE_ROW : W(se).S_TABLE_CELL
|
|
1319
1321
|
}, null, 8, ["type"])])]) : S("", !0)], 6))), 128)),
|
|
1320
1322
|
n[0] ||= w("td", {
|
|
1321
1323
|
class: "s-ui-table__cell s-ui-table__filler-cell",
|
|
1322
1324
|
role: "presentation"
|
|
1323
1325
|
}, null, -1),
|
|
1324
|
-
(
|
|
1326
|
+
(L(!0), C(y, null, z(e.trailingPlans, (e) => (L(), C("td", {
|
|
1325
1327
|
key: e.descriptor.key,
|
|
1326
|
-
class:
|
|
1327
|
-
style:
|
|
1328
|
+
class: N(e.cellClass),
|
|
1329
|
+
style: P(e.style)
|
|
1328
1330
|
}, null, 6))), 128))
|
|
1329
1331
|
]));
|
|
1330
1332
|
}
|
|
1331
1333
|
}), 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 }) => {
|
|
1332
|
-
let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c =
|
|
1334
|
+
let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = V(), l = V(), u = (e) => r.value.find((t) => t.key === e), d = (e, t) => {
|
|
1333
1335
|
let n = u(e), r = u(t);
|
|
1334
1336
|
if (!n || !r || r.primary) return !1;
|
|
1335
1337
|
let i = (e) => e.sticky ?? "regular";
|
|
@@ -1343,11 +1345,11 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1343
1345
|
}
|
|
1344
1346
|
if (s.get(r) === t) return;
|
|
1345
1347
|
o.get(r)?.(), s.set(r, t);
|
|
1346
|
-
let i =
|
|
1348
|
+
let i = q(xe({
|
|
1347
1349
|
element: r,
|
|
1348
1350
|
canDrag: () => {
|
|
1349
1351
|
let e = u(t);
|
|
1350
|
-
return !!(
|
|
1352
|
+
return !!(U(n) && e?.draggable && !U(a));
|
|
1351
1353
|
},
|
|
1352
1354
|
getInitialData: () => ({
|
|
1353
1355
|
type: cn,
|
|
@@ -1356,9 +1358,9 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1356
1358
|
}),
|
|
1357
1359
|
onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
|
|
1358
1360
|
let n = u(t);
|
|
1359
|
-
|
|
1361
|
+
we({
|
|
1360
1362
|
nativeSetDragImage: e,
|
|
1361
|
-
getOffset:
|
|
1363
|
+
getOffset: Te({
|
|
1362
1364
|
x: "8px",
|
|
1363
1365
|
y: "8px"
|
|
1364
1366
|
}),
|
|
@@ -1374,16 +1376,16 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1374
1376
|
onDrop: () => {
|
|
1375
1377
|
c.value = void 0, l.value = void 0;
|
|
1376
1378
|
}
|
|
1377
|
-
}),
|
|
1379
|
+
}), Se({
|
|
1378
1380
|
element: r,
|
|
1379
1381
|
canDrop: ({ source: n }) => un(n.data, e) && n.data.columnKey !== t && d(n.data.columnKey, t),
|
|
1380
|
-
getData: ({ input: e, element: n }) =>
|
|
1382
|
+
getData: ({ input: e, element: n }) => Ee({ columnKey: t }, {
|
|
1381
1383
|
input: e,
|
|
1382
1384
|
element: n,
|
|
1383
1385
|
allowedEdges: ["left", "right"]
|
|
1384
1386
|
}),
|
|
1385
1387
|
onDrag: ({ self: e }) => {
|
|
1386
|
-
let n =
|
|
1388
|
+
let n = De(e.data);
|
|
1387
1389
|
if (n === "left" || n === "right") {
|
|
1388
1390
|
let e = l.value;
|
|
1389
1391
|
(e?.targetKey !== t || e.edge !== n) && (l.value = {
|
|
@@ -1397,23 +1399,23 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1397
1399
|
}
|
|
1398
1400
|
}));
|
|
1399
1401
|
o.set(r, i);
|
|
1400
|
-
}, p =
|
|
1402
|
+
}, p = Ce({
|
|
1401
1403
|
canMonitor: ({ source: t }) => un(t.data, e),
|
|
1402
1404
|
onDrop: ({ source: t, location: n }) => {
|
|
1403
1405
|
c.value = void 0, l.value = void 0;
|
|
1404
1406
|
let r = n.current.dropTargets[0];
|
|
1405
1407
|
if (!r || !un(t.data, e)) return;
|
|
1406
|
-
let a = r.data, o = a.columnKey, s =
|
|
1408
|
+
let a = r.data, o = a.columnKey, s = De(a);
|
|
1407
1409
|
typeof o != "string" || s !== "left" && s !== "right" || o !== t.data.columnKey && i(t.data.columnKey, o, s);
|
|
1408
1410
|
}
|
|
1409
1411
|
});
|
|
1410
|
-
|
|
1412
|
+
F(() => {
|
|
1411
1413
|
p(), o.forEach((e) => {
|
|
1412
1414
|
e();
|
|
1413
1415
|
}), o.clear(), s.clear();
|
|
1414
1416
|
});
|
|
1415
|
-
let m =
|
|
1416
|
-
return
|
|
1417
|
+
let m = V();
|
|
1418
|
+
return G(l, (e) => {
|
|
1417
1419
|
let n = t.value, r = e ? n?.querySelector(`th[data-column-key="${e.targetKey}"]`) : void 0;
|
|
1418
1420
|
if (!e || !n || !r) {
|
|
1419
1421
|
m.value = void 0;
|
|
@@ -1428,11 +1430,11 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1428
1430
|
dropLineStyle: m
|
|
1429
1431
|
};
|
|
1430
1432
|
}, pn = {
|
|
1431
|
-
[
|
|
1432
|
-
[
|
|
1433
|
-
[
|
|
1433
|
+
[Y.LEFT]: "s-ui-table__cell--align-left",
|
|
1434
|
+
[Y.CENTER]: "s-ui-table__cell--align-center",
|
|
1435
|
+
[Y.RIGHT]: "s-ui-table__cell--align-right"
|
|
1434
1436
|
}, mn = ({ columnDescriptors: e, hasTreeStructure: t, expandColumnKey: n, primaryColumnKey: r }) => {
|
|
1435
|
-
let i = b(() => e.value.filter((e) => e.sticky !==
|
|
1437
|
+
let i = b(() => e.value.filter((e) => e.sticky !== J.RIGHT)), a = b(() => e.value.filter((e) => e.sticky === J.RIGHT)), o = b(() => {
|
|
1436
1438
|
let e = (e) => ({
|
|
1437
1439
|
key: e.key,
|
|
1438
1440
|
descriptor: e
|
|
@@ -1448,15 +1450,15 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1448
1450
|
}), s = (e) => {
|
|
1449
1451
|
if (!e.sticky || !e.stickyOffsetVar || !e.liveStickyOffsetVar) return;
|
|
1450
1452
|
let t = `var(${e.liveStickyOffsetVar}, var(${e.stickyOffsetVar}))`;
|
|
1451
|
-
return e.sticky ===
|
|
1453
|
+
return e.sticky === J.LEFT ? {
|
|
1452
1454
|
left: t,
|
|
1453
1455
|
"--s-ui-table-cell-inline-offset": t
|
|
1454
1456
|
} : { right: t };
|
|
1455
1457
|
}, c = (e) => {
|
|
1456
1458
|
let t = e.service ? Je[e.service] : void 0;
|
|
1457
1459
|
return {
|
|
1458
|
-
"s-ui-table__cell--sticky-left": e.sticky ===
|
|
1459
|
-
"s-ui-table__cell--sticky-right": e.sticky ===
|
|
1460
|
+
"s-ui-table__cell--sticky-left": e.sticky === J.LEFT,
|
|
1461
|
+
"s-ui-table__cell--sticky-right": e.sticky === J.RIGHT,
|
|
1460
1462
|
"s-ui-table__cell--last-sticky-left": e.lastStickyLeft,
|
|
1461
1463
|
"s-ui-table__cell--first-sticky-right": e.firstStickyRight,
|
|
1462
1464
|
"s-ui-table__cell--primary": e.primary,
|
|
@@ -1464,9 +1466,9 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1464
1466
|
[pn[e.align]]: !!e.column
|
|
1465
1467
|
};
|
|
1466
1468
|
}, l = (e) => {
|
|
1467
|
-
if (!
|
|
1468
|
-
let i =
|
|
1469
|
-
return e.key === (i ??
|
|
1469
|
+
if (!U(t) || !e.column) return !1;
|
|
1470
|
+
let i = U(n);
|
|
1471
|
+
return e.key === (i ?? U(r));
|
|
1470
1472
|
}, u = (e) => {
|
|
1471
1473
|
let t = ["s-ui-table__cell"];
|
|
1472
1474
|
return Object.entries(c(e)).forEach(([e, n]) => {
|
|
@@ -1502,7 +1504,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1502
1504
|
})
|
|
1503
1505
|
};
|
|
1504
1506
|
}, hn = ({ tableRootElement: e, scrollElement: t, columnDescriptors: n, columnWidths: r, enabled: i, onResizeEnd: a, remeasureRows: o }) => {
|
|
1505
|
-
let s =
|
|
1507
|
+
let s = R(), c = b(() => s.value?.columnKey), l = (e, t) => {
|
|
1506
1508
|
let n = Math.max(e.minWidth, t);
|
|
1507
1509
|
return e.maxWidth ? Math.min(e.maxWidth, n) : n;
|
|
1508
1510
|
}, u = (t, r) => {
|
|
@@ -1512,11 +1514,11 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1512
1514
|
s && i.style.setProperty(s.liveWidthVar, `${r}px`);
|
|
1513
1515
|
let c = 0;
|
|
1514
1516
|
o.forEach((e) => {
|
|
1515
|
-
e.sticky ===
|
|
1517
|
+
e.sticky === J.LEFT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${c}px`), c += a(e));
|
|
1516
1518
|
});
|
|
1517
1519
|
let l = 0;
|
|
1518
1520
|
[...o].reverse().forEach((e) => {
|
|
1519
|
-
e.sticky ===
|
|
1521
|
+
e.sticky === J.RIGHT && e.liveStickyOffsetVar && (i.style.setProperty(e.liveStickyOffsetVar, `${l}px`), l += a(e));
|
|
1520
1522
|
});
|
|
1521
1523
|
}, d = () => {
|
|
1522
1524
|
let t = e.value;
|
|
@@ -1532,25 +1534,25 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1532
1534
|
let t = s.value;
|
|
1533
1535
|
t && (s.value = void 0, e && f(t.columnKey, t.liveWidth), d());
|
|
1534
1536
|
};
|
|
1535
|
-
return
|
|
1537
|
+
return me("pointermove", (e) => {
|
|
1536
1538
|
let t = s.value;
|
|
1537
1539
|
if (!t || e.pointerId !== t.pointerId) return;
|
|
1538
1540
|
let r = n.value.find((e) => e.key === t.columnKey);
|
|
1539
1541
|
if (!r) return;
|
|
1540
1542
|
let i = l(r, t.startWidth + (e.clientX - t.startClientX));
|
|
1541
1543
|
i !== t.liveWidth && (t.liveWidth = i, u(t.columnKey, i));
|
|
1542
|
-
}),
|
|
1544
|
+
}), me("pointerup", (e) => {
|
|
1543
1545
|
s.value && e.pointerId === s.value.pointerId && p(!0);
|
|
1544
|
-
}),
|
|
1546
|
+
}), me("pointercancel", () => {
|
|
1545
1547
|
p(!1);
|
|
1546
|
-
}),
|
|
1548
|
+
}), me("blur", () => {
|
|
1547
1549
|
p(!1);
|
|
1548
|
-
}),
|
|
1550
|
+
}), me("keydown", (e) => {
|
|
1549
1551
|
s.value && e.key === "Escape" && (e.preventDefault(), p(!1));
|
|
1550
1552
|
}), {
|
|
1551
1553
|
resizingColumnKey: c,
|
|
1552
1554
|
handleResizeHandlePointerdown: (e, t) => {
|
|
1553
|
-
if (!
|
|
1555
|
+
if (!U(i)) return;
|
|
1554
1556
|
let r = n.value.find((e) => e.key === t);
|
|
1555
1557
|
r?.resizable && (e.preventDefault(), e.stopPropagation(), e.isTrusted && e.target instanceof Element && e.target.setPointerCapture(e.pointerId), s.value = {
|
|
1556
1558
|
columnKey: t,
|
|
@@ -1561,7 +1563,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1561
1563
|
});
|
|
1562
1564
|
},
|
|
1563
1565
|
handleResizeHandleKeydown: (e, t) => {
|
|
1564
|
-
if (!
|
|
1566
|
+
if (!U(i) || e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
1565
1567
|
let r = n.value.find((e) => e.key === t);
|
|
1566
1568
|
if (!r?.resizable) return;
|
|
1567
1569
|
e.preventDefault();
|
|
@@ -1569,7 +1571,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1569
1571
|
s !== r.width && f(t, s);
|
|
1570
1572
|
},
|
|
1571
1573
|
handleResizeHandleDblclick: (e) => {
|
|
1572
|
-
if (!
|
|
1574
|
+
if (!U(i)) return;
|
|
1573
1575
|
let r = n.value.find((t) => t.key === e), a = t.value;
|
|
1574
1576
|
if (!r?.resizable || !a) return;
|
|
1575
1577
|
let o = r.minWidth;
|
|
@@ -1587,7 +1589,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1587
1589
|
}, v = () => {
|
|
1588
1590
|
let t = e.focusBodyRowIndex.value;
|
|
1589
1591
|
return t === void 0 ? void 0 : n.value[t];
|
|
1590
|
-
}, y = (e) => e.kind === Q.GROUP ?
|
|
1592
|
+
}, y = (e) => e.kind === Q.GROUP ? U(a) : U(r) ?? U(i), b = (t) => {
|
|
1591
1593
|
let n = t.target;
|
|
1592
1594
|
if (!(n instanceof HTMLElement)) return;
|
|
1593
1595
|
let r = n.closest("[data-section]");
|
|
@@ -1650,7 +1652,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1650
1652
|
let r = t.key === "ArrowLeft" || t.key === "ArrowRight";
|
|
1651
1653
|
if (t.altKey && t.shiftKey && r) return t.preventDefault(), f(n, t.key === "ArrowRight" ? 1 : -1), !0;
|
|
1652
1654
|
let i = t.altKey && t.key === "ArrowDown" || t.key === "ContextMenu", a = e.focusAddress.value.section === $.HEADER;
|
|
1653
|
-
return n.column && a && i ? (t.preventDefault(), d(n.key,
|
|
1655
|
+
return n.column && a && i ? (t.preventDefault(), d(n.key, U(s) !== n.key), !0) : !1;
|
|
1654
1656
|
};
|
|
1655
1657
|
return {
|
|
1656
1658
|
handleGridFocusIn: b,
|
|
@@ -1694,7 +1696,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1694
1696
|
case "Spacebar": {
|
|
1695
1697
|
t.preventDefault();
|
|
1696
1698
|
let n = e.focusedBodyRowKey.value;
|
|
1697
|
-
if (!
|
|
1699
|
+
if (!U(o) || !n) break;
|
|
1698
1700
|
l(n);
|
|
1699
1701
|
break;
|
|
1700
1702
|
}
|
|
@@ -1703,60 +1705,60 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1703
1705
|
}
|
|
1704
1706
|
};
|
|
1705
1707
|
}, _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 }) => {
|
|
1706
|
-
let f = /* @__PURE__ */ new Map(), p =
|
|
1708
|
+
let f = /* @__PURE__ */ new Map(), p = V(), m = V(), h = V(), g = (e) => {
|
|
1707
1709
|
if (!(e instanceof HTMLElement)) return;
|
|
1708
1710
|
let t = Number(e.dataset.index);
|
|
1709
1711
|
if (Number.isInteger(t)) return r.value.flatRows[t];
|
|
1710
|
-
},
|
|
1711
|
-
if (!e || !
|
|
1712
|
-
let n =
|
|
1712
|
+
}, _ = (e) => {
|
|
1713
|
+
if (!e || !U(t) || e.kind !== Q.ROW && e.kind !== Q.GROUP) return !1;
|
|
1714
|
+
let n = U(a);
|
|
1713
1715
|
return n ? n(e.item) !== !1 : !0;
|
|
1714
|
-
},
|
|
1716
|
+
}, v = (e, t) => {
|
|
1715
1717
|
let { getSubtreeRangeByKey: n, getRowIndexByKey: i } = r.value, a = n(e), o = i(t);
|
|
1716
1718
|
return !a || o === void 0 ? !1 : o >= a[0] && o <= a[1];
|
|
1717
|
-
},
|
|
1718
|
-
let e =
|
|
1719
|
+
}, y = _e(() => {
|
|
1720
|
+
let e = b.value;
|
|
1719
1721
|
e && !s(e) && c(e);
|
|
1720
|
-
}, () =>
|
|
1721
|
-
|
|
1722
|
-
}, He, { immediate: !1 }),
|
|
1723
|
-
!(e.hasChildren || e.kind === Q.GROUP) || e.expanded ||
|
|
1724
|
-
},
|
|
1725
|
-
|
|
1726
|
-
},
|
|
1727
|
-
if (
|
|
1722
|
+
}, () => U(o) ?? 500, { immediate: !1 }), b = V(), x = _e(() => {
|
|
1723
|
+
C.value = S.value;
|
|
1724
|
+
}, He, { immediate: !1 }), S = V(), C = V(), w = (e) => {
|
|
1725
|
+
!(e.hasChildren || e.kind === Q.GROUP) || e.expanded || b.value !== e.key && (b.value = e.key, y.stop(), y.start());
|
|
1726
|
+
}, T = () => {
|
|
1727
|
+
y.stop(), b.value = void 0, x.stop(), S.value = void 0, C.value = void 0;
|
|
1728
|
+
}, E = (e, t, r, i) => {
|
|
1729
|
+
if (U(n) === Pe.TREE) {
|
|
1728
1730
|
let n = t.getBoundingClientRect(), i = Ve * n.height / 2;
|
|
1729
1731
|
if (Math.abs(r - (n.top + n.height / 2)) <= i) {
|
|
1730
|
-
if (e.kind === Q.GROUP ||
|
|
1731
|
-
|
|
1732
|
-
} else
|
|
1732
|
+
if (e.kind === Q.GROUP || C.value === e.key) return Fe.CHILD;
|
|
1733
|
+
S.value !== e.key && (S.value = e.key, x.stop(), x.start());
|
|
1734
|
+
} else S.value === e.key && (x.stop(), S.value = void 0, C.value = void 0);
|
|
1733
1735
|
}
|
|
1734
1736
|
return i === "top" ? Fe.BEFORE : Fe.AFTER;
|
|
1735
|
-
},
|
|
1737
|
+
}, D, O = (e) => {
|
|
1736
1738
|
[e, ...e.querySelectorAll("[id], [tabindex]")].forEach((e) => {
|
|
1737
1739
|
e.removeAttribute("id"), e.removeAttribute("tabindex");
|
|
1738
1740
|
});
|
|
1739
|
-
},
|
|
1741
|
+
}, k = (e) => {
|
|
1740
1742
|
let t = e.querySelector(".s-ui-table__cell--primary .s-ui-table__cell-body, .s-ui-table__cell--primary .s-ui-table__group-content"), n = t?.closest("td");
|
|
1741
1743
|
return t && n ? {
|
|
1742
1744
|
content: t,
|
|
1743
1745
|
cell: n
|
|
1744
1746
|
} : void 0;
|
|
1745
|
-
},
|
|
1747
|
+
}, A = (e, t) => {
|
|
1746
1748
|
let n = document.createElement("div");
|
|
1747
1749
|
n.className = "s-ui-table__row-drag-preview", n.setAttribute("aria-hidden", "true");
|
|
1748
|
-
let r =
|
|
1750
|
+
let r = k(e);
|
|
1749
1751
|
if (!r) return n.textContent = t ? d(t) : "", n;
|
|
1750
1752
|
let i = r.content.cloneNode(!0);
|
|
1751
|
-
return i instanceof Element &&
|
|
1752
|
-
},
|
|
1753
|
-
|
|
1754
|
-
},
|
|
1755
|
-
|
|
1756
|
-
},
|
|
1757
|
-
N(),
|
|
1753
|
+
return i instanceof Element && O(i), n.style.inlineSize = `${Math.round(r.cell.getBoundingClientRect().width)}px`, n.appendChild(i), n;
|
|
1754
|
+
}, j = (e, t) => {
|
|
1755
|
+
D && (D.style.transform = `translate(${e + 8}px, ${t + 8}px)`);
|
|
1756
|
+
}, M = (e) => {
|
|
1757
|
+
j(e.clientX, e.clientY);
|
|
1758
|
+
}, ee = (e, t, n) => {
|
|
1759
|
+
N(), D = document.createElement("div"), D.className = "s-ui-table__row-drag-layer", D.appendChild(e), document.body.appendChild(D), document.addEventListener("dragover", M), j(t, n);
|
|
1758
1760
|
}, N = () => {
|
|
1759
|
-
document.removeEventListener("dragover",
|
|
1761
|
+
document.removeEventListener("dragover", M), D?.remove(), D = void 0;
|
|
1760
1762
|
}, P = (t) => {
|
|
1761
1763
|
if (!(t instanceof HTMLElement)) {
|
|
1762
1764
|
f.forEach((e, t) => {
|
|
@@ -1765,11 +1767,11 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1765
1767
|
return;
|
|
1766
1768
|
}
|
|
1767
1769
|
if (f.has(t)) return;
|
|
1768
|
-
let n =
|
|
1770
|
+
let n = q(xe({
|
|
1769
1771
|
element: t,
|
|
1770
|
-
canDrag: () => g(
|
|
1772
|
+
canDrag: () => _(g(t)),
|
|
1771
1773
|
getInitialData: () => {
|
|
1772
|
-
let n =
|
|
1774
|
+
let n = g(t);
|
|
1773
1775
|
return {
|
|
1774
1776
|
type: ln,
|
|
1775
1777
|
tableId: e,
|
|
@@ -1778,84 +1780,88 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1778
1780
|
};
|
|
1779
1781
|
},
|
|
1780
1782
|
onGenerateDragPreview: ({ nativeSetDragImage: e, location: n }) => {
|
|
1781
|
-
let r =
|
|
1782
|
-
|
|
1783
|
+
let r = A(t, g(t)), { clientX: i, clientY: a } = n.current.input;
|
|
1784
|
+
Oe({ nativeSetDragImage: e }), ee(r, i, a);
|
|
1783
1785
|
},
|
|
1784
1786
|
onDragStart: () => {
|
|
1785
|
-
p.value =
|
|
1787
|
+
p.value = g(t)?.key, h.value = void 0;
|
|
1786
1788
|
},
|
|
1787
1789
|
onDrop: () => {
|
|
1788
|
-
p.value = void 0, m.value = void 0,
|
|
1790
|
+
p.value = void 0, m.value = void 0, T(), N();
|
|
1789
1791
|
}
|
|
1790
|
-
}),
|
|
1792
|
+
}), Se({
|
|
1791
1793
|
element: t,
|
|
1792
1794
|
canDrop: ({ source: n }) => {
|
|
1793
1795
|
if (!dn(n.data, e)) return !1;
|
|
1794
|
-
let r =
|
|
1795
|
-
return !r || r.key === n.data.rowKey ? !1 : !
|
|
1796
|
+
let r = g(t);
|
|
1797
|
+
return !r || r.key === n.data.rowKey ? !1 : !v(n.data.rowKey, r.key);
|
|
1796
1798
|
},
|
|
1797
|
-
getData: ({ input: e, element: t }) =>
|
|
1799
|
+
getData: ({ input: e, element: t }) => Ee({ rowKey: g(t)?.key ?? "" }, {
|
|
1798
1800
|
input: e,
|
|
1799
1801
|
element: t,
|
|
1800
1802
|
allowedEdges: ["top", "bottom"]
|
|
1801
1803
|
}),
|
|
1802
1804
|
onDrag: ({ self: e, location: n }) => {
|
|
1803
|
-
let r =
|
|
1805
|
+
let r = g(t);
|
|
1804
1806
|
if (!r) return;
|
|
1805
|
-
|
|
1806
|
-
let i =
|
|
1807
|
+
w(r);
|
|
1808
|
+
let i = De(e.data), a = i === "top" || i === "bottom" ? i : null, o = E(r, t, n.current.input.clientY, a), s = o === Fe.CHILD ? r.depth + 1 : r.depth, c = m.value;
|
|
1807
1809
|
(c?.targetKey !== r.key || c.action !== o || c.depth !== s) && (m.value = {
|
|
1808
1810
|
targetKey: r.key,
|
|
1809
1811
|
action: o,
|
|
1810
1812
|
depth: s
|
|
1811
|
-
})
|
|
1813
|
+
}), h.value = {
|
|
1814
|
+
targetKey: r.key,
|
|
1815
|
+
action: o,
|
|
1816
|
+
depth: s
|
|
1817
|
+
};
|
|
1812
1818
|
},
|
|
1813
1819
|
onDragLeave: () => {
|
|
1814
|
-
let e =
|
|
1815
|
-
m.value?.targetKey === e?.key && (m.value = void 0),
|
|
1820
|
+
let e = g(t);
|
|
1821
|
+
m.value?.targetKey === e?.key && (m.value = void 0), b.value === e?.key && (y.stop(), b.value = void 0);
|
|
1816
1822
|
}
|
|
1817
1823
|
}));
|
|
1818
1824
|
f.set(t, n);
|
|
1819
|
-
},
|
|
1825
|
+
}, I = Ce({
|
|
1820
1826
|
canMonitor: ({ source: t }) => dn(t.data, e),
|
|
1821
1827
|
onDrop: ({ source: t, location: i }) => {
|
|
1822
|
-
let a =
|
|
1823
|
-
if (p.value = void 0, m.value = void 0,
|
|
1824
|
-
let { flatRows: o, getRowIndexByKey: s } = r.value, c = s(t.data.rowKey), d = s(a.targetKey), f = c === void 0 ? void 0 : o[c],
|
|
1825
|
-
if (!f || !
|
|
1826
|
-
if (
|
|
1828
|
+
let a = h.value;
|
|
1829
|
+
if (h.value = void 0, p.value = void 0, m.value = void 0, T(), !i.current.dropTargets[0] || !a || !dn(t.data, e)) return;
|
|
1830
|
+
let { flatRows: o, getRowIndexByKey: s } = r.value, c = s(t.data.rowKey), d = s(a.targetKey), f = c === void 0 ? void 0 : o[c], g = d === void 0 ? void 0 : o[d];
|
|
1831
|
+
if (!f || !g || f.key === g.key || v(f.key, g.key)) return;
|
|
1832
|
+
if (U(n) === Pe.FLAT) {
|
|
1827
1833
|
if (a.action === Fe.CHILD) return;
|
|
1828
1834
|
l({
|
|
1829
1835
|
action: a.action,
|
|
1830
1836
|
sourceKey: f.key,
|
|
1831
1837
|
sourceItem: f.item,
|
|
1832
|
-
targetKey:
|
|
1833
|
-
targetItem:
|
|
1838
|
+
targetKey: g.key,
|
|
1839
|
+
targetItem: g.item,
|
|
1834
1840
|
sourceIndex: f.index,
|
|
1835
|
-
targetIndex:
|
|
1841
|
+
targetIndex: g.index
|
|
1836
1842
|
});
|
|
1837
1843
|
return;
|
|
1838
1844
|
}
|
|
1839
|
-
let
|
|
1845
|
+
let _ = a.action === Fe.CHILD, y = _ ? g.key : g.parentKey, b = y === void 0 ? void 0 : s(y), x = b === void 0 ? void 0 : o[b];
|
|
1840
1846
|
u({
|
|
1841
1847
|
action: a.action,
|
|
1842
1848
|
sourceKey: f.key,
|
|
1843
1849
|
sourceItem: f.item,
|
|
1844
|
-
targetKey:
|
|
1845
|
-
targetItem:
|
|
1846
|
-
parentKey:
|
|
1847
|
-
parentItem:
|
|
1848
|
-
depth:
|
|
1850
|
+
targetKey: g.key,
|
|
1851
|
+
targetItem: g.item,
|
|
1852
|
+
parentKey: y,
|
|
1853
|
+
parentItem: x?.item,
|
|
1854
|
+
depth: _ ? g.depth + 1 : g.depth
|
|
1849
1855
|
});
|
|
1850
1856
|
}
|
|
1851
1857
|
}), L;
|
|
1852
|
-
return
|
|
1853
|
-
L?.(), L = void 0, t && (L =
|
|
1858
|
+
return G(i, (t) => {
|
|
1859
|
+
L?.(), L = void 0, t && (L = ke({
|
|
1854
1860
|
element: t,
|
|
1855
1861
|
canScroll: ({ source: t }) => dn(t.data, e)
|
|
1856
1862
|
}));
|
|
1857
|
-
}, { immediate: !0 }),
|
|
1858
|
-
|
|
1863
|
+
}, { immediate: !0 }), F(() => {
|
|
1864
|
+
I(), L?.(), N(), f.forEach((e) => {
|
|
1859
1865
|
e();
|
|
1860
1866
|
}), f.clear();
|
|
1861
1867
|
}), {
|
|
@@ -1883,7 +1889,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1883
1889
|
rowHeight: t ? t.end - t.start : void 0
|
|
1884
1890
|
});
|
|
1885
1891
|
};
|
|
1886
|
-
if (!
|
|
1892
|
+
if (!U(t)) return u.forEach(x), y;
|
|
1887
1893
|
let S = r.value, C = n.value.filter((e) => {
|
|
1888
1894
|
let t = i(e);
|
|
1889
1895
|
return !t || t.end > 0 && t.start < S;
|
|
@@ -1930,8 +1936,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1930
1936
|
}, yn = ({ selected: e, cascade: t, treeIndex: n, groupRow: r, disabledKey: i, isItemSelectable: a }) => {
|
|
1931
1937
|
let o = b(() => new Set(e.value)), s = (e) => n.value.nodeByKey.get(e)?.parentKey, c = (e) => {
|
|
1932
1938
|
let t = n.value.nodeByKey.get(e);
|
|
1933
|
-
if (!t || Ht(t.item,
|
|
1934
|
-
let o =
|
|
1939
|
+
if (!t || Ht(t.item, U(r)) || Ht(t.item, U(i))) return !1;
|
|
1940
|
+
let o = U(a);
|
|
1935
1941
|
return o ? o(t.item) !== !1 : !0;
|
|
1936
1942
|
}, l = b(() => {
|
|
1937
1943
|
let e = [];
|
|
@@ -1964,7 +1970,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1964
1970
|
}, _ = (n) => {
|
|
1965
1971
|
if (!c(n)) return;
|
|
1966
1972
|
let r = new Set(e.value);
|
|
1967
|
-
if (!
|
|
1973
|
+
if (!U(t)) {
|
|
1968
1974
|
r.has(n) ? r.delete(n) : r.add(n), e.value = [...r];
|
|
1969
1975
|
return;
|
|
1970
1976
|
}
|
|
@@ -1996,10 +2002,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1996
2002
|
}
|
|
1997
2003
|
};
|
|
1998
2004
|
}, 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 }) => {
|
|
1999
|
-
let m = b(() =>
|
|
2005
|
+
let m = b(() => U(e).find((e) => e.key === t.value)), h = b(() => U(i)?.columnKey ?? t.value), g = b(() => U(a) ?? t.value), _ = b(() => U(o) ?? t.value), v = b(() => U(s) ?? t.value), y = (e) => n.value.get(e.key)?.subtreeSize ?? 0, x = (e) => Wt(e.item, U(r)), S = (e) => {
|
|
2000
2006
|
let t = Ut(e.item, m.value?.value ?? m.value?.key);
|
|
2001
2007
|
return t === void 0 ? void 0 : String(t);
|
|
2002
|
-
}, C = (e) => ({ paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e *
|
|
2008
|
+
}, C = (e) => ({ paddingInlineStart: `calc(var(--s-ui-dimension-4) + ${e * U(c)}px)` }), w = (e) => {
|
|
2003
2009
|
f({
|
|
2004
2010
|
parentKey: e.parentKey ?? "",
|
|
2005
2011
|
parentItem: e.item,
|
|
@@ -2013,7 +2019,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2013
2019
|
click: () => {
|
|
2014
2020
|
w(e);
|
|
2015
2021
|
}
|
|
2016
|
-
}), E = b(() => new Set(
|
|
2022
|
+
}), E = b(() => new Set(U(l))), D = (e) => e.parentKey ? E.value.has(e.parentKey) : !1, O = (e) => {
|
|
2017
2023
|
!e.parentKey || D(e) || p({
|
|
2018
2024
|
key: e.parentKey,
|
|
2019
2025
|
item: e.item
|
|
@@ -2026,7 +2032,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2026
2032
|
loadMore: () => {
|
|
2027
2033
|
O(e);
|
|
2028
2034
|
}
|
|
2029
|
-
}), A = (e) =>
|
|
2035
|
+
}), A = (e) => U(u)?.[e];
|
|
2030
2036
|
return {
|
|
2031
2037
|
depthFooterColumnKey: h,
|
|
2032
2038
|
groupColumnKey: g,
|
|
@@ -2050,7 +2056,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2050
2056
|
return t ? `s-ui-table__aggregate-cell--tone-${t}` : void 0;
|
|
2051
2057
|
},
|
|
2052
2058
|
getFooterSlotScope: (t) => ({
|
|
2053
|
-
column:
|
|
2059
|
+
column: U(e).find((e) => e.key === t) ?? { key: t },
|
|
2054
2060
|
footerValue: A(t)
|
|
2055
2061
|
})
|
|
2056
2062
|
};
|
|
@@ -2103,7 +2109,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2103
2109
|
} : { column: { key: e.key } }
|
|
2104
2110
|
};
|
|
2105
2111
|
}, Sn = ({ windowIndexes: e, visibleRange: t, getRowKey: n, pinnedRowKey: r, enabled: i }) => {
|
|
2106
|
-
let a = /* @__PURE__ */ new Set(), o =
|
|
2112
|
+
let a = /* @__PURE__ */ new Set(), o = V(/* @__PURE__ */ new Set()), s = [], c = 12, l = 0, u = !1, d = !1, f = 0, p = "", m = () => {
|
|
2107
2113
|
l = performance.now(), u = !0, o.value = new Set(a);
|
|
2108
2114
|
}, h = (e) => {
|
|
2109
2115
|
let t = s.splice(0, e);
|
|
@@ -2118,7 +2124,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2118
2124
|
e < 20 && (c = Math.min(64, c + 2));
|
|
2119
2125
|
}, _ = () => {
|
|
2120
2126
|
u && (u = !1, g(performance.now() - l));
|
|
2121
|
-
}, v =
|
|
2127
|
+
}, v = he(() => {
|
|
2122
2128
|
f = 0, _(), d ? d = !1 : h(c) > 0 && m(), s.length === 0 && v.pause();
|
|
2123
2129
|
}, { immediate: !1 }), y = (e) => {
|
|
2124
2130
|
let n = t.value, r = n ? (n.startIndex + n.endIndex) / 2 : 0;
|
|
@@ -2130,7 +2136,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2130
2136
|
r !== void 0 && !a.has(r) && t.push(r);
|
|
2131
2137
|
}), t;
|
|
2132
2138
|
}, x = (e) => {
|
|
2133
|
-
let t =
|
|
2139
|
+
let t = U(r), n = t === void 0 ? -1 : e.indexOf(t);
|
|
2134
2140
|
return n > 0 && (e.splice(n, 1), e.unshift(t ?? "")), e;
|
|
2135
2141
|
}, S = (e) => {
|
|
2136
2142
|
let t = new Set(e.map(n)), r = 0;
|
|
@@ -2143,89 +2149,89 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2143
2149
|
(s.length > 0 || e > 0) && v.resume();
|
|
2144
2150
|
}, T = (e) => `${e[0]}:${e[e.length - 1]}:${e.length}`, E = (e) => {
|
|
2145
2151
|
let t = T(e);
|
|
2146
|
-
if (!
|
|
2152
|
+
if (!U(i) || t === p) return;
|
|
2147
2153
|
p = t, s = x(b(e));
|
|
2148
2154
|
let n = S(e), r = h(Math.max(0, c - f));
|
|
2149
2155
|
f += r, C(n + r), w(r);
|
|
2150
2156
|
};
|
|
2151
|
-
return
|
|
2157
|
+
return G(e, E, {
|
|
2152
2158
|
flush: "sync",
|
|
2153
2159
|
immediate: !0
|
|
2154
|
-
}),
|
|
2160
|
+
}), G(() => U(i), () => {
|
|
2155
2161
|
p = "", E(e.value);
|
|
2156
2162
|
}), {
|
|
2157
|
-
isRowHydrated: (e) => !
|
|
2163
|
+
isRowHydrated: (e) => !U(i) || e === U(r) || o.value.has(e),
|
|
2158
2164
|
hydratedKeys: o
|
|
2159
2165
|
};
|
|
2160
2166
|
}, Cn = {
|
|
2161
2167
|
pinned: [],
|
|
2162
2168
|
sliding: []
|
|
2163
|
-
}, wn = ({ snapshot: e, visibleRange: t,
|
|
2164
|
-
let
|
|
2165
|
-
let
|
|
2166
|
-
if (!n) return;
|
|
2167
|
-
let { flatRows:
|
|
2168
|
-
if (!
|
|
2169
|
-
let
|
|
2170
|
-
for (;
|
|
2171
|
-
let e =
|
|
2169
|
+
}, wn = ({ snapshot: e, visibleRange: t, groupRowSticky: n, depthFooterSticky: r, bottomVisibleRowIndex: i, getRowOffset: a }) => {
|
|
2170
|
+
let o = b(() => {
|
|
2171
|
+
let r = t.value;
|
|
2172
|
+
if (!r || !U(n)) return;
|
|
2173
|
+
let { flatRows: i, getRowIndexByKey: a } = e.value, o = i[r.startIndex];
|
|
2174
|
+
if (!o) return;
|
|
2175
|
+
let s = o.kind === Q.GROUP ? o.key : o.parentKey;
|
|
2176
|
+
for (; s;) {
|
|
2177
|
+
let e = a(s), t = e === void 0 ? void 0 : i[e];
|
|
2172
2178
|
if (!t) return;
|
|
2173
2179
|
if (t.kind === Q.GROUP) return t.index;
|
|
2174
|
-
|
|
2180
|
+
s = t.parentKey;
|
|
2175
2181
|
}
|
|
2176
|
-
}),
|
|
2182
|
+
}), s = (e) => e.kind === Q.DEPTH_FOOTER || e.kind === Q.LOAD_MORE ? e.parentKey : e.key, c = (t) => {
|
|
2177
2183
|
let { flatRows: n, getRowIndexByKey: r } = e.value, i = r(t);
|
|
2178
2184
|
return i === void 0 ? void 0 : n[i]?.parentKey;
|
|
2179
|
-
},
|
|
2180
|
-
let { flatRows: n, depthFooterIndexByParentKey: r } = e.value, i = n[t], a = i ?
|
|
2185
|
+
}, l = (t) => {
|
|
2186
|
+
let { flatRows: n, depthFooterIndexByParentKey: r } = e.value, i = n[t], a = i ? s(i) : void 0;
|
|
2181
2187
|
for (; a;) {
|
|
2182
2188
|
let e = r.get(a);
|
|
2183
2189
|
if (e !== void 0) return e;
|
|
2184
|
-
a =
|
|
2190
|
+
a = c(a);
|
|
2185
2191
|
}
|
|
2186
|
-
}, l = (e, t) => {
|
|
2187
|
-
let n = i(e)?.start;
|
|
2188
|
-
return n !== void 0 && n - t < 1200;
|
|
2189
2192
|
}, u = (e, t) => {
|
|
2193
|
+
let n = a(e)?.start;
|
|
2194
|
+
return n !== void 0 && n - t < 1200;
|
|
2195
|
+
}, d = (e, t) => {
|
|
2190
2196
|
let n = [e], r = e;
|
|
2191
|
-
for (; n.length < 6 &&
|
|
2192
|
-
let e =
|
|
2197
|
+
for (; n.length < 6 && u(r, t);) {
|
|
2198
|
+
let e = l(r + 1);
|
|
2193
2199
|
if (e === void 0) return n;
|
|
2194
2200
|
n.push(e), r = e;
|
|
2195
2201
|
}
|
|
2196
2202
|
return n;
|
|
2197
|
-
},
|
|
2198
|
-
let t =
|
|
2199
|
-
return t === void 0 ? [] :
|
|
2200
|
-
},
|
|
2203
|
+
}, f = (e) => {
|
|
2204
|
+
let t = l(e);
|
|
2205
|
+
return t === void 0 ? [] : d(t, a(e)?.end ?? 0);
|
|
2206
|
+
}, p = (t, n) => {
|
|
2201
2207
|
let { flatRows: r } = e.value;
|
|
2202
2208
|
return [t - 2, t - 1].filter((e) => r[e]?.kind === Q.DEPTH_FOOTER && !n.includes(e));
|
|
2203
|
-
},
|
|
2204
|
-
let e =
|
|
2205
|
-
if (!
|
|
2206
|
-
let t =
|
|
2209
|
+
}, m = b(() => {
|
|
2210
|
+
let e = i.value;
|
|
2211
|
+
if (!U(r) || e === void 0) return Cn;
|
|
2212
|
+
let t = f(e);
|
|
2207
2213
|
return {
|
|
2208
2214
|
pinned: t,
|
|
2209
|
-
sliding:
|
|
2215
|
+
sliding: p(e, t)
|
|
2210
2216
|
};
|
|
2211
|
-
}),
|
|
2212
|
-
let { pinned: e, sliding: t } =
|
|
2217
|
+
}), h = b(() => {
|
|
2218
|
+
let { pinned: e, sliding: t } = m.value;
|
|
2213
2219
|
return [...t, ...e];
|
|
2214
2220
|
});
|
|
2215
2221
|
return {
|
|
2216
|
-
activeGroupRowIndex:
|
|
2217
|
-
activeDepthFooterRowIndex: b(() =>
|
|
2218
|
-
activeDepthFooterRowIndexes:
|
|
2222
|
+
activeGroupRowIndex: o,
|
|
2223
|
+
activeDepthFooterRowIndex: b(() => m.value.pinned[0]),
|
|
2224
|
+
activeDepthFooterRowIndexes: h,
|
|
2219
2225
|
leavingDepthFooterRowIndex: b(() => {
|
|
2220
|
-
let [e, t] =
|
|
2226
|
+
let [e, t] = m.value.pinned;
|
|
2221
2227
|
return t === void 0 ? void 0 : e;
|
|
2222
2228
|
}),
|
|
2223
|
-
slidingDepthFooterRowIndexes: b(() =>
|
|
2224
|
-
farDepthFooterRowIndexes: b(() =>
|
|
2229
|
+
slidingDepthFooterRowIndexes: b(() => m.value.sliding),
|
|
2230
|
+
farDepthFooterRowIndexes: b(() => m.value.pinned.slice(2))
|
|
2225
2231
|
};
|
|
2226
2232
|
}, 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 }) => ({
|
|
2227
2233
|
rootStyle: b(() => {
|
|
2228
|
-
let i =
|
|
2234
|
+
let i = U(n);
|
|
2229
2235
|
return {
|
|
2230
2236
|
"--s-ui-table-header-height": "40px",
|
|
2231
2237
|
"--s-ui-table-row-min-height": "40px",
|
|
@@ -2234,14 +2240,14 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2234
2240
|
"--s-ui-table-bottom-stack": `${e.value}px`,
|
|
2235
2241
|
"--s-ui-table-footer-bar-height": "40px",
|
|
2236
2242
|
"--s-ui-table-create-row-height": "40px",
|
|
2237
|
-
"--s-ui-table-aggregate-offset":
|
|
2243
|
+
"--s-ui-table-aggregate-offset": U(t) ? "40px" : "0px",
|
|
2238
2244
|
...i > 0 ? { "--s-ui-table-viewport-width": `${i}px` } : {},
|
|
2239
2245
|
...r.value
|
|
2240
2246
|
};
|
|
2241
2247
|
}),
|
|
2242
2248
|
scrollStyle: b(() => ({
|
|
2243
|
-
height: Tn(
|
|
2244
|
-
maxHeight: Tn(
|
|
2249
|
+
height: Tn(U(a)),
|
|
2250
|
+
maxHeight: Tn(U(o))
|
|
2245
2251
|
})),
|
|
2246
2252
|
tableStyle: b(() => ({ width: `max(100%, ${i.value}px)` }))
|
|
2247
2253
|
}), Dn, On = () => {
|
|
@@ -2256,8 +2262,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2256
2262
|
let r = Math.max(t, Be);
|
|
2257
2263
|
return n > 4 * r ? r : 0;
|
|
2258
2264
|
}, 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 }) => {
|
|
2259
|
-
let a =
|
|
2260
|
-
let e =
|
|
2265
|
+
let a = V(0), o = b(() => {
|
|
2266
|
+
let e = U(t), i = U(r), a = U(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);
|
|
2261
2267
|
return {
|
|
2262
2268
|
active: s,
|
|
2263
2269
|
uiHeight: c,
|
|
@@ -2266,32 +2272,32 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2266
2272
|
edgeZone: d,
|
|
2267
2273
|
ratio: s ? (u - 2 * d) / (l - 2 * d) : 1
|
|
2268
2274
|
};
|
|
2269
|
-
}), s = (e) => jn(o.value, e), c = (e) => Mn(o.value, e), l =
|
|
2270
|
-
|
|
2275
|
+
}), s = (e) => jn(o.value, e), c = (e) => Mn(o.value, e), l = V(0), u = V(-1);
|
|
2276
|
+
me(e, "scroll", () => {
|
|
2271
2277
|
let t = e.value;
|
|
2272
2278
|
t && (a.value = t.scrollTop, t.scrollTop !== u.value && (u.value = t.scrollTop, l.value = s(t.scrollTop)));
|
|
2273
2279
|
}, { passive: !0 });
|
|
2274
2280
|
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) => {
|
|
2275
2281
|
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);
|
|
2276
|
-
}, v = (t) => t === "y" ?
|
|
2282
|
+
}, v = (t) => t === "y" ? U(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) => {
|
|
2277
2283
|
let n = e.value;
|
|
2278
2284
|
if (!n || !S(t)) return;
|
|
2279
2285
|
let { maxModelScrollTop: r } = o.value, i = d(n), a = Math.max(0, Math.min(r, i + x(t, "y")));
|
|
2280
2286
|
a !== i && (t.preventDefault(), _(n, c(a), a), n.scrollLeft += x(t, "x"));
|
|
2281
2287
|
}, w, T = (t) => {
|
|
2282
|
-
w?.(), w = t ?
|
|
2288
|
+
w?.(), w = t ? me(e, "wheel", C, { passive: !1 }) : void 0;
|
|
2283
2289
|
};
|
|
2284
|
-
|
|
2290
|
+
fe(() => {
|
|
2285
2291
|
w?.();
|
|
2286
2292
|
});
|
|
2287
2293
|
let E = (e, t) => e.scrollTop === u.value ? l.value : jn(t, e.scrollTop);
|
|
2288
|
-
return
|
|
2289
|
-
|
|
2294
|
+
return I(() => {
|
|
2295
|
+
G(o, (t, n) => {
|
|
2290
2296
|
let r = e.value;
|
|
2291
2297
|
if (!r || !Pn(t, n)) return;
|
|
2292
2298
|
let a = E(r, n);
|
|
2293
2299
|
_(r, Mn(t, a), a), i?.(a);
|
|
2294
|
-
}),
|
|
2300
|
+
}), G(g, T, { immediate: !0 });
|
|
2295
2301
|
}), {
|
|
2296
2302
|
uiScrollTop: a,
|
|
2297
2303
|
modelScrollOffset: f,
|
|
@@ -2313,30 +2319,30 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2313
2319
|
onRescale: (e) => {
|
|
2314
2320
|
f?.(e, !1);
|
|
2315
2321
|
}
|
|
2316
|
-
}), m =
|
|
2322
|
+
}), m = V(0), h = 0, g = (e, t, n) => {
|
|
2317
2323
|
let r = Math.round((e - h) / n);
|
|
2318
2324
|
h = e, m.value = t ? Math.max(-24, Math.min(24, r)) : 0;
|
|
2319
|
-
}, _ =
|
|
2320
|
-
let n =
|
|
2325
|
+
}, _ = be(b(() => {
|
|
2326
|
+
let n = U(r);
|
|
2321
2327
|
return {
|
|
2322
|
-
count:
|
|
2323
|
-
enabled:
|
|
2328
|
+
count: U(e),
|
|
2329
|
+
enabled: U(t),
|
|
2324
2330
|
getScrollElement: () => o.value,
|
|
2325
2331
|
estimateSize: (e) => i?.(e) ?? n,
|
|
2326
2332
|
getItemKey: s,
|
|
2327
|
-
overscan:
|
|
2333
|
+
overscan: U(a),
|
|
2328
2334
|
shouldAdjustScrollPositionOnItemSizeChange: () => !1,
|
|
2329
|
-
observeElementOffset: (e, t) => (f = t,
|
|
2335
|
+
observeElementOffset: (e, t) => (f = t, ye(e, (e, r) => {
|
|
2330
2336
|
let i = p.uiToModel(e);
|
|
2331
2337
|
g(i, r, n), t(i, r);
|
|
2332
2338
|
})),
|
|
2333
2339
|
scrollToFn: (e, t, n) => {
|
|
2334
|
-
|
|
2340
|
+
ve(p.modelToUi(e + (t.adjustments ?? 0)), { behavior: t.behavior }, n);
|
|
2335
2341
|
}
|
|
2336
2342
|
};
|
|
2337
|
-
})), v = b(() =>
|
|
2343
|
+
})), v = b(() => U(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) => {
|
|
2338
2344
|
let r = t[0], i = t[t.length - 1];
|
|
2339
|
-
if (!(!r || !i)) return n > 0 ? [i.index + 1, Math.min(
|
|
2345
|
+
if (!(!r || !i)) return n > 0 ? [i.index + 1, Math.min(U(e) - 1, i.index + n)] : [Math.max(0, r.index + n), r.index - 1];
|
|
2340
2346
|
}, C = b(() => {
|
|
2341
2347
|
let e = v.value, t = e.map((e) => e.index), n = m.value, r = n === 0 ? void 0 : S(e, n);
|
|
2342
2348
|
if (!r) return t;
|
|
@@ -2347,7 +2353,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2347
2353
|
let t = Number(e.dataset.index);
|
|
2348
2354
|
return Number.isInteger(t) ? t : void 0;
|
|
2349
2355
|
}, E = (e) => {
|
|
2350
|
-
if (!
|
|
2356
|
+
if (!U(t) || !U(n)) return;
|
|
2351
2357
|
let r = o.value;
|
|
2352
2358
|
if (!r) return;
|
|
2353
2359
|
let i = r.querySelectorAll("tr[data-index]"), a = [];
|
|
@@ -2355,7 +2361,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2355
2361
|
let n = T(t);
|
|
2356
2362
|
n === void 0 || !(t instanceof HTMLElement) || (!e || !w.has(s(n))) && a.push(t);
|
|
2357
2363
|
}), a.length === 0) return;
|
|
2358
|
-
let c = _.value.measurementsCache, l = r.getBoundingClientRect().top +
|
|
2364
|
+
let c = _.value.measurementsCache, l = r.getBoundingClientRect().top + U(d), u = p.resolveModelOffset(r), f = [], m = Infinity;
|
|
2359
2365
|
a.forEach((e) => {
|
|
2360
2366
|
let t = Number(e.dataset.index), n = e.getBoundingClientRect();
|
|
2361
2367
|
f.push([t, Math.round(n.height)]), n.bottom > l + 1 && t < m && (m = t);
|
|
@@ -2368,23 +2374,23 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2368
2374
|
e < m && n !== void 0 && (h += t - n), _.value.resizeItem(e, t);
|
|
2369
2375
|
}), h !== 0 && p.setScrollTop(r, p.modelToUi(u + h), u + h);
|
|
2370
2376
|
};
|
|
2371
|
-
|
|
2377
|
+
G(C, () => E(!0), { flush: "post" });
|
|
2372
2378
|
let D = () => {
|
|
2373
2379
|
E(!0);
|
|
2374
2380
|
}, O = () => {
|
|
2375
2381
|
w.clear(), E(!1);
|
|
2376
2382
|
};
|
|
2377
|
-
|
|
2383
|
+
ge(o, () => {
|
|
2378
2384
|
O();
|
|
2379
|
-
}),
|
|
2385
|
+
}), G(() => U(c), () => {
|
|
2380
2386
|
w.clear(), E(!1);
|
|
2381
2387
|
}, { flush: "post" });
|
|
2382
2388
|
let k = (e, t) => {
|
|
2383
2389
|
if (e !== "auto") return e;
|
|
2384
|
-
let n =
|
|
2390
|
+
let n = U(l) - U(u), r = p.modelScrollOffset.value;
|
|
2385
2391
|
return t.end >= r + n ? "end" : t.start <= r ? "start" : void 0;
|
|
2386
2392
|
}, A = (e, t) => {
|
|
2387
|
-
let n =
|
|
2393
|
+
let n = U(l) - U(u);
|
|
2388
2394
|
return e === "start" ? t.start : e === "end" ? t.end - n : t.start - (n - t.size) / 2;
|
|
2389
2395
|
}, j = (e, t) => {
|
|
2390
2396
|
let n = _.value.measurementsCache, r = n[Math.max(0, Math.min(e, n.length - 1))];
|
|
@@ -2401,9 +2407,9 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2401
2407
|
}
|
|
2402
2408
|
let r = j(e, t);
|
|
2403
2409
|
r !== void 0 && p.setScrollTop(n, p.modelToUi(r), r);
|
|
2404
|
-
},
|
|
2405
|
-
if (!(!
|
|
2406
|
-
}),
|
|
2410
|
+
}, ee = b(() => {
|
|
2411
|
+
if (!(!U(t) || v.value.length === 0)) return _.value.range ?? void 0;
|
|
2412
|
+
}), N = (e) => {
|
|
2407
2413
|
let t = _.value.measurementsCache;
|
|
2408
2414
|
if (t.length === 0) return;
|
|
2409
2415
|
let n = 0, r = t.length - 1;
|
|
@@ -2413,7 +2419,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2413
2419
|
a.end <= e ? n = i + 1 : r = i;
|
|
2414
2420
|
}
|
|
2415
2421
|
return n;
|
|
2416
|
-
},
|
|
2422
|
+
}, P = (e) => {
|
|
2417
2423
|
let t = _.value.measurementsCache[e];
|
|
2418
2424
|
if (t) return {
|
|
2419
2425
|
start: t.start,
|
|
@@ -2431,10 +2437,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2431
2437
|
measureWindowRows: O,
|
|
2432
2438
|
measureNewRows: D,
|
|
2433
2439
|
scrollToIndex: M,
|
|
2434
|
-
visibleRange:
|
|
2435
|
-
getRowOffset:
|
|
2440
|
+
visibleRange: ee,
|
|
2441
|
+
getRowOffset: P,
|
|
2436
2442
|
getRowUiOffset: (e) => {
|
|
2437
|
-
let t =
|
|
2443
|
+
let t = P(e);
|
|
2438
2444
|
if (!t) return;
|
|
2439
2445
|
let n = p.uiShift.value;
|
|
2440
2446
|
return {
|
|
@@ -2442,7 +2448,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2442
2448
|
end: t.end - n
|
|
2443
2449
|
};
|
|
2444
2450
|
},
|
|
2445
|
-
getRowIndexAtOffset:
|
|
2451
|
+
getRowIndexAtOffset: N
|
|
2446
2452
|
};
|
|
2447
2453
|
}, Ln = [
|
|
2448
2454
|
"role",
|
|
@@ -2506,6 +2512,14 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2506
2512
|
},
|
|
2507
2513
|
childrenKey: { default: "children" },
|
|
2508
2514
|
groupRow: { type: [String, Function] },
|
|
2515
|
+
groupRowSticky: {
|
|
2516
|
+
type: Boolean,
|
|
2517
|
+
default: !0
|
|
2518
|
+
},
|
|
2519
|
+
columnsManagerBodySticky: {
|
|
2520
|
+
type: Boolean,
|
|
2521
|
+
default: !0
|
|
2522
|
+
},
|
|
2509
2523
|
groupTotalKey: {},
|
|
2510
2524
|
groupContentColumnKey: {},
|
|
2511
2525
|
disabledKey: {},
|
|
@@ -2617,19 +2631,19 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2617
2631
|
"update:sortState"
|
|
2618
2632
|
]),
|
|
2619
2633
|
setup(e, { expose: t, emit: n }) {
|
|
2620
|
-
let s =
|
|
2634
|
+
let s = re(e, "modelValue"), c = re(e, "selected"), p = re(e, "expanded"), m = re(e, "columnOrder"), h = re(e, "columnWidths"), O = re(e, "hiddenColumns"), A = re(e, "sortState"), j = n, F = ie(), { t: I } = de(), R = ne(), te = ae("scrollElementRef"), U = ae("tableElementRef"), se = ae("tableRootRef"), { width: ue, height: fe } = pe(te), { primaryColumnKey: me, columnDescriptors: he, columnCssVars: ge, totalWidth: _e, columnCount: ve } = ct({
|
|
2621
2635
|
columns: () => e.columns,
|
|
2622
2636
|
columnOrder: m,
|
|
2623
2637
|
columnWidths: h,
|
|
2624
2638
|
hiddenColumns: O,
|
|
2625
|
-
hasIndicator: () => !!
|
|
2639
|
+
hasIndicator: () => !!F.indicator,
|
|
2626
2640
|
hasCheckbox: () => e.selectable,
|
|
2627
|
-
hasRightEdge: () => !!
|
|
2641
|
+
hasRightEdge: () => !!F["right-edge"],
|
|
2628
2642
|
hasColumnsManager: () => e.columnsManageable,
|
|
2629
2643
|
columnsResizable: () => e.columnsResizable,
|
|
2630
2644
|
columnsDraggable: () => e.columnsDraggable,
|
|
2631
|
-
viewportWidth: () =>
|
|
2632
|
-
}), { treeIndex:
|
|
2645
|
+
viewportWidth: () => ue.value
|
|
2646
|
+
}), { treeIndex: ye, snapshot: be, flatRows: q, toggleExpanded: xe, expandAll: Se, collapseAll: Ce } = Kt({
|
|
2633
2647
|
items: () => e.items,
|
|
2634
2648
|
itemKey: () => e.itemKey,
|
|
2635
2649
|
childrenKey: () => e.childrenKey,
|
|
@@ -2637,32 +2651,35 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2637
2651
|
expanded: p,
|
|
2638
2652
|
depthFooter: () => e.depthFooter,
|
|
2639
2653
|
hasMoreChildrenKey: () => e.hasMoreChildrenKey
|
|
2640
|
-
}), { leadingDescriptors:
|
|
2641
|
-
columnDescriptors:
|
|
2654
|
+
}), { leadingDescriptors: we, trailingDescriptors: Te, headerCells: Ee, getStickyCellStyle: De, getHeaderCellClasses: Oe, leadingCellPlans: ke, trailingCellPlans: J, rowCellPlans: Y } = mn({
|
|
2655
|
+
columnDescriptors: he,
|
|
2642
2656
|
hasTreeStructure: () => Ae.value,
|
|
2643
2657
|
expandColumnKey: () => e.expandColumnKey,
|
|
2644
|
-
primaryColumnKey:
|
|
2645
|
-
}), X = b(() =>
|
|
2658
|
+
primaryColumnKey: me
|
|
2659
|
+
}), X = b(() => he.value.length + 1), Ae = b(() => ye.value.expandableKeys.length > 0), je = b(() => Ae.value ? "treegrid" : "grid"), Me = b(() => q.value.length + 1 + +!!e.creationRow + +!!e.footerValues), Ie = b(() => e.virtual), Le = b(() => ({
|
|
2660
|
+
"s-ui-table--rows-fixed": e.rowHeightMode === Ne.FIXED,
|
|
2661
|
+
"s-ui-table--columns-manager-body-static": !e.columnsManagerBodySticky
|
|
2662
|
+
})), Re = b(() => {
|
|
2646
2663
|
let t = 0;
|
|
2647
2664
|
return e.footerValues && (t += 40), e.creationRow && (t += 40), t;
|
|
2648
2665
|
}), ze = [];
|
|
2649
|
-
|
|
2666
|
+
G(q, (e) => {
|
|
2650
2667
|
ze = e;
|
|
2651
2668
|
}, {
|
|
2652
2669
|
flush: "sync",
|
|
2653
2670
|
immediate: !0
|
|
2654
2671
|
});
|
|
2655
2672
|
let { windowIndexes: Be, uiTotalSize: Ve, modelScrollOffset: He, scrollToIndex: Ue, visibleRange: Ge, getRowOffset: Je, getRowUiOffset: Ye, getRowIndexAtOffset: Xe, measureWindowRows: Ze, measureNewRows: Qe } = In({
|
|
2656
|
-
rowCount: () =>
|
|
2673
|
+
rowCount: () => q.value.length,
|
|
2657
2674
|
enabled: Ie,
|
|
2658
2675
|
autoMeasure: () => e.rowHeightMode === Ne.AUTO,
|
|
2659
2676
|
estimateRowSize: () => e.estimateRowSize,
|
|
2660
2677
|
estimateRowSizeByIndex: void 0,
|
|
2661
2678
|
overscan: () => e.overscan,
|
|
2662
|
-
scrollElement:
|
|
2679
|
+
scrollElement: te,
|
|
2663
2680
|
getRowKey: (e) => ze[e]?.key ?? e,
|
|
2664
|
-
rowsVersion:
|
|
2665
|
-
viewportHeight: () =>
|
|
2681
|
+
rowsVersion: q,
|
|
2682
|
+
viewportHeight: () => fe.value,
|
|
2666
2683
|
extraHeight: () => 40 + Re.value,
|
|
2667
2684
|
headerHeight: () => 40
|
|
2668
2685
|
}), { isRowHydrated: $e, hydratedKeys: et } = Sn({
|
|
@@ -2672,11 +2689,11 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2672
2689
|
pinnedRowKey: () => s.value,
|
|
2673
2690
|
enabled: () => Ie.value && e.scrollSeekPlaceholders
|
|
2674
2691
|
});
|
|
2675
|
-
|
|
2692
|
+
G(et, Qe, { flush: "post" });
|
|
2676
2693
|
let { resizingColumnKey: tt, handleResizeHandlePointerdown: nt, handleResizeHandleKeydown: rt, handleResizeHandleDblclick: it } = hn({
|
|
2677
|
-
tableRootElement:
|
|
2678
|
-
scrollElement:
|
|
2679
|
-
columnDescriptors:
|
|
2694
|
+
tableRootElement: se,
|
|
2695
|
+
scrollElement: te,
|
|
2696
|
+
columnDescriptors: he,
|
|
2680
2697
|
columnWidths: h,
|
|
2681
2698
|
enabled: () => e.columnsResizable,
|
|
2682
2699
|
onResizeEnd: (e, t) => {
|
|
@@ -2689,10 +2706,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2689
2706
|
Ze();
|
|
2690
2707
|
}
|
|
2691
2708
|
}), at = b(() => e.rowsDragMode ? e.rowsDragMode : Ae.value ? Pe.TREE : Pe.FLAT), { registerColumnHeaderElement: ot, draggingColumnKey: st, dropLineStyle: lt } = fn({
|
|
2692
|
-
tableId:
|
|
2693
|
-
tableRootElement:
|
|
2709
|
+
tableId: R,
|
|
2710
|
+
tableRootElement: se,
|
|
2694
2711
|
enabled: () => e.columnsDraggable,
|
|
2695
|
-
columnDescriptors:
|
|
2712
|
+
columnDescriptors: he,
|
|
2696
2713
|
onReorder: (t, n, r) => {
|
|
2697
2714
|
let i = m.value?.length ? [...m.value] : e.columns.map((e) => e.key);
|
|
2698
2715
|
e.columns.forEach((e) => {
|
|
@@ -2711,16 +2728,16 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2711
2728
|
}), ut = (e, t) => {
|
|
2712
2729
|
(e instanceof Element || e === null) && ot(t, e);
|
|
2713
2730
|
}, { registerRowElement: dt, draggingRowKey: pt, dropIndicator: mt } = _n({
|
|
2714
|
-
tableId:
|
|
2731
|
+
tableId: R,
|
|
2715
2732
|
enabled: () => e.rowsDraggable,
|
|
2716
2733
|
dragMode: at,
|
|
2717
|
-
snapshot:
|
|
2718
|
-
scrollElement:
|
|
2734
|
+
snapshot: be,
|
|
2735
|
+
scrollElement: te,
|
|
2719
2736
|
isRowDraggable: () => e.isRowDraggable,
|
|
2720
2737
|
dragExpandDelayMs: () => e.dragExpandDelayMs,
|
|
2721
2738
|
isExpanded: (e) => p.value.includes(e),
|
|
2722
2739
|
onHoverExpand: (e) => {
|
|
2723
|
-
|
|
2740
|
+
xe(e);
|
|
2724
2741
|
},
|
|
2725
2742
|
onReorder: (e) => {
|
|
2726
2743
|
j("rowsReorder", e);
|
|
@@ -2735,17 +2752,18 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2735
2752
|
let t = mt.value;
|
|
2736
2753
|
if (!(!t || t.targetKey !== e)) return t.action === Fe.CHILD ? "inside" : t.action === Fe.BEFORE ? "before" : "after";
|
|
2737
2754
|
}, { activeGroupRowIndex: _t, activeDepthFooterRowIndex: vt, activeDepthFooterRowIndexes: bt, leavingDepthFooterRowIndex: xt, slidingDepthFooterRowIndexes: St, farDepthFooterRowIndexes: Ct } = wn({
|
|
2738
|
-
snapshot:
|
|
2755
|
+
snapshot: be,
|
|
2739
2756
|
visibleRange: Ge,
|
|
2757
|
+
groupRowSticky: () => e.groupRowSticky,
|
|
2740
2758
|
depthFooterSticky: () => e.depthFooter?.sticky !== !1,
|
|
2741
2759
|
bottomVisibleRowIndex: b(() => {
|
|
2742
|
-
if (!Ie.value ||
|
|
2743
|
-
let e = He.value +
|
|
2760
|
+
if (!Ie.value || fe.value === 0) return;
|
|
2761
|
+
let e = He.value + fe.value - 40 - Re.value;
|
|
2744
2762
|
return Xe(Math.max(0, e));
|
|
2745
2763
|
}),
|
|
2746
2764
|
getRowOffset: Je
|
|
2747
2765
|
}), { renderEntries: wt } = vn({
|
|
2748
|
-
flatRows:
|
|
2766
|
+
flatRows: q,
|
|
2749
2767
|
virtualEnabled: Ie,
|
|
2750
2768
|
windowIndexes: Be,
|
|
2751
2769
|
uiTotalSize: Ve,
|
|
@@ -2756,14 +2774,14 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2756
2774
|
slidingDepthFooterRowIndexes: St,
|
|
2757
2775
|
farDepthFooterRowIndexes: Ct,
|
|
2758
2776
|
activeRowIndex: b(() => {
|
|
2759
|
-
if (s.value) return
|
|
2777
|
+
if (s.value) return be.value.getRowIndexByKey(s.value);
|
|
2760
2778
|
})
|
|
2761
|
-
}), Tt = b(() => !e.loading &&
|
|
2779
|
+
}), Tt = b(() => !e.loading && q.value.length === 0), { rootStyle: Et, scrollStyle: Ot, tableStyle: kt } = En({
|
|
2762
2780
|
tfootBarStackHeight: Re,
|
|
2763
2781
|
hasFooterValues: () => !!e.footerValues,
|
|
2764
|
-
scrollClientWidth: () =>
|
|
2765
|
-
columnCssVars:
|
|
2766
|
-
totalWidth:
|
|
2782
|
+
scrollClientWidth: () => ue.value,
|
|
2783
|
+
columnCssVars: ge,
|
|
2784
|
+
totalWidth: _e,
|
|
2767
2785
|
height: () => e.height,
|
|
2768
2786
|
maxHeight: () => e.maxHeight
|
|
2769
2787
|
}), { getColumnSortDirection: At, getColumnSortIndex: jt, applySortCycle: Nt, applySortExact: Pt, getHeaderAriaSort: Ft, getHeaderSlotScope: It } = xn({
|
|
@@ -2771,7 +2789,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2771
2789
|
onSortChange: (e) => {
|
|
2772
2790
|
j("sortChange", e);
|
|
2773
2791
|
}
|
|
2774
|
-
}), Lt =
|
|
2792
|
+
}), Lt = V(), Rt = (e, t) => {
|
|
2775
2793
|
Lt.value = t ? e : void 0;
|
|
2776
2794
|
}, zt = (t, n) => {
|
|
2777
2795
|
if (!e.columnsResizable || !t.resizable) return;
|
|
@@ -2783,7 +2801,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2783
2801
|
key: t.key,
|
|
2784
2802
|
width: r
|
|
2785
2803
|
}));
|
|
2786
|
-
}, Bt =
|
|
2804
|
+
}, Bt = V(!1), Vt = b(() => e.columns.filter((e) => e.key !== me.value && (e.hideable ?? !0))), Ut = (e) => (O.value ?? []).includes(e), Wt = b(() => {
|
|
2787
2805
|
let e = Vt.value.map((e) => {
|
|
2788
2806
|
let t = Ut(e.key);
|
|
2789
2807
|
return {
|
|
@@ -2802,7 +2820,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2802
2820
|
}, Jt = yn({
|
|
2803
2821
|
selected: c,
|
|
2804
2822
|
cascade: () => e.cascadeSelection,
|
|
2805
|
-
treeIndex:
|
|
2823
|
+
treeIndex: ye,
|
|
2806
2824
|
groupRow: () => e.groupRow,
|
|
2807
2825
|
disabledKey: () => e.disabledKey,
|
|
2808
2826
|
isItemSelectable: () => e.isItemSelectable
|
|
@@ -2830,7 +2848,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2830
2848
|
c,
|
|
2831
2849
|
l,
|
|
2832
2850
|
u,
|
|
2833
|
-
|
|
2851
|
+
he.value,
|
|
2834
2852
|
ln.value,
|
|
2835
2853
|
pn.value,
|
|
2836
2854
|
d,
|
|
@@ -2852,7 +2870,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2852
2870
|
placeholder: t,
|
|
2853
2871
|
memoKeys: en(e, t)
|
|
2854
2872
|
};
|
|
2855
|
-
})), an = b(() => Object.keys(
|
|
2873
|
+
})), an = b(() => Object.keys(F).filter((e) => e.startsWith("cell:"))), on = (e) => `s-ui-table-${R}-row-${e}`, cn = (e) => ({
|
|
2856
2874
|
...e,
|
|
2857
2875
|
selected: Xt(e.key),
|
|
2858
2876
|
indeterminate: !1,
|
|
@@ -2860,15 +2878,15 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2860
2878
|
disabled: $t(e),
|
|
2861
2879
|
group: e.kind === Q.GROUP,
|
|
2862
2880
|
toggleExpanded: () => {
|
|
2863
|
-
|
|
2881
|
+
xe(e.key);
|
|
2864
2882
|
},
|
|
2865
2883
|
toggleSelected: () => {
|
|
2866
2884
|
Qt(e.key);
|
|
2867
2885
|
}
|
|
2868
2886
|
}), { 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({
|
|
2869
2887
|
columns: () => e.columns,
|
|
2870
|
-
primaryColumnKey:
|
|
2871
|
-
treeNodeByKey: b(() =>
|
|
2888
|
+
primaryColumnKey: me,
|
|
2889
|
+
treeNodeByKey: b(() => ye.value.nodeByKey),
|
|
2872
2890
|
groupTotalKey: () => e.groupTotalKey,
|
|
2873
2891
|
depthFooter: () => e.depthFooter,
|
|
2874
2892
|
groupContentColumnKey: () => e.groupContentColumnKey,
|
|
@@ -2889,7 +2907,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2889
2907
|
count: Cn(e),
|
|
2890
2908
|
total: Tn(e)
|
|
2891
2909
|
}), or = (t, n) => {
|
|
2892
|
-
$t(t) || (s.value = t.key, e.expandOnClick && (t.hasChildren || t.kind === Q.GROUP) &&
|
|
2910
|
+
$t(t) || (s.value = t.key, e.expandOnClick && (t.hasChildren || t.kind === Q.GROUP) && xe(t.key), j("rowClick", {
|
|
2893
2911
|
key: t.key,
|
|
2894
2912
|
item: t.item,
|
|
2895
2913
|
event: n
|
|
@@ -2902,7 +2920,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2902
2920
|
});
|
|
2903
2921
|
}, cr = b(() => {
|
|
2904
2922
|
let e = /* @__PURE__ */ new Set();
|
|
2905
|
-
return
|
|
2923
|
+
return he.value.forEach((t) => {
|
|
2906
2924
|
t.column && e.add(t.key);
|
|
2907
2925
|
}), e;
|
|
2908
2926
|
}), lr = (e, t, n) => {
|
|
@@ -2913,10 +2931,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2913
2931
|
event: n
|
|
2914
2932
|
});
|
|
2915
2933
|
}, ur = (e) => e ? !$t(e) : !1, dr = b(() => {
|
|
2916
|
-
let t =
|
|
2934
|
+
let t = fe.value - 40 - Re.value;
|
|
2917
2935
|
return Math.max(1, Math.floor(t / e.estimateRowSize));
|
|
2918
2936
|
});
|
|
2919
|
-
f(() =>
|
|
2937
|
+
f(() => te.value, {
|
|
2920
2938
|
distance: () => e.endReachedDistance,
|
|
2921
2939
|
canLoadMore: () => e.canLoadMore?.() ?? !0,
|
|
2922
2940
|
onEndReached: () => {
|
|
@@ -2924,7 +2942,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2924
2942
|
}
|
|
2925
2943
|
});
|
|
2926
2944
|
let fr = (e, t) => {
|
|
2927
|
-
let n =
|
|
2945
|
+
let n = be.value.getRowIndexByKey(e);
|
|
2928
2946
|
if (n !== void 0) {
|
|
2929
2947
|
if (Ie.value) {
|
|
2930
2948
|
Ue(n, t?.align ?? "auto");
|
|
@@ -2932,13 +2950,13 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2932
2950
|
}
|
|
2933
2951
|
document.getElementById(on(e))?.scrollIntoView({ block: t?.align === "center" ? "center" : "nearest" });
|
|
2934
2952
|
}
|
|
2935
|
-
}, pr = (e) => `s-ui-table-${
|
|
2936
|
-
tableRootElement:
|
|
2937
|
-
tableElement:
|
|
2938
|
-
scrollElement:
|
|
2939
|
-
columnDescriptors:
|
|
2940
|
-
flatRows:
|
|
2941
|
-
snapshot:
|
|
2953
|
+
}, pr = (e) => `s-ui-table-${R}-cell-${e.section}-${e.rowKey ?? ""}-${e.columnKey}`, mr = ft({
|
|
2954
|
+
tableRootElement: se,
|
|
2955
|
+
tableElement: U,
|
|
2956
|
+
scrollElement: te,
|
|
2957
|
+
columnDescriptors: he,
|
|
2958
|
+
flatRows: q,
|
|
2959
|
+
snapshot: be,
|
|
2942
2960
|
groupColumnKey: un,
|
|
2943
2961
|
depthFooterColumnKey: ln,
|
|
2944
2962
|
loadMoreColumnKey: pn,
|
|
@@ -2952,22 +2970,22 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2952
2970
|
s.value = e;
|
|
2953
2971
|
},
|
|
2954
2972
|
scrollToRowIndex: (e) => {
|
|
2955
|
-
let t =
|
|
2973
|
+
let t = q.value[e];
|
|
2956
2974
|
t && fr(t.key);
|
|
2957
2975
|
}
|
|
2958
|
-
}), hr = `s-ui-table-${
|
|
2976
|
+
}), hr = `s-ui-table-${R}-cell-${$.BODY}-`, gr = `s-ui-table-${R}-cell-${$.CREATION}-`, _r = (e) => mr.focusedBodyRowKey.value === e ? mr.focusAddress.value.columnKey : void 0, vr = (e) => {
|
|
2959
2977
|
let t = mr.focusAddress.value;
|
|
2960
2978
|
return t.section === e ? t.columnKey : void 0;
|
|
2961
2979
|
}, yr = (e, t, n) => mr.getCellTabIndex(e, t, n), { handleGridFocusIn: br, handleGridKeydown: xr } = gn({
|
|
2962
2980
|
gridFocus: mr,
|
|
2963
|
-
columnDescriptors:
|
|
2964
|
-
flatRows:
|
|
2981
|
+
columnDescriptors: he,
|
|
2982
|
+
flatRows: q,
|
|
2965
2983
|
expandColumnKey: () => e.expandColumnKey,
|
|
2966
|
-
primaryColumnKey:
|
|
2984
|
+
primaryColumnKey: me,
|
|
2967
2985
|
groupColumnKey: un,
|
|
2968
2986
|
selectable: () => e.selectable,
|
|
2969
2987
|
openMenuColumnKey: Lt,
|
|
2970
|
-
toggleExpanded:
|
|
2988
|
+
toggleExpanded: xe,
|
|
2971
2989
|
toggleRowSelected: (e) => {
|
|
2972
2990
|
Jt.toggleRow(e);
|
|
2973
2991
|
},
|
|
@@ -2986,82 +3004,82 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
2986
3004
|
});
|
|
2987
3005
|
return t({
|
|
2988
3006
|
focusNavigation: async () => {
|
|
2989
|
-
mr.focusAddressNow(mr.focusAddress.value), await
|
|
3007
|
+
mr.focusAddressNow(mr.focusAddress.value), await ee();
|
|
2990
3008
|
},
|
|
2991
3009
|
scrollToRow: fr,
|
|
2992
|
-
expandAll:
|
|
2993
|
-
collapseAll:
|
|
3010
|
+
expandAll: Se,
|
|
3011
|
+
collapseAll: Ce,
|
|
2994
3012
|
clearSelection: () => {
|
|
2995
3013
|
Jt.clearSelection();
|
|
2996
3014
|
},
|
|
2997
|
-
getScrollElement: () =>
|
|
2998
|
-
}), (t, n) => (
|
|
3015
|
+
getScrollElement: () => te.value ?? void 0
|
|
3016
|
+
}), (t, n) => (L(), C("div", {
|
|
2999
3017
|
ref_key: "tableRootRef",
|
|
3000
|
-
ref:
|
|
3001
|
-
class:
|
|
3002
|
-
style:
|
|
3018
|
+
ref: se,
|
|
3019
|
+
class: N(["s-ui-table", Le.value]),
|
|
3020
|
+
style: P(W(Et))
|
|
3003
3021
|
}, [w("div", {
|
|
3004
3022
|
ref_key: "scrollElementRef",
|
|
3005
|
-
ref:
|
|
3023
|
+
ref: te,
|
|
3006
3024
|
class: "s-ui-table__scroll",
|
|
3007
|
-
style:
|
|
3025
|
+
style: P(W(Ot))
|
|
3008
3026
|
}, [w("table", {
|
|
3009
3027
|
class: "s-ui-table__table",
|
|
3010
|
-
style:
|
|
3028
|
+
style: P(W(kt)),
|
|
3011
3029
|
role: je.value,
|
|
3012
3030
|
"aria-rowcount": Me.value,
|
|
3013
|
-
"aria-colcount":
|
|
3031
|
+
"aria-colcount": W(ve),
|
|
3014
3032
|
"aria-busy": e.loading || e.loadingMore || void 0,
|
|
3015
3033
|
ref_key: "tableElementRef",
|
|
3016
|
-
ref:
|
|
3034
|
+
ref: U,
|
|
3017
3035
|
tabindex: "-1",
|
|
3018
|
-
onKeydown: n[5] ||= (...e) =>
|
|
3019
|
-
onFocusin: n[6] ||= (...e) =>
|
|
3036
|
+
onKeydown: n[5] ||= (...e) => W(xr) && W(xr)(...e),
|
|
3037
|
+
onFocusin: n[6] ||= (...e) => W(br) && W(br)(...e)
|
|
3020
3038
|
}, [
|
|
3021
3039
|
w("colgroup", null, [
|
|
3022
|
-
(
|
|
3040
|
+
(L(!0), C(y, null, z(W(we), (e) => (L(), C("col", {
|
|
3023
3041
|
key: e.key,
|
|
3024
|
-
style:
|
|
3042
|
+
style: P({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
|
|
3025
3043
|
}, null, 4))), 128)),
|
|
3026
3044
|
n[7] ||= w("col", { class: "s-ui-table__filler-col" }, null, -1),
|
|
3027
|
-
(
|
|
3045
|
+
(L(!0), C(y, null, z(W(Te), (e) => (L(), C("col", {
|
|
3028
3046
|
key: e.key,
|
|
3029
|
-
style:
|
|
3047
|
+
style: P({ width: `var(${e.liveWidthVar}, var(${e.widthVar}))` })
|
|
3030
3048
|
}, null, 4))), 128))
|
|
3031
3049
|
]),
|
|
3032
|
-
w("thead", Rn, [w("tr", zn, [(
|
|
3050
|
+
w("thead", Rn, [w("tr", zn, [(L(!0), C(y, null, z(W(Ee), ({ key: e, descriptor: s }) => (L(), C(y, { key: e }, [s ? (L(), C("th", {
|
|
3033
3051
|
key: 1,
|
|
3034
3052
|
id: pr({
|
|
3035
|
-
section:
|
|
3053
|
+
section: W($).HEADER,
|
|
3036
3054
|
columnKey: s.key
|
|
3037
3055
|
}),
|
|
3038
3056
|
ref_for: !0,
|
|
3039
3057
|
ref: (e) => ut(e, s.key),
|
|
3040
|
-
class:
|
|
3041
|
-
style:
|
|
3058
|
+
class: N(["s-ui-table__header-cell", [W(Oe)(s), { "s-ui-table__header-cell--dragging": W(st) === s.key }]]),
|
|
3059
|
+
style: P(W(De)(s)),
|
|
3042
3060
|
"data-column-key": s.key,
|
|
3043
|
-
"data-section":
|
|
3061
|
+
"data-section": W($).HEADER,
|
|
3044
3062
|
"aria-colindex": s.colIndex,
|
|
3045
|
-
"aria-sort":
|
|
3046
|
-
tabindex: yr(
|
|
3063
|
+
"aria-sort": W(Ft)(s),
|
|
3064
|
+
tabindex: yr(W($).HEADER, void 0, s.key),
|
|
3047
3065
|
scope: "col"
|
|
3048
|
-
}, [s.column ? (
|
|
3066
|
+
}, [s.column ? (L(), x(Dt, {
|
|
3049
3067
|
key: 0,
|
|
3050
3068
|
descriptor: s,
|
|
3051
|
-
"sort-direction":
|
|
3052
|
-
"sort-index":
|
|
3069
|
+
"sort-direction": W(At)(s.key),
|
|
3070
|
+
"sort-index": W(jt)(s.key),
|
|
3053
3071
|
"menu-open": Lt.value === s.key,
|
|
3054
3072
|
"onUpdate:menuOpen": (e) => Rt(s.key, e),
|
|
3055
|
-
onSortToggle: (e) =>
|
|
3056
|
-
onSortSet: (e) =>
|
|
3073
|
+
onSortToggle: (e) => W(Nt)(s.key, e),
|
|
3074
|
+
onSortSet: (e) => W(Pt)(s.key, e),
|
|
3057
3075
|
onHide: (e) => qt(s.key)
|
|
3058
|
-
}, T({ _: 2 }, [
|
|
3076
|
+
}, T({ _: 2 }, [W(F)[`header:${s.key}`] ? {
|
|
3059
3077
|
name: "default",
|
|
3060
|
-
fn:
|
|
3078
|
+
fn: K(() => [B(t.$slots, `header:${s.key}`, M({ ref_for: !0 }, W(It)(s)))]),
|
|
3061
3079
|
key: "0"
|
|
3062
|
-
} : void 0,
|
|
3080
|
+
} : void 0, W(F)[`header-menu:${s.key}`] ? {
|
|
3063
3081
|
name: "menu",
|
|
3064
|
-
fn:
|
|
3082
|
+
fn: K(() => [B(t.$slots, `header-menu:${s.key}`, M({ ref_for: !0 }, W(It)(s)))]),
|
|
3065
3083
|
key: "1"
|
|
3066
3084
|
} : void 0]), 1032, [
|
|
3067
3085
|
"descriptor",
|
|
@@ -3072,32 +3090,32 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3072
3090
|
"onSortToggle",
|
|
3073
3091
|
"onSortSet",
|
|
3074
3092
|
"onHide"
|
|
3075
|
-
])) : s.service ===
|
|
3093
|
+
])) : s.service === W(qe).CHECKBOX ? (L(), x(We, {
|
|
3076
3094
|
key: 1,
|
|
3077
|
-
class:
|
|
3078
|
-
"model-value":
|
|
3079
|
-
indeterminate:
|
|
3080
|
-
"screen-reader-label":
|
|
3081
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3095
|
+
class: N(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": W(Yt) !== W(Z).UNCHECKED }]),
|
|
3096
|
+
"model-value": W(Yt) === W(Z).CHECKED,
|
|
3097
|
+
indeterminate: W(Yt) === W(Z).INDETERMINATE,
|
|
3098
|
+
"screen-reader-label": W(Yt) === W(Z).CHECKED ? W(I)("table.deselectAll") : W(I)("table.selectAll"),
|
|
3099
|
+
"onUpdate:modelValue": n[0] ||= (e) => W(Jt).toggleSelectAll()
|
|
3082
3100
|
}, null, 8, [
|
|
3083
3101
|
"class",
|
|
3084
3102
|
"model-value",
|
|
3085
3103
|
"indeterminate",
|
|
3086
3104
|
"screen-reader-label"
|
|
3087
|
-
])) : s.service ===
|
|
3105
|
+
])) : s.service === W(qe).COLUMNS_MANAGER ? (L(), C("div", Hn, [D(W(u), {
|
|
3088
3106
|
modelValue: Bt.value,
|
|
3089
3107
|
"onUpdate:modelValue": n[1] ||= (e) => Bt.value = e,
|
|
3090
|
-
placement:
|
|
3108
|
+
placement: W(l).BOTTOM_END,
|
|
3091
3109
|
shift: "",
|
|
3092
3110
|
"fit-viewport": ""
|
|
3093
3111
|
}, {
|
|
3094
|
-
trigger:
|
|
3112
|
+
trigger: K(({ toggle: e }) => [D(W(o), {
|
|
3095
3113
|
class: "s-ui-table__columns-manager-button",
|
|
3096
|
-
appearance:
|
|
3097
|
-
variant:
|
|
3098
|
-
size:
|
|
3114
|
+
appearance: W(i).BARE,
|
|
3115
|
+
variant: W(r).MAIN,
|
|
3116
|
+
size: W(a).SMALL,
|
|
3099
3117
|
icon: "tablePlus",
|
|
3100
|
-
"aria-label":
|
|
3118
|
+
"aria-label": W(I)("table.manageColumns"),
|
|
3101
3119
|
tabindex: "-1",
|
|
3102
3120
|
onClick: (t) => e()
|
|
3103
3121
|
}, null, 8, [
|
|
@@ -3107,30 +3125,30 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3107
3125
|
"aria-label",
|
|
3108
3126
|
"onClick"
|
|
3109
3127
|
])]),
|
|
3110
|
-
content:
|
|
3128
|
+
content: K(() => [D(W(d), {
|
|
3111
3129
|
class: "s-ui-table__columns-menu",
|
|
3112
3130
|
width: 300
|
|
3113
3131
|
}, {
|
|
3114
|
-
default:
|
|
3132
|
+
default: K(() => [B(t.$slots, "columns-menu", {
|
|
3115
3133
|
columns: Vt.value,
|
|
3116
3134
|
isColumnHidden: Ut,
|
|
3117
3135
|
toggleColumn: Gt
|
|
3118
|
-
}, () => [(
|
|
3136
|
+
}, () => [(L(!0), C(y, null, z(Wt.value, (e, t) => (L(), C(y, { key: t }, [t > 0 ? (L(), x(W(le), {
|
|
3119
3137
|
key: 0,
|
|
3120
3138
|
class: "s-ui-table__columns-separator"
|
|
3121
|
-
})) : S("", !0), (
|
|
3139
|
+
})) : S("", !0), (L(!0), C(y, null, z(e, (e) => (L(), x(W(v), {
|
|
3122
3140
|
key: e.column.key,
|
|
3123
|
-
class:
|
|
3124
|
-
size:
|
|
3125
|
-
"label-placement":
|
|
3141
|
+
class: N(["s-ui-table__columns-item", e.classes]),
|
|
3142
|
+
size: W(_).SMALL,
|
|
3143
|
+
"label-placement": W(g).LEFT,
|
|
3126
3144
|
"model-value": !e.hidden,
|
|
3127
3145
|
"onUpdate:modelValue": (t) => Gt(e.column.key)
|
|
3128
3146
|
}, {
|
|
3129
|
-
default:
|
|
3147
|
+
default: K(() => [w("span", Un, [e.column.icon ? (L(), x(W(ce), {
|
|
3130
3148
|
key: 0,
|
|
3131
3149
|
name: e.column.icon,
|
|
3132
3150
|
size: 16
|
|
3133
|
-
}, null, 8, ["name"])) : S("", !0), w("span", Wn,
|
|
3151
|
+
}, null, 8, ["name"])) : S("", !0), w("span", Wn, H(e.column.title ?? e.column.key), 1)])]),
|
|
3134
3152
|
_: 2
|
|
3135
3153
|
}, 1032, [
|
|
3136
3154
|
"class",
|
|
@@ -3142,84 +3160,84 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3142
3160
|
_: 3
|
|
3143
3161
|
})]),
|
|
3144
3162
|
_: 3
|
|
3145
|
-
}, 8, ["modelValue", "placement"])])) : S("", !0), s.resizable ? (
|
|
3163
|
+
}, 8, ["modelValue", "placement"])])) : S("", !0), s.resizable ? (L(), C("span", {
|
|
3146
3164
|
key: 3,
|
|
3147
|
-
class:
|
|
3165
|
+
class: N(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": W(tt) === s.key }]),
|
|
3148
3166
|
role: "separator",
|
|
3149
3167
|
"aria-orientation": "vertical",
|
|
3150
|
-
"aria-label":
|
|
3168
|
+
"aria-label": W(I)("table.resizeColumn"),
|
|
3151
3169
|
tabindex: "-1",
|
|
3152
|
-
onPointerdown: (e) =>
|
|
3153
|
-
onKeydown: (e) =>
|
|
3154
|
-
onDblclick: (e) =>
|
|
3155
|
-
onClick: n[2] ||=
|
|
3156
|
-
}, null, 42, Gn)) : S("", !0)], 14, Vn)) : (
|
|
3170
|
+
onPointerdown: (e) => W(nt)(e, s.key),
|
|
3171
|
+
onKeydown: (e) => W(rt)(e, s.key),
|
|
3172
|
+
onDblclick: (e) => W(it)(s.key),
|
|
3173
|
+
onClick: n[2] ||= oe(() => {}, ["stop"])
|
|
3174
|
+
}, null, 42, Gn)) : S("", !0)], 14, Vn)) : (L(), C("th", Bn))], 64))), 128))])]),
|
|
3157
3175
|
w("tbody", Kn, [
|
|
3158
|
-
Tt.value ? (
|
|
3176
|
+
Tt.value ? (L(), C("tr", qn, [w("td", {
|
|
3159
3177
|
class: "s-ui-table__empty-cell",
|
|
3160
3178
|
colspan: X.value
|
|
3161
|
-
}, [w("div", Yn, [
|
|
3162
|
-
e.loading ? (
|
|
3179
|
+
}, [w("div", Yn, [B(t.$slots, "empty", {}, () => [w("span", Xn, H(W(I)("table.empty")), 1)])])], 8, Jn)])) : S("", !0),
|
|
3180
|
+
e.loading ? (L(!0), C(y, { key: 1 }, z(e.skeletonRowCount, (e) => (L(), x(sn, {
|
|
3163
3181
|
key: `skeleton-${e}`,
|
|
3164
|
-
"leading-plans":
|
|
3165
|
-
"trailing-plans":
|
|
3166
|
-
}, T({ _: 2 }, [
|
|
3182
|
+
"leading-plans": W(ke),
|
|
3183
|
+
"trailing-plans": W(J)
|
|
3184
|
+
}, T({ _: 2 }, [W(F)["skeleton-row"] ? {
|
|
3167
3185
|
name: "default",
|
|
3168
|
-
fn:
|
|
3186
|
+
fn: K((e) => [B(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
|
|
3169
3187
|
key: "0"
|
|
3170
|
-
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (
|
|
3171
|
-
let
|
|
3172
|
-
if (
|
|
3173
|
-
let
|
|
3188
|
+
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (L(!0), C(y, { key: 2 }, z(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, ee) => {
|
|
3189
|
+
let R = b;
|
|
3190
|
+
if (ee && ee.el && ee.key === c && k(ee, R)) return ee;
|
|
3191
|
+
let V = (L(), C(y, { key: c }, [l ? (L(), C("tr", Zn, [w("td", {
|
|
3174
3192
|
class: "s-ui-table__spacer-cell",
|
|
3175
3193
|
colspan: X.value,
|
|
3176
|
-
style:
|
|
3177
|
-
}, null, 12, Qn)])) : n && n.kind ===
|
|
3194
|
+
style: P({ height: `${u}px` })
|
|
3195
|
+
}, null, 12, Qn)])) : n && n.kind === W(Q).GROUP ? (L(), x(yt, {
|
|
3178
3196
|
key: 1,
|
|
3179
3197
|
id: on(n.key),
|
|
3180
3198
|
stuck: f,
|
|
3181
3199
|
row: n,
|
|
3182
3200
|
"dnd-ref": e.rowsDraggable ? ht : void 0,
|
|
3183
|
-
dragging:
|
|
3201
|
+
dragging: W(pt) === n.key,
|
|
3184
3202
|
"drop-position": gt(n.key),
|
|
3185
3203
|
"row-index": n.index,
|
|
3186
|
-
"leading-plans":
|
|
3187
|
-
"trailing-plans":
|
|
3188
|
-
"group-column-key":
|
|
3204
|
+
"leading-plans": W(ke),
|
|
3205
|
+
"trailing-plans": W(J),
|
|
3206
|
+
"group-column-key": W(un),
|
|
3189
3207
|
"tree-indent": e.treeIndent,
|
|
3190
|
-
count:
|
|
3191
|
-
total:
|
|
3192
|
-
title:
|
|
3208
|
+
count: W(Cn)(n),
|
|
3209
|
+
total: W(Tn)(n),
|
|
3210
|
+
title: W(Dn)(n),
|
|
3193
3211
|
"extra-row-style": e.rowStyle?.(n.item, n),
|
|
3194
3212
|
expanded: n.expanded,
|
|
3195
3213
|
active: s.value === n.key,
|
|
3196
3214
|
"cell-id-prefix": hr,
|
|
3197
3215
|
"focus-column-key": _r(n.key),
|
|
3198
|
-
onToggle: (e) =>
|
|
3216
|
+
onToggle: (e) => W(xe)(n.key),
|
|
3199
3217
|
onRowClick: (e) => or(n, e),
|
|
3200
3218
|
onMenuOpen: (e) => j("groupMenuOpen", {
|
|
3201
3219
|
key: n.key,
|
|
3202
3220
|
item: n.item
|
|
3203
3221
|
})
|
|
3204
3222
|
}, T({ _: 2 }, [
|
|
3205
|
-
|
|
3223
|
+
W(F)["group-menu"] ? {
|
|
3206
3224
|
name: "menu",
|
|
3207
|
-
fn:
|
|
3225
|
+
fn: K(() => [B(t.$slots, "group-menu", M({ ref_for: !0 }, ar(n)))]),
|
|
3208
3226
|
key: "0"
|
|
3209
3227
|
} : void 0,
|
|
3210
|
-
|
|
3228
|
+
W(F)["group-row"] ? {
|
|
3211
3229
|
name: "row",
|
|
3212
|
-
fn:
|
|
3230
|
+
fn: K(() => [B(t.$slots, "group-row", M({ ref_for: !0 }, ar(n)))]),
|
|
3213
3231
|
key: "1"
|
|
3214
3232
|
} : void 0,
|
|
3215
|
-
|
|
3233
|
+
W(F)["group-title"] ? {
|
|
3216
3234
|
name: "title",
|
|
3217
|
-
fn:
|
|
3235
|
+
fn: K(() => [B(t.$slots, "group-title", M({ ref_for: !0 }, ar(n)))]),
|
|
3218
3236
|
key: "2"
|
|
3219
3237
|
} : void 0,
|
|
3220
|
-
|
|
3238
|
+
W(F)["group-actions"] ? {
|
|
3221
3239
|
name: "actions",
|
|
3222
|
-
fn:
|
|
3240
|
+
fn: K(() => [B(t.$slots, "group-actions", M({ ref_for: !0 }, ar(n)))]),
|
|
3223
3241
|
key: "3"
|
|
3224
3242
|
} : void 0
|
|
3225
3243
|
]), 1032, [
|
|
@@ -3244,29 +3262,29 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3244
3262
|
"onToggle",
|
|
3245
3263
|
"onRowClick",
|
|
3246
3264
|
"onMenuOpen"
|
|
3247
|
-
])) : n && n.kind ===
|
|
3265
|
+
])) : n && n.kind === W(Q).DEPTH_FOOTER ? (L(), x(Ke, {
|
|
3248
3266
|
key: 2,
|
|
3249
|
-
class:
|
|
3267
|
+
class: N(["s-ui-table__depth-footer-row", {
|
|
3250
3268
|
"s-ui-table__depth-footer-row--stuck": p,
|
|
3251
3269
|
"s-ui-table__depth-footer-row--stuck-leaving": m,
|
|
3252
3270
|
"s-ui-table__depth-footer-row--stuck-sliding": h,
|
|
3253
3271
|
"s-ui-table__depth-footer-row--stuck-covered": g !== void 0,
|
|
3254
3272
|
"s-ui-table__depth-footer-row--stuck-covered-far": _
|
|
3255
3273
|
}]),
|
|
3256
|
-
style:
|
|
3274
|
+
style: P(tn(g)),
|
|
3257
3275
|
"data-index": n.index,
|
|
3258
3276
|
"aria-rowindex": n.index + 2,
|
|
3259
|
-
cells:
|
|
3260
|
-
"content-column-key":
|
|
3277
|
+
cells: W(Y),
|
|
3278
|
+
"content-column-key": W(ln),
|
|
3261
3279
|
"cell-class": "s-ui-table__depth-footer-cell",
|
|
3262
3280
|
"content-class": "s-ui-table__depth-footer-content",
|
|
3263
|
-
"content-style":
|
|
3264
|
-
section:
|
|
3281
|
+
"content-style": W(On)(n.depth),
|
|
3282
|
+
section: W($).BODY,
|
|
3265
3283
|
"row-key": n.key,
|
|
3266
3284
|
"cell-id-prefix": hr,
|
|
3267
3285
|
"focus-column-key": _r(n.key)
|
|
3268
3286
|
}, {
|
|
3269
|
-
default:
|
|
3287
|
+
default: K(() => [B(t.$slots, "depth-footer", M({ ref_for: !0 }, W(An)(n)))]),
|
|
3270
3288
|
_: 2
|
|
3271
3289
|
}, 1032, [
|
|
3272
3290
|
"class",
|
|
@@ -3279,29 +3297,29 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3279
3297
|
"section",
|
|
3280
3298
|
"row-key",
|
|
3281
3299
|
"focus-column-key"
|
|
3282
|
-
])) : n && n.kind ===
|
|
3300
|
+
])) : n && n.kind === W(Q).LOAD_MORE ? (L(), x(Ke, {
|
|
3283
3301
|
key: 3,
|
|
3284
3302
|
class: "s-ui-table__load-more-row",
|
|
3285
3303
|
"data-index": n.index,
|
|
3286
3304
|
"aria-rowindex": n.index + 2,
|
|
3287
|
-
cells:
|
|
3288
|
-
"content-column-key":
|
|
3305
|
+
cells: W(Y),
|
|
3306
|
+
"content-column-key": W(pn),
|
|
3289
3307
|
"content-class": "s-ui-table__load-more-content",
|
|
3290
|
-
"content-style":
|
|
3291
|
-
section:
|
|
3308
|
+
"content-style": W(On)(n.depth),
|
|
3309
|
+
section: W($).BODY,
|
|
3292
3310
|
"row-key": n.key,
|
|
3293
3311
|
"cell-id-prefix": hr,
|
|
3294
3312
|
"focus-column-key": _r(n.key)
|
|
3295
3313
|
}, {
|
|
3296
|
-
default:
|
|
3297
|
-
appearance:
|
|
3298
|
-
variant:
|
|
3299
|
-
size:
|
|
3300
|
-
loading:
|
|
3314
|
+
default: K(() => [B(t.$slots, "load-more", M({ ref_for: !0 }, W(Nn)(n)), () => [D(W(o), {
|
|
3315
|
+
appearance: W(i).BARE,
|
|
3316
|
+
variant: W(r).NEUTRAL,
|
|
3317
|
+
size: W(a).SMALL,
|
|
3318
|
+
loading: W(jn)(n),
|
|
3301
3319
|
tabindex: "-1",
|
|
3302
|
-
onClick: (e) =>
|
|
3320
|
+
onClick: (e) => W(Mn)(n)
|
|
3303
3321
|
}, {
|
|
3304
|
-
default:
|
|
3322
|
+
default: K(() => [E(H(W(I)("table.loadMore")), 1)]),
|
|
3305
3323
|
_: 1
|
|
3306
3324
|
}, 8, [
|
|
3307
3325
|
"appearance",
|
|
@@ -3320,32 +3338,32 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3320
3338
|
"section",
|
|
3321
3339
|
"row-key",
|
|
3322
3340
|
"focus-column-key"
|
|
3323
|
-
])) : n && v ? (
|
|
3341
|
+
])) : n && v ? (L(), x(Mt, {
|
|
3324
3342
|
key: 4,
|
|
3325
3343
|
"row-index": n.index,
|
|
3326
3344
|
"row-key": n.key,
|
|
3327
|
-
cells:
|
|
3345
|
+
cells: W(Y),
|
|
3328
3346
|
"row-height": d
|
|
3329
3347
|
}, null, 8, [
|
|
3330
3348
|
"row-index",
|
|
3331
3349
|
"row-key",
|
|
3332
3350
|
"cells",
|
|
3333
3351
|
"row-height"
|
|
3334
|
-
])) : n ? (
|
|
3352
|
+
])) : n ? (L(), x(rn, {
|
|
3335
3353
|
key: 5,
|
|
3336
3354
|
row: n,
|
|
3337
3355
|
"row-index": n.index,
|
|
3338
3356
|
"row-expanded": n.expanded,
|
|
3339
|
-
"leading-plans":
|
|
3340
|
-
"trailing-plans":
|
|
3357
|
+
"leading-plans": W(ke),
|
|
3358
|
+
"trailing-plans": W(J),
|
|
3341
3359
|
"dnd-ref": e.rowsDraggable ? ht : void 0,
|
|
3342
|
-
dragging:
|
|
3360
|
+
dragging: W(pt) === n.key,
|
|
3343
3361
|
"drop-position": gt(n.key),
|
|
3344
3362
|
"placeholder-height": d,
|
|
3345
3363
|
"dom-id": on(n.key),
|
|
3346
3364
|
selected: Xt(n.key),
|
|
3347
3365
|
indeterminate: Zt(n.key),
|
|
3348
|
-
"row-selectable": e.selectable &&
|
|
3366
|
+
"row-selectable": e.selectable && W(Jt).isNodeSelectable(n.key),
|
|
3349
3367
|
active: s.value === n.key,
|
|
3350
3368
|
disabled: $t(n),
|
|
3351
3369
|
"tree-indent": e.treeIndent,
|
|
@@ -3358,64 +3376,64 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3358
3376
|
onRowClick: (e) => or(n, e),
|
|
3359
3377
|
onRowContextMenu: (e) => sr(n, e),
|
|
3360
3378
|
onCellClick: (e, t) => lr(n, e, t),
|
|
3361
|
-
onToggleExpand: (e) =>
|
|
3379
|
+
onToggleExpand: (e) => W(xe)(n.key),
|
|
3362
3380
|
onToggleSelected: (e) => Qt(n.key)
|
|
3363
3381
|
}, T({ _: 2 }, [
|
|
3364
|
-
|
|
3382
|
+
z(an.value, (e) => ({
|
|
3365
3383
|
name: e,
|
|
3366
|
-
fn:
|
|
3384
|
+
fn: K((n) => [B(t.$slots, e, M({ ref_for: !0 }, n))])
|
|
3367
3385
|
})),
|
|
3368
|
-
|
|
3386
|
+
W(F).chevron ? {
|
|
3369
3387
|
name: "chevron",
|
|
3370
|
-
fn:
|
|
3388
|
+
fn: K((e) => [B(t.$slots, "chevron", M({ ref_for: !0 }, e))]),
|
|
3371
3389
|
key: "0"
|
|
3372
3390
|
} : void 0,
|
|
3373
|
-
|
|
3391
|
+
W(F)["cell-actions"] ? {
|
|
3374
3392
|
name: "cell-actions",
|
|
3375
|
-
fn:
|
|
3393
|
+
fn: K((e) => [B(t.$slots, "cell-actions", M({ ref_for: !0 }, e))]),
|
|
3376
3394
|
key: "1"
|
|
3377
3395
|
} : void 0,
|
|
3378
|
-
|
|
3396
|
+
W(F).indicator ? {
|
|
3379
3397
|
name: "indicator",
|
|
3380
|
-
fn:
|
|
3398
|
+
fn: K((e) => [B(t.$slots, "indicator", M({ ref_for: !0 }, e))]),
|
|
3381
3399
|
key: "2"
|
|
3382
3400
|
} : void 0,
|
|
3383
|
-
|
|
3401
|
+
W(F).checkbox ? {
|
|
3384
3402
|
name: "checkbox",
|
|
3385
|
-
fn:
|
|
3403
|
+
fn: K((e) => [B(t.$slots, "checkbox", M({ ref_for: !0 }, e))]),
|
|
3386
3404
|
key: "3"
|
|
3387
3405
|
} : void 0,
|
|
3388
|
-
|
|
3406
|
+
W(F)["right-edge"] ? {
|
|
3389
3407
|
name: "right-edge",
|
|
3390
|
-
fn:
|
|
3408
|
+
fn: K((e) => [B(t.$slots, "right-edge", M({ ref_for: !0 }, e))]),
|
|
3391
3409
|
key: "4"
|
|
3392
3410
|
} : void 0
|
|
3393
3411
|
]), 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));
|
|
3394
|
-
return
|
|
3412
|
+
return V.memo = R, V;
|
|
3395
3413
|
}, n, 3), 128)),
|
|
3396
|
-
e.loadingMore && !e.loading ? (
|
|
3414
|
+
e.loadingMore && !e.loading ? (L(!0), C(y, { key: 3 }, z(Math.min(3, e.skeletonRowCount), (e) => (L(), x(sn, {
|
|
3397
3415
|
key: `skeleton-more-${e}`,
|
|
3398
|
-
"leading-plans":
|
|
3399
|
-
"trailing-plans":
|
|
3400
|
-
}, T({ _: 2 }, [
|
|
3416
|
+
"leading-plans": W(ke),
|
|
3417
|
+
"trailing-plans": W(J)
|
|
3418
|
+
}, T({ _: 2 }, [W(F)["skeleton-row"] ? {
|
|
3401
3419
|
name: "default",
|
|
3402
|
-
fn:
|
|
3420
|
+
fn: K((e) => [B(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
|
|
3403
3421
|
key: "0"
|
|
3404
3422
|
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : S("", !0)
|
|
3405
3423
|
]),
|
|
3406
|
-
e.creationRow || e.footerValues ? (
|
|
3424
|
+
e.creationRow || e.footerValues ? (L(), C("tfoot", $n, [e.creationRow ? (L(), x(Ke, {
|
|
3407
3425
|
key: 0,
|
|
3408
3426
|
class: "s-ui-table__create-row",
|
|
3409
|
-
"aria-rowindex":
|
|
3410
|
-
cells:
|
|
3411
|
-
"content-column-key":
|
|
3427
|
+
"aria-rowindex": W(q).length + 2,
|
|
3428
|
+
cells: W(Y),
|
|
3429
|
+
"content-column-key": W(dn),
|
|
3412
3430
|
"cell-class": "s-ui-table__create-cell",
|
|
3413
3431
|
"content-class": "s-ui-table__create-content",
|
|
3414
|
-
section:
|
|
3432
|
+
section: W($).CREATION,
|
|
3415
3433
|
"cell-id-prefix": gr,
|
|
3416
|
-
"focus-column-key": vr(
|
|
3434
|
+
"focus-column-key": vr(W($).CREATION)
|
|
3417
3435
|
}, {
|
|
3418
|
-
default:
|
|
3436
|
+
default: K(() => [B(t.$slots, "creation-row")]),
|
|
3419
3437
|
_: 3
|
|
3420
3438
|
}, 8, [
|
|
3421
3439
|
"aria-rowindex",
|
|
@@ -3423,33 +3441,33 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
3423
3441
|
"content-column-key",
|
|
3424
3442
|
"section",
|
|
3425
3443
|
"focus-column-key"
|
|
3426
|
-
])) : S("", !0), e.footerValues ? (
|
|
3444
|
+
])) : S("", !0), e.footerValues ? (L(), C("tr", {
|
|
3427
3445
|
key: 1,
|
|
3428
3446
|
class: "s-ui-table__aggregate-row",
|
|
3429
|
-
"aria-rowindex":
|
|
3430
|
-
}, [(
|
|
3447
|
+
"aria-rowindex": W(q).length + 2 + +!!e.creationRow
|
|
3448
|
+
}, [(L(!0), C(y, null, z(W(Y), ({ key: e, cellPlan: n }) => (L(), C(y, { key: e }, [n ? (L(), C("td", {
|
|
3431
3449
|
key: 1,
|
|
3432
3450
|
id: pr({
|
|
3433
|
-
section:
|
|
3451
|
+
section: W($).AGGREGATE,
|
|
3434
3452
|
columnKey: n.descriptor.key
|
|
3435
3453
|
}),
|
|
3436
|
-
class:
|
|
3437
|
-
style:
|
|
3454
|
+
class: N(["s-ui-table__aggregate-cell", [n.cellClass, W(Fn)(n.descriptor.key)]]),
|
|
3455
|
+
style: P(n.style),
|
|
3438
3456
|
"aria-colindex": n.descriptor.colIndex,
|
|
3439
3457
|
"data-column-key": n.descriptor.key,
|
|
3440
|
-
"data-section":
|
|
3441
|
-
tabindex: yr(
|
|
3442
|
-
}, [n.descriptor.column ? (
|
|
3458
|
+
"data-section": W($).AGGREGATE,
|
|
3459
|
+
tabindex: yr(W($).AGGREGATE, void 0, n.descriptor.key)
|
|
3460
|
+
}, [n.descriptor.column ? (L(), C(y, { key: 0 }, [W(F)[`footer:${n.descriptor.key}`] ? B(t.$slots, `footer:${n.descriptor.key}`, M({
|
|
3443
3461
|
key: 0,
|
|
3444
3462
|
ref_for: !0
|
|
3445
|
-
},
|
|
3446
|
-
], 44, Ln)], 4),
|
|
3463
|
+
}, W(ir)(n.descriptor.key))) : (L(), C("span", rr, H(W(Pn)(n.descriptor.key)), 1))], 64)) : S("", !0)], 14, nr)) : (L(), C("td", tr))], 64))), 128))], 8, er)) : S("", !0)])) : S("", !0)
|
|
3464
|
+
], 44, Ln)], 4), W(lt) ? (L(), C("div", {
|
|
3447
3465
|
key: 0,
|
|
3448
3466
|
class: "s-ui-table__column-drop-line",
|
|
3449
|
-
style:
|
|
3467
|
+
style: P(W(lt)),
|
|
3450
3468
|
"aria-hidden": "true"
|
|
3451
3469
|
}, null, 4)) : S("", !0)], 6));
|
|
3452
3470
|
}
|
|
3453
3471
|
});
|
|
3454
3472
|
//#endregion
|
|
3455
|
-
export {
|
|
3473
|
+
export { J as a, je as c, Ae as d, Pe as f, Y 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 };
|