@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.
- package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Chart/composables/useChart.js +16 -14
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +78 -86
- package/dist/Components/DataTable/DataTableSortButton.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/DataTable/composables/useDataTable.d.ts +3 -2
- package/dist/Components/DataTable/composables/useDataTable.js +301 -313
- package/dist/Components/DataTable/dataTable.types.d.ts +12 -0
- package/dist/Utils/LoadingSpin.js +5 -0
- package/dist/Utils/LoadingSpin.vue.d.ts +3 -0
- package/dist/Utils/LoadingSpin.vue_vue_type_script_setup_true_lang.js +21 -0
- package/docs/components/Chart.md +3 -1
- package/docs/components/DataTable.md +2 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
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 } =
|
|
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 (
|
|
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(
|
|
40
|
-
g(T) ? (f(), i("div", d(u({ key: 1 }, g(A))), [m(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
210
|
+
let Ye = a(() => ({
|
|
211
211
|
setAxis: Re,
|
|
212
|
-
getBounds:
|
|
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:
|
|
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:
|
|
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,
|
|
233
|
-
let
|
|
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:
|
|
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:
|
|
337
|
+
isLoading: $,
|
|
336
338
|
tableBind: ct,
|
|
337
339
|
loadingBind: ot,
|
|
338
340
|
announcement: $e,
|
|
339
|
-
contextValue:
|
|
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
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
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
|
|
16
|
-
import
|
|
17
|
-
import
|
|
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
|
|
20
|
-
import
|
|
21
|
-
import
|
|
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
|
|
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
|
|
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-
|
|
29
|
-
},
|
|
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
|
-
},
|
|
33
|
+
}, A = { class: "min-w-0 truncate leading-normal" }, j = [
|
|
33
34
|
"aria-expanded",
|
|
34
35
|
"aria-label",
|
|
35
36
|
"onClick"
|
|
36
|
-
],
|
|
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 =
|
|
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
|
-
}),
|
|
155
|
-
total:
|
|
156
|
-
selected:
|
|
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:
|
|
159
|
-
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
|
|
170
|
+
let Q = c({
|
|
170
171
|
get: () => F.value ?? 1,
|
|
171
172
|
set: (e) => {
|
|
172
173
|
F.value = e;
|
|
173
174
|
}
|
|
174
|
-
}), _t = c(() =>
|
|
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 ||
|
|
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
|
-
}),
|
|
193
|
-
return (e, r) => (b(), d("div", y(h(w(Re))), [w(
|
|
194
|
-
w(dt) ? (b(), d("div",
|
|
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(
|
|
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",
|
|
217
|
+
f("div", O, [p(w(de), y(h(w(He))), {
|
|
217
218
|
default: E(() => [
|
|
218
|
-
p(w(
|
|
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(
|
|
221
|
+
default: E(() => [(b(!0), d(s, null, x(w(Ge), (e) => (b(), l(w(me), _({
|
|
221
222
|
key: e.id,
|
|
222
|
-
align: w(
|
|
223
|
-
}, { ref_for: !0 }, w(
|
|
224
|
-
default: E(() => [e.isSelection && w(
|
|
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:
|
|
228
|
-
onChange: w(
|
|
229
|
-
checked: w(
|
|
230
|
-
indeterminate: w(
|
|
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",
|
|
239
|
-
f("span",
|
|
240
|
-
e.sortable ? (b(), l(
|
|
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(
|
|
244
|
+
onClick: (t) => w(nt)(e.id)
|
|
244
245
|
}, null, 8, ["sort", "onClick"])) : u("", !0),
|
|
245
|
-
e.filterable ? (b(), l(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
307
|
-
}, { ref_for: !0 }, w(
|
|
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:
|
|
313
|
-
name: w(
|
|
313
|
+
size: Z.value,
|
|
314
|
+
name: w(bt),
|
|
314
315
|
checked: t.selected,
|
|
315
|
-
multiple: w(
|
|
316
|
+
multiple: w(Y),
|
|
316
317
|
"radio-props": w(L).customProps?.radio,
|
|
317
318
|
"checkbox-props": w(L).customProps?.checkbox,
|
|
318
|
-
onChange: (e) => w(
|
|
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,
|
|
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(
|
|
350
|
+
}, 1040), w(it) ? (b(), l(w(o), { key: 0 }, {
|
|
350
351
|
default: E(() => [p(w(a), {
|
|
351
|
-
colspan: w(
|
|
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",
|
|
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(
|
|
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(
|
|
374
|
+
default: E(() => [(b(!0), d(s, null, x(w(W), (e) => (b(), l(w(a), _({
|
|
374
375
|
key: e.id,
|
|
375
|
-
align: w(
|
|
376
|
-
}, { ref_for: !0 }, w(
|
|
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(
|
|
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(
|
|
398
|
-
w(
|
|
399
|
-
w(
|
|
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(
|
|
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(
|
|
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(
|
|
425
|
-
"has-next": w(
|
|
426
|
-
onPrevious: w(
|
|
427
|
-
"has-previous": w(
|
|
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(
|
|
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:
|
|
438
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
439
|
-
count: w(
|
|
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
|
});
|
package/dist/Components/DataTable/DataTableSortButton.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -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
|
-
"
|
|
26
|
-
"
|
|
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
|
-
"
|
|
33
|
-
"
|
|
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<{
|