@bridge-ui/vue 0.21.0 → 0.22.1
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/Alert/Alert.vue_vue_type_script_setup_true_lang.js +24 -10
- package/dist/Components/Alert/alert.types.d.ts +5 -4
- package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
- package/dist/Components/Alert/composables/useAlert.js +2 -2
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +1 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +7 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +2 -2
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +3 -2
- package/dist/Components/Avatar/composables/useAvatar.js +2 -2
- package/dist/Components/Calendar/composables/useCalendar.js +132 -131
- package/dist/Components/CalendarDate/composables/useCalendarDate.js +116 -115
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +132 -131
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +24 -10
- package/dist/Components/Card/card.types.d.ts +5 -4
- package/dist/Components/Card/composables/useCard.d.ts +2 -2
- package/dist/Components/Card/composables/useCard.js +2 -2
- package/dist/Components/Carousel/composables/useCarousel.js +6 -6
- package/dist/Components/Chip/Chip.vue.d.ts +0 -1
- package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +48 -39
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +33 -36
- package/dist/Components/DataTable/composables/useDataTable.d.ts +2 -0
- package/dist/Components/DataTable/composables/useDataTable.js +226 -216
- package/dist/Components/EmptyState/EmptyState.vue.d.ts +0 -3
- package/dist/Components/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +51 -57
- package/dist/Components/FileUpload/composables/useFileUpload.d.ts +2 -0
- package/dist/Components/FileUpload/composables/useFileUpload.js +6 -4
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Link/link.types.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.js +4 -5
- package/dist/Components/Pagination/composables/usePagination.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +1 -0
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/Select/composables/useSelect.d.ts +2 -2
- package/dist/Components/Select/composables/useSelect.js +3 -2
- package/dist/Components/Select/select.types.d.ts +7 -0
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +97 -72
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +2 -2
- package/dist/Components/Snackbar/composables/useSnackbar.js +2 -2
- package/dist/Components/Snackbar/snackbar.types.d.ts +5 -4
- package/dist/Components/Table/composables/useTableRow.js +3 -3
- package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Text/composables/useText.d.ts +1 -1
- package/dist/Components/Text/text.types.d.ts +1 -1
- package/dist/Components/TimePanel/composables/useTimePanel.js +113 -112
- package/dist/Utils/index.d.ts +6 -0
- package/dist/Utils/index.js +21 -17
- package/dist/index.js +157 -157
- package/docs/components/Autocomplete.md +23 -22
- package/docs/components/Link.md +1 -1
- package/docs/components/Select.md +22 -21
- package/docs/components/Text.md +6 -4
- package/package.json +2 -2
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { useOptionalModel as e } from "../../Utils/useOptionalModel.js";
|
|
2
2
|
import t from "../ActionFooter/ActionFooter.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import n from "../Text/Text.js";
|
|
4
|
+
import { useColorPicker as r } from "./composables/useColorPicker.js";
|
|
5
|
+
import { Fragment as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeModels as f, mergeProps as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useModel as C, withCtx as w } from "vue";
|
|
6
|
+
import { cn as T } from "@bridge-ui/core/Utils";
|
|
6
7
|
// src/Components/ColorPicker/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var E = [
|
|
8
9
|
"aria-label",
|
|
9
10
|
"onClick",
|
|
10
11
|
"aria-pressed",
|
|
11
12
|
"disabled"
|
|
12
|
-
],
|
|
13
|
+
], D = /*@__PURE__*/ u({
|
|
13
14
|
inheritAttrs: !1,
|
|
14
15
|
__name: "ColorPicker",
|
|
15
|
-
props: /*@__PURE__*/
|
|
16
|
+
props: /*@__PURE__*/ f({
|
|
16
17
|
alpha: { type: Boolean },
|
|
17
18
|
classes: {},
|
|
18
19
|
color: {},
|
|
@@ -32,68 +33,76 @@ var C = { class: "min-w-0 truncate text-sm text-dark-700 dark:text-dark-100" },
|
|
|
32
33
|
modelValue: {},
|
|
33
34
|
modelModifiers: {}
|
|
34
35
|
}),
|
|
35
|
-
emits: /*@__PURE__*/
|
|
36
|
+
emits: /*@__PURE__*/ f([
|
|
36
37
|
"apply",
|
|
37
38
|
"cancel",
|
|
38
39
|
"change",
|
|
39
40
|
"update:modelValue"
|
|
40
41
|
], ["update:modelValue"]),
|
|
41
|
-
setup(
|
|
42
|
-
let
|
|
42
|
+
setup(u, { emit: f }) {
|
|
43
|
+
let D = C(u, "modelValue"), O = f, k = u, A = v(k.defaultValue ?? null), j = e(D, A), { merged: M, hueBind: N, rootBind: P, areaBind: F, alphaBind: I, showAlpha: L, swatchCss: ee, footerBind: R, showFooter: z, previewBind: B, contentBind: V, handleApply: H, swatchesBind: U, handleCancel: W, hueThumbBind: G, areaThumbBind: K, alphaFillBind: q, formattedValue: J, alphaThumbBind: Y, presetSwatches: X, applyButtonProps: Z, isSwatchSelected: Q, previewSwatchBind: $, handleSwatchClick: te, swatchButtonClass: ne, cancelButtonProps: re, swatchSelectedClass: ie, previewSwatchFillBind: ae } = r(k, {
|
|
43
44
|
rounded: "md",
|
|
44
45
|
format: "hex",
|
|
45
46
|
color: "primary"
|
|
46
|
-
},
|
|
47
|
-
return (e,
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
}, j, O);
|
|
48
|
+
return (e, r) => (_(), o("div", h(d(S(P))), [s("div", { class: m(S(V)) }, [
|
|
49
|
+
s("div", h(d(S(F))), [
|
|
50
|
+
r[0] ||= s("span", {
|
|
50
51
|
"aria-hidden": "",
|
|
51
52
|
class: "pointer-events-none absolute inset-0",
|
|
52
53
|
style: { backgroundImage: "linear-gradient(to right, #fff, transparent)" }
|
|
53
54
|
}, null, -1),
|
|
54
|
-
|
|
55
|
+
r[1] ||= s("span", {
|
|
55
56
|
"aria-hidden": "",
|
|
56
57
|
class: "pointer-events-none absolute inset-0",
|
|
57
58
|
style: { backgroundImage: "linear-gradient(to top, #000, transparent)" }
|
|
58
59
|
}, null, -1),
|
|
59
|
-
|
|
60
|
+
s("span", h(d(S(K))), null, 16)
|
|
60
61
|
], 16),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
s("div", h(d(S(N))), [s("span", h(d(S(G))), null, 16)], 16),
|
|
63
|
+
S(L) ? (_(), o("div", h(p({ key: 0 }, S(I))), [s("span", h(d(S(q))), null, 16), s("span", h(d(S(Y))), null, 16)], 16)) : a("", !0),
|
|
64
|
+
s("div", h(d(S(B))), [s("span", h(d(S($))), [s("span", h(d(S(ae))), null, 16)], 16), l(S(n), {
|
|
65
|
+
truncate: "",
|
|
66
|
+
as: "span",
|
|
67
|
+
color: "inherit",
|
|
68
|
+
class: "min-w-0 font-normal text-dark-700 dark:text-dark-100"
|
|
69
|
+
}, {
|
|
70
|
+
default: w(() => [c(x(S(J)), 1)]),
|
|
71
|
+
_: 1
|
|
72
|
+
})], 16),
|
|
73
|
+
S(X).length > 0 ? (_(), o("div", h(p({ key: 1 }, S(U))), [(_(!0), o(i, null, y(S(X), (e) => (_(), o("button", {
|
|
65
74
|
type: "button",
|
|
66
75
|
key: e,
|
|
67
76
|
"aria-label": e,
|
|
68
|
-
onClick: (t) =>
|
|
69
|
-
"aria-pressed":
|
|
70
|
-
disabled:
|
|
71
|
-
class:
|
|
72
|
-
[
|
|
73
|
-
[
|
|
77
|
+
onClick: (t) => S(te)(e),
|
|
78
|
+
"aria-pressed": S(Q)(e),
|
|
79
|
+
disabled: S(M).disabled || S(M).readOnly,
|
|
80
|
+
class: m(S(T)({
|
|
81
|
+
[S(ne)]: !0,
|
|
82
|
+
[S(ie)]: S(Q)(e)
|
|
74
83
|
}))
|
|
75
|
-
}, [
|
|
84
|
+
}, [s("span", {
|
|
76
85
|
"aria-hidden": "",
|
|
77
86
|
class: "absolute inset-0",
|
|
78
|
-
style:
|
|
79
|
-
}, null, 4)], 10,
|
|
80
|
-
], 2),
|
|
81
|
-
apply:
|
|
82
|
-
cancel:
|
|
83
|
-
}, () => [
|
|
84
|
-
color:
|
|
85
|
-
onApply:
|
|
86
|
-
onCancel:
|
|
87
|
+
style: g({ backgroundColor: S(ee)(e) })
|
|
88
|
+
}, null, 4)], 10, E))), 128))], 16)) : a("", !0)
|
|
89
|
+
], 2), S(z) ? (_(), o("div", h(p({ key: 0 }, S(R))), [b(e.$slots, "footer", {
|
|
90
|
+
apply: S(H),
|
|
91
|
+
cancel: S(W)
|
|
92
|
+
}, () => [l(S(t), {
|
|
93
|
+
color: S(M).color,
|
|
94
|
+
onApply: S(H),
|
|
95
|
+
onCancel: S(W),
|
|
87
96
|
"custom-props": {
|
|
88
|
-
applyButton:
|
|
89
|
-
cancelButton:
|
|
97
|
+
applyButton: S(Z),
|
|
98
|
+
cancelButton: S(re)
|
|
90
99
|
}
|
|
91
100
|
}, null, 8, [
|
|
92
101
|
"color",
|
|
93
102
|
"onApply",
|
|
94
103
|
"onCancel",
|
|
95
104
|
"custom-props"
|
|
96
|
-
])])], 16)) :
|
|
105
|
+
])])], 16)) : a("", !0)], 16));
|
|
97
106
|
}
|
|
98
107
|
});
|
|
99
|
-
export {
|
|
108
|
+
export { D as default };
|
|
@@ -35,12 +35,9 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
35
35
|
"aria-expanded",
|
|
36
36
|
"aria-label",
|
|
37
37
|
"onClick"
|
|
38
|
-
], Ce = ["aria-hidden"], we = { class: "min-h-0 overflow-hidden" }, Te = { class: "p-3" }, Ee = ["aria-hidden"], De = { class: "flex shrink-0 items-center gap-2" }, Oe = {
|
|
38
|
+
], Ce = ["aria-hidden"], we = { class: "min-h-0 overflow-hidden" }, Te = { class: "p-3" }, Ee = ["aria-hidden"], De = { class: "flex shrink-0 items-center gap-2" }, Oe = {
|
|
39
39
|
key: 2,
|
|
40
40
|
class: "flex shrink-0 items-center gap-3"
|
|
41
|
-
}, Ae = {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: "text-sm font-medium whitespace-nowrap"
|
|
44
41
|
}, M = /*@__PURE__*/ m({
|
|
45
42
|
inheritAttrs: !1,
|
|
46
43
|
__name: "DataTable",
|
|
@@ -129,7 +126,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
129
126
|
"update:columnSearch"
|
|
130
127
|
],
|
|
131
128
|
setup(m) {
|
|
132
|
-
let g = m, M = ve(), N = e(), P = T(m, "page"),
|
|
129
|
+
let g = m, M = ve(), N = e(), P = T(m, "page"), ke = T(m, "perPage"), F = 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: I, rowViews: Le, rootBind: Re, emptyBind: ze, showEmpty: L, frameBind: Be, showPager: Ve, tableProps: He, footerBind: Ue, loadingBar: R, showSearch: We, getHeadBind: Ge, headerViews: z, loadingBind: Ke, onToggleRow: qe, toolbarBind: Je, getCellBind: B, columnCount: V, cursorPaged: Ye, showPerPage: Xe, showToolbar: Ze, selectedBind: Qe, showSelected: $e, getHeadAlign: et, getCellAlign: H, onTogglePage: tt, onToggleSort: nt, summaryCells: U, showFooterBar: rt, expandEnabled: it, footerBarBind: at, loadingBarBind: ot, paginationBind: st, selectAllState: W, onChangeSearch: ct, pageStatusBind: lt, onToggleExpand: ut, visibilityItems: dt, perPageLabelBind: ft, perPageSlotProps: G, selectedSlotProps: K, resolvedPageCount: q, selectionMultiple: J, visibilityEnabled: pt, paginationSlotProps: Y, onCommitColumnFilter: mt, onHiddenColumnsChange: ht } = r(g, {
|
|
133
130
|
size: "md",
|
|
134
131
|
full: !0,
|
|
135
132
|
rounded: "lg",
|
|
@@ -144,15 +141,15 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
144
141
|
loadingVariant: "overlay"
|
|
145
142
|
}, {
|
|
146
143
|
page: P,
|
|
147
|
-
cursor:
|
|
144
|
+
cursor: Me,
|
|
148
145
|
search: F,
|
|
149
|
-
perPage:
|
|
150
|
-
filters:
|
|
151
|
-
sorting:
|
|
152
|
-
expanded:
|
|
153
|
-
selection:
|
|
154
|
-
columnSearch:
|
|
155
|
-
hiddenColumns:
|
|
146
|
+
perPage: ke,
|
|
147
|
+
filters: Ne,
|
|
148
|
+
sorting: Pe,
|
|
149
|
+
expanded: Ae,
|
|
150
|
+
selection: je,
|
|
151
|
+
columnSearch: Ie,
|
|
152
|
+
hiddenColumns: Fe
|
|
156
153
|
}), X = c(() => ye(I.value.size)), Z = X, gt = c(() => X.value === "md" ? "sm" : "xs"), _t = c(() => N("{{selected}} of {{total}} row(s) selected.", K.value.selectedCount, {
|
|
157
154
|
total: K.value.totalCount,
|
|
158
155
|
selected: K.value.selectedCount
|
|
@@ -192,9 +189,9 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
192
189
|
}
|
|
193
190
|
};
|
|
194
191
|
}), Ct = _e(), $ = (e) => e.node ?? null;
|
|
195
|
-
return (e, r) => (b(), d("div", y(h(w(
|
|
192
|
+
return (e, r) => (b(), d("div", y(h(w(Re))), [w(Ze) ? (b(), d("div", y(_({ key: 0 }, w(Je))), [f("div", be, [S(e.$slots, "toolbar")]), f("div", xe, [
|
|
196
193
|
w(pt) ? (b(), d("div", Se, [p(oe, {
|
|
197
|
-
items: w(
|
|
194
|
+
items: w(dt),
|
|
198
195
|
"button-size": gt.value,
|
|
199
196
|
overlay: w(I).columnsOverlay,
|
|
200
197
|
onChange: w(ht),
|
|
@@ -207,10 +204,10 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
207
204
|
"show-footer"
|
|
208
205
|
])])) : u("", !0),
|
|
209
206
|
S(e.$slots, "toolbarActions"),
|
|
210
|
-
w(
|
|
207
|
+
w(We) ? S(e.$slots, "search", {}, () => [p(le, {
|
|
211
208
|
size: X.value,
|
|
212
209
|
"model-value": F.value ?? "",
|
|
213
|
-
"onUpdate:modelValue": w(
|
|
210
|
+
"onUpdate:modelValue": w(ct),
|
|
214
211
|
"field-props": w(I).customProps?.search
|
|
215
212
|
}, null, 8, [
|
|
216
213
|
"size",
|
|
@@ -218,20 +215,20 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
218
215
|
"onUpdate:modelValue",
|
|
219
216
|
"field-props"
|
|
220
217
|
])], void 0, 1) : u("", !0)
|
|
221
|
-
])], 16)) : u("", !0), f("div", y(h(w(
|
|
222
|
-
f("div", O, [p(w(de), y(h(w(
|
|
218
|
+
])], 16)) : u("", !0), f("div", y(h(w(Be))), [
|
|
219
|
+
f("div", O, [p(w(de), y(h(w(He))), {
|
|
223
220
|
default: E(() => [
|
|
224
221
|
p(w(he), y(h(w(I).customProps?.header)), {
|
|
225
222
|
default: E(() => [p(w(o), y(h(w(I).customProps?.row)), {
|
|
226
|
-
default: E(() => [(b(!0), d(s, null, x(w(
|
|
223
|
+
default: E(() => [(b(!0), d(s, null, x(w(z), (e) => (b(), l(w(me), _({
|
|
227
224
|
key: e.id,
|
|
228
|
-
align: w(
|
|
229
|
-
}, { ref_for: !0 }, w(
|
|
225
|
+
align: w(et)(e)
|
|
226
|
+
}, { ref_for: !0 }, w(Ge)(e)), {
|
|
230
227
|
default: E(() => [e.isSelection && w(J) ? (b(), l(i, {
|
|
231
228
|
key: 0,
|
|
232
229
|
kind: "page",
|
|
233
230
|
size: w(Z),
|
|
234
|
-
onChange: w(
|
|
231
|
+
onChange: w(tt),
|
|
235
232
|
checked: w(W).checked,
|
|
236
233
|
indeterminate: w(W).indeterminate,
|
|
237
234
|
"checkbox-props": w(I).customProps?.checkbox
|
|
@@ -246,7 +243,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
246
243
|
e.sortable ? (b(), l(ue, {
|
|
247
244
|
key: 0,
|
|
248
245
|
sort: e.ariaSort,
|
|
249
|
-
onClick: (t) => w(
|
|
246
|
+
onClick: (t) => w(nt)(e.id)
|
|
250
247
|
}, null, 8, ["sort", "onClick"])) : u("", !0),
|
|
251
248
|
e.filterable ? (b(), l(se, {
|
|
252
249
|
key: 1,
|
|
@@ -282,7 +279,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
282
279
|
colspan: w(V),
|
|
283
280
|
classes: { root: "relative h-0 border-0 p-0 after:hidden" }
|
|
284
281
|
}, {
|
|
285
|
-
default: E(() => [f("div", y(h(w(
|
|
282
|
+
default: E(() => [f("div", y(h(w(ot))), [S(e.$slots, "loading", {}, () => [p(w(ee), _({
|
|
286
283
|
size: "xs",
|
|
287
284
|
rounded: "none"
|
|
288
285
|
}, w(I).customProps?.progress), null, 16)])], 16)]),
|
|
@@ -298,7 +295,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
298
295
|
align: "center",
|
|
299
296
|
colspan: w(V)
|
|
300
297
|
}, {
|
|
301
|
-
default: E(() => [f("div", y(h(w(
|
|
298
|
+
default: E(() => [f("div", y(h(w(ze))), [S(e.$slots, "empty", {}, () => [p(w(te), {
|
|
302
299
|
icon: "inbox",
|
|
303
300
|
size: w(I).size,
|
|
304
301
|
title: w(N)("No data")
|
|
@@ -306,7 +303,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
306
303
|
_: 3
|
|
307
304
|
}, 8, ["colspan"])]),
|
|
308
305
|
_: 3
|
|
309
|
-
})) : u("", !0), w(L) ? u("", !0) : (b(!0), d(s, { key: 1 }, x(w(
|
|
306
|
+
})) : u("", !0), w(L) ? 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(I).customProps?.row), {
|
|
310
307
|
default: E(() => [(b(!0), d(s, null, x(t.cells, (e) => (b(), l(w(a), _({
|
|
311
308
|
key: e.id,
|
|
312
309
|
align: w(H)(e)
|
|
@@ -321,7 +318,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
321
318
|
multiple: w(J),
|
|
322
319
|
"radio-props": w(I).customProps?.radio,
|
|
323
320
|
"checkbox-props": w(I).customProps?.checkbox,
|
|
324
|
-
onChange: (e) => w(
|
|
321
|
+
onChange: (e) => w(qe)(t.id, e)
|
|
325
322
|
}, null, 8, [
|
|
326
323
|
"value",
|
|
327
324
|
"size",
|
|
@@ -336,7 +333,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
336
333
|
type: "button",
|
|
337
334
|
"aria-expanded": t.expanded,
|
|
338
335
|
"aria-label": w(N)("Expand row"),
|
|
339
|
-
onClick: (e) => w(
|
|
336
|
+
onClick: (e) => w(ut)(t.id, !t.expanded),
|
|
340
337
|
class: "inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-sm leading-none hover:bg-dark-500/10 dark:hover:bg-dark-500/15"
|
|
341
338
|
}, [f("span", { class: v([{ "rotate-90": t.expanded }, "inline-flex transition-transform duration-200 motion-reduce:transition-none"]) }, [p(w(n), {
|
|
342
339
|
size: "sm",
|
|
@@ -352,7 +349,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
352
349
|
_: 2
|
|
353
350
|
}, 1040, ["align"]))), 128))]),
|
|
354
351
|
_: 2
|
|
355
|
-
}, 1040), w(
|
|
352
|
+
}, 1040), w(it) ? (b(), l(w(o), { key: 0 }, {
|
|
356
353
|
default: E(() => [p(w(a), {
|
|
357
354
|
colspan: w(V),
|
|
358
355
|
classes: { root: w(D)({
|
|
@@ -389,11 +386,11 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
389
386
|
})) : u("", !0)
|
|
390
387
|
]),
|
|
391
388
|
_: 3
|
|
392
|
-
}, 16), w(I).loading ? (b(), d("div", _({ key: 0 }, w(
|
|
393
|
-
w(t)(w(M), "footer") ? (b(), d("div", y(_({ key: 0 }, w(
|
|
394
|
-
w(
|
|
395
|
-
w(
|
|
396
|
-
w(
|
|
389
|
+
}, 16), w(I).loading ? (b(), d("div", _({ key: 0 }, w(Ke), { "aria-hidden": w(R) || void 0 }), [w(R) ? u("", !0) : S(e.$slots, "loading", {}, () => [p(ie)], void 0, 0)], 16, Ee)) : u("", !0)]),
|
|
390
|
+
w(t)(w(M), "footer") ? (b(), d("div", y(_({ key: 0 }, w(Ue))), [S(e.$slots, "footer")], 16)) : u("", !0),
|
|
391
|
+
w(rt) ? (b(), d("div", y(_({ key: 1 }, w(at))), [f("div", y(h(w(st))), [
|
|
392
|
+
w($e) ? (b(), d("div", y(_({ key: 0 }, w(Qe))), [S(e.$slots, "selected", y(h(w(K))), () => [ge(C(_t.value), 1)])], 16)) : u("", !0),
|
|
393
|
+
w(Xe) ? S(e.$slots, "perPage", y(h(w(G))), () => [f("div", De, [f("span", y(h(w(ft))), C(w(N)("Rows per page")), 17), p(w(re), _(w(I).customProps?.perPage, {
|
|
397
394
|
overlay: "menu",
|
|
398
395
|
clearable: !1,
|
|
399
396
|
"hide-error-message": "",
|
|
@@ -415,7 +412,7 @@ var be = { class: "min-w-0 flex-1" }, xe = { class: "flex shrink-0 items-center
|
|
|
415
412
|
"aria-label",
|
|
416
413
|
"classes"
|
|
417
414
|
])])], void 0, 1) : u("", !0),
|
|
418
|
-
w(
|
|
415
|
+
w(Ve) ? (b(), d("div", Oe, [w(q) !== void 0 && !w(t)(w(M), "pagination") ? (b(), d("span", y(_({ key: 0 }, w(lt))), C(vt.value), 17)) : u("", !0), S(e.$slots, "pagination", y(h(w(Y))), () => [w(Ye) ? (b(), l(w(ne), _({ key: 0 }, w(I).customProps?.cursorPagination, {
|
|
419
416
|
mode: "simple",
|
|
420
417
|
size: X.value,
|
|
421
418
|
onNext: w(Y).onNext,
|
|
@@ -489,6 +489,7 @@ export declare function useDataTable<T extends Record<string, unknown>>(props: D
|
|
|
489
489
|
paginationBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
490
490
|
class: string;
|
|
491
491
|
}, "class", {}, {}>>;
|
|
492
|
+
pageStatusBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
492
493
|
selectAllState: import('vue').ComputedRef<{
|
|
493
494
|
checked: boolean;
|
|
494
495
|
indeterminate: boolean;
|
|
@@ -498,6 +499,7 @@ export declare function useDataTable<T extends Record<string, unknown>>(props: D
|
|
|
498
499
|
onChangePerPage: (next: number) => void;
|
|
499
500
|
resolvedPerPage: import('vue').ComputedRef<number>;
|
|
500
501
|
selectionEnabled: import('vue').ComputedRef<boolean>;
|
|
502
|
+
perPageLabelBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
501
503
|
perPageSlotProps: import('vue').ComputedRef<DataTablePerPageSlotProps>;
|
|
502
504
|
selectedSlotProps: import('vue').ComputedRef<DataTableSelectedSlotProps>;
|
|
503
505
|
resolvedPageCount: import('vue').ComputedRef<number | undefined>;
|