@bridge-ui/vue 0.11.0 → 0.13.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 -1
- package/dist/Adapters/Examples/date-moment.js +31 -31
- package/dist/Adapters/Examples/i18n-dictionary.js +14 -0
- package/dist/Adapters/Examples/icon-fontawesome.js +53 -40
- package/dist/Adapters/Examples/icon-heroicons.js +46 -33
- package/dist/Adapters/Examples/icon-lucide.js +47 -34
- package/dist/Adapters/Examples/icon-phosphor.js +48 -35
- package/dist/Adapters/Examples/icon-tabler.js +45 -32
- package/dist/Adapters/Examples/rich-text-tiptap.d.ts +5 -0
- package/dist/Adapters/Examples/rich-text-tiptap.js +138 -0
- package/dist/Adapters/RichText/index.d.ts +1 -0
- package/dist/Adapters/RichText/index.js +2 -0
- package/dist/Adapters/RichText/mockRichTextAdapter.d.ts +5 -0
- package/dist/Adapters/RichText/useRichTextAdapter.d.ts +12 -0
- package/dist/Adapters/RichText/useRichTextAdapter.js +13 -0
- package/dist/Adapters/index.d.ts +1 -0
- package/dist/Adapters/index.js +2 -1
- package/dist/Components/ActionFooter/composables/useActionFooter.d.ts +6 -6
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +2 -2
- package/dist/Components/BaseField/composables/useBaseField.d.ts +3 -3
- package/dist/Components/BaseField/composables/useBaseField.js +7 -7
- package/dist/Components/Breadcrumb/Breadcrumb.vue.d.ts +17 -10
- package/dist/Components/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/Components/Breadcrumb/breadcrumb.types.d.ts +22 -4
- package/dist/Components/Breadcrumb/breadcrumbInjectionKey.d.ts +5 -1
- package/dist/Components/Breadcrumb/composables/useBreadcrumb.d.ts +6 -5
- package/dist/Components/Breadcrumb/composables/useBreadcrumb.js +2 -0
- package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue.d.ts +17 -11
- package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/BreadcrumbItem/breadcrumbItem.types.d.ts +21 -3
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.d.ts +10 -6
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.js +65 -59
- package/dist/Components/Button/Button.vue.d.ts +17 -8
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/Button/button.types.d.ts +22 -5
- package/dist/Components/Button/composables/useButton.d.ts +198 -8
- package/dist/Components/Button/composables/useButton.js +101 -86
- package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Carousel/Carousel.js +5 -0
- package/dist/Components/Carousel/Carousel.vue.d.ts +22 -0
- package/dist/Components/Carousel/Carousel.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/Components/Carousel/carousel.types.d.ts +236 -0
- package/dist/Components/Carousel/carouselInjectionKey.d.ts +48 -0
- package/dist/Components/Carousel/carouselInjectionKey.js +4 -0
- package/dist/Components/Carousel/composables/useCarousel.d.ts +91 -0
- package/dist/Components/Carousel/composables/useCarousel.js +331 -0
- package/dist/Components/Carousel/index.d.ts +4 -0
- package/dist/Components/Carousel/index.js +4 -0
- package/dist/Components/CarouselSlide/CarouselSlide.js +5 -0
- package/dist/Components/CarouselSlide/CarouselSlide.vue.d.ts +11 -0
- package/dist/Components/CarouselSlide/CarouselSlide.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/CarouselSlide/carouselSlide.types.d.ts +40 -0
- package/dist/Components/CarouselSlide/composables/useCarouselSlide.d.ts +205 -0
- package/dist/Components/CarouselSlide/composables/useCarouselSlide.js +79 -0
- package/dist/Components/CarouselSlide/index.d.ts +3 -0
- package/dist/Components/CarouselSlide/index.js +3 -0
- package/dist/Components/ColorPicker/composables/useColorPicker.js +1 -1
- package/dist/Components/DataTable/DataTable.vue.d.ts +1 -1
- package/dist/Components/DataTable/composables/useDataTable.d.ts +1 -1
- package/dist/Components/DataTable/composables/useDataTable.js +288 -282
- package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
- package/dist/Components/Drawer/composables/useDrawer.js +2 -2
- package/dist/Components/FileUpload/FileUpload.js +5 -0
- package/dist/Components/FileUpload/FileUpload.vue.d.ts +26 -0
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +141 -0
- package/dist/Components/FileUpload/composables/useFileUpload.d.ts +120 -0
- package/dist/Components/FileUpload/composables/useFileUpload.js +235 -0
- package/dist/Components/FileUpload/fileUpload.types.d.ts +396 -0
- package/dist/Components/FileUpload/fileUploadInjectionKey.d.ts +61 -0
- package/dist/Components/FileUpload/fileUploadInjectionKey.js +4 -0
- package/dist/Components/FileUpload/index.d.ts +3 -0
- package/dist/Components/FileUpload/index.js +3 -0
- package/dist/Components/FileUploadItem/FileUploadItem.js +5 -0
- package/dist/Components/FileUploadItem/FileUploadItem.vue.d.ts +12 -0
- package/dist/Components/FileUploadItem/FileUploadItem.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/Components/FileUploadItem/composables/useFileUploadItem.d.ts +1153 -0
- package/dist/Components/FileUploadItem/composables/useFileUploadItem.js +94 -0
- package/dist/Components/FileUploadItem/fileUploadItem.types.d.ts +20 -0
- package/dist/Components/FileUploadItem/index.d.ts +3 -0
- package/dist/Components/FileUploadItem/index.js +3 -0
- package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
- package/dist/Components/Link/Link.vue.d.ts +17 -8
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +30 -25
- package/dist/Components/Link/composables/useLink.d.ts +8 -6
- package/dist/Components/Link/composables/useLink.js +52 -45
- package/dist/Components/Link/link.types.d.ts +21 -4
- package/dist/Components/ListItem/ListItem.vue.d.ts +17 -15
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/ListItem/composables/useListItem.d.ts +7 -6
- package/dist/Components/ListItem/composables/useListItem.js +108 -105
- package/dist/Components/ListItem/listItem.types.d.ts +19 -3
- package/dist/Components/Listbox/composables/useListbox.d.ts +2 -2
- package/dist/Components/Menu/composables/useMenu.js +6 -6
- package/dist/Components/Modal/composables/useModal.d.ts +1 -1
- package/dist/Components/Modal/composables/useModal.js +2 -2
- package/dist/Components/Pagination/composables/usePagination.d.ts +1 -1
- package/dist/Components/RichTextEditor/RichTextEditor.js +5 -0
- package/dist/Components/RichTextEditor/RichTextEditor.vue.d.ts +23 -0
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +488 -0
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +226 -0
- package/dist/Components/RichTextEditor/index.d.ts +3 -0
- package/dist/Components/RichTextEditor/index.js +3 -0
- package/dist/Components/RichTextEditor/richTextEditor.types.d.ts +103 -0
- package/dist/Components/Select/composables/useSelect.js +2 -2
- package/dist/Components/Sidebar/SidebarListItem.vue.d.ts +17 -9
- package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/Sidebar/composables/useSidebarListItem.js +1 -1
- package/dist/Components/Sidebar/composables/useSidebarTrigger.d.ts +1 -1
- package/dist/Components/Sidebar/sidebar.types.d.ts +2 -1
- package/dist/Components/Snackbar/composables/useSnackbar.js +1 -1
- package/dist/Components/Textarea/composables/useTextarea.js +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.js +3 -3
- package/dist/Utils/linkAs.d.ts +29 -0
- package/dist/Utils/linkAs.js +18 -0
- package/dist/augments.d.ts +19 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +181 -170
- package/dist/theme.css +3 -0
- package/docs/README.md +4 -0
- package/docs/components/Breadcrumb.md +16 -0
- package/docs/components/BridgeUIProvider.md +18 -1
- package/docs/components/Button.md +31 -19
- package/docs/components/Carousel.md +113 -0
- package/docs/components/DataTable.md +1 -1
- package/docs/components/FileUpload.md +197 -0
- package/docs/components/Link.md +28 -12
- package/docs/components/List.md +21 -19
- package/docs/components/RichTextEditor.md +88 -0
- package/docs/components/Sidebar.md +1 -1
- package/package.json +54 -18
|
@@ -1,136 +1,142 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
|
-
import { computed as r, getCurrentInstance as i, onBeforeUnmount as a, ref as
|
|
3
|
-
import { compact as
|
|
4
|
-
import { DATATABLE_EXPAND_COLUMN_ID as u, DATATABLE_SELECTION_COLUMN_ID as d, getDataTableAriaSort as de, getDataTableColumnAccessor as
|
|
5
|
-
import { tableVariantProps as
|
|
6
|
-
import { cn as
|
|
7
|
-
import {
|
|
2
|
+
import { computed as r, getCurrentInstance as i, onBeforeUnmount as a, ref as o, useAttrs as ee, useSlots as te } from "vue";
|
|
3
|
+
import { compact as ne, fromPairs as re, get as s, head as ie, isArray as ae, isEmpty as oe, isFunction as c, isNil as se, isString as ce, keyBy as le, map as l, omit as ue } from "es-toolkit/compat";
|
|
4
|
+
import { DATATABLE_EXPAND_COLUMN_ID as u, DATATABLE_SELECTION_COLUMN_ID as d, getDataTableAriaSort as de, getDataTableColumnAccessor as f, getDataTableColumnCssWidth as fe, getDataTableColumnFilterValues as pe, getDataTableColumnSearch as me, getDataTableDefaultCellContent as he, getDataTableFooterLayout as ge, getDataTablePerPageSelectOptions as _e, getDataTableResolvedPageCount as ve, getDataTableResolvedPerPage as ye, getDataTableSelectAllState as be, getDataTableSelectionTotal as xe, getDataTableSortIcon as Se, getDataTableStickyInsets as Ce, getDataTableStickyPing as we, isDataTableClientPaged as Te, isDataTableColumnFilterable as Ee, isDataTableColumnFiltered as De, isDataTableColumnSearchable as Oe, isDataTableColumnSearched as ke, isDataTableExpandEnabled as Ae, isDataTablePerPageEnabled as je, isDataTableSearchEnabled as Me, isDataTableSelectionEnabled as Ne, isDataTableSelectionMultiple as Pe, isDataTableServerPaged as Fe, isDataTableStickyHeader as Ie, isDataTableStickyHeaderBoxed as Le, isDataTableVisibilityEnabled as Re, observeDataTablePaginationInline as ze, resolveDataTableRowId as Be, rowMatchesDataTableColumnSearch as Ve, rowMatchesDataTableToolbarSearch as He, rowSelectionToIds as Ue, selectionToRowSelection as We, setDataTableColumnFilter as Ge, setDataTableColumnSearch as Ke, setDataTableRowSelection as qe, sliceDataTablePage as Je, toggleDataTableColumnVisibility as Ye, toggleDataTablePageSelection as Xe, toggleDataTableRowExpansion as Ze, toggleDataTableSorting as Qe } from "@bridge-ui/core/Domain";
|
|
5
|
+
import { tableVariantProps as $e } from "@bridge-ui/core/Tokens";
|
|
6
|
+
import { cn as p, mergeBridgeUILayeredClasses as et, splitComponentProps as tt } from "@bridge-ui/core/Utils";
|
|
7
|
+
import { columnFilteringFeature as nt, columnVisibilityFeature as rt, createFilteredRowModel as m, createSortedRowModel as h, rowSelectionFeature as g, rowSortingFeature as _, sortFn_alphanumeric as v, sortFn_datetime as y, sortFn_text as b, tableFeatures as x, useTable as it } from "@tanstack/vue-table";
|
|
8
8
|
//#region src/Components/DataTable/composables/useDataTable.ts
|
|
9
|
-
var
|
|
9
|
+
var at = /* @__PURE__ */ "full.page.rows.size.search.classes.columns.filters.loading.perPage.rounded.sorting.striped.variant.expanded.getRowId.hoverable.pageCount.selection.showSearch.totalCount.customProps.columnSearch.stickyHeader.filterOverlay.hiddenColumns.selectionMode.columnsOverlay.loadingVariant.perPageOptions.columnsShowFooter.showColumnVisibility".split("."), ot = {
|
|
10
10
|
enableHiding: !1,
|
|
11
11
|
enableSorting: !1,
|
|
12
12
|
cell: () => null,
|
|
13
13
|
header: () => null
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
}, st = [], ct = [], lt = [], ut = x({
|
|
15
|
+
rowSortingFeature: _,
|
|
16
|
+
rowSelectionFeature: g,
|
|
17
|
+
columnFilteringFeature: nt,
|
|
18
|
+
columnVisibilityFeature: rt,
|
|
19
|
+
sortedRowModel: h(),
|
|
20
|
+
filteredRowModel: m(),
|
|
21
|
+
sortFns: {
|
|
22
|
+
text: b,
|
|
23
|
+
datetime: y,
|
|
24
|
+
alphanumeric: v
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
function S(nt, rt, m) {
|
|
28
|
+
let h = ee(), g = te(), _ = i(), v = r(() => tt({
|
|
29
|
+
bridgeKeys: at,
|
|
18
30
|
props: {
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
page:
|
|
22
|
-
perPage:
|
|
23
|
-
filters:
|
|
24
|
-
sorting:
|
|
25
|
-
expanded:
|
|
26
|
-
selection:
|
|
27
|
-
columnSearch:
|
|
28
|
-
hiddenColumns:
|
|
31
|
+
...h,
|
|
32
|
+
...nt,
|
|
33
|
+
page: m.page.value,
|
|
34
|
+
perPage: m.perPage.value,
|
|
35
|
+
filters: m.filters.value,
|
|
36
|
+
sorting: m.sorting.value,
|
|
37
|
+
expanded: m.expanded.value,
|
|
38
|
+
selection: m.selection.value,
|
|
39
|
+
columnSearch: m.columnSearch.value,
|
|
40
|
+
hiddenColumns: m.hiddenColumns.value
|
|
29
41
|
}
|
|
30
|
-
})), { merged:
|
|
31
|
-
libDefaults:
|
|
42
|
+
})), { merged: y, components: b, entry: x } = t({
|
|
43
|
+
libDefaults: rt,
|
|
32
44
|
componentName: "DataTable",
|
|
33
|
-
props: () =>
|
|
34
|
-
}),
|
|
35
|
-
entry:
|
|
36
|
-
props: () =>
|
|
37
|
-
}),
|
|
45
|
+
props: () => v.value.componentProps
|
|
46
|
+
}), S = r(() => y.value.customProps), dt = r(() => ue(v.value.inheritedAttrs, ["children"])), C = n({
|
|
47
|
+
entry: x,
|
|
48
|
+
props: () => v.value.componentProps
|
|
49
|
+
}), ft = r(() => et($e, s(b.value, [
|
|
38
50
|
"Table",
|
|
39
51
|
"tokens",
|
|
40
52
|
"variant"
|
|
41
|
-
]))),
|
|
42
|
-
id:
|
|
43
|
-
desc:
|
|
44
|
-
}] : []),
|
|
53
|
+
]))), w = r(() => s(ft.value, y.value.variant)), T = r(() => y.value.columns ?? ct), E = r(() => le(T.value, "id")), pt = r(() => y.value.rows ?? st), D = r(() => Ne(m.selection.value, h["onUpdate:selection"] !== void 0)), mt = r(() => Ae(m.expanded.value, h["onUpdate:expanded"] !== void 0, g.expanded !== void 0)), O = r(() => Re(m.hiddenColumns.value, h["onUpdate:hiddenColumns"] !== void 0, y.value.showColumnVisibility)), k = r(() => Pe(y.value.selectionMode)), A = r(() => Fe(m.page.value, y.value.pageCount, y.value.totalCount)), j = r(() => Te(m.page.value, m.perPage.value, y.value.pageCount, y.value.totalCount)), M = r(() => ye(m.perPage.value)), N = r(() => Ie(y.value.stickyHeader)), P = r(() => Le(y.value.stickyHeader)), ht = r(() => m.sorting.value ? [{
|
|
54
|
+
id: m.sorting.value.id,
|
|
55
|
+
desc: m.sorting.value.desc
|
|
56
|
+
}] : []), gt = r(() => l(m.filters.value ?? {}, (e, t) => ({
|
|
45
57
|
id: t,
|
|
46
58
|
value: e
|
|
47
|
-
}))),
|
|
48
|
-
let e =
|
|
59
|
+
}))), _t = r(() => We(m.selection.value)), F = r(() => m.hiddenColumns.value ?? lt), vt = r(() => re(F.value.map((e) => [e, !1]))), yt = r(() => {
|
|
60
|
+
let e = T.value.map((e) => ({
|
|
49
61
|
id: e.id,
|
|
50
62
|
enableSorting: e.sortable === !0,
|
|
51
63
|
enableHiding: e.hideable !== !1,
|
|
52
|
-
enableColumnFilter:
|
|
64
|
+
enableColumnFilter: Ee(e),
|
|
53
65
|
header: () => e.header,
|
|
54
66
|
cell: (t) => e.cell?.(t.row.original) ?? null,
|
|
55
|
-
accessorFn: (t) =>
|
|
67
|
+
accessorFn: (t) => f(t, e),
|
|
56
68
|
filterFn: (e, t, n) => {
|
|
57
69
|
let r = ae(n) ? n : [];
|
|
58
70
|
return oe(r) ? !0 : r.includes(String(e.getValue(t) ?? ""));
|
|
59
71
|
}
|
|
60
72
|
}));
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
...
|
|
73
|
+
return ne([
|
|
74
|
+
D.value ? {
|
|
75
|
+
...ot,
|
|
64
76
|
id: d
|
|
65
77
|
} : void 0,
|
|
66
|
-
|
|
67
|
-
...
|
|
78
|
+
mt.value ? {
|
|
79
|
+
...ot,
|
|
68
80
|
id: u
|
|
69
81
|
} : void 0,
|
|
70
82
|
...e
|
|
71
83
|
]);
|
|
72
|
-
}),
|
|
73
|
-
data:
|
|
84
|
+
}), bt = it({
|
|
85
|
+
data: pt,
|
|
74
86
|
enableSortingRemoval: !0,
|
|
75
|
-
|
|
87
|
+
features: ut,
|
|
76
88
|
get columns() {
|
|
77
|
-
return
|
|
89
|
+
return yt.value;
|
|
78
90
|
},
|
|
79
91
|
get manualSorting() {
|
|
80
|
-
return
|
|
92
|
+
return A.value;
|
|
81
93
|
},
|
|
82
94
|
get manualFiltering() {
|
|
83
|
-
return
|
|
95
|
+
return A.value;
|
|
84
96
|
},
|
|
85
97
|
get enableHiding() {
|
|
86
|
-
return
|
|
98
|
+
return O.value;
|
|
87
99
|
},
|
|
88
100
|
get enableRowSelection() {
|
|
89
|
-
return
|
|
101
|
+
return D.value;
|
|
90
102
|
},
|
|
91
103
|
get enableMultiRowSelection() {
|
|
92
|
-
return
|
|
93
|
-
},
|
|
94
|
-
get getSortedRowModel() {
|
|
95
|
-
return k.value ? void 0 : ut;
|
|
96
|
-
},
|
|
97
|
-
getRowId: (e, t) => Ve(e, t, b.value.getRowId),
|
|
98
|
-
get getFilteredRowModel() {
|
|
99
|
-
return k.value ? void 0 : dt;
|
|
104
|
+
return k.value;
|
|
100
105
|
},
|
|
106
|
+
getRowId: (e, t) => Be(e, t, y.value.getRowId),
|
|
101
107
|
onRowSelectionChange: (e) => {
|
|
102
|
-
let t = c(e) ? e(
|
|
103
|
-
|
|
108
|
+
let t = c(e) ? e(_t.value) : e;
|
|
109
|
+
m.selection.value = Ue(t);
|
|
104
110
|
},
|
|
105
111
|
onSortingChange: (e) => {
|
|
106
|
-
let t = c(e) ? e(
|
|
107
|
-
|
|
112
|
+
let t = c(e) ? e(ht.value) : e, n = ie(t);
|
|
113
|
+
m.sorting.value = n ? {
|
|
108
114
|
id: n.id,
|
|
109
115
|
desc: n.desc
|
|
110
116
|
} : null;
|
|
111
117
|
},
|
|
112
118
|
state: {
|
|
113
119
|
get sorting() {
|
|
114
|
-
return
|
|
120
|
+
return ht.value;
|
|
115
121
|
},
|
|
116
122
|
get rowSelection() {
|
|
117
|
-
return
|
|
123
|
+
return _t.value;
|
|
118
124
|
},
|
|
119
125
|
get columnFilters() {
|
|
120
|
-
return
|
|
126
|
+
return gt.value;
|
|
121
127
|
},
|
|
122
128
|
get columnVisibility() {
|
|
123
|
-
return
|
|
129
|
+
return vt.value;
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
|
-
}),
|
|
127
|
-
let e =
|
|
128
|
-
if (
|
|
129
|
-
let t =
|
|
130
|
-
return e.filter((e) =>
|
|
131
|
-
}),
|
|
132
|
-
let e = (
|
|
133
|
-
let t =
|
|
132
|
+
}), I = r(() => {
|
|
133
|
+
let e = bt.getRowModel().rows;
|
|
134
|
+
if (A.value) return e;
|
|
135
|
+
let t = m.search.value ?? "", n = F.value;
|
|
136
|
+
return e.filter((e) => Ve(e.original, T.value, m.columnSearch.value, n) ? He(e.original, T.value, t, n) : !1);
|
|
137
|
+
}), L = r(() => j.value ? Je(I.value, m.page.value ?? 1, M.value) : I.value), R = r(() => l(L.value, "id")), xt = r(() => be(R.value, m.selection.value ?? [])), z = r(() => {
|
|
138
|
+
let e = (ie(bt.getHeaderGroups())?.headers ?? []).map((e) => {
|
|
139
|
+
let t = s(E.value, e.column.id);
|
|
134
140
|
return {
|
|
135
141
|
column: t,
|
|
136
142
|
id: e.column.id,
|
|
@@ -139,9 +145,9 @@ function g(p, m, h) {
|
|
|
139
145
|
isExpand: e.column.id === u,
|
|
140
146
|
isSelection: e.column.id === d
|
|
141
147
|
};
|
|
142
|
-
}), t =
|
|
148
|
+
}), t = Ce(e, N.value ? 20 : 10);
|
|
143
149
|
return e.map((e) => {
|
|
144
|
-
let n =
|
|
150
|
+
let n = s(t, e.id), r = e.column?.sortable ? de(m.sorting.value ?? null, e.id) : "none";
|
|
145
151
|
return {
|
|
146
152
|
ariaSort: r,
|
|
147
153
|
id: e.id,
|
|
@@ -156,32 +162,32 @@ function g(p, m, h) {
|
|
|
156
162
|
stickyEdge: n?.edge === !0,
|
|
157
163
|
ellipsis: e.column?.ellipsis === !0,
|
|
158
164
|
sortable: e.column?.sortable === !0,
|
|
159
|
-
sortIcon:
|
|
165
|
+
sortIcon: Se(r),
|
|
160
166
|
hideable: e.column?.hideable !== !1,
|
|
161
167
|
filterOptions: e.column?.filters ?? [],
|
|
162
|
-
filterable:
|
|
163
|
-
searchable:
|
|
168
|
+
filterable: Ee(e.column),
|
|
169
|
+
searchable: Oe(e.column),
|
|
164
170
|
filterMultiple: e.column?.filterMultiple !== !1,
|
|
165
|
-
searchQuery:
|
|
166
|
-
filterValues:
|
|
167
|
-
filterActive:
|
|
171
|
+
searchQuery: me(m.columnSearch.value, e.id),
|
|
172
|
+
filterValues: pe(m.filters.value, e.id),
|
|
173
|
+
filterActive: De(m.filters.value, e.id) || ke(m.columnSearch.value, e.id)
|
|
168
174
|
};
|
|
169
175
|
});
|
|
170
|
-
}),
|
|
171
|
-
let e =
|
|
176
|
+
}), B = r(() => {
|
|
177
|
+
let e = Ce(z.value.map((e) => ({
|
|
172
178
|
id: e.id,
|
|
173
179
|
width: e.width,
|
|
174
180
|
sticky: e.sticky,
|
|
175
181
|
isExpand: e.isExpand,
|
|
176
182
|
isSelection: e.isSelection
|
|
177
183
|
})), 1);
|
|
178
|
-
return
|
|
184
|
+
return L.value.map((t) => ({
|
|
179
185
|
id: t.id,
|
|
180
186
|
original: t.original,
|
|
181
|
-
expanded: (
|
|
182
|
-
selected: (
|
|
187
|
+
expanded: (m.expanded.value ?? []).includes(t.id),
|
|
188
|
+
selected: (m.selection.value ?? []).includes(t.id),
|
|
183
189
|
cells: t.getVisibleCells().map((n) => {
|
|
184
|
-
let r =
|
|
190
|
+
let r = s(E.value, n.column.id), i = s(e, n.column.id), a = r ? f(t.original, r) : void 0;
|
|
185
191
|
return {
|
|
186
192
|
tooltip: r?.ellipsis === !0 && !se(a) && a !== "" ? String(a) : void 0,
|
|
187
193
|
value: a,
|
|
@@ -195,108 +201,108 @@ function g(p, m, h) {
|
|
|
195
201
|
ellipsis: r?.ellipsis === !0,
|
|
196
202
|
isExpand: n.column.id === u,
|
|
197
203
|
isSelection: n.column.id === d,
|
|
198
|
-
content: r?.cell ? r.cell(t.original) :
|
|
204
|
+
content: r?.cell ? r.cell(t.original) : he(a)
|
|
199
205
|
};
|
|
200
206
|
})
|
|
201
207
|
}));
|
|
202
|
-
}),
|
|
203
|
-
perPage:
|
|
204
|
-
clientPaged:
|
|
205
|
-
pageCount:
|
|
206
|
-
totalCount:
|
|
207
|
-
filteredCount:
|
|
208
|
-
})),
|
|
208
|
+
}), St = r(() => z.value.length), V = r(() => je(m.perPage.value, _?.vnode.props?.["onUpdate:perPage"] !== void 0, !!g.perPage)), H = r(() => ve({
|
|
209
|
+
perPage: m.perPage.value,
|
|
210
|
+
clientPaged: j.value,
|
|
211
|
+
pageCount: y.value.pageCount,
|
|
212
|
+
totalCount: y.value.totalCount,
|
|
213
|
+
filteredCount: I.value.length
|
|
214
|
+
})), U = r(() => D.value), W = r(() => !!g.pagination || H.value !== void 0), Ct = r(() => U.value || W.value || V.value), wt = r(() => B.value.length === 0), Tt = r(() => e(S.value?.root, dt.value, { class: p({ [P.value ? "" : s(C.value, "root") ?? ""]: !0 }) })), Et = r(() => z.value.some((e) => !!e.stickyStyle)), G = o({
|
|
209
215
|
end: !1,
|
|
210
216
|
start: !1
|
|
211
|
-
}),
|
|
212
|
-
function
|
|
213
|
-
let t = e ?
|
|
217
|
+
}), K;
|
|
218
|
+
function q(e) {
|
|
219
|
+
let t = e ? we(e.scrollLeft, e.scrollWidth, e.clientWidth) : {
|
|
214
220
|
end: !1,
|
|
215
221
|
start: !1
|
|
216
222
|
};
|
|
217
|
-
(
|
|
223
|
+
(G.value.end !== t.end || G.value.start !== t.start) && (G.value = t);
|
|
218
224
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}),
|
|
225
|
+
function J(e) {
|
|
226
|
+
K?.disconnect(), K = void 0, q(e), e && typeof ResizeObserver < "u" && (K = new ResizeObserver(() => {
|
|
227
|
+
q(e);
|
|
228
|
+
}), K.observe(e));
|
|
223
229
|
}
|
|
224
|
-
let
|
|
225
|
-
function
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
let Y = o(!1), X;
|
|
231
|
+
function Z(e) {
|
|
232
|
+
X?.(), X = void 0, e && (X = ze(e, (e) => {
|
|
233
|
+
Y.value !== e && (Y.value = e);
|
|
228
234
|
}));
|
|
229
235
|
}
|
|
230
|
-
function
|
|
236
|
+
function Dt(e) {
|
|
231
237
|
let t = e.el;
|
|
232
|
-
|
|
238
|
+
Z(t instanceof HTMLElement ? t : null);
|
|
233
239
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
240
|
+
function Ot() {
|
|
241
|
+
Z(null);
|
|
236
242
|
}
|
|
237
|
-
function
|
|
238
|
-
let t =
|
|
243
|
+
function kt(e) {
|
|
244
|
+
let t = S.value?.wrapper?.onScroll;
|
|
239
245
|
c(t) && t(e);
|
|
240
246
|
let n = e.currentTarget;
|
|
241
|
-
n instanceof HTMLElement &&
|
|
247
|
+
n instanceof HTMLElement && q(n);
|
|
242
248
|
}
|
|
243
|
-
function
|
|
244
|
-
let n =
|
|
249
|
+
function Q(e, t) {
|
|
250
|
+
let n = S.value?.wrapper?.[e];
|
|
245
251
|
c(n) && n(t);
|
|
246
252
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
253
|
+
function At(e) {
|
|
254
|
+
Q("onVnodeMounted", e);
|
|
249
255
|
let t = e.el;
|
|
250
|
-
|
|
256
|
+
J(t instanceof HTMLElement ? t : null);
|
|
251
257
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
258
|
+
function jt(e) {
|
|
259
|
+
Q("onVnodeUnmounted", e), J(null);
|
|
254
260
|
}
|
|
255
261
|
a(() => {
|
|
256
|
-
|
|
262
|
+
J(null), Z(null);
|
|
257
263
|
});
|
|
258
|
-
let
|
|
259
|
-
size:
|
|
260
|
-
variant:
|
|
261
|
-
rounded:
|
|
262
|
-
full:
|
|
263
|
-
striped:
|
|
264
|
-
stickyHeader:
|
|
265
|
-
hoverable:
|
|
264
|
+
let Mt = r(() => ({
|
|
265
|
+
size: y.value.size,
|
|
266
|
+
variant: y.value.variant,
|
|
267
|
+
rounded: y.value.rounded,
|
|
268
|
+
full: y.value.full !== !1,
|
|
269
|
+
striped: y.value.striped === !0,
|
|
270
|
+
stickyHeader: N.value,
|
|
271
|
+
hoverable: y.value.hoverable === !0,
|
|
266
272
|
customProps: {
|
|
267
273
|
table: {
|
|
268
|
-
...
|
|
269
|
-
"aria-busy":
|
|
274
|
+
...S.value?.table,
|
|
275
|
+
"aria-busy": y.value.loading || void 0
|
|
270
276
|
},
|
|
271
277
|
root: {
|
|
272
|
-
...
|
|
273
|
-
onScroll:
|
|
274
|
-
onVnodeMounted:
|
|
275
|
-
onVnodeUnmounted:
|
|
278
|
+
...S.value?.wrapper,
|
|
279
|
+
onScroll: kt,
|
|
280
|
+
onVnodeMounted: At,
|
|
281
|
+
onVnodeUnmounted: jt
|
|
276
282
|
}
|
|
277
283
|
},
|
|
278
284
|
classes: {
|
|
279
|
-
row:
|
|
280
|
-
body:
|
|
281
|
-
cell:
|
|
282
|
-
head:
|
|
283
|
-
header:
|
|
284
|
-
"relative z-40":
|
|
285
|
-
[
|
|
285
|
+
row: s(C.value, "row"),
|
|
286
|
+
body: s(C.value, "body"),
|
|
287
|
+
cell: s(C.value, "cell"),
|
|
288
|
+
head: s(C.value, "head"),
|
|
289
|
+
header: p({
|
|
290
|
+
"relative z-40": y.value.loading && y.value.loadingVariant === "bar",
|
|
291
|
+
[s(C.value, "header") ?? ""]: !0
|
|
286
292
|
}),
|
|
287
|
-
table:
|
|
288
|
-
"border-separate border-spacing-0":
|
|
289
|
-
[
|
|
293
|
+
table: p({
|
|
294
|
+
"border-separate border-spacing-0": Et.value && !N.value,
|
|
295
|
+
[s(C.value, "table") ?? ""]: !0
|
|
290
296
|
}),
|
|
291
|
-
root:
|
|
292
|
-
"overflow-auto":
|
|
293
|
-
[
|
|
294
|
-
[
|
|
297
|
+
root: p({
|
|
298
|
+
"overflow-auto": P.value,
|
|
299
|
+
[s(C.value, "wrapper") ?? ""]: !0,
|
|
300
|
+
[P.value ? s(C.value, "root") ?? "" : ""]: !0
|
|
295
301
|
})
|
|
296
302
|
}
|
|
297
303
|
}));
|
|
298
|
-
function
|
|
299
|
-
let n =
|
|
304
|
+
function Nt(e, t = !1) {
|
|
305
|
+
let n = fe(e.width, e.isExpand || e.isSelection), r = t && N.value;
|
|
300
306
|
return {
|
|
301
307
|
...n ? {
|
|
302
308
|
width: n,
|
|
@@ -311,70 +317,70 @@ function g(p, m, h) {
|
|
|
311
317
|
} : {}
|
|
312
318
|
};
|
|
313
319
|
}
|
|
314
|
-
function
|
|
320
|
+
function Pt(e) {
|
|
315
321
|
return e.isSelection || e.isExpand ? "center" : e.align ?? "start";
|
|
316
322
|
}
|
|
317
|
-
function
|
|
323
|
+
function Ft(e) {
|
|
318
324
|
return e.isSelection || e.isExpand ? "center" : e.align ?? "start";
|
|
319
325
|
}
|
|
320
|
-
function
|
|
326
|
+
function It(t) {
|
|
321
327
|
let n = t.isSelection || t.isExpand;
|
|
322
|
-
return e(
|
|
323
|
-
style:
|
|
328
|
+
return e(S.value?.head, {}, {
|
|
329
|
+
style: Nt(t, !0),
|
|
324
330
|
"aria-sort": t.sortable ? t.ariaSort : void 0,
|
|
325
|
-
class:
|
|
331
|
+
class: p({
|
|
326
332
|
"min-w-0": !0,
|
|
327
333
|
"border-e-0": n,
|
|
328
334
|
"sticky z-20": !!t.stickyStyle,
|
|
329
335
|
"after:hidden": n,
|
|
330
|
-
[
|
|
331
|
-
[
|
|
336
|
+
[s(w.value, "cellStickyEdgeStart") ?? ""]: t.sticky === "start" && t.stickyEdge && G.value.start,
|
|
337
|
+
[s(w.value, "cellStickyEdgeEnd") ?? ""]: t.sticky === "end" && t.stickyEdge && G.value.end,
|
|
332
338
|
[t.classes?.header ?? ""]: !0
|
|
333
339
|
})
|
|
334
340
|
});
|
|
335
341
|
}
|
|
336
|
-
function
|
|
342
|
+
function Lt(t) {
|
|
337
343
|
let n = t.isSelection || t.isExpand;
|
|
338
|
-
return e(
|
|
339
|
-
style:
|
|
340
|
-
class:
|
|
344
|
+
return e(S.value?.cell, {}, {
|
|
345
|
+
style: Nt(t),
|
|
346
|
+
class: p({
|
|
341
347
|
"min-w-0": !0,
|
|
342
348
|
"border-e-0": n,
|
|
343
349
|
"after:hidden": n,
|
|
344
|
-
[
|
|
345
|
-
[
|
|
346
|
-
[
|
|
350
|
+
[s(w.value, "cellSticky") ?? ""]: !!t.stickyStyle,
|
|
351
|
+
[s(w.value, "cellStickyEdgeStart") ?? ""]: t.sticky === "start" && t.stickyEdge && G.value.start,
|
|
352
|
+
[s(w.value, "cellStickyEdgeEnd") ?? ""]: t.sticky === "end" && t.stickyEdge && G.value.end,
|
|
347
353
|
[t.classes?.cell ?? ""]: !0
|
|
348
354
|
})
|
|
349
355
|
});
|
|
350
356
|
}
|
|
351
|
-
let
|
|
357
|
+
let Rt = r(() => e(S.value?.toolbar, {}, { class: p({
|
|
352
358
|
"flex items-center justify-between gap-3 pb-3": !0,
|
|
353
|
-
[
|
|
354
|
-
}) })),
|
|
359
|
+
[s(C.value, "toolbar") ?? ""]: !0
|
|
360
|
+
}) })), zt = r(() => e(S.value?.empty, {}, { class: p({
|
|
355
361
|
"w-full": !0,
|
|
356
|
-
[
|
|
357
|
-
}) })),
|
|
362
|
+
[s(C.value, "empty") ?? ""]: !0
|
|
363
|
+
}) })), Bt = r(() => e(S.value?.loading, {}, { class: p({
|
|
358
364
|
"absolute inset-0 z-30 bg-white/50 dark:bg-dark-900/50": !0,
|
|
359
|
-
"flex items-center justify-center":
|
|
360
|
-
[
|
|
361
|
-
}) })),
|
|
362
|
-
"w-0 min-w-full":
|
|
365
|
+
"flex items-center justify-center": y.value.loadingVariant !== "bar",
|
|
366
|
+
[s(C.value, "loading") ?? ""]: !0
|
|
367
|
+
}) })), Vt = r(() => e({}, {}, { class: p({ "pointer-events-none absolute inset-x-0 top-0 z-40": !0 }) })), Ht = r(() => e({}, {}, { class: p({ "w-fit min-w-0 max-w-full": y.value.full === !1 }) })), Ut = r(() => e(S.value?.footer, {}, { class: p({
|
|
368
|
+
"w-0 min-w-full": y.value.full === !1,
|
|
363
369
|
"border-t border-dark-200 bg-dark-50 px-3 py-2.5 text-sm text-dark-600 dark:border-dark-700 dark:bg-dark-800 dark:text-dark-300": !0,
|
|
364
|
-
[
|
|
365
|
-
}) })), $ = r(() =>
|
|
366
|
-
showPager:
|
|
367
|
-
showPerPage:
|
|
368
|
-
inline:
|
|
369
|
-
showSelected:
|
|
370
|
-
})),
|
|
370
|
+
[s(C.value, "footer") ?? ""]: !0
|
|
371
|
+
}) })), $ = r(() => ge({
|
|
372
|
+
showPager: W.value,
|
|
373
|
+
showPerPage: V.value,
|
|
374
|
+
inline: Y.value,
|
|
375
|
+
showSelected: U.value
|
|
376
|
+
})), Wt = r(() => e(S.value?.selected, {}, { class: p({
|
|
371
377
|
grow: !$.value.stack,
|
|
372
378
|
"whitespace-nowrap text-sm text-dark-500 dark:text-dark-400": !0,
|
|
373
|
-
[
|
|
374
|
-
}) })),
|
|
375
|
-
onVnodeMounted:
|
|
376
|
-
onVnodeUnmounted:
|
|
377
|
-
class:
|
|
379
|
+
[s(C.value, "selected") ?? ""]: !0
|
|
380
|
+
}) })), Gt = r(() => e({}, {}, {
|
|
381
|
+
onVnodeMounted: Dt,
|
|
382
|
+
onVnodeUnmounted: Ot,
|
|
383
|
+
class: p({
|
|
378
384
|
"flex items-center gap-3 py-3 [&>*]:shrink-0": !0,
|
|
379
385
|
"flex-col": $.value.stack,
|
|
380
386
|
"flex-row": !$.value.stack,
|
|
@@ -382,61 +388,61 @@ function g(p, m, h) {
|
|
|
382
388
|
"justify-end": $.value.justify === "end",
|
|
383
389
|
"justify-between": $.value.justify === "between",
|
|
384
390
|
"justify-start": $.value.justify === "start",
|
|
385
|
-
"w-full":
|
|
386
|
-
"w-0 min-w-full":
|
|
387
|
-
[
|
|
391
|
+
"w-full": y.value.full !== !1,
|
|
392
|
+
"w-0 min-w-full": y.value.full === !1,
|
|
393
|
+
[s(C.value, "pagination") ?? ""]: !0
|
|
388
394
|
})
|
|
389
395
|
}));
|
|
390
|
-
function
|
|
391
|
-
|
|
396
|
+
function Kt(e) {
|
|
397
|
+
m.sorting.value = Qe(m.sorting.value ?? null, e);
|
|
392
398
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
399
|
+
function qt(e, t) {
|
|
400
|
+
m.selection.value = qe(m.selection.value ?? [], e, t, y.value.selectionMode);
|
|
395
401
|
}
|
|
396
|
-
function
|
|
397
|
-
|
|
402
|
+
function Jt(e) {
|
|
403
|
+
m.perPage.value = e, m.page.value !== 1 && (m.page.value = 1);
|
|
398
404
|
}
|
|
399
|
-
function
|
|
400
|
-
|
|
405
|
+
function Yt(e) {
|
|
406
|
+
m.search.value = e, m.page.value !== 1 && (m.page.value = 1);
|
|
401
407
|
}
|
|
402
|
-
let
|
|
403
|
-
page:
|
|
404
|
-
count:
|
|
408
|
+
let Xt = r(() => ({
|
|
409
|
+
page: m.page.value ?? 1,
|
|
410
|
+
count: H.value ?? 1,
|
|
405
411
|
onPageChange: (e) => {
|
|
406
|
-
|
|
412
|
+
m.page.value = e;
|
|
407
413
|
}
|
|
408
|
-
})),
|
|
409
|
-
perPage:
|
|
410
|
-
onPerPageChange:
|
|
411
|
-
options:
|
|
412
|
-
})),
|
|
413
|
-
selectedCount: (
|
|
414
|
-
totalCount:
|
|
415
|
-
totalCount:
|
|
416
|
-
filteredCount:
|
|
414
|
+
})), Zt = r(() => ({
|
|
415
|
+
perPage: M.value,
|
|
416
|
+
onPerPageChange: Jt,
|
|
417
|
+
options: _e(M.value, y.value.perPageOptions)
|
|
418
|
+
})), Qt = r(() => ({
|
|
419
|
+
selectedCount: (m.selection.value ?? []).length,
|
|
420
|
+
totalCount: xe({
|
|
421
|
+
totalCount: y.value.totalCount,
|
|
422
|
+
filteredCount: I.value.length
|
|
417
423
|
})
|
|
418
424
|
}));
|
|
419
|
-
function
|
|
420
|
-
|
|
425
|
+
function $t(e) {
|
|
426
|
+
m.selection.value = Xe(m.selection.value ?? [], R.value, e);
|
|
421
427
|
}
|
|
422
|
-
function
|
|
423
|
-
let r =
|
|
424
|
-
r?.filters && r.filters.length > 0 && (
|
|
428
|
+
function en(e, t, n) {
|
|
429
|
+
let r = s(E.value, e);
|
|
430
|
+
r?.filters && r.filters.length > 0 && (m.filters.value = Ge(m.filters.value, e, t)), Oe(r) && (m.columnSearch.value = Ke(m.columnSearch.value, e, n)), m.page.value !== 1 && (m.page.value = 1);
|
|
425
431
|
}
|
|
426
|
-
function
|
|
427
|
-
|
|
432
|
+
function tn(e, t) {
|
|
433
|
+
m.expanded.value = Ze(m.expanded.value ?? [], e, t);
|
|
428
434
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
435
|
+
function nn(e, t) {
|
|
436
|
+
m.hiddenColumns.value = Ye(m.hiddenColumns.value ?? [], e, t, l(T.value, "id"));
|
|
431
437
|
}
|
|
432
|
-
function
|
|
433
|
-
|
|
438
|
+
function rn(e) {
|
|
439
|
+
m.hiddenColumns.value = e;
|
|
434
440
|
}
|
|
435
|
-
let
|
|
436
|
-
if (!
|
|
437
|
-
let e = l(
|
|
438
|
-
return
|
|
439
|
-
let n =
|
|
441
|
+
let an = r(() => {
|
|
442
|
+
if (!T.value.some((e) => e.summary !== void 0)) return null;
|
|
443
|
+
let e = l(I.value, "original");
|
|
444
|
+
return z.value.map((t) => {
|
|
445
|
+
let n = s(E.value, t.id);
|
|
440
446
|
return {
|
|
441
447
|
id: t.id,
|
|
442
448
|
ellipsis: !1,
|
|
@@ -453,64 +459,64 @@ function g(p, m, h) {
|
|
|
453
459
|
content: t.isSelection || t.isExpand ? null : n?.summary?.(e) ?? null
|
|
454
460
|
};
|
|
455
461
|
});
|
|
456
|
-
}),
|
|
462
|
+
}), on = r(() => T.value.map((e) => ({
|
|
457
463
|
id: e.id,
|
|
458
464
|
hideable: e.hideable !== !1,
|
|
459
|
-
hidden:
|
|
465
|
+
hidden: F.value.includes(e.id),
|
|
460
466
|
label: ce(e.header) ? e.header : e.id
|
|
461
|
-
}))),
|
|
467
|
+
}))), sn = r(() => Me(m.search.value, _?.vnode.props?.["onUpdate:search"] !== void 0, g.search !== void 0, y.value.showSearch));
|
|
462
468
|
return {
|
|
463
|
-
merged:
|
|
464
|
-
pageIds:
|
|
465
|
-
rowViews:
|
|
466
|
-
rootBind:
|
|
467
|
-
emptyBind:
|
|
468
|
-
showEmpty:
|
|
469
|
-
frameBind:
|
|
470
|
-
showPager:
|
|
471
|
-
tableProps:
|
|
472
|
-
footerBind:
|
|
473
|
-
showSearch:
|
|
474
|
-
getHeadBind:
|
|
475
|
-
headerViews:
|
|
476
|
-
loadingBind:
|
|
477
|
-
onToggleRow:
|
|
478
|
-
toolbarBind:
|
|
479
|
-
getCellBind:
|
|
480
|
-
columnCount:
|
|
481
|
-
clientPaged:
|
|
482
|
-
serverPaged:
|
|
483
|
-
showPerPage:
|
|
484
|
-
showToolbar: r(() => !!
|
|
485
|
-
selectedBind:
|
|
486
|
-
showSelected:
|
|
487
|
-
getHeadAlign:
|
|
488
|
-
getCellAlign:
|
|
489
|
-
onTogglePage:
|
|
490
|
-
onToggleSort:
|
|
491
|
-
summaryCells:
|
|
492
|
-
showFooterBar:
|
|
493
|
-
expandEnabled:
|
|
494
|
-
onChangeSearch:
|
|
495
|
-
loadingBarBind:
|
|
496
|
-
paginationBind:
|
|
497
|
-
selectAllState:
|
|
498
|
-
onToggleExpand:
|
|
499
|
-
visibilityItems:
|
|
500
|
-
onChangePerPage:
|
|
501
|
-
resolvedPerPage:
|
|
502
|
-
selectionEnabled:
|
|
503
|
-
perPageSlotProps:
|
|
504
|
-
selectedSlotProps:
|
|
505
|
-
resolvedPageCount:
|
|
506
|
-
selectionMultiple:
|
|
507
|
-
visibilityEnabled:
|
|
508
|
-
paginationSlotProps:
|
|
509
|
-
onCommitColumnFilter:
|
|
510
|
-
onHiddenColumnsChange:
|
|
511
|
-
onToggleColumnVisibility:
|
|
512
|
-
loadingBar: r(() =>
|
|
469
|
+
merged: y,
|
|
470
|
+
pageIds: R,
|
|
471
|
+
rowViews: B,
|
|
472
|
+
rootBind: Tt,
|
|
473
|
+
emptyBind: zt,
|
|
474
|
+
showEmpty: wt,
|
|
475
|
+
frameBind: Ht,
|
|
476
|
+
showPager: W,
|
|
477
|
+
tableProps: Mt,
|
|
478
|
+
footerBind: Ut,
|
|
479
|
+
showSearch: sn,
|
|
480
|
+
getHeadBind: It,
|
|
481
|
+
headerViews: z,
|
|
482
|
+
loadingBind: Bt,
|
|
483
|
+
onToggleRow: qt,
|
|
484
|
+
toolbarBind: Rt,
|
|
485
|
+
getCellBind: Lt,
|
|
486
|
+
columnCount: St,
|
|
487
|
+
clientPaged: j,
|
|
488
|
+
serverPaged: A,
|
|
489
|
+
showPerPage: V,
|
|
490
|
+
showToolbar: r(() => !!g.toolbar || !!g.toolbarActions || O.value || sn.value),
|
|
491
|
+
selectedBind: Wt,
|
|
492
|
+
showSelected: U,
|
|
493
|
+
getHeadAlign: Pt,
|
|
494
|
+
getCellAlign: Ft,
|
|
495
|
+
onTogglePage: $t,
|
|
496
|
+
onToggleSort: Kt,
|
|
497
|
+
summaryCells: an,
|
|
498
|
+
showFooterBar: Ct,
|
|
499
|
+
expandEnabled: mt,
|
|
500
|
+
onChangeSearch: Yt,
|
|
501
|
+
loadingBarBind: Vt,
|
|
502
|
+
paginationBind: Gt,
|
|
503
|
+
selectAllState: xt,
|
|
504
|
+
onToggleExpand: tn,
|
|
505
|
+
visibilityItems: on,
|
|
506
|
+
onChangePerPage: Jt,
|
|
507
|
+
resolvedPerPage: M,
|
|
508
|
+
selectionEnabled: D,
|
|
509
|
+
perPageSlotProps: Zt,
|
|
510
|
+
selectedSlotProps: Qt,
|
|
511
|
+
resolvedPageCount: H,
|
|
512
|
+
selectionMultiple: k,
|
|
513
|
+
visibilityEnabled: O,
|
|
514
|
+
paginationSlotProps: Xt,
|
|
515
|
+
onCommitColumnFilter: en,
|
|
516
|
+
onHiddenColumnsChange: rn,
|
|
517
|
+
onToggleColumnVisibility: nn,
|
|
518
|
+
loadingBar: r(() => y.value.loadingVariant === "bar")
|
|
513
519
|
};
|
|
514
520
|
}
|
|
515
521
|
//#endregion
|
|
516
|
-
export {
|
|
522
|
+
export { S as useDataTable };
|