@ulu/frontend-vue 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/elements/UluCounterList.vue.d.ts +32 -0
- package/dist/components/elements/UluCounterList.vue.d.ts.map +1 -0
- package/dist/components/elements/UluCounterList.vue.js +77 -0
- package/dist/components/elements/UluDataTable.vue.d.ts +43 -0
- package/dist/components/elements/UluDataTable.vue.d.ts.map +1 -0
- package/dist/components/elements/UluDataTable.vue.js +114 -0
- package/dist/components/elements/UluDefinitionList.vue.d.ts +2 -2
- package/dist/components/elements/UluList.vue.d.ts +4 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +40 -23
- package/dist/components/elements/UluListItem.vue.d.ts +4 -2
- package/dist/components/elements/UluListItem.vue.d.ts.map +1 -1
- package/dist/components/elements/UluListItem.vue.js +17 -10
- package/dist/components/elements/UluTable.vue.d.ts +48 -0
- package/dist/components/elements/UluTable.vue.d.ts.map +1 -0
- package/dist/components/elements/UluTable.vue.js +211 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +104 -104
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableSticky.vue.js +218 -256
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +4 -4
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +12 -12
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts +2 -2
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useTableData.d.ts +30 -0
- package/dist/composables/useTableData.d.ts.map +1 -0
- package/dist/composables/useTableData.js +68 -0
- package/dist/index.js +190 -182
- package/lib/components/elements/UluCounterList.vue +77 -0
- package/lib/components/elements/UluDataTable.vue +115 -0
- package/lib/components/elements/UluDefinitionList.vue +1 -1
- package/lib/components/elements/UluList.vue +23 -8
- package/lib/components/elements/UluListItem.vue +11 -6
- package/lib/components/elements/UluTable.vue +217 -0
- package/lib/components/index.js +3 -0
- package/lib/components/systems/table-sticky/UluTableSticky.vue +26 -171
- package/lib/composables/index.js +1 -0
- package/lib/composables/useTableData.js +189 -0
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isArrayOfObjects as
|
|
3
|
-
import
|
|
4
|
-
import { debounce as
|
|
5
|
-
import { runAfterFramePaint as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { ref as c, computed as v, onMounted as Re, onBeforeUnmount as Se, createElementBlock as se, openBlock as C, normalizeClass as p, createElementVNode as d, createBlock as U, createCommentVNode as ne, createVNode as ae, normalizeStyle as I, unref as h, createSlots as $, renderList as T, withCtx as A, renderSlot as m, normalizeProps as z, guardReactiveProps as W, withDirectives as xe, resolveDynamicComponent as Ee, createTextVNode as re, vShow as Le, nextTick as ie } from "vue";
|
|
2
|
+
import { isArrayOfObjects as Y } from "../../../utils/props.js";
|
|
3
|
+
import P from "./UluTableStickyTable.vue.js";
|
|
4
|
+
import { debounce as pe } from "@ulu/utils/performance.js";
|
|
5
|
+
import { runAfterFramePaint as $e } from "@ulu/utils/browser/performance.js";
|
|
6
|
+
import { useTableData as Te } from "../../../composables/useTableData.js";
|
|
7
|
+
const Ae = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--header" }, ze = { class: "table-sticky__header-wrap" }, We = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--first-column-header" }, Pe = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--controls" }, He = {
|
|
8
8
|
key: 2,
|
|
9
9
|
class: "table-sticky__controls-inner"
|
|
10
|
-
},
|
|
10
|
+
}, Ve = ["disabled"], Be = ["disabled"], qe = {
|
|
11
11
|
__name: "UluTableSticky",
|
|
12
12
|
props: {
|
|
13
13
|
/**
|
|
@@ -59,7 +59,7 @@ const Ie = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--header
|
|
|
59
59
|
*/
|
|
60
60
|
columns: {
|
|
61
61
|
type: Array,
|
|
62
|
-
validator:
|
|
62
|
+
validator: Y,
|
|
63
63
|
required: !0
|
|
64
64
|
},
|
|
65
65
|
/**
|
|
@@ -80,14 +80,14 @@ const Ie = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--header
|
|
|
80
80
|
*/
|
|
81
81
|
rows: {
|
|
82
82
|
type: Array,
|
|
83
|
-
validator:
|
|
83
|
+
validator: Y
|
|
84
84
|
},
|
|
85
85
|
/**
|
|
86
86
|
* Array of rows for footer (tfoot)
|
|
87
87
|
*/
|
|
88
88
|
footerRows: {
|
|
89
89
|
type: Array,
|
|
90
|
-
validator:
|
|
90
|
+
validator: Y
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
93
93
|
* Enables the visibility of the scroll controls
|
|
@@ -114,329 +114,291 @@ const Ie = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--header
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
emits: ["column-sort"],
|
|
117
|
-
setup(
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
const r =
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
id: o()
|
|
139
|
-
}));
|
|
140
|
-
function c(u, h) {
|
|
141
|
-
const y = h.columns;
|
|
142
|
-
y && y.forEach((Q) => c(1 + u, Q)), h.rowspan = y ? 1 : s - u, h.colspan = y ? y.reduce((Q, Te) => Q + Te.colspan, 0) : 1, l[u].columns.push(h);
|
|
143
|
-
}
|
|
144
|
-
return e.forEach((u) => c(0, u)), l;
|
|
145
|
-
}, L = (e) => {
|
|
146
|
-
const o = X(e ? "fr" : "br"), s = e ? r.footerRows : r.rows;
|
|
147
|
-
return s ? s.map((t) => ({
|
|
148
|
-
height: null,
|
|
149
|
-
boxHeight: null,
|
|
150
|
-
data: t,
|
|
151
|
-
id: o()
|
|
152
|
-
})) : [];
|
|
153
|
-
}, g = i(ne()), C = i(L()), k = i(L(!0)), d = i(ae(g.value)), R = i(!1), I = i("auto"), F = i(!1), S = i(!1), p = i(!1), x = i(!1), j = i(!1);
|
|
154
|
-
let f = null;
|
|
155
|
-
f = new ResizeObserver(() => xe());
|
|
156
|
-
const ke = v(() => r.scrollControls && S.value), N = v(() => R.value && S.value), ie = v(() => N.value ? "1" : "0"), ce = v(() => {
|
|
157
|
-
const e = g.value, o = [], s = (l) => {
|
|
158
|
-
l.columns ? l.columns.forEach(s) : o.push(l);
|
|
159
|
-
};
|
|
160
|
-
e.forEach(s);
|
|
161
|
-
let t = [];
|
|
162
|
-
return o.forEach((l, c) => {
|
|
163
|
-
const u = t.slice();
|
|
164
|
-
l.getRowHeaders = (h) => u.map((y) => y(h)).join(" "), l.rowHeader && (l.getRowHeaderId = (h) => `${r.idPrefix}-rh-${h}-${c}`, t.push(l.getRowHeaderId));
|
|
165
|
-
}), o;
|
|
166
|
-
}), ue = v(() => d.value.reduce((e, o) => e + o.boxHeight, 0)), M = v(() => {
|
|
167
|
-
const e = d.value[0], s = [Object.assign({}, e.columns[0], { rowspan: 1, colspan: 1 })];
|
|
117
|
+
setup(o, { emit: ce }) {
|
|
118
|
+
const G = () => window.innerWidth;
|
|
119
|
+
let J = G();
|
|
120
|
+
const r = o, ue = ce, H = c(null), a = c(null), k = c(null), K = () => {
|
|
121
|
+
le(), ie(() => {
|
|
122
|
+
q(), F(), N(), X();
|
|
123
|
+
});
|
|
124
|
+
}, {
|
|
125
|
+
currentColumns: de,
|
|
126
|
+
currentRows: R,
|
|
127
|
+
currentFooterRows: S,
|
|
128
|
+
headerRows: i,
|
|
129
|
+
rowColumns: x
|
|
130
|
+
} = Te(r, K), y = c(!1), V = c("auto"), B = c(!1), b = c(!1), w = c(!1), g = c(!1), _ = c(!1);
|
|
131
|
+
let u = null;
|
|
132
|
+
u = new ResizeObserver(() => ye());
|
|
133
|
+
const fe = v(() => r.scrollControls && b.value), O = v(() => y.value && b.value), Q = v(() => O.value ? "1" : "0"), Z = v(() => i.value ? i.value.reduce((e, l) => e + l.boxHeight, 0) : 0), E = v(() => {
|
|
134
|
+
if (!i.value?.length) return [];
|
|
135
|
+
const e = i.value[0];
|
|
136
|
+
if (!e?.columns?.length) return [];
|
|
137
|
+
const n = [Object.assign({}, e.columns[0], { rowspan: 1, colspan: 1 })];
|
|
168
138
|
return [{
|
|
169
139
|
...e,
|
|
170
|
-
columns:
|
|
171
|
-
boxHeight:
|
|
172
|
-
height: `${
|
|
140
|
+
columns: n,
|
|
141
|
+
boxHeight: Z.value,
|
|
142
|
+
height: `${Z.value}px`
|
|
173
143
|
}];
|
|
174
|
-
}),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
144
|
+
}), ve = v(() => !x.value || !x.value.length ? [] : [x.value[0]]), he = v(() => {
|
|
145
|
+
if (!E.value?.length || !i.value?.[0]?.columns?.length)
|
|
146
|
+
return { width: "auto", height: "auto" };
|
|
147
|
+
const e = E.value[0].height;
|
|
148
|
+
return { width: i.value[0].columns[0].width, height: e };
|
|
149
|
+
}), me = (e) => {
|
|
150
|
+
const l = (n) => {
|
|
151
|
+
n.forEach((t) => {
|
|
152
|
+
e.key !== t.key && (t.sortApplied = !1, t.sortAscending = !1), t.columns && l(t.columns);
|
|
181
153
|
});
|
|
182
154
|
};
|
|
183
|
-
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
},
|
|
155
|
+
l(de.value);
|
|
156
|
+
}, L = (e) => {
|
|
157
|
+
me(e), e.sortApplied ? e.sortAscending = !e.sortAscending : e.sortApplied = !0, ue("column-sort", e);
|
|
158
|
+
}, ye = () => {
|
|
159
|
+
_.value && K();
|
|
160
|
+
}, be = (e) => {
|
|
161
|
+
u && u.observe(e);
|
|
162
|
+
}, we = (e) => {
|
|
163
|
+
u && u.unobserve(e);
|
|
164
|
+
}, f = (e, l = null) => {
|
|
193
165
|
if (!(typeof e > "u"))
|
|
194
|
-
return typeof e == "function" ? e(
|
|
195
|
-
},
|
|
196
|
-
if (a.value &&
|
|
166
|
+
return typeof e == "function" ? e(l) : e;
|
|
167
|
+
}, X = () => {
|
|
168
|
+
if (a.value && H.value) {
|
|
197
169
|
const e = a.value.scrollLeft;
|
|
198
|
-
|
|
170
|
+
H.value.$el.style.transform = `translateX(-${e}px)`;
|
|
199
171
|
}
|
|
200
|
-
},
|
|
201
|
-
a.value && (
|
|
202
|
-
},
|
|
203
|
-
if (!
|
|
172
|
+
}, F = () => {
|
|
173
|
+
a.value && (b.value = a.value.scrollWidth > a.value.clientWidth);
|
|
174
|
+
}, N = () => {
|
|
175
|
+
if (!b.value || !a.value) return;
|
|
204
176
|
const e = a.value;
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
const e =
|
|
208
|
-
|
|
209
|
-
}, 500, !0),
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}, he = () => {
|
|
221
|
-
j.value = !1, R.value = !1;
|
|
222
|
-
const e = (o) => {
|
|
223
|
-
o.boxHeight = null, o.height = "auto";
|
|
177
|
+
w.value = e.scrollLeft > 0, g.value = e.clientWidth + e.scrollLeft < e.scrollWidth;
|
|
178
|
+
}, ee = pe(() => {
|
|
179
|
+
const e = G();
|
|
180
|
+
J !== e && (J = e, B.value ? (B.value = !1, q(), F(), X()) : (B.value = !0, le()));
|
|
181
|
+
}, 500, !0), te = () => {
|
|
182
|
+
N(), X();
|
|
183
|
+
}, j = () => {
|
|
184
|
+
}, ge = () => {
|
|
185
|
+
a.value && a.value.addEventListener("scroll", te), r.scrollContext && r.scrollContext.addEventListener("touchmove", j), window.addEventListener("resize", ee);
|
|
186
|
+
}, Ce = () => {
|
|
187
|
+
a.value && a.value.removeEventListener("scroll", te), r.scrollContext && (r.scrollContext.removeEventListener("scroll", j), r.scrollContext.removeEventListener("touchmove", j)), window.removeEventListener("resize", ee);
|
|
188
|
+
}, le = () => {
|
|
189
|
+
_.value = !1, y.value = !1;
|
|
190
|
+
const e = (l) => {
|
|
191
|
+
l.boxHeight = null, l.height = "auto";
|
|
224
192
|
};
|
|
225
|
-
|
|
226
|
-
e(
|
|
227
|
-
|
|
193
|
+
V.value = "auto", i.value.forEach((l) => {
|
|
194
|
+
e(l), l.columns.forEach((n) => {
|
|
195
|
+
n.boxWidth = null, n.width = "auto";
|
|
228
196
|
});
|
|
229
|
-
}), r.firstColumnSticky && (
|
|
230
|
-
},
|
|
197
|
+
}), r.firstColumnSticky && (R.value.forEach((l) => e(l)), S.value.forEach((l) => e(l)));
|
|
198
|
+
}, D = () => {
|
|
231
199
|
const e = a.value;
|
|
232
200
|
if (!e) return;
|
|
233
|
-
const
|
|
201
|
+
const l = e.scrollLeft, n = r.scrollControlAmount, t = l - n;
|
|
234
202
|
e.scroll({
|
|
235
203
|
left: t < 0 ? 0 : t,
|
|
236
204
|
behavior: "smooth"
|
|
237
205
|
});
|
|
238
|
-
},
|
|
206
|
+
}, M = () => {
|
|
239
207
|
const e = a.value;
|
|
240
208
|
if (!e) return;
|
|
241
|
-
const
|
|
209
|
+
const l = e.scrollWidth, n = e.scrollLeft, t = r.scrollControlAmount, s = n + t;
|
|
242
210
|
e.scroll({
|
|
243
|
-
left:
|
|
211
|
+
left: s > l ? l : s,
|
|
244
212
|
behavior: "smooth"
|
|
245
213
|
});
|
|
246
|
-
},
|
|
247
|
-
const e = (t,
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
const
|
|
251
|
-
|
|
214
|
+
}, q = () => {
|
|
215
|
+
const e = (t, s) => Math.ceil(t.getBoundingClientRect()[s]);
|
|
216
|
+
k.value && k.value.$el && (V.value = `${e(k.value.$el, "width")}px`);
|
|
217
|
+
const l = (t) => document.getElementById(t.id), n = (t) => {
|
|
218
|
+
const s = l(t);
|
|
219
|
+
s && (t.boxHeight = e(s, "height"), t.height = `${t.boxHeight}px`);
|
|
252
220
|
};
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
221
|
+
i.value.forEach((t) => {
|
|
222
|
+
n(t), t.columns.forEach((s) => {
|
|
223
|
+
const oe = l(s);
|
|
224
|
+
oe && (s.boxWidth = e(oe, "width"), s.width = `${s.boxWidth}px`);
|
|
257
225
|
});
|
|
258
|
-
}), r.firstColumnSticky && (
|
|
259
|
-
|
|
260
|
-
|
|
226
|
+
}), r.firstColumnSticky && (R.value.forEach((t) => n(t)), S.value.forEach((t) => n(t))), ie(() => {
|
|
227
|
+
y.value = !0, $e(() => {
|
|
228
|
+
_.value = !0;
|
|
261
229
|
});
|
|
262
230
|
});
|
|
263
|
-
},
|
|
264
|
-
|
|
231
|
+
}, ke = () => {
|
|
232
|
+
q();
|
|
265
233
|
};
|
|
266
|
-
return
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
Ae(), f && (f.disconnect(), f = null);
|
|
276
|
-
}), (e, o) => (E(), me("div", {
|
|
277
|
-
class: T(["table-sticky", {
|
|
278
|
-
"table-sticky--overflown-x": S.value,
|
|
279
|
-
"table-sticky--can-scroll-right": x.value,
|
|
280
|
-
"table-sticky--can-scroll-left": p.value
|
|
234
|
+
return Re(() => {
|
|
235
|
+
ge(), F(), N();
|
|
236
|
+
}), Se(() => {
|
|
237
|
+
Ce(), u && (u.disconnect(), u = null);
|
|
238
|
+
}), (e, l) => (C(), se("div", {
|
|
239
|
+
class: p(["table-sticky", {
|
|
240
|
+
"table-sticky--overflown-x": b.value,
|
|
241
|
+
"table-sticky--can-scroll-right": g.value,
|
|
242
|
+
"table-sticky--can-scroll-left": w.value
|
|
281
243
|
}])
|
|
282
244
|
}, [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
245
|
+
d("div", Ae, [
|
|
246
|
+
d("div", ze, [
|
|
247
|
+
ae(P, {
|
|
286
248
|
ref_key: "header",
|
|
287
|
-
ref:
|
|
249
|
+
ref: H,
|
|
288
250
|
class: "table-sticky__table table-sticky__table--header",
|
|
289
|
-
classes:
|
|
290
|
-
caption:
|
|
291
|
-
resolveClasses:
|
|
292
|
-
getColumnTitle:
|
|
293
|
-
idPrefix:
|
|
294
|
-
headerRows:
|
|
295
|
-
style:
|
|
296
|
-
opacity:
|
|
297
|
-
pointerEvents:
|
|
298
|
-
width:
|
|
251
|
+
classes: o.classes,
|
|
252
|
+
caption: o.caption,
|
|
253
|
+
resolveClasses: f,
|
|
254
|
+
getColumnTitle: o.getColumnTitle,
|
|
255
|
+
idPrefix: o.idPrefix,
|
|
256
|
+
headerRows: h(i),
|
|
257
|
+
style: I({
|
|
258
|
+
opacity: y.value ? "1" : "0",
|
|
259
|
+
pointerEvents: y.value ? "auto" : "none",
|
|
260
|
+
width: V.value
|
|
299
261
|
}),
|
|
300
|
-
onColumnSorted:
|
|
301
|
-
},
|
|
302
|
-
|
|
262
|
+
onColumnSorted: L
|
|
263
|
+
}, $({ _: 2 }, [
|
|
264
|
+
T(e.$slots, (n, t) => ({
|
|
303
265
|
name: t,
|
|
304
|
-
fn:
|
|
305
|
-
|
|
266
|
+
fn: A((s) => [
|
|
267
|
+
m(e.$slots, t, z(W(s)))
|
|
306
268
|
])
|
|
307
269
|
}))
|
|
308
270
|
]), 1032, ["classes", "caption", "getColumnTitle", "idPrefix", "headerRows", "style"])
|
|
309
271
|
])
|
|
310
272
|
]),
|
|
311
|
-
|
|
312
|
-
|
|
273
|
+
d("div", We, [
|
|
274
|
+
o.firstColumnSticky ? (C(), U(P, {
|
|
313
275
|
key: 0,
|
|
314
276
|
class: "table-sticky__table table-sticky__table--first-column-header",
|
|
315
|
-
classes:
|
|
316
|
-
caption:
|
|
317
|
-
resolveClasses:
|
|
318
|
-
getColumnTitle:
|
|
319
|
-
idPrefix:
|
|
320
|
-
headerRows:
|
|
321
|
-
style:
|
|
322
|
-
opacity:
|
|
323
|
-
pointerEvents:
|
|
277
|
+
classes: o.classes,
|
|
278
|
+
caption: o.caption,
|
|
279
|
+
resolveClasses: f,
|
|
280
|
+
getColumnTitle: o.getColumnTitle,
|
|
281
|
+
idPrefix: o.idPrefix,
|
|
282
|
+
headerRows: E.value,
|
|
283
|
+
style: I({
|
|
284
|
+
opacity: Q.value,
|
|
285
|
+
pointerEvents: O.value ? "auto" : "none"
|
|
324
286
|
}),
|
|
325
|
-
onColumnSorted:
|
|
326
|
-
},
|
|
327
|
-
|
|
287
|
+
onColumnSorted: L
|
|
288
|
+
}, $({ _: 2 }, [
|
|
289
|
+
T(e.$slots, (n, t) => ({
|
|
328
290
|
name: t,
|
|
329
|
-
fn:
|
|
330
|
-
|
|
291
|
+
fn: A((s) => [
|
|
292
|
+
m(e.$slots, t, z(W(s)))
|
|
331
293
|
])
|
|
332
294
|
}))
|
|
333
|
-
]), 1032, ["classes", "caption", "getColumnTitle", "idPrefix", "headerRows", "style"])) :
|
|
295
|
+
]), 1032, ["classes", "caption", "getColumnTitle", "idPrefix", "headerRows", "style"])) : ne("", !0)
|
|
334
296
|
]),
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
class:
|
|
297
|
+
d("div", Pe, [
|
|
298
|
+
xe(d("div", {
|
|
299
|
+
class: p(["table-sticky__controls", f(o.classes.controls)])
|
|
338
300
|
}, [
|
|
339
|
-
e.$slots.controls ?
|
|
301
|
+
e.$slots.controls ? m(e.$slots, "controls", {
|
|
340
302
|
key: 0,
|
|
341
|
-
scrollLeft:
|
|
342
|
-
scrollRight:
|
|
343
|
-
canScrollLeft:
|
|
344
|
-
canScrollRight:
|
|
345
|
-
}) :
|
|
303
|
+
scrollLeft: D,
|
|
304
|
+
scrollRight: M,
|
|
305
|
+
canScrollLeft: w.value,
|
|
306
|
+
canScrollRight: g.value
|
|
307
|
+
}) : o.controlsComponent ? (C(), U(Ee(o.controlsComponent), {
|
|
346
308
|
key: 1,
|
|
347
|
-
scrollLeft:
|
|
348
|
-
scrollRight:
|
|
349
|
-
canScrollLeft:
|
|
350
|
-
canScrollRight:
|
|
351
|
-
}, null, 8, ["canScrollLeft", "canScrollRight"])) : (
|
|
352
|
-
|
|
353
|
-
class:
|
|
309
|
+
scrollLeft: D,
|
|
310
|
+
scrollRight: M,
|
|
311
|
+
canScrollLeft: w.value,
|
|
312
|
+
canScrollRight: g.value
|
|
313
|
+
}, null, 8, ["canScrollLeft", "canScrollRight"])) : (C(), se("div", He, [
|
|
314
|
+
d("button", {
|
|
315
|
+
class: p(["table-sticky__control table-sticky__control--left", f(o.classes.controlButton)]),
|
|
354
316
|
"aria-label": "Scroll Left",
|
|
355
|
-
onClick:
|
|
356
|
-
disabled: !
|
|
317
|
+
onClick: D,
|
|
318
|
+
disabled: !w.value
|
|
357
319
|
}, [
|
|
358
|
-
|
|
359
|
-
|
|
320
|
+
m(e.$slots, "controlLeft", {}, () => [
|
|
321
|
+
l[0] || (l[0] = re(" ← ", -1))
|
|
360
322
|
])
|
|
361
|
-
], 10,
|
|
362
|
-
|
|
363
|
-
class:
|
|
323
|
+
], 10, Ve),
|
|
324
|
+
d("button", {
|
|
325
|
+
class: p(["table-sticky__control table-sticky__control--right", f(o.classes.controlButton)]),
|
|
364
326
|
"aria-label": "Scroll Right",
|
|
365
|
-
onClick:
|
|
366
|
-
disabled: !
|
|
327
|
+
onClick: M,
|
|
328
|
+
disabled: !g.value
|
|
367
329
|
}, [
|
|
368
|
-
|
|
369
|
-
|
|
330
|
+
m(e.$slots, "controlRight", {}, () => [
|
|
331
|
+
l[1] || (l[1] = re(" → ", -1))
|
|
370
332
|
])
|
|
371
|
-
], 10,
|
|
333
|
+
], 10, Be)
|
|
372
334
|
]))
|
|
373
335
|
], 2), [
|
|
374
|
-
[
|
|
336
|
+
[Le, fe.value]
|
|
375
337
|
])
|
|
376
338
|
]),
|
|
377
|
-
|
|
339
|
+
d("div", {
|
|
378
340
|
ref_key: "display",
|
|
379
341
|
ref: a,
|
|
380
342
|
class: "table-sticky__display"
|
|
381
343
|
}, [
|
|
382
|
-
|
|
344
|
+
ae(P, {
|
|
383
345
|
ref_key: "table",
|
|
384
|
-
ref:
|
|
346
|
+
ref: k,
|
|
385
347
|
class: "table-sticky__table table-sticky__table--actual",
|
|
386
|
-
classes:
|
|
387
|
-
resolveClasses:
|
|
348
|
+
classes: o.classes,
|
|
349
|
+
resolveClasses: f,
|
|
388
350
|
isActual: "",
|
|
389
|
-
headerRows:
|
|
390
|
-
rows:
|
|
391
|
-
footerRows:
|
|
392
|
-
rowColumns:
|
|
393
|
-
caption:
|
|
394
|
-
idPrefix:
|
|
395
|
-
getRowValue:
|
|
396
|
-
getColumnTitle:
|
|
397
|
-
onVnodeMounted:
|
|
398
|
-
onActualHeaderRemoved:
|
|
399
|
-
onActualHeaderAdded:
|
|
400
|
-
onColumnSorted:
|
|
401
|
-
},
|
|
402
|
-
|
|
351
|
+
headerRows: h(i),
|
|
352
|
+
rows: h(R),
|
|
353
|
+
footerRows: h(S),
|
|
354
|
+
rowColumns: h(x),
|
|
355
|
+
caption: o.caption,
|
|
356
|
+
idPrefix: o.idPrefix,
|
|
357
|
+
getRowValue: o.getRowValue,
|
|
358
|
+
getColumnTitle: o.getColumnTitle,
|
|
359
|
+
onVnodeMounted: ke,
|
|
360
|
+
onActualHeaderRemoved: we,
|
|
361
|
+
onActualHeaderAdded: be,
|
|
362
|
+
onColumnSorted: L
|
|
363
|
+
}, $({ _: 2 }, [
|
|
364
|
+
T(e.$slots, (n, t) => ({
|
|
403
365
|
name: t,
|
|
404
|
-
fn:
|
|
405
|
-
|
|
366
|
+
fn: A((s) => [
|
|
367
|
+
m(e.$slots, t, z(W(s)))
|
|
406
368
|
])
|
|
407
369
|
}))
|
|
408
370
|
]), 1032, ["classes", "headerRows", "rows", "footerRows", "rowColumns", "caption", "idPrefix", "getRowValue", "getColumnTitle"])
|
|
409
371
|
], 512),
|
|
410
|
-
|
|
372
|
+
o.firstColumnSticky ? (C(), U(P, {
|
|
411
373
|
key: 0,
|
|
412
374
|
class: "table-sticky__table table-sticky__table--first-column",
|
|
413
|
-
classes:
|
|
414
|
-
resolveClasses:
|
|
415
|
-
caption:
|
|
416
|
-
headerRows:
|
|
417
|
-
columnWidth:
|
|
418
|
-
rows:
|
|
419
|
-
footerRows:
|
|
420
|
-
rowColumns:
|
|
421
|
-
idPrefix:
|
|
422
|
-
getRowValue:
|
|
423
|
-
getColumnTitle:
|
|
424
|
-
style:
|
|
425
|
-
opacity:
|
|
426
|
-
pointerEvents:
|
|
375
|
+
classes: o.classes,
|
|
376
|
+
resolveClasses: f,
|
|
377
|
+
caption: o.caption,
|
|
378
|
+
headerRows: E.value,
|
|
379
|
+
columnWidth: he.value.width,
|
|
380
|
+
rows: h(R),
|
|
381
|
+
footerRows: h(S),
|
|
382
|
+
rowColumns: ve.value,
|
|
383
|
+
idPrefix: o.idPrefix,
|
|
384
|
+
getRowValue: o.getRowValue,
|
|
385
|
+
getColumnTitle: o.getColumnTitle,
|
|
386
|
+
style: I({
|
|
387
|
+
opacity: Q.value,
|
|
388
|
+
pointerEvents: O.value ? "auto" : "none"
|
|
427
389
|
}),
|
|
428
|
-
onColumnSorted:
|
|
429
|
-
},
|
|
430
|
-
|
|
390
|
+
onColumnSorted: L
|
|
391
|
+
}, $({ _: 2 }, [
|
|
392
|
+
T(e.$slots, (n, t) => ({
|
|
431
393
|
name: t,
|
|
432
|
-
fn:
|
|
433
|
-
|
|
394
|
+
fn: A((s) => [
|
|
395
|
+
m(e.$slots, t, z(W(s)))
|
|
434
396
|
])
|
|
435
397
|
}))
|
|
436
|
-
]), 1032, ["classes", "caption", "headerRows", "columnWidth", "rows", "footerRows", "rowColumns", "idPrefix", "getRowValue", "getColumnTitle", "style"])) :
|
|
398
|
+
]), 1032, ["classes", "caption", "headerRows", "columnWidth", "rows", "footerRows", "rowColumns", "idPrefix", "getRowValue", "getColumnTitle", "style"])) : ne("", !0)
|
|
437
399
|
], 2));
|
|
438
400
|
}
|
|
439
401
|
};
|
|
440
402
|
export {
|
|
441
|
-
|
|
403
|
+
qe as default
|
|
442
404
|
};
|
|
@@ -10,10 +10,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
10
10
|
value?: Function | undefined;
|
|
11
11
|
rows?: unknown[] | undefined;
|
|
12
12
|
rowColumns?: unknown[] | undefined;
|
|
13
|
-
columnWidth?: string | undefined;
|
|
14
|
-
optionalAttr?: Function | undefined;
|
|
15
13
|
resolveClasses?: Function | undefined;
|
|
16
14
|
getCellHeaders?: Function | undefined;
|
|
15
|
+
columnWidth?: string | undefined;
|
|
16
|
+
optionalAttr?: Function | undefined;
|
|
17
17
|
$props: {
|
|
18
18
|
readonly isActual?: boolean | undefined;
|
|
19
19
|
readonly foot?: boolean | undefined;
|
|
@@ -21,10 +21,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
21
21
|
readonly value?: Function | undefined;
|
|
22
22
|
readonly rows?: unknown[] | undefined;
|
|
23
23
|
readonly rowColumns?: unknown[] | undefined;
|
|
24
|
-
readonly columnWidth?: string | undefined;
|
|
25
|
-
readonly optionalAttr?: Function | undefined;
|
|
26
24
|
readonly resolveClasses?: Function | undefined;
|
|
27
25
|
readonly getCellHeaders?: Function | undefined;
|
|
26
|
+
readonly columnWidth?: string | undefined;
|
|
27
|
+
readonly optionalAttr?: Function | undefined;
|
|
28
28
|
};
|
|
29
29
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
30
|
type __VLS_TemplateResult = {
|