@bridge-ui/vue 0.17.0 → 0.17.2

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.
@@ -1,5 +1,5 @@
1
- import e from "../Skeleton/Skeleton.js";
2
- import { useChart as t } from "./composables/useChart.js";
1
+ import { useChart as e } from "./composables/useChart.js";
2
+ import t from "../../Utils/LoadingSpin.js";
3
3
  import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useTemplateRef as _ } from "vue";
4
4
  //#region src/Components/Chart/Chart.vue?vue&type=script&setup=true&lang.ts
5
5
  var v = { scope: "col" }, y = { scope: "row" }, b = /*@__PURE__*/ c({
@@ -24,7 +24,7 @@ var v = { scope: "col" }, y = { scope: "row" }, b = /*@__PURE__*/ c({
24
24
  width: {}
25
25
  },
26
26
  setup(c) {
27
- let b = c, x = _("root"), S = _("plot"), C = _("host"), { table: w, isEmpty: T, hostBind: E, plotBind: D, rootBind: O, liveBind: k, emptyBind: A, isLoading: j, tableBind: M, loadingBind: N, announcement: P, emptyMessage: F } = t(b, {
27
+ let b = c, x = _("root"), S = _("plot"), C = _("host"), { table: w, isEmpty: T, hostBind: E, plotBind: D, rootBind: O, liveBind: k, emptyBind: A, isLoading: j, tableBind: M, loadingBind: N, announcement: P, emptyMessage: F } = e(b, {
28
28
  size: "md",
29
29
  height: 280,
30
30
  animation: !0
@@ -33,13 +33,13 @@ var v = { scope: "col" }, y = { scope: "row" }, b = /*@__PURE__*/ c({
33
33
  plotRef: S,
34
34
  rootRef: x
35
35
  });
36
- return (t, c) => (f(), i("div", u({ ref: "root" }, g(O)), [
36
+ return (e, c) => (f(), i("div", u({ ref: "root" }, g(O)), [
37
37
  a("div", u({ ref: "plot" }, g(D)), [
38
38
  a("div", u({ ref: "host" }, g(E)), null, 16),
39
- g(j) ? (f(), i("div", d(u({ key: 0 }, g(N))), [m(t.$slots, "loading", {}, () => [s(g(e), { class: "size-full" })])], 16)) : r("", !0),
40
- g(T) ? (f(), i("div", d(u({ key: 1 }, g(A))), [m(t.$slots, "empty", {}, () => [o(h(g(F)), 1)])], 16)) : r("", !0)
39
+ g(j) ? (f(), i("div", d(u({ key: 0 }, g(N))), [m(e.$slots, "loading", {}, () => [s(t)])], 16)) : r("", !0),
40
+ g(T) ? (f(), i("div", d(u({ key: 1 }, g(A))), [m(e.$slots, "empty", {}, () => [o(h(g(F)), 1)])], 16)) : r("", !0)
41
41
  ], 16),
42
- m(t.$slots, "default"),
42
+ m(e.$slots, "default"),
43
43
  a("table", d(l(g(M))), [a("thead", null, [a("tr", null, [a("th", v, h(g(w).categoryLabel), 1), (f(!0), i(n, null, p(g(w).series, (e) => (f(), i("th", {
44
44
  scope: "col",
45
45
  key: e.id
@@ -184,7 +184,7 @@ function v(v, De, Oe) {
184
184
  }, { flush: "post" }), te(() => {
185
185
  q?.(), Q();
186
186
  });
187
- let $ = a(() => {
187
+ let Ke = a(() => {
188
188
  let e = N.value.index;
189
189
  return d(e) ? [] : he({
190
190
  index: e,
@@ -194,34 +194,34 @@ function v(v, De, Oe) {
194
194
  }))
195
195
  });
196
196
  });
197
- function Ke(e) {
197
+ function qe(e) {
198
198
  let t = w.value?.getCategoryAnchor(e), n = S.value;
199
199
  return d(t) || d(n) ? null : {
200
200
  y: t.y + n.offsetTop,
201
201
  x: t.x + n.offsetLeft
202
202
  };
203
203
  }
204
- function qe() {
204
+ function Je() {
205
205
  return {
206
206
  width: C.value?.clientWidth ?? 0,
207
207
  height: C.value?.clientHeight ?? 0
208
208
  };
209
209
  }
210
- let Je = a(() => ({
210
+ let Ye = a(() => ({
211
211
  setAxis: Re,
212
- getBounds: qe,
212
+ getBounds: Je,
213
213
  removeAxis: ze,
214
214
  id: y,
215
215
  removeSeries: Le,
216
216
  toggleSeries: Be,
217
217
  upsertSeries: Ie,
218
218
  highlightSeries: Ve,
219
- getTooltipAnchor: Ke,
219
+ getTooltipAnchor: qe,
220
220
  series: J.value,
221
221
  locale: V.value,
222
222
  categories: U.value,
223
223
  activeIndex: N.value.index,
224
- tooltipItems: $.value,
224
+ tooltipItems: Ke.value,
225
225
  tokenClasses: {
226
226
  legend: l(G.value, "legend"),
227
227
  swatch: l(G.value, "swatch"),
@@ -229,15 +229,15 @@ function v(v, De, Oe) {
229
229
  legendItem: l(G.value, "legendItem")
230
230
  }
231
231
  }));
232
- re(i, Je);
233
- let Ye = a(() => I.value.loading === !0), Xe = a(() => !Ye.value && p(k.value)), Ze = a(() => b("No data")), Qe = a(() => d(I.value.summary) ? p(k.value) ? Ze.value : b("Chart with {{count}} series ({{names}}) across {{categories}} categories, from {{first}} to {{last}}.", pe({
232
+ re(i, Ye);
233
+ let $ = a(() => I.value.loading === !0), Xe = a(() => !$.value && p(k.value)), Ze = a(() => b("No data")), Qe = a(() => d(I.value.summary) ? p(k.value) ? Ze.value : b("Chart with {{count}} series ({{names}}) across {{categories}} categories, from {{first}} to {{last}}.", pe({
234
234
  series: k.value,
235
235
  categories: U.value
236
236
  })) : I.value.summary), $e = a(() => {
237
237
  let e = N.value.index;
238
238
  return N.value.source !== "keyboard" || d(e) ? "" : ue({
239
239
  locale: V.value,
240
- items: $.value,
240
+ items: Ke.value,
241
241
  category: U.value[e] ?? ""
242
242
  });
243
243
  }), et = a(() => ({
@@ -274,6 +274,7 @@ function v(v, De, Oe) {
274
274
  }
275
275
  let rt = a(() => t(f(H.value?.root, ["style"]), f(F.value.inheritedAttrs, ["style"]), {
276
276
  role: "figure",
277
+ "aria-busy": $.value || void 0,
277
278
  style: [
278
279
  { width: m(I.value.width, "100%") },
279
280
  F.value.inheritedAttrs.style,
@@ -304,7 +305,8 @@ function v(v, De, Oe) {
304
305
  "aria-hidden": !0,
305
306
  class: "absolute inset-0"
306
307
  })), ot = a(() => ({ class: h({
307
- "absolute inset-0 z-10 flex": !0,
308
+ "absolute inset-0 z-10 flex items-center justify-center": !0,
309
+ "bg-white/50 dark:bg-dark-900/50": !0,
308
310
  [l(B.value, "loading") ?? ""]: !0
309
311
  }) })), st = a(() => ({ class: h({
310
312
  "absolute inset-0 z-10 flex items-center justify-center": !0,
@@ -313,7 +315,7 @@ function v(v, De, Oe) {
313
315
  }) })), ct = a(() => ({
314
316
  id: `${y}-table`,
315
317
  class: h({
316
- "sr-only": !0,
318
+ "sr-only block": !0,
317
319
  [l(B.value, "table") ?? ""]: !0
318
320
  })
319
321
  }));
@@ -332,11 +334,11 @@ function v(v, De, Oe) {
332
334
  "aria-live": "polite"
333
335
  })),
334
336
  emptyBind: st,
335
- isLoading: Ye,
337
+ isLoading: $,
336
338
  tableBind: ct,
337
339
  loadingBind: ot,
338
340
  announcement: $e,
339
- contextValue: Je,
341
+ contextValue: Ye,
340
342
  emptyMessage: Ze
341
343
  };
342
344
  }
@@ -5,35 +5,36 @@ import ee from "../Progress/Progress.js";
5
5
  import te from "../EmptyState/EmptyState.js";
6
6
  import ne from "../Pagination/Pagination.js";
7
7
  import re from "../Select/Select.js";
8
+ import ie from "../../Utils/LoadingSpin.js";
8
9
  import { useDataTable as r } from "./composables/useDataTable.js";
9
- import ie from "./DataTableCellContent.js";
10
- import ae from "./DataTableColumnsMenu.js";
11
- import oe from "./DataTableFilterMenu.js";
12
- import se from "./DataTablePagination.js";
13
- import ce from "./DataTableSearch.js";
10
+ import ae from "./DataTableCellContent.js";
11
+ import oe from "./DataTableColumnsMenu.js";
12
+ import se from "./DataTableFilterMenu.js";
13
+ import ce from "./DataTablePagination.js";
14
+ import le from "./DataTableSearch.js";
14
15
  import i from "./DataTableSelection.js";
15
- import le from "./DataTableSortButton.js";
16
- import ue from "../Table/Table.js";
17
- import de from "../Table/TableBody.js";
16
+ import ue from "./DataTableSortButton.js";
17
+ import de from "../Table/Table.js";
18
+ import fe from "../Table/TableBody.js";
18
19
  import a from "../Table/TableCell.js";
19
- import fe from "../Table/TableFooter.js";
20
- import pe from "../Table/TableHead.js";
21
- import me from "../Table/TableHeader.js";
20
+ import pe from "../Table/TableFooter.js";
21
+ import me from "../Table/TableHead.js";
22
+ import he from "../Table/TableHeader.js";
22
23
  import o from "../Table/TableRow.js";
23
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as he, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeModels as g, mergeProps as _, normalizeClass as v, normalizeProps as y, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useId as ge, useModel as T, useSlots as _e, withCtx as E } from "vue";
24
+ import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as ge, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeModels as g, mergeProps as _, normalizeClass as v, normalizeProps as y, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useId as _e, useModel as T, useSlots as ve, withCtx as E } from "vue";
24
25
  import { cn as D } from "@bridge-ui/core/Utils";
25
26
  //#region src/Components/DataTable/DataTable.vue?vue&type=script&setup=true&lang.ts
26
- var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center gap-2" }, be = {
27
+ var ye = { class: "min-w-0 flex-1" }, be = { class: "flex shrink-0 items-center gap-2" }, xe = {
27
28
  key: 0,
28
- class: "inline-flex items-center rounded-lg border border-dark-200 bg-white p-0.5 dark:border-dark-700 dark:bg-dark-900"
29
- }, xe = { class: "relative" }, O = {
29
+ class: "inline-flex items-center rounded-lg border border-dark-200 bg-white p-0.5 dark:border-dark-700 dark:bg-dark-800"
30
+ }, O = { class: "relative" }, k = {
30
31
  key: 1,
31
32
  class: "flex w-full min-w-0 items-center gap-1.5"
32
- }, k = { class: "min-w-0 truncate leading-normal" }, A = [
33
+ }, A = { class: "min-w-0 truncate leading-normal" }, j = [
33
34
  "aria-expanded",
34
35
  "aria-label",
35
36
  "onClick"
36
- ], j = ["aria-hidden"], M = { class: "min-h-0 overflow-hidden" }, Se = { class: "p-3" }, Ce = ["aria-hidden"], we = ["aria-label"], Te = { class: "flex shrink-0 items-center gap-2" }, Ee = { class: "text-sm whitespace-nowrap" }, De = {
37
+ ], M = ["aria-hidden"], Se = { class: "min-h-0 overflow-hidden" }, Ce = { class: "p-3" }, we = ["aria-hidden"], Te = { class: "flex shrink-0 items-center gap-2" }, Ee = { class: "text-sm whitespace-nowrap" }, De = {
37
38
  key: 2,
38
39
  class: "flex shrink-0 items-center gap-3"
39
40
  }, Oe = {
@@ -127,7 +128,7 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
127
128
  "update:columnSearch"
128
129
  ],
129
130
  setup(m) {
130
- let g = m, N = _e(), P = e(), F = T(m, "page"), ke = T(m, "perPage"), I = T(m, "search"), Ae = T(m, "expanded"), je = T(m, "selection"), Me = T(m, "cursor"), Ne = T(m, "filters"), Pe = T(m, "sorting"), Fe = T(m, "hiddenColumns"), Ie = T(m, "columnSearch"), { merged: L, rowViews: Le, rootBind: Re, emptyBind: ze, showEmpty: R, frameBind: Be, showPager: Ve, tableProps: He, footerBind: Ue, loadingBar: z, showSearch: We, getHeadBind: Ge, headerViews: Ke, loadingBind: qe, onToggleRow: Je, toolbarBind: Ye, getCellBind: B, columnCount: V, cursorPaged: Xe, showPerPage: Ze, showToolbar: Qe, selectedBind: $e, showSelected: et, getHeadAlign: tt, getCellAlign: H, onTogglePage: nt, onToggleSort: rt, summaryCells: U, showFooterBar: it, expandEnabled: at, loadingBarBind: ot, paginationBind: st, selectAllState: W, onChangeSearch: ct, onToggleExpand: lt, visibilityItems: ut, perPageSlotProps: G, selectedSlotProps: K, resolvedPageCount: q, selectionMultiple: J, visibilityEnabled: dt, paginationSlotProps: Y, onCommitColumnFilter: ft, onHiddenColumnsChange: pt } = r(g, {
131
+ let g = m, N = ve(), P = e(), F = T(m, "page"), ke = T(m, "perPage"), I = T(m, "search"), Ae = T(m, "expanded"), je = T(m, "selection"), Me = T(m, "cursor"), Ne = T(m, "filters"), Pe = T(m, "sorting"), Fe = T(m, "hiddenColumns"), Ie = T(m, "columnSearch"), { merged: L, rowViews: Le, rootBind: Re, emptyBind: ze, showEmpty: R, frameBind: Be, showPager: Ve, tableProps: He, footerBind: Ue, loadingBar: z, showSearch: B, getHeadBind: We, headerViews: Ge, loadingBind: Ke, onToggleRow: qe, toolbarBind: Je, getCellBind: V, columnCount: H, cursorPaged: Ye, showPerPage: Xe, showToolbar: Ze, selectedBind: Qe, showSelected: $e, getHeadAlign: et, getCellAlign: U, onTogglePage: tt, onToggleSort: nt, summaryCells: W, showFooterBar: rt, expandEnabled: it, footerBarBind: at, loadingBarBind: ot, paginationBind: st, selectAllState: G, onChangeSearch: ct, onToggleExpand: lt, visibilityItems: ut, perPageSlotProps: K, selectedSlotProps: q, resolvedPageCount: J, selectionMultiple: Y, visibilityEnabled: dt, paginationSlotProps: X, onCommitColumnFilter: ft, onHiddenColumnsChange: pt } = r(g, {
131
132
  size: "md",
132
133
  full: !0,
133
134
  rounded: "lg",
@@ -151,12 +152,12 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
151
152
  selection: je,
152
153
  columnSearch: Ie,
153
154
  hiddenColumns: Fe
154
- }), X = c(() => L.value.size === "lg" ? "md" : "sm"), mt = c(() => P("{{selected}} of {{total}} row(s) selected.", K.value.selectedCount, {
155
- total: K.value.totalCount,
156
- selected: K.value.selectedCount
155
+ }), Z = c(() => L.value.size === "lg" ? "md" : "sm"), mt = c(() => P("{{selected}} of {{total}} row(s) selected.", q.value.selectedCount, {
156
+ total: q.value.totalCount,
157
+ selected: q.value.selectedCount
157
158
  })), ht = c(() => P("Page {{page}} of {{count}}", {
158
- page: Y.value.page,
159
- count: Y.value.count
159
+ page: X.value.page,
160
+ count: X.value.count
160
161
  }));
161
162
  function gt(e, t) {
162
163
  let n = N[`item.${t.id}`] ?? N.item;
@@ -166,18 +167,18 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
166
167
  value: t.value
167
168
  }) : t.content;
168
169
  }
169
- let Z = c({
170
+ let Q = c({
170
171
  get: () => F.value ?? 1,
171
172
  set: (e) => {
172
173
  F.value = e;
173
174
  }
174
- }), _t = c(() => G.value.options.map((e) => ({
175
+ }), _t = c(() => K.value.options.map((e) => ({
175
176
  value: e,
176
177
  label: String(e)
177
178
  })));
178
179
  function vt(e) {
179
180
  let t = Number(e);
180
- !Number.isFinite(t) || t < 1 || G.value.onPerPageChange(t);
181
+ !Number.isFinite(t) || t < 1 || K.value.onPerPageChange(t);
181
182
  }
182
183
  let yt = c(() => {
183
184
  let e = L.value.customProps?.perPage?.customProps;
@@ -189,9 +190,9 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
189
190
  ...e?.listbox
190
191
  }
191
192
  };
192
- }), Q = ge(), $ = (e) => e.node ?? null;
193
- return (e, r) => (b(), d("div", y(h(w(Re))), [w(Qe) ? (b(), d("div", y(_({ key: 0 }, w(Ye))), [f("div", ve, [S(e.$slots, "toolbar")]), f("div", ye, [
194
- w(dt) ? (b(), d("div", be, [p(ae, {
193
+ }), bt = _e(), $ = (e) => e.node ?? null;
194
+ return (e, r) => (b(), d("div", y(h(w(Re))), [w(Ze) ? (b(), d("div", y(_({ key: 0 }, w(Je))), [f("div", ye, [S(e.$slots, "toolbar")]), f("div", be, [
195
+ w(dt) ? (b(), d("div", xe, [p(oe, {
195
196
  items: w(ut),
196
197
  overlay: w(L).columnsOverlay,
197
198
  onChange: w(pt),
@@ -203,7 +204,7 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
203
204
  "show-footer"
204
205
  ])])) : u("", !0),
205
206
  S(e.$slots, "toolbarActions"),
206
- w(We) ? S(e.$slots, "search", {}, () => [p(ce, {
207
+ w(B) ? S(e.$slots, "search", {}, () => [p(le, {
207
208
  "model-value": I.value ?? "",
208
209
  "onUpdate:modelValue": w(ct),
209
210
  "field-props": w(L).customProps?.search
@@ -213,21 +214,21 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
213
214
  "field-props"
214
215
  ])], void 0, 1) : u("", !0)
215
216
  ])], 16)) : u("", !0), f("div", y(h(w(Be))), [
216
- f("div", xe, [p(w(ue), y(h(w(He))), {
217
+ f("div", O, [p(w(de), y(h(w(He))), {
217
218
  default: E(() => [
218
- p(w(me), y(h(w(L).customProps?.header)), {
219
+ p(w(he), y(h(w(L).customProps?.header)), {
219
220
  default: E(() => [p(w(o), y(h(w(L).customProps?.row)), {
220
- default: E(() => [(b(!0), d(s, null, x(w(Ke), (e) => (b(), l(w(pe), _({
221
+ default: E(() => [(b(!0), d(s, null, x(w(Ge), (e) => (b(), l(w(me), _({
221
222
  key: e.id,
222
- align: w(tt)(e)
223
- }, { ref_for: !0 }, w(Ge)(e)), {
224
- default: E(() => [e.isSelection && w(J) ? (b(), l(i, {
223
+ align: w(et)(e)
224
+ }, { ref_for: !0 }, w(We)(e)), {
225
+ default: E(() => [e.isSelection && w(Y) ? (b(), l(i, {
225
226
  key: 0,
226
227
  kind: "page",
227
- size: X.value,
228
- onChange: w(nt),
229
- checked: w(W).checked,
230
- indeterminate: w(W).indeterminate,
228
+ size: Z.value,
229
+ onChange: w(tt),
230
+ checked: w(G).checked,
231
+ indeterminate: w(G).indeterminate,
231
232
  "checkbox-props": w(L).customProps?.checkbox
232
233
  }, null, 8, [
233
234
  "size",
@@ -235,14 +236,14 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
235
236
  "checked",
236
237
  "indeterminate",
237
238
  "checkbox-props"
238
- ])) : !e.isSelection && !e.isExpand ? (b(), d("div", O, [
239
- f("span", k, [p($, { node: e.header }, null, 8, ["node"])]),
240
- e.sortable ? (b(), l(le, {
239
+ ])) : !e.isSelection && !e.isExpand ? (b(), d("div", k, [
240
+ f("span", A, [p($, { node: e.header }, null, 8, ["node"])]),
241
+ e.sortable ? (b(), l(ue, {
241
242
  key: 0,
242
243
  sort: e.ariaSort,
243
- onClick: (t) => w(rt)(e.id)
244
+ onClick: (t) => w(nt)(e.id)
244
245
  }, null, 8, ["sort", "onClick"])) : u("", !0),
245
- e.filterable ? (b(), l(oe, {
246
+ e.filterable ? (b(), l(se, {
246
247
  key: 1,
247
248
  "column-id": e.id,
248
249
  active: e.filterActive,
@@ -273,7 +274,7 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
273
274
  classes: { root: "h-0" }
274
275
  }, {
275
276
  default: E(() => [p(w(a), {
276
- colspan: w(V),
277
+ colspan: w(H),
277
278
  classes: { root: "relative h-0 border-0 p-0 after:hidden" }
278
279
  }, {
279
280
  default: E(() => [f("div", y(h(w(ot))), [S(e.$slots, "loading", {}, () => [p(w(ee), _({
@@ -286,11 +287,11 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
286
287
  })) : u("", !0)]),
287
288
  _: 3
288
289
  }, 16),
289
- p(w(de), y(h(w(L).customProps?.body)), {
290
+ p(w(fe), y(h(w(L).customProps?.body)), {
290
291
  default: E(() => [w(R) ? (b(), l(w(o), { key: 0 }, {
291
292
  default: E(() => [p(w(a), {
292
293
  align: "center",
293
- colspan: w(V)
294
+ colspan: w(H)
294
295
  }, {
295
296
  default: E(() => [f("div", y(h(w(ze))), [S(e.$slots, "empty", {}, () => [p(w(te), {
296
297
  icon: "inbox",
@@ -303,19 +304,19 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
303
304
  })) : u("", !0), w(R) ? u("", !0) : (b(!0), d(s, { key: 1 }, x(w(Le), (t) => (b(), d(s, { key: t.id }, [p(w(o), _({ ref_for: !0 }, w(L).customProps?.row), {
304
305
  default: E(() => [(b(!0), d(s, null, x(t.cells, (e) => (b(), l(w(a), _({
305
306
  key: e.id,
306
- align: w(H)(e)
307
- }, { ref_for: !0 }, w(B)(e)), {
307
+ align: w(U)(e)
308
+ }, { ref_for: !0 }, w(V)(e)), {
308
309
  default: E(() => [e.isSelection ? (b(), l(i, {
309
310
  key: 0,
310
311
  kind: "row",
311
312
  value: t.id,
312
- size: X.value,
313
- name: w(Q),
313
+ size: Z.value,
314
+ name: w(bt),
314
315
  checked: t.selected,
315
- multiple: w(J),
316
+ multiple: w(Y),
316
317
  "radio-props": w(L).customProps?.radio,
317
318
  "checkbox-props": w(L).customProps?.checkbox,
318
- onChange: (e) => w(Je)(t.id, e)
319
+ onChange: (e) => w(qe)(t.id, e)
319
320
  }, null, 8, [
320
321
  "value",
321
322
  "size",
@@ -335,7 +336,7 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
335
336
  }, [f("span", { class: v([{ "rotate-90": t.expanded }, "inline-flex transition-transform duration-200 motion-reduce:transition-none"]) }, [p(w(n), {
336
337
  size: "sm",
337
338
  icon: "chevronRight"
338
- })], 2)], 8, A)) : (b(), l(ie, {
339
+ })], 2)], 8, j)) : (b(), l(ae, {
339
340
  key: 2,
340
341
  tooltip: e.tooltip,
341
342
  ellipsis: e.ellipsis
@@ -346,9 +347,9 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
346
347
  _: 2
347
348
  }, 1040, ["align"]))), 128))]),
348
349
  _: 2
349
- }, 1040), w(at) ? (b(), l(w(o), { key: 0 }, {
350
+ }, 1040), w(it) ? (b(), l(w(o), { key: 0 }, {
350
351
  default: E(() => [p(w(a), {
351
- colspan: w(V),
352
+ colspan: w(H),
352
353
  classes: { root: w(D)({
353
354
  "p-0": !0,
354
355
  "border-0": !t.expanded
@@ -361,19 +362,19 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
361
362
  "grid-rows-[1fr]": t.expanded,
362
363
  "grid-rows-[0fr]": !t.expanded
363
364
  }))
364
- }, [f("div", M, [f("div", Se, [S(e.$slots, "expanded", { row: t.original })])])], 10, j)]),
365
+ }, [f("div", Se, [f("div", Ce, [S(e.$slots, "expanded", { row: t.original })])])], 10, M)]),
365
366
  _: 2
366
367
  }, 1032, ["colspan", "classes"])]),
367
368
  _: 2
368
369
  }, 1024)) : u("", !0)], 64))), 128))]),
369
370
  _: 3
370
371
  }, 16),
371
- w(U) ? (b(), l(w(fe), { key: 0 }, {
372
+ w(W) ? (b(), l(w(pe), { key: 0 }, {
372
373
  default: E(() => [p(w(o), y(h(w(L).customProps?.row)), {
373
- default: E(() => [(b(!0), d(s, null, x(w(U), (e) => (b(), l(w(a), _({
374
+ default: E(() => [(b(!0), d(s, null, x(w(W), (e) => (b(), l(w(a), _({
374
375
  key: e.id,
375
- align: w(H)(e)
376
- }, { ref_for: !0 }, w(B)(e)), {
376
+ align: w(U)(e)
377
+ }, { ref_for: !0 }, w(V)(e)), {
377
378
  default: E(() => [p($, { node: e.content }, null, 8, ["node"])]),
378
379
  _: 2
379
380
  }, 1040, ["align"]))), 128))]),
@@ -383,26 +384,17 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
383
384
  })) : u("", !0)
384
385
  ]),
385
386
  _: 3
386
- }, 16), w(L).loading ? (b(), d("div", _({ key: 0 }, w(qe), { "aria-hidden": w(z) || void 0 }), [w(z) ? u("", !0) : S(e.$slots, "loading", {}, () => [f("span", {
387
- role: "status",
388
- "aria-label": w(P)("Loading"),
389
- class: "relative inline-block size-5 animate-spin motion-reduce:animate-none"
390
- }, [...r[1] ||= [
391
- f("span", { class: "absolute inset-s-0 top-0 size-2 rounded-full bg-primary-500 opacity-30 dark:bg-primary-400" }, null, -1),
392
- f("span", { class: "absolute inset-e-0 top-0 size-2 rounded-full bg-primary-500 opacity-50 dark:bg-primary-400" }, null, -1),
393
- f("span", { class: "absolute inset-e-0 bottom-0 size-2 rounded-full bg-primary-500 dark:bg-primary-400" }, null, -1),
394
- f("span", { class: "absolute inset-s-0 bottom-0 size-2 rounded-full bg-primary-500 opacity-70 dark:bg-primary-400" }, null, -1)
395
- ]], 8, we)], void 0, 0)], 16, Ce)) : u("", !0)]),
387
+ }, 16), w(L).loading ? (b(), d("div", _({ key: 0 }, w(Ke), { "aria-hidden": w(z) || void 0 }), [w(z) ? u("", !0) : S(e.$slots, "loading", {}, () => [p(ie)], void 0, 0)], 16, we)) : u("", !0)]),
396
388
  w(t)(w(N), "footer") ? (b(), d("div", y(_({ key: 0 }, w(Ue))), [S(e.$slots, "footer")], 16)) : u("", !0),
397
- w(it) ? (b(), d("div", y(_({ key: 1 }, w(st))), [
398
- w(et) ? (b(), d("div", y(_({ key: 0 }, w($e))), [S(e.$slots, "selected", y(h(w(K))), () => [he(C(mt.value), 1)])], 16)) : u("", !0),
399
- w(Ze) ? S(e.$slots, "perPage", y(h(w(G))), () => [f("div", Te, [f("span", Ee, C(w(P)("Rows per page")), 1), p(w(re), _({ size: "sm" }, w(L).customProps?.perPage, {
389
+ w(rt) ? (b(), d("div", y(_({ key: 1 }, w(at))), [f("div", y(h(w(st))), [
390
+ w($e) ? (b(), d("div", y(_({ key: 0 }, w(Qe))), [S(e.$slots, "selected", y(h(w(q))), () => [ge(C(mt.value), 1)])], 16)) : u("", !0),
391
+ w(Xe) ? S(e.$slots, "perPage", y(h(w(K))), () => [f("div", Te, [f("span", Ee, C(w(P)("Rows per page")), 1), p(w(re), _({ size: "sm" }, w(L).customProps?.perPage, {
400
392
  overlay: "menu",
401
393
  clearable: !1,
402
394
  "hide-error-message": "",
403
395
  options: _t.value,
404
396
  "custom-props": yt.value,
405
- "model-value": w(G).perPage,
397
+ "model-value": w(K).perPage,
406
398
  "onUpdate:modelValue": vt,
407
399
  "aria-label": w(P)("Rows per page"),
408
400
  classes: {
@@ -416,29 +408,29 @@ var ve = { class: "min-w-0 flex-1" }, ye = { class: "flex shrink-0 items-center
416
408
  "aria-label",
417
409
  "classes"
418
410
  ])])], void 0, 1) : u("", !0),
419
- w(Ve) ? (b(), d("div", De, [w(q) !== void 0 && !w(t)(w(N), "pagination") ? (b(), d("span", Oe, C(ht.value), 1)) : u("", !0), S(e.$slots, "pagination", y(h(w(Y))), () => [w(Xe) ? (b(), l(w(ne), _({
411
+ w(Ve) ? (b(), d("div", De, [w(J) !== void 0 && !w(t)(w(N), "pagination") ? (b(), d("span", Oe, C(ht.value), 1)) : u("", !0), S(e.$slots, "pagination", y(h(w(X))), () => [w(Ye) ? (b(), l(w(ne), _({
420
412
  key: 0,
421
413
  size: "sm"
422
414
  }, w(L).customProps?.cursorPagination, {
423
415
  mode: "simple",
424
- onNext: w(Y).onNext,
425
- "has-next": w(Y).hasNext,
426
- onPrevious: w(Y).onPrevious,
427
- "has-previous": w(Y).hasPrevious
416
+ onNext: w(X).onNext,
417
+ "has-next": w(X).hasNext,
418
+ onPrevious: w(X).onPrevious,
419
+ "has-previous": w(X).hasPrevious
428
420
  }), null, 16, [
429
421
  "onNext",
430
422
  "has-next",
431
423
  "onPrevious",
432
424
  "has-previous"
433
- ])) : w(q) === void 0 ? u("", !0) : (b(), l(se, _({
425
+ ])) : w(J) === void 0 ? u("", !0) : (b(), l(ce, _({
434
426
  key: 1,
435
427
  size: "sm"
436
428
  }, w(L).customProps?.pagination, {
437
- modelValue: Z.value,
438
- "onUpdate:modelValue": r[0] ||= (e) => Z.value = e,
439
- count: w(q)
429
+ modelValue: Q.value,
430
+ "onUpdate:modelValue": r[0] ||= (e) => Q.value = e,
431
+ count: w(J)
440
432
  }), null, 16, ["modelValue", "count"]))])])) : u("", !0)
441
- ], 16)) : u("", !0)
433
+ ], 16)], 16)) : u("", !0)
442
434
  ], 16)], 16));
443
435
  }
444
436
  });
@@ -22,15 +22,15 @@ var f = ["aria-label"], p = { class: "inline-flex h-6 w-5 shrink-0 flex-col item
22
22
  icon: "chevronUp",
23
23
  class: s(l(d)({
24
24
  "-mb-1": !0,
25
- "text-dark-800 dark:text-dark-100": o.sort === "ascending",
26
- "text-dark-300 dark:text-dark-600": o.sort !== "ascending"
25
+ "opacity-100": o.sort === "ascending",
26
+ "opacity-35": o.sort !== "ascending"
27
27
  }))
28
28
  }, null, 8, ["class"]), a(l(t), {
29
29
  size: "lg",
30
30
  icon: "chevronDown",
31
31
  class: s(l(d)({
32
- "text-dark-800 dark:text-dark-100": o.sort === "descending",
33
- "text-dark-300 dark:text-dark-600": o.sort !== "descending"
32
+ "opacity-100": o.sort === "descending",
33
+ "opacity-35": o.sort !== "descending"
34
34
  }))
35
35
  }, null, 8, ["class"])])], 8, f));
36
36
  }
@@ -537,13 +537,14 @@ export declare function useDataTable<T extends Record<string, unknown>>(props: D
537
537
  summaryCells: import('vue').ComputedRef<DataTableCellView[] | null>;
538
538
  showFooterBar: import('vue').ComputedRef<boolean>;
539
539
  expandEnabled: import('vue').ComputedRef<boolean>;
540
+ footerBarBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
541
+ class: string;
542
+ }, "class", import('vue').HTMLAttributes | undefined, {}>>;
540
543
  onChangeSearch: (query: string) => void;
541
544
  loadingBarBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
542
545
  class: string;
543
546
  }, "class", {}, {}>>;
544
547
  paginationBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
545
- onVnodeMounted: (vnode: VNode) => void;
546
- onVnodeUnmounted: () => void;
547
548
  class: string;
548
549
  }, "class", {}, {}>>;
549
550
  selectAllState: import('vue').ComputedRef<{