@bridge-ui/vue 0.5.0 → 0.6.0
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/ai/skills/bridge-ui-components/SKILL.md +2 -2
- package/dist/Components/Alert/alertDefaultIcons.js +1 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +1 -1
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +150 -145
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Button/button.types.d.ts +6 -0
- package/dist/Components/Button/composables/useButton.d.ts +4 -1
- package/dist/Components/Button/composables/useButton.js +88 -69
- package/dist/Components/ButtonGroup/ButtonGroup.js +5 -0
- package/dist/Components/ButtonGroup/ButtonGroup.vue.d.ts +14 -0
- package/dist/Components/ButtonGroup/ButtonGroup.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/Components/ButtonGroup/buttonGroup.types.d.ts +93 -0
- package/dist/Components/ButtonGroup/buttonGroupInjectionKey.d.ts +7 -0
- package/dist/Components/ButtonGroup/buttonGroupInjectionKey.js +4 -0
- package/dist/Components/ButtonGroup/composables/useButtonGroup.d.ts +16 -0
- package/dist/Components/ButtonGroup/composables/useButtonGroup.js +66 -0
- package/dist/Components/ButtonGroup/index.d.ts +4 -0
- package/dist/Components/ButtonGroup/index.js +4 -0
- package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Checkbox/composables/useCheckbox.js +1 -1
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/Components/DataTable/DataTableColumnsMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DataTable/DataTableFilterOptions.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DataTable/DataTableSortButton.vue.d.ts +5 -11
- package/dist/Components/DataTable/DataTableSortButton.vue_vue_type_script_setup_true_lang.js +22 -26
- package/dist/Components/DataTable/composables/useDataTable.d.ts +0 -3
- package/dist/Components/DataTable/composables/useDataTable.js +199 -213
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.js +4 -1
- package/dist/Components/List/composables/useList.js +1 -1
- package/dist/Components/ListItem/ListItem.vue.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
- package/dist/Components/ListItem/composables/useListItem.js +101 -86
- package/dist/Components/ListSection/composables/useListSection.js +34 -31
- package/dist/Components/ListSection/listSection.types.d.ts +2 -1
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/Components/Listbox/collectComposedListboxOptions.d.ts +5 -0
- package/dist/Components/Listbox/collectComposedListboxOptions.js +27 -0
- package/dist/Components/Radio/composables/useRadio.js +2 -1
- package/dist/Components/Select/composables/useSelect.d.ts +1 -1
- package/dist/Components/Select/composables/useSelect.js +104 -99
- package/dist/Components/Sidebar/SidebarTrigger.vue_vue_type_script_setup_true_lang.js +16 -15
- package/dist/Components/Sidebar/composables/useSidebarListItem.js +29 -28
- package/dist/Components/Sidebar/composables/useSidebarTrigger.d.ts +2 -0
- package/dist/Components/Sidebar/composables/useSidebarTrigger.js +16 -13
- package/dist/Components/Slider/composables/useSlider.js +53 -53
- package/dist/Components/Snackbar/snackbarDefaultIcons.js +1 -0
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +11 -10
- package/dist/Components/TimePanel/composables/useTimePanel.js +106 -106
- package/dist/augments.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +150 -147
- package/docs/README.md +1 -0
- package/docs/components/Badge.md +2 -0
- package/docs/components/Button.md +5 -1
- package/docs/components/ButtonGroup.md +124 -0
- package/docs/components/DataTable.md +5 -1
- package/docs/components/Divider.md +1 -0
- package/docs/components/ToggleGroup.md +1 -1
- package/docs/examples/i18n-dictionary.ts +3 -0
- package/docs/examples/icon-fontawesome.ts +2 -0
- package/docs/examples/icon-heroicons.ts +2 -0
- package/docs/examples/icon-lucide.ts +2 -0
- package/docs/examples/icon-phosphor.ts +2 -0
- package/docs/examples/icon-tabler.ts +2 -0
- package/package.json +2 -2
|
@@ -28,7 +28,7 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
28
28
|
}, be = { class: "relative" }, D = {
|
|
29
29
|
key: 1,
|
|
30
30
|
class: "flex w-full min-w-0 items-center gap-1.5 leading-none"
|
|
31
|
-
}, O = ["aria-expanded", "onClick"],
|
|
31
|
+
}, O = { class: "min-w-0 truncate leading-none" }, k = ["aria-expanded", "onClick"], A = ["aria-hidden"], j = { class: "min-h-0 overflow-hidden" }, M = { class: "p-3" }, N = ["aria-hidden"], xe = { class: "flex shrink-0 items-center gap-2" }, Se = { class: "text-sm whitespace-nowrap text-dark-500 dark:text-dark-400" }, P = /*@__PURE__*/ m({
|
|
32
32
|
inheritAttrs: !1,
|
|
33
33
|
__name: "DataTable",
|
|
34
34
|
props: /*@__PURE__*/ g({
|
|
@@ -103,7 +103,7 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
103
103
|
"update:columnSearch"
|
|
104
104
|
],
|
|
105
105
|
setup(m) {
|
|
106
|
-
let g = m, P = ge(), F = e(), I = w(m, "page"),
|
|
106
|
+
let g = m, P = ge(), F = e(), I = w(m, "page"), Ce = w(m, "perPage"), L = w(m, "search"), we = w(m, "expanded"), Te = w(m, "selection"), Ee = w(m, "filters"), De = w(m, "sorting"), Oe = w(m, "hiddenColumns"), ke = w(m, "columnSearch"), { merged: R, rowViews: Ae, rootBind: je, emptyBind: Me, showEmpty: z, frameBind: Ne, tableProps: Pe, footerBind: Fe, loadingBar: B, showSearch: Ie, getHeadBind: Le, headerViews: Re, loadingBind: ze, onToggleRow: Be, toolbarBind: Ve, getCellBind: V, columnCount: H, showPerPage: He, showToolbar: Ue, getHeadAlign: We, getCellAlign: U, onTogglePage: Ge, onToggleSort: Ke, summaryCells: W, expandEnabled: qe, loadingBarBind: Je, paginationBind: Ye, selectAllState: G, showPagination: Xe, onChangeSearch: Ze, onToggleExpand: Qe, visibilityItems: $e, perPageSlotProps: K, resolvedPageCount: q, selectionMultiple: J, visibilityEnabled: et, paginationSlotProps: Y, onCommitColumnFilter: X, onHiddenColumnsChange: tt } = r(g, {
|
|
107
107
|
size: "md",
|
|
108
108
|
full: !0,
|
|
109
109
|
rounded: "lg",
|
|
@@ -119,15 +119,15 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
119
119
|
}, {
|
|
120
120
|
page: I,
|
|
121
121
|
search: L,
|
|
122
|
-
perPage:
|
|
123
|
-
filters:
|
|
124
|
-
sorting:
|
|
125
|
-
expanded:
|
|
126
|
-
selection:
|
|
127
|
-
columnSearch:
|
|
128
|
-
hiddenColumns:
|
|
122
|
+
perPage: Ce,
|
|
123
|
+
filters: Ee,
|
|
124
|
+
sorting: De,
|
|
125
|
+
expanded: we,
|
|
126
|
+
selection: Te,
|
|
127
|
+
columnSearch: ke,
|
|
128
|
+
hiddenColumns: Oe
|
|
129
129
|
}), Z = c(() => R.value.size === "lg" ? "md" : "sm");
|
|
130
|
-
function
|
|
130
|
+
function nt(e, t) {
|
|
131
131
|
let n = P[`item.${t.id}`] ?? P.item;
|
|
132
132
|
return n ? n({
|
|
133
133
|
id: t.id,
|
|
@@ -140,10 +140,10 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
140
140
|
set: (e) => {
|
|
141
141
|
I.value = e;
|
|
142
142
|
}
|
|
143
|
-
}),
|
|
143
|
+
}), rt = c(() => K.value.options.map((e) => ({
|
|
144
144
|
value: e,
|
|
145
145
|
label: String(e)
|
|
146
|
-
}))),
|
|
146
|
+
}))), it = c(() => {
|
|
147
147
|
let e = R.value.customProps?.perPage?.customProps;
|
|
148
148
|
return {
|
|
149
149
|
...e,
|
|
@@ -159,12 +159,12 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
-
}),
|
|
163
|
-
return (e, r) => (b(), d("div", y(h(C(
|
|
164
|
-
C(
|
|
165
|
-
items: C(
|
|
162
|
+
}), at = he(), $ = (e) => e.node ?? null;
|
|
163
|
+
return (e, r) => (b(), d("div", y(h(C(je))), [C(Ue) ? (b(), d("div", y(_({ key: 0 }, C(Ve))), [f("div", _e, [S(e.$slots, "toolbar")]), f("div", ve, [
|
|
164
|
+
C(et) ? (b(), d("div", ye, [p(ae, {
|
|
165
|
+
items: C($e),
|
|
166
166
|
overlay: C(R).columnsOverlay,
|
|
167
|
-
onChange: C(
|
|
167
|
+
onChange: C(tt),
|
|
168
168
|
"show-footer": C(R).columnsShowFooter
|
|
169
169
|
}, null, 8, [
|
|
170
170
|
"items",
|
|
@@ -173,31 +173,31 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
173
173
|
"show-footer"
|
|
174
174
|
])])) : u("", !0),
|
|
175
175
|
S(e.$slots, "toolbarActions"),
|
|
176
|
-
C(
|
|
176
|
+
C(Ie) ? S(e.$slots, "search", {}, () => [p(se, {
|
|
177
177
|
"model-value": L.value ?? "",
|
|
178
|
-
"onUpdate:modelValue": C(
|
|
178
|
+
"onUpdate:modelValue": C(Ze),
|
|
179
179
|
"field-props": C(R).customProps?.search
|
|
180
180
|
}, null, 8, [
|
|
181
181
|
"model-value",
|
|
182
182
|
"onUpdate:modelValue",
|
|
183
183
|
"field-props"
|
|
184
184
|
])], void 0, 1) : u("", !0)
|
|
185
|
-
])], 16)) : u("", !0), f("div", y(h(C(
|
|
186
|
-
f("div", be, [p(C(le), y(h(C(
|
|
185
|
+
])], 16)) : u("", !0), f("div", y(h(C(Ne))), [
|
|
186
|
+
f("div", be, [p(C(le), y(h(C(Pe))), {
|
|
187
187
|
default: T(() => [
|
|
188
188
|
p(C(pe), y(h(C(R).customProps?.header)), {
|
|
189
189
|
default: T(() => [p(C(o), y(h(C(R).customProps?.row)), {
|
|
190
|
-
default: T(() => [(b(!0), d(s, null, x(C(
|
|
190
|
+
default: T(() => [(b(!0), d(s, null, x(C(Re), (e) => (b(), l(C(fe), _({
|
|
191
191
|
key: e.id,
|
|
192
|
-
align: C(
|
|
193
|
-
}, { ref_for: !0 }, C(
|
|
194
|
-
default: T(() => [e.isSelection && C(
|
|
192
|
+
align: C(We)(e)
|
|
193
|
+
}, { ref_for: !0 }, C(Le)(e)), {
|
|
194
|
+
default: T(() => [e.isSelection && C(J) ? (b(), l(i, {
|
|
195
195
|
key: 0,
|
|
196
196
|
kind: "page",
|
|
197
197
|
size: Z.value,
|
|
198
|
-
onChange: C(
|
|
199
|
-
checked: C(
|
|
200
|
-
indeterminate: C(
|
|
198
|
+
onChange: C(Ge),
|
|
199
|
+
checked: C(G).checked,
|
|
200
|
+
indeterminate: C(G).indeterminate,
|
|
201
201
|
"checkbox-props": C(R).customProps?.checkbox
|
|
202
202
|
}, null, 8, [
|
|
203
203
|
"size",
|
|
@@ -205,37 +205,36 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
205
205
|
"checked",
|
|
206
206
|
"indeterminate",
|
|
207
207
|
"checkbox-props"
|
|
208
|
-
])) : !e.isSelection && !e.isExpand ? (b(), d("div", D, [
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
])) : u("", !0)])) : u("", !0)]),
|
|
208
|
+
])) : !e.isSelection && !e.isExpand ? (b(), d("div", D, [
|
|
209
|
+
f("span", O, [p($, { node: e.header }, null, 8, ["node"])]),
|
|
210
|
+
e.sortable ? (b(), l(ce, {
|
|
211
|
+
key: 0,
|
|
212
|
+
sort: e.ariaSort,
|
|
213
|
+
onClick: (t) => C(Ke)(e.id)
|
|
214
|
+
}, null, 8, ["sort", "onClick"])) : u("", !0),
|
|
215
|
+
e.filterable ? (b(), l(oe, {
|
|
216
|
+
key: 1,
|
|
217
|
+
"column-id": e.id,
|
|
218
|
+
active: e.filterActive,
|
|
219
|
+
values: e.filterValues,
|
|
220
|
+
overlay: C(R).filterOverlay,
|
|
221
|
+
options: e.filterOptions,
|
|
222
|
+
searchable: e.searchable,
|
|
223
|
+
multiple: e.filterMultiple,
|
|
224
|
+
"search-value": e.searchQuery,
|
|
225
|
+
onApply: (t, n) => C(X)(e.id, t, n)
|
|
226
|
+
}, null, 8, [
|
|
227
|
+
"column-id",
|
|
228
|
+
"active",
|
|
229
|
+
"values",
|
|
230
|
+
"overlay",
|
|
231
|
+
"options",
|
|
232
|
+
"searchable",
|
|
233
|
+
"multiple",
|
|
234
|
+
"search-value",
|
|
235
|
+
"onApply"
|
|
236
|
+
])) : u("", !0)
|
|
237
|
+
])) : u("", !0)]),
|
|
239
238
|
_: 2
|
|
240
239
|
}, 1040, ["align"]))), 128))]),
|
|
241
240
|
_: 1
|
|
@@ -244,10 +243,10 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
244
243
|
classes: { root: "h-0" }
|
|
245
244
|
}, {
|
|
246
245
|
default: T(() => [p(C(a), {
|
|
247
|
-
colspan: C(
|
|
246
|
+
colspan: C(H),
|
|
248
247
|
classes: { root: "relative h-0 border-0 p-0 after:hidden" }
|
|
249
248
|
}, {
|
|
250
|
-
default: T(() => [f("div", y(h(C(
|
|
249
|
+
default: T(() => [f("div", y(h(C(Je))), [S(e.$slots, "loading", {}, () => [p(C(ee), _({
|
|
251
250
|
size: "xs",
|
|
252
251
|
rounded: "none"
|
|
253
252
|
}, C(R).customProps?.progress), null, 16)])], 16)]),
|
|
@@ -261,31 +260,32 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
261
260
|
default: T(() => [C(z) ? (b(), l(C(o), { key: 0 }, {
|
|
262
261
|
default: T(() => [p(C(a), {
|
|
263
262
|
align: "center",
|
|
264
|
-
colspan: C(
|
|
263
|
+
colspan: C(H)
|
|
265
264
|
}, {
|
|
266
|
-
default: T(() => [f("div", y(h(C(
|
|
265
|
+
default: T(() => [f("div", y(h(C(Me))), [S(e.$slots, "empty", {}, () => [p(C(te), {
|
|
266
|
+
icon: "inbox",
|
|
267
267
|
size: C(R).size,
|
|
268
268
|
title: C(F)("No data")
|
|
269
269
|
}, null, 8, ["size", "title"])])], 16)]),
|
|
270
270
|
_: 3
|
|
271
271
|
}, 8, ["colspan"])]),
|
|
272
272
|
_: 3
|
|
273
|
-
})) : u("", !0), C(z) ? u("", !0) : (b(!0), d(s, { key: 1 }, x(C(
|
|
273
|
+
})) : u("", !0), C(z) ? u("", !0) : (b(!0), d(s, { key: 1 }, x(C(Ae), (t) => (b(), d(s, { key: t.id }, [p(C(o), _({ ref_for: !0 }, C(R).customProps?.row), {
|
|
274
274
|
default: T(() => [(b(!0), d(s, null, x(t.cells, (e) => (b(), l(C(a), _({
|
|
275
275
|
key: e.id,
|
|
276
|
-
align: C(
|
|
277
|
-
}, { ref_for: !0 }, C(
|
|
276
|
+
align: C(U)(e)
|
|
277
|
+
}, { ref_for: !0 }, C(V)(e)), {
|
|
278
278
|
default: T(() => [e.isSelection ? (b(), l(i, {
|
|
279
279
|
key: 0,
|
|
280
280
|
kind: "row",
|
|
281
281
|
value: t.id,
|
|
282
282
|
size: Z.value,
|
|
283
|
-
name: C(
|
|
283
|
+
name: C(at),
|
|
284
284
|
checked: t.selected,
|
|
285
|
-
multiple: C(
|
|
285
|
+
multiple: C(J),
|
|
286
286
|
"radio-props": C(R).customProps?.radio,
|
|
287
287
|
"checkbox-props": C(R).customProps?.checkbox,
|
|
288
|
-
onChange: (e) => C(
|
|
288
|
+
onChange: (e) => C(Be)(t.id, e)
|
|
289
289
|
}, null, 8, [
|
|
290
290
|
"value",
|
|
291
291
|
"size",
|
|
@@ -300,25 +300,25 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
300
300
|
type: "button",
|
|
301
301
|
"aria-label": "Expand row",
|
|
302
302
|
"aria-expanded": t.expanded,
|
|
303
|
-
onClick: (e) => C(
|
|
303
|
+
onClick: (e) => C(Qe)(t.id, !t.expanded),
|
|
304
304
|
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"
|
|
305
305
|
}, [f("span", { class: v([{ "rotate-90": t.expanded }, "inline-flex transition-transform duration-200 motion-reduce:transition-none"]) }, [p(C(n), {
|
|
306
306
|
size: "sm",
|
|
307
307
|
icon: "chevronRight"
|
|
308
|
-
})], 2)], 8,
|
|
308
|
+
})], 2)], 8, k)) : (b(), l(ie, {
|
|
309
309
|
key: 2,
|
|
310
310
|
tooltip: e.tooltip,
|
|
311
311
|
ellipsis: e.ellipsis
|
|
312
312
|
}, {
|
|
313
|
-
default: T(() => [p($, { node:
|
|
313
|
+
default: T(() => [p($, { node: nt(t, e) }, null, 8, ["node"])]),
|
|
314
314
|
_: 2
|
|
315
315
|
}, 1032, ["tooltip", "ellipsis"]))]),
|
|
316
316
|
_: 2
|
|
317
317
|
}, 1040, ["align"]))), 128))]),
|
|
318
318
|
_: 2
|
|
319
|
-
}, 1040), C(
|
|
319
|
+
}, 1040), C(qe) ? (b(), l(C(o), { key: 0 }, {
|
|
320
320
|
default: T(() => [p(C(a), {
|
|
321
|
-
colspan: C(
|
|
321
|
+
colspan: C(H),
|
|
322
322
|
classes: { root: C(E)({
|
|
323
323
|
"p-0": !0,
|
|
324
324
|
"border-0": !t.expanded
|
|
@@ -331,19 +331,19 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
331
331
|
"grid-rows-[1fr]": t.expanded,
|
|
332
332
|
"grid-rows-[0fr]": !t.expanded
|
|
333
333
|
}))
|
|
334
|
-
}, [f("div",
|
|
334
|
+
}, [f("div", j, [f("div", M, [S(e.$slots, "expanded", { row: t.original })])])], 10, A)]),
|
|
335
335
|
_: 2
|
|
336
336
|
}, 1032, ["colspan", "classes"])]),
|
|
337
337
|
_: 2
|
|
338
338
|
}, 1024)) : u("", !0)], 64))), 128))]),
|
|
339
339
|
_: 3
|
|
340
340
|
}, 16),
|
|
341
|
-
C(
|
|
341
|
+
C(W) ? (b(), l(C(de), { key: 0 }, {
|
|
342
342
|
default: T(() => [p(C(o), y(h(C(R).customProps?.row)), {
|
|
343
|
-
default: T(() => [(b(!0), d(s, null, x(C(
|
|
343
|
+
default: T(() => [(b(!0), d(s, null, x(C(W), (e) => (b(), l(C(a), _({
|
|
344
344
|
key: e.id,
|
|
345
|
-
align: C(
|
|
346
|
-
}, { ref_for: !0 }, C(
|
|
345
|
+
align: C(U)(e)
|
|
346
|
+
}, { ref_for: !0 }, C(V)(e)), {
|
|
347
347
|
default: T(() => [p($, { node: e.content }, null, 8, ["node"])]),
|
|
348
348
|
_: 2
|
|
349
349
|
}, 1040, ["align"]))), 128))]),
|
|
@@ -353,7 +353,7 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
353
353
|
})) : u("", !0)
|
|
354
354
|
]),
|
|
355
355
|
_: 3
|
|
356
|
-
}, 16), C(R).loading ? (b(), d("div", _({ key: 0 }, C(
|
|
356
|
+
}, 16), C(R).loading ? (b(), d("div", _({ key: 0 }, C(ze), { "aria-hidden": C(B) || void 0 }), [C(B) ? u("", !0) : S(e.$slots, "loading", {}, () => [r[2] ||= f("span", {
|
|
357
357
|
role: "status",
|
|
358
358
|
"aria-label": "Loading",
|
|
359
359
|
class: "relative inline-block size-5 animate-spin motion-reduce:animate-none"
|
|
@@ -362,17 +362,17 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
362
362
|
f("span", { class: "absolute inset-e-0 top-0 size-2 rounded-full bg-primary-500 opacity-50 dark:bg-primary-400" }),
|
|
363
363
|
f("span", { class: "absolute inset-e-0 bottom-0 size-2 rounded-full bg-primary-500 dark:bg-primary-400" }),
|
|
364
364
|
f("span", { class: "absolute inset-s-0 bottom-0 size-2 rounded-full bg-primary-500 opacity-70 dark:bg-primary-400" })
|
|
365
|
-
], -1)], void 0, 0)], 16,
|
|
366
|
-
C(t)(C(P), "footer") ? (b(), d("div", y(_({ key: 0 }, C(
|
|
367
|
-
C(
|
|
365
|
+
], -1)], void 0, 0)], 16, N)) : u("", !0)]),
|
|
366
|
+
C(t)(C(P), "footer") ? (b(), d("div", y(_({ key: 0 }, C(Fe))), [S(e.$slots, "footer")], 16)) : u("", !0),
|
|
367
|
+
C(Xe) ? (b(), d("div", y(_({ key: 1 }, C(Ye))), [C(He) ? S(e.$slots, "perPage", y(h(C(K))), () => [f("div", xe, [f("span", Se, me(C(F)("Per page:")), 1), p(C(re), _({ size: "sm" }, C(R).customProps?.perPage, {
|
|
368
368
|
overlay: "menu",
|
|
369
369
|
clearable: !1,
|
|
370
370
|
"hide-error-message": "",
|
|
371
371
|
"aria-label": "Per page",
|
|
372
|
-
options:
|
|
373
|
-
"custom-props":
|
|
374
|
-
"model-value": C(
|
|
375
|
-
"onUpdate:modelValue": r[0] ||= (e) => C(
|
|
372
|
+
options: rt.value,
|
|
373
|
+
"custom-props": it.value,
|
|
374
|
+
"model-value": C(K).perPage,
|
|
375
|
+
"onUpdate:modelValue": r[0] ||= (e) => C(K).onPerPageChange(Number(e)),
|
|
376
376
|
classes: {
|
|
377
377
|
...C(R).customProps?.perPage?.classes,
|
|
378
378
|
root: C(E)("w-20", C(R).customProps?.perPage?.classes?.root)
|
|
@@ -382,12 +382,12 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
|
|
|
382
382
|
"custom-props",
|
|
383
383
|
"model-value",
|
|
384
384
|
"classes"
|
|
385
|
-
])])], void 0, 0) : u("", !0), S(e.$slots, "pagination", y(h(C(
|
|
385
|
+
])])], void 0, 0) : u("", !0), S(e.$slots, "pagination", y(h(C(Y))), () => [C(q) === void 0 ? u("", !0) : (b(), l(C(ne), _({
|
|
386
386
|
key: 0,
|
|
387
387
|
modelValue: Q.value,
|
|
388
388
|
"onUpdate:modelValue": r[1] ||= (e) => Q.value = e,
|
|
389
|
-
count: C(
|
|
390
|
-
variant: C(
|
|
389
|
+
count: C(q),
|
|
390
|
+
variant: C(Y).variant
|
|
391
391
|
}, C(R).customProps?.pagination), null, 16, [
|
|
392
392
|
"modelValue",
|
|
393
393
|
"count",
|
package/dist/Components/DataTable/DataTableColumnsMenu.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -53,7 +53,7 @@ var x = { class: "relative inline-flex items-center" }, S = ["aria-checked", "on
|
|
|
53
53
|
role: "menuitemcheckbox",
|
|
54
54
|
"aria-checked": !v(j)(e),
|
|
55
55
|
onClick: (t) => v(P)(e),
|
|
56
|
-
class: "flex w-full cursor-pointer items-center rounded-md px-2 py-1.5 text-start hover:bg-
|
|
56
|
+
class: "flex w-full cursor-pointer items-center rounded-md px-2 py-1.5 text-start hover:bg-black/5 dark:hover:bg-white/10"
|
|
57
57
|
}, [d(v(r), {
|
|
58
58
|
"hide-error-message": "",
|
|
59
59
|
size: v(N),
|
package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -97,7 +97,7 @@ var O = { class: "relative z-2 inline-flex items-center leading-none" }, k = ["a
|
|
|
97
97
|
role: "menuitemcheckbox",
|
|
98
98
|
"aria-checked": K.value,
|
|
99
99
|
onClick: Z,
|
|
100
|
-
class: "flex w-full cursor-pointer items-center rounded-md px-2 py-1.5 text-start hover:bg-
|
|
100
|
+
class: "flex w-full cursor-pointer items-center rounded-md px-2 py-1.5 text-start hover:bg-black/5 dark:hover:bg-white/10"
|
|
101
101
|
}, [p(y(a), {
|
|
102
102
|
"hide-error-message": "",
|
|
103
103
|
size: G.value,
|
package/dist/Components/DataTable/DataTableFilterOptions.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -46,7 +46,7 @@ var p = {
|
|
|
46
46
|
"aria-checked": b(l.value),
|
|
47
47
|
role: s.multiple ? "menuitemcheckbox" : "menuitemradio",
|
|
48
48
|
onClick: (e) => y("toggle", l.value, !b(l.value)),
|
|
49
|
-
class: "flex w-full cursor-pointer items-center rounded-md px-2 py-1.5 text-start hover:bg-
|
|
49
|
+
class: "flex w-full cursor-pointer items-center rounded-md px-2 py-1.5 text-start hover:bg-black/5 dark:hover:bg-white/10"
|
|
50
50
|
}, [s.multiple ? (c(), r(f(e), {
|
|
51
51
|
key: 0,
|
|
52
52
|
size: s.size,
|
|
@@ -2,16 +2,10 @@ import { DataTableAriaSort } from '@bridge-ui/core/Domain';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
sort: DataTableAriaSort;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
click: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onClick?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
10
|
declare const _default: typeof __VLS_export;
|
|
12
11
|
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
package/dist/Components/DataTable/DataTableSortButton.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,43 +1,39 @@
|
|
|
1
1
|
import { useResolveMessage as e } from "../../Adapters/I18n/useI18nAdapter.js";
|
|
2
2
|
import t from "../Icon/Icon.js";
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { cn as h } from "@bridge-ui/core/Utils";
|
|
3
|
+
import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, unref as l } from "vue";
|
|
4
|
+
import { getDataTableSortLabel as u } from "@bridge-ui/core/Domain";
|
|
5
|
+
import { cn as d } from "@bridge-ui/core/Utils";
|
|
7
6
|
//#region src/Components/DataTable/DataTableSortButton.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
7
|
+
var f = ["aria-label"], p = { class: "inline-flex h-6 w-5 shrink-0 flex-col items-center justify-center leading-none" }, m = /*@__PURE__*/ o({
|
|
9
8
|
inheritAttrs: !1,
|
|
10
9
|
name: "DataTableSortButton",
|
|
11
10
|
__name: "DataTableSortButton",
|
|
12
11
|
props: { sort: {} },
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
emits: ["click"],
|
|
13
|
+
setup(o, { emit: m }) {
|
|
14
|
+
let h = o, g = m, _ = e(), v = n(() => _(u(h.sort)));
|
|
15
|
+
return (e, n) => (c(), r("button", {
|
|
16
|
+
type: "button",
|
|
17
|
+
"aria-label": v.value,
|
|
18
|
+
onClick: n[0] ||= (e) => g("click"),
|
|
19
|
+
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"
|
|
20
|
+
}, [i("span", p, [a(l(t), {
|
|
16
21
|
size: "lg",
|
|
17
22
|
icon: "chevronUp",
|
|
18
|
-
class: l(
|
|
23
|
+
class: s(l(d)({
|
|
19
24
|
"-mb-1": !0,
|
|
20
|
-
"text-dark-800 dark:text-dark-100":
|
|
21
|
-
"text-dark-300 dark:text-dark-600":
|
|
25
|
+
"text-dark-800 dark:text-dark-100": o.sort === "ascending",
|
|
26
|
+
"text-dark-300 dark:text-dark-600": o.sort !== "ascending"
|
|
22
27
|
}))
|
|
23
|
-
}, null, 8, ["class"]),
|
|
28
|
+
}, null, 8, ["class"]), a(l(t), {
|
|
24
29
|
size: "lg",
|
|
25
30
|
icon: "chevronDown",
|
|
26
|
-
class: l(
|
|
27
|
-
"text-dark-800 dark:text-dark-100":
|
|
28
|
-
"text-dark-300 dark:text-dark-600":
|
|
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"
|
|
29
34
|
}))
|
|
30
|
-
}, null, 8, ["class"])])]
|
|
31
|
-
content: x.value,
|
|
32
|
-
"custom-props": {
|
|
33
|
-
root: { class: "absolute inset-0 z-[1] max-w-none" },
|
|
34
|
-
trigger: { class: "absolute inset-0 size-full max-w-none" }
|
|
35
|
-
}
|
|
36
|
-
}, {
|
|
37
|
-
trigger: p(() => [...i[0] ||= [o("span", { class: "size-full" }, null, -1)]]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["content"])], 64));
|
|
35
|
+
}, null, 8, ["class"])])], 8, f));
|
|
40
36
|
}
|
|
41
37
|
});
|
|
42
38
|
//#endregion
|
|
43
|
-
export {
|
|
39
|
+
export { m as default };
|
|
@@ -495,10 +495,7 @@ export declare function useDataTable<T>(props: DataTableOwnProps<T>, libDefaults
|
|
|
495
495
|
width?: string | undefined;
|
|
496
496
|
maxWidth?: string | undefined;
|
|
497
497
|
};
|
|
498
|
-
tabindex: number | undefined;
|
|
499
498
|
"aria-sort": import('@bridge-ui/core/Domain').DataTableAriaSort | undefined;
|
|
500
|
-
onClick: ((event: MouseEvent) => void) | undefined;
|
|
501
|
-
onKeydown: ((event: KeyboardEvent) => void) | undefined;
|
|
502
499
|
class: string;
|
|
503
500
|
}, "class", import('vue').HTMLAttributes | undefined, {}>;
|
|
504
501
|
headerViews: import('vue').ComputedRef<DataTableHeaderView[]>;
|