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