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