@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.
Files changed (39) hide show
  1. package/dist/components/elements/UluCounterList.vue.d.ts +32 -0
  2. package/dist/components/elements/UluCounterList.vue.d.ts.map +1 -0
  3. package/dist/components/elements/UluCounterList.vue.js +77 -0
  4. package/dist/components/elements/UluDataTable.vue.d.ts +43 -0
  5. package/dist/components/elements/UluDataTable.vue.d.ts.map +1 -0
  6. package/dist/components/elements/UluDataTable.vue.js +114 -0
  7. package/dist/components/elements/UluDefinitionList.vue.d.ts +2 -2
  8. package/dist/components/elements/UluList.vue.d.ts +4 -0
  9. package/dist/components/elements/UluList.vue.d.ts.map +1 -1
  10. package/dist/components/elements/UluList.vue.js +40 -23
  11. package/dist/components/elements/UluListItem.vue.d.ts +4 -2
  12. package/dist/components/elements/UluListItem.vue.d.ts.map +1 -1
  13. package/dist/components/elements/UluListItem.vue.js +17 -10
  14. package/dist/components/elements/UluTable.vue.d.ts +48 -0
  15. package/dist/components/elements/UluTable.vue.d.ts.map +1 -0
  16. package/dist/components/elements/UluTable.vue.js +211 -0
  17. package/dist/components/index.d.ts +3 -0
  18. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +104 -104
  19. package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
  20. package/dist/components/systems/table-sticky/UluTableSticky.vue.js +218 -256
  21. package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +4 -4
  22. package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +12 -12
  23. package/dist/components/utils/UluPlaceholderImage.vue.d.ts +2 -2
  24. package/dist/composables/index.d.ts +1 -0
  25. package/dist/composables/useTableData.d.ts +30 -0
  26. package/dist/composables/useTableData.d.ts.map +1 -0
  27. package/dist/composables/useTableData.js +68 -0
  28. package/dist/index.js +190 -182
  29. package/lib/components/elements/UluCounterList.vue +77 -0
  30. package/lib/components/elements/UluDataTable.vue +115 -0
  31. package/lib/components/elements/UluDefinitionList.vue +1 -1
  32. package/lib/components/elements/UluList.vue +23 -8
  33. package/lib/components/elements/UluListItem.vue +11 -6
  34. package/lib/components/elements/UluTable.vue +217 -0
  35. package/lib/components/index.js +3 -0
  36. package/lib/components/systems/table-sticky/UluTableSticky.vue +26 -171
  37. package/lib/composables/index.js +1 -0
  38. package/lib/composables/useTableData.js +189 -0
  39. package/package.json +3 -3
@@ -1,13 +1,13 @@
1
- import { ref as i, computed as v, nextTick as ve, watch as Z, onMounted as Pe, onBeforeUnmount as We, createElementBlock as me, openBlock as E, normalizeClass as T, createElementVNode as m, createBlock as ee, createCommentVNode as we, createVNode as ye, normalizeStyle as te, createSlots as P, renderList as W, withCtx as z, renderSlot as b, normalizeProps as V, guardReactiveProps as B, withDirectives as ze, resolveDynamicComponent as Ve, createTextVNode as be, vShow as Be } from "vue";
2
- import { isArrayOfObjects as oe } from "../../../utils/props.js";
3
- import _ from "./UluTableStickyTable.vue.js";
4
- import { debounce as _e } from "@ulu/utils/performance.js";
5
- import { runAfterFramePaint as Oe } from "@ulu/utils/browser/performance.js";
6
- import Xe from "lodash-es/cloneDeep.js";
7
- const Ie = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--header" }, Fe = { class: "table-sticky__header-wrap" }, je = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--first-column-header" }, Ne = { class: "table-sticky__sticky-wrap table-sticky__sticky-wrap--controls" }, Me = {
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
- }, De = ["disabled"], Ue = ["disabled"], tt = {
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: oe,
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: oe
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: oe
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(n, { emit: ge }) {
118
- const le = () => window.innerWidth;
119
- let se = le();
120
- const r = n, Ce = ge, O = i(null), a = i(null), $ = i(null), X = (e) => {
121
- let o = 0;
122
- return () => `${r.idPrefix}-${e}-${++o}`;
123
- }, ne = () => {
124
- const e = X("c"), o = Xe(r.columns), s = (t, l) => {
125
- t.id = e(), t.parent = l, t.width = "auto", t.boxWidth = null, t.sortApplied = !1, t.sortAscending = !1, t.sortFocused = !1;
126
- let c = [];
127
- l && (l.headers && l.headers.length ? c = [...l.headers] : c.push(l.id)), c.push(t.id), t.headers = c, t.columns ? t.columns.forEach((u) => s(u, t)) : !t.key && !t.value && !t.slot && console.warn("UluTableSticky: Missing 'key', 'value' or 'slot' in column configuration for", t);
128
- };
129
- return o.forEach((t) => s(t, null)), o;
130
- }, re = (e, o) => {
131
- const s = o.columns ? o.columns.reduce(re, 1) + 1 : 1;
132
- return e > s ? e : s;
133
- }, ae = (e) => {
134
- const o = X("hr"), s = e.reduce(re, 1), t = "auto", l = new Array(s).fill(null).map(() => ({
135
- height: t,
136
- boxHeight: null,
137
- columns: [],
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: s,
171
- boxHeight: ue.value,
172
- height: `${ue.value}px`
140
+ columns: n,
141
+ boxHeight: Z.value,
142
+ height: `${Z.value}px`
173
143
  }];
174
- }), Re = v(() => [ce.value[0]]), Se = v(() => {
175
- const e = M.value[0].height;
176
- return { width: d.value[0].columns[0].width, height: e };
177
- }), pe = (e) => {
178
- const o = (s) => {
179
- s.forEach((t) => {
180
- e.key !== t.key && (t.sortApplied = !1, t.sortAscending = !1), t.columns && o(t.columns);
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
- o(g.value);
184
- }, A = (e) => {
185
- pe(e), e.sortApplied ? e.sortAscending = !e.sortAscending : e.sortApplied = !0, Ce("column-sort", e);
186
- }, xe = () => {
187
- j.value && H();
188
- }, Ee = (e) => {
189
- f && f.observe(e);
190
- }, $e = (e) => {
191
- f && f.unobserve(e);
192
- }, w = (e, o = null) => {
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(o) : e;
195
- }, D = () => {
196
- if (a.value && O.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
- O.value.$el.style.transform = `translateX(-${e}px)`;
170
+ H.value.$el.style.transform = `translateX(-${e}px)`;
199
171
  }
200
- }, U = () => {
201
- a.value && (S.value = a.value.scrollWidth > a.value.clientWidth);
202
- }, q = () => {
203
- if (!S.value || !a.value) return;
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
- p.value = e.scrollLeft > 0, x.value = e.clientWidth + e.scrollLeft < e.scrollWidth;
206
- }, de = _e(() => {
207
- const e = le();
208
- se !== e && (se = e, F.value ? (F.value = !1, K(), U(), D()) : (F.value = !0, he()));
209
- }, 500, !0), H = () => {
210
- he(), ve(() => {
211
- K(), U(), q(), D();
212
- });
213
- }, fe = () => {
214
- q(), D();
215
- }, Y = () => {
216
- }, Le = () => {
217
- a.value && a.value.addEventListener("scroll", fe), r.scrollContext && r.scrollContext.addEventListener("touchmove", Y), window.addEventListener("resize", de);
218
- }, Ae = () => {
219
- a.value && a.value.removeEventListener("scroll", fe), r.scrollContext && (r.scrollContext.removeEventListener("scroll", Y), r.scrollContext.removeEventListener("touchmove", Y)), window.removeEventListener("resize", de);
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
- I.value = "auto", d.value.forEach((o) => {
226
- e(o), o.columns.forEach((s) => {
227
- s.boxWidth = null, s.width = "auto";
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 && (C.value.forEach((o) => e(o)), k.value.forEach((o) => e(o)));
230
- }, G = () => {
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 o = e.scrollLeft, s = r.scrollControlAmount, t = o - s;
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
- }, J = () => {
206
+ }, M = () => {
239
207
  const e = a.value;
240
208
  if (!e) return;
241
- const o = e.scrollWidth, s = e.scrollLeft, t = r.scrollControlAmount, l = s + t;
209
+ const l = e.scrollWidth, n = e.scrollLeft, t = r.scrollControlAmount, s = n + t;
242
210
  e.scroll({
243
- left: l > o ? o : l,
211
+ left: s > l ? l : s,
244
212
  behavior: "smooth"
245
213
  });
246
- }, K = () => {
247
- const e = (t, l) => Math.ceil(t.getBoundingClientRect()[l]);
248
- $.value && $.value.$el && (I.value = `${e($.value.$el, "width")}px`);
249
- const o = (t) => document.getElementById(t.id), s = (t) => {
250
- const l = o(t);
251
- l && (t.boxHeight = e(l, "height"), t.height = `${t.boxHeight}px`);
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
- d.value.forEach((t) => {
254
- s(t), t.columns.forEach((l) => {
255
- const c = o(l);
256
- c && (l.boxWidth = e(c, "width"), l.width = `${l.boxWidth}px`);
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 && (C.value.forEach((t) => s(t)), k.value.forEach((t) => s(t))), ve(() => {
259
- R.value = !0, Oe(() => {
260
- j.value = !0;
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
- }, He = () => {
264
- K();
231
+ }, ke = () => {
232
+ q();
265
233
  };
266
- return Z(() => r.columns, () => {
267
- g.value = ne(), d.value = ae(g.value), H();
268
- }, { deep: !0 }), Z(() => r.rows, () => {
269
- C.value = L(), H();
270
- }, { deep: !0 }), Z(() => r.footerRows, () => {
271
- k.value = L(!0), H();
272
- }, { deep: !0 }), Pe(() => {
273
- Le(), U(), q();
274
- }), We(() => {
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
- m("div", Ie, [
284
- m("div", Fe, [
285
- ye(_, {
245
+ d("div", Ae, [
246
+ d("div", ze, [
247
+ ae(P, {
286
248
  ref_key: "header",
287
- ref: O,
249
+ ref: H,
288
250
  class: "table-sticky__table table-sticky__table--header",
289
- classes: n.classes,
290
- caption: n.caption,
291
- resolveClasses: w,
292
- getColumnTitle: n.getColumnTitle,
293
- idPrefix: n.idPrefix,
294
- headerRows: d.value,
295
- style: te({
296
- opacity: R.value ? "1" : "0",
297
- pointerEvents: R.value ? "auto" : "none",
298
- width: I.value
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: A
301
- }, P({ _: 2 }, [
302
- W(e.$slots, (s, t) => ({
262
+ onColumnSorted: L
263
+ }, $({ _: 2 }, [
264
+ T(e.$slots, (n, t) => ({
303
265
  name: t,
304
- fn: z((l) => [
305
- b(e.$slots, t, V(B(l)))
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
- m("div", je, [
312
- n.firstColumnSticky ? (E(), ee(_, {
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: n.classes,
316
- caption: n.caption,
317
- resolveClasses: w,
318
- getColumnTitle: n.getColumnTitle,
319
- idPrefix: n.idPrefix,
320
- headerRows: M.value,
321
- style: te({
322
- opacity: ie.value,
323
- pointerEvents: N.value ? "auto" : "none"
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: A
326
- }, P({ _: 2 }, [
327
- W(e.$slots, (s, t) => ({
287
+ onColumnSorted: L
288
+ }, $({ _: 2 }, [
289
+ T(e.$slots, (n, t) => ({
328
290
  name: t,
329
- fn: z((l) => [
330
- b(e.$slots, t, V(B(l)))
291
+ fn: A((s) => [
292
+ m(e.$slots, t, z(W(s)))
331
293
  ])
332
294
  }))
333
- ]), 1032, ["classes", "caption", "getColumnTitle", "idPrefix", "headerRows", "style"])) : we("", !0)
295
+ ]), 1032, ["classes", "caption", "getColumnTitle", "idPrefix", "headerRows", "style"])) : ne("", !0)
334
296
  ]),
335
- m("div", Ne, [
336
- ze(m("div", {
337
- class: T(["table-sticky__controls", w(n.classes.controls)])
297
+ d("div", Pe, [
298
+ xe(d("div", {
299
+ class: p(["table-sticky__controls", f(o.classes.controls)])
338
300
  }, [
339
- e.$slots.controls ? b(e.$slots, "controls", {
301
+ e.$slots.controls ? m(e.$slots, "controls", {
340
302
  key: 0,
341
- scrollLeft: G,
342
- scrollRight: J,
343
- canScrollLeft: p.value,
344
- canScrollRight: x.value
345
- }) : n.controlsComponent ? (E(), ee(Ve(n.controlsComponent), {
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: G,
348
- scrollRight: J,
349
- canScrollLeft: p.value,
350
- canScrollRight: x.value
351
- }, null, 8, ["canScrollLeft", "canScrollRight"])) : (E(), me("div", Me, [
352
- m("button", {
353
- class: T(["table-sticky__control table-sticky__control--left", w(n.classes.controlButton)]),
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: G,
356
- disabled: !p.value
317
+ onClick: D,
318
+ disabled: !w.value
357
319
  }, [
358
- b(e.$slots, "controlLeft", {}, () => [
359
- o[0] || (o[0] = be(" ← ", -1))
320
+ m(e.$slots, "controlLeft", {}, () => [
321
+ l[0] || (l[0] = re(" ← ", -1))
360
322
  ])
361
- ], 10, De),
362
- m("button", {
363
- class: T(["table-sticky__control table-sticky__control--right", w(n.classes.controlButton)]),
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: J,
366
- disabled: !x.value
327
+ onClick: M,
328
+ disabled: !g.value
367
329
  }, [
368
- b(e.$slots, "controlRight", {}, () => [
369
- o[1] || (o[1] = be(" → ", -1))
330
+ m(e.$slots, "controlRight", {}, () => [
331
+ l[1] || (l[1] = re(" → ", -1))
370
332
  ])
371
- ], 10, Ue)
333
+ ], 10, Be)
372
334
  ]))
373
335
  ], 2), [
374
- [Be, ke.value]
336
+ [Le, fe.value]
375
337
  ])
376
338
  ]),
377
- m("div", {
339
+ d("div", {
378
340
  ref_key: "display",
379
341
  ref: a,
380
342
  class: "table-sticky__display"
381
343
  }, [
382
- ye(_, {
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: n.classes,
387
- resolveClasses: w,
348
+ classes: o.classes,
349
+ resolveClasses: f,
388
350
  isActual: "",
389
- headerRows: d.value,
390
- rows: C.value,
391
- footerRows: k.value,
392
- rowColumns: ce.value,
393
- caption: n.caption,
394
- idPrefix: n.idPrefix,
395
- getRowValue: n.getRowValue,
396
- getColumnTitle: n.getColumnTitle,
397
- onVnodeMounted: He,
398
- onActualHeaderRemoved: $e,
399
- onActualHeaderAdded: Ee,
400
- onColumnSorted: A
401
- }, P({ _: 2 }, [
402
- W(e.$slots, (s, t) => ({
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: z((l) => [
405
- b(e.$slots, t, V(B(l)))
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
- n.firstColumnSticky ? (E(), ee(_, {
372
+ o.firstColumnSticky ? (C(), U(P, {
411
373
  key: 0,
412
374
  class: "table-sticky__table table-sticky__table--first-column",
413
- classes: n.classes,
414
- resolveClasses: w,
415
- caption: n.caption,
416
- headerRows: M.value,
417
- columnWidth: Se.value.width,
418
- rows: C.value,
419
- footerRows: k.value,
420
- rowColumns: Re.value,
421
- idPrefix: n.idPrefix,
422
- getRowValue: n.getRowValue,
423
- getColumnTitle: n.getColumnTitle,
424
- style: te({
425
- opacity: ie.value,
426
- pointerEvents: N.value ? "auto" : "none"
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: A
429
- }, P({ _: 2 }, [
430
- W(e.$slots, (s, t) => ({
390
+ onColumnSorted: L
391
+ }, $({ _: 2 }, [
392
+ T(e.$slots, (n, t) => ({
431
393
  name: t,
432
- fn: z((l) => [
433
- b(e.$slots, t, V(B(l)))
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"])) : we("", !0)
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
- tt as default
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 = {