@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.
Files changed (131) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +2 -1
  2. package/dist/Adapters/Examples/date-moment.js +31 -31
  3. package/dist/Adapters/Examples/i18n-dictionary.js +14 -0
  4. package/dist/Adapters/Examples/icon-fontawesome.js +53 -40
  5. package/dist/Adapters/Examples/icon-heroicons.js +46 -33
  6. package/dist/Adapters/Examples/icon-lucide.js +47 -34
  7. package/dist/Adapters/Examples/icon-phosphor.js +48 -35
  8. package/dist/Adapters/Examples/icon-tabler.js +45 -32
  9. package/dist/Adapters/Examples/rich-text-tiptap.d.ts +5 -0
  10. package/dist/Adapters/Examples/rich-text-tiptap.js +138 -0
  11. package/dist/Adapters/RichText/index.d.ts +1 -0
  12. package/dist/Adapters/RichText/index.js +2 -0
  13. package/dist/Adapters/RichText/mockRichTextAdapter.d.ts +5 -0
  14. package/dist/Adapters/RichText/useRichTextAdapter.d.ts +12 -0
  15. package/dist/Adapters/RichText/useRichTextAdapter.js +13 -0
  16. package/dist/Adapters/index.d.ts +1 -0
  17. package/dist/Adapters/index.js +2 -1
  18. package/dist/Components/ActionFooter/composables/useActionFooter.d.ts +6 -6
  19. package/dist/Components/Autocomplete/composables/useAutocomplete.js +2 -2
  20. package/dist/Components/BaseField/composables/useBaseField.d.ts +3 -3
  21. package/dist/Components/BaseField/composables/useBaseField.js +7 -7
  22. package/dist/Components/Breadcrumb/Breadcrumb.vue.d.ts +17 -10
  23. package/dist/Components/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js +7 -2
  24. package/dist/Components/Breadcrumb/breadcrumb.types.d.ts +22 -4
  25. package/dist/Components/Breadcrumb/breadcrumbInjectionKey.d.ts +5 -1
  26. package/dist/Components/Breadcrumb/composables/useBreadcrumb.d.ts +6 -5
  27. package/dist/Components/Breadcrumb/composables/useBreadcrumb.js +2 -0
  28. package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue.d.ts +17 -11
  29. package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue_vue_type_script_setup_true_lang.js +2 -0
  30. package/dist/Components/BreadcrumbItem/breadcrumbItem.types.d.ts +21 -3
  31. package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.d.ts +10 -6
  32. package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.js +65 -59
  33. package/dist/Components/Button/Button.vue.d.ts +17 -8
  34. package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +10 -10
  35. package/dist/Components/Button/button.types.d.ts +22 -5
  36. package/dist/Components/Button/composables/useButton.d.ts +198 -8
  37. package/dist/Components/Button/composables/useButton.js +101 -86
  38. package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +8 -8
  39. package/dist/Components/Carousel/Carousel.js +5 -0
  40. package/dist/Components/Carousel/Carousel.vue.d.ts +22 -0
  41. package/dist/Components/Carousel/Carousel.vue_vue_type_script_setup_true_lang.js +49 -0
  42. package/dist/Components/Carousel/carousel.types.d.ts +236 -0
  43. package/dist/Components/Carousel/carouselInjectionKey.d.ts +48 -0
  44. package/dist/Components/Carousel/carouselInjectionKey.js +4 -0
  45. package/dist/Components/Carousel/composables/useCarousel.d.ts +91 -0
  46. package/dist/Components/Carousel/composables/useCarousel.js +331 -0
  47. package/dist/Components/Carousel/index.d.ts +4 -0
  48. package/dist/Components/Carousel/index.js +4 -0
  49. package/dist/Components/CarouselSlide/CarouselSlide.js +5 -0
  50. package/dist/Components/CarouselSlide/CarouselSlide.vue.d.ts +11 -0
  51. package/dist/Components/CarouselSlide/CarouselSlide.vue_vue_type_script_setup_true_lang.js +17 -0
  52. package/dist/Components/CarouselSlide/carouselSlide.types.d.ts +40 -0
  53. package/dist/Components/CarouselSlide/composables/useCarouselSlide.d.ts +205 -0
  54. package/dist/Components/CarouselSlide/composables/useCarouselSlide.js +79 -0
  55. package/dist/Components/CarouselSlide/index.d.ts +3 -0
  56. package/dist/Components/CarouselSlide/index.js +3 -0
  57. package/dist/Components/ColorPicker/composables/useColorPicker.js +1 -1
  58. package/dist/Components/DataTable/DataTable.vue.d.ts +1 -1
  59. package/dist/Components/DataTable/composables/useDataTable.d.ts +1 -1
  60. package/dist/Components/DataTable/composables/useDataTable.js +288 -282
  61. package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
  62. package/dist/Components/Drawer/composables/useDrawer.js +2 -2
  63. package/dist/Components/FileUpload/FileUpload.js +5 -0
  64. package/dist/Components/FileUpload/FileUpload.vue.d.ts +26 -0
  65. package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +141 -0
  66. package/dist/Components/FileUpload/composables/useFileUpload.d.ts +120 -0
  67. package/dist/Components/FileUpload/composables/useFileUpload.js +235 -0
  68. package/dist/Components/FileUpload/fileUpload.types.d.ts +396 -0
  69. package/dist/Components/FileUpload/fileUploadInjectionKey.d.ts +61 -0
  70. package/dist/Components/FileUpload/fileUploadInjectionKey.js +4 -0
  71. package/dist/Components/FileUpload/index.d.ts +3 -0
  72. package/dist/Components/FileUpload/index.js +3 -0
  73. package/dist/Components/FileUploadItem/FileUploadItem.js +5 -0
  74. package/dist/Components/FileUploadItem/FileUploadItem.vue.d.ts +12 -0
  75. package/dist/Components/FileUploadItem/FileUploadItem.vue_vue_type_script_setup_true_lang.js +83 -0
  76. package/dist/Components/FileUploadItem/composables/useFileUploadItem.d.ts +1153 -0
  77. package/dist/Components/FileUploadItem/composables/useFileUploadItem.js +94 -0
  78. package/dist/Components/FileUploadItem/fileUploadItem.types.d.ts +20 -0
  79. package/dist/Components/FileUploadItem/index.d.ts +3 -0
  80. package/dist/Components/FileUploadItem/index.js +3 -0
  81. package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
  82. package/dist/Components/Link/Link.vue.d.ts +17 -8
  83. package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +30 -25
  84. package/dist/Components/Link/composables/useLink.d.ts +8 -6
  85. package/dist/Components/Link/composables/useLink.js +52 -45
  86. package/dist/Components/Link/link.types.d.ts +21 -4
  87. package/dist/Components/ListItem/ListItem.vue.d.ts +17 -15
  88. package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +2 -0
  89. package/dist/Components/ListItem/composables/useListItem.d.ts +7 -6
  90. package/dist/Components/ListItem/composables/useListItem.js +108 -105
  91. package/dist/Components/ListItem/listItem.types.d.ts +19 -3
  92. package/dist/Components/Listbox/composables/useListbox.d.ts +2 -2
  93. package/dist/Components/Menu/composables/useMenu.js +6 -6
  94. package/dist/Components/Modal/composables/useModal.d.ts +1 -1
  95. package/dist/Components/Modal/composables/useModal.js +2 -2
  96. package/dist/Components/Pagination/composables/usePagination.d.ts +1 -1
  97. package/dist/Components/RichTextEditor/RichTextEditor.js +5 -0
  98. package/dist/Components/RichTextEditor/RichTextEditor.vue.d.ts +23 -0
  99. package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +104 -0
  100. package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +488 -0
  101. package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +226 -0
  102. package/dist/Components/RichTextEditor/index.d.ts +3 -0
  103. package/dist/Components/RichTextEditor/index.js +3 -0
  104. package/dist/Components/RichTextEditor/richTextEditor.types.d.ts +103 -0
  105. package/dist/Components/Select/composables/useSelect.js +2 -2
  106. package/dist/Components/Sidebar/SidebarListItem.vue.d.ts +17 -9
  107. package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +2 -0
  108. package/dist/Components/Sidebar/composables/useSidebarListItem.js +1 -1
  109. package/dist/Components/Sidebar/composables/useSidebarTrigger.d.ts +1 -1
  110. package/dist/Components/Sidebar/sidebar.types.d.ts +2 -1
  111. package/dist/Components/Snackbar/composables/useSnackbar.js +1 -1
  112. package/dist/Components/Textarea/composables/useTextarea.js +1 -1
  113. package/dist/Components/Tooltip/composables/useTooltip.js +3 -3
  114. package/dist/Utils/linkAs.d.ts +29 -0
  115. package/dist/Utils/linkAs.js +18 -0
  116. package/dist/augments.d.ts +19 -0
  117. package/dist/index.d.ts +11 -0
  118. package/dist/index.js +181 -170
  119. package/dist/theme.css +3 -0
  120. package/docs/README.md +4 -0
  121. package/docs/components/Breadcrumb.md +16 -0
  122. package/docs/components/BridgeUIProvider.md +18 -1
  123. package/docs/components/Button.md +31 -19
  124. package/docs/components/Carousel.md +113 -0
  125. package/docs/components/DataTable.md +1 -1
  126. package/docs/components/FileUpload.md +197 -0
  127. package/docs/components/Link.md +28 -12
  128. package/docs/components/List.md +21 -19
  129. package/docs/components/RichTextEditor.md +88 -0
  130. package/docs/components/Sidebar.md +1 -1
  131. 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 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 fe, getDataTableColumnCssWidth as pe, getDataTableColumnFilterValues as me, getDataTableColumnSearch as he, getDataTableDefaultCellContent as ge, getDataTableFooterLayout as _e, getDataTablePerPageSelectOptions as ve, getDataTableResolvedPageCount as ye, getDataTableResolvedPerPage as be, getDataTableSelectAllState as xe, getDataTableSelectionTotal as Se, getDataTableSortIcon as Ce, getDataTableStickyInsets as we, getDataTableStickyPing as Te, isDataTableClientPaged as Ee, isDataTableColumnFilterable as De, isDataTableColumnFiltered as Oe, isDataTableColumnSearchable as ke, isDataTableColumnSearched as Ae, isDataTableExpandEnabled 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, observeDataTablePaginationInline as Be, resolveDataTableRowId as Ve, rowMatchesDataTableColumnSearch as He, rowMatchesDataTableToolbarSearch as Ue, rowSelectionToIds as We, selectionToRowSelection as Ge, setDataTableColumnFilter as Ke, setDataTableColumnSearch as qe, setDataTableRowSelection as Je, sliceDataTablePage as Ye, toggleDataTableColumnVisibility as Xe, toggleDataTablePageSelection as Ze, toggleDataTableRowExpansion as Qe, toggleDataTableSorting as $e } from "@bridge-ui/core/Domain";
5
- import { tableVariantProps as et } from "@bridge-ui/core/Tokens";
6
- import { cn as f, mergeBridgeUILayeredClasses as tt, splitComponentProps as nt } from "@bridge-ui/core/Utils";
7
- import { getCoreRowModel as p, getFilteredRowModel as m, getSortedRowModel as h, useVueTable as rt } from "@tanstack/vue-table";
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 it = /* @__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("."), at = {
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
- }, ot = [], st = [], ct = [], lt = p(), ut = h(), dt = m();
15
- function g(p, m, h) {
16
- let g = te(), _ = ne(), v = i(), y = r(() => nt({
17
- bridgeKeys: it,
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
- ...g,
20
- ...p,
21
- page: h.page.value,
22
- perPage: h.perPage.value,
23
- filters: h.filters.value,
24
- sorting: h.sorting.value,
25
- expanded: h.expanded.value,
26
- selection: h.selection.value,
27
- columnSearch: h.columnSearch.value,
28
- hiddenColumns: h.hiddenColumns.value
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: b, components: ft, entry: pt } = t({
31
- libDefaults: m,
42
+ })), { merged: y, components: b, entry: x } = t({
43
+ libDefaults: rt,
32
44
  componentName: "DataTable",
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(() => tt(et, o(ft.value, [
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
- ]))), C = r(() => o(ht.value, b.value.variant)), w = r(() => b.value.columns ?? st), T = r(() => le(w.value, "id")), gt = r(() => b.value.rows ?? ot), E = r(() => Pe(h.selection.value, g["onUpdate:selection"] !== void 0)), _t = r(() => je(h.expanded.value, g["onUpdate:expanded"] !== void 0, _.expanded !== void 0)), D = r(() => ze(h.hiddenColumns.value, g["onUpdate:hiddenColumns"] !== void 0, b.value.showColumnVisibility)), O = r(() => Fe(b.value.selectionMode)), k = r(() => Ie(h.page.value, b.value.pageCount, b.value.totalCount)), A = r(() => Ee(h.page.value, h.perPage.value, b.value.pageCount, b.value.totalCount)), j = r(() => be(h.perPage.value)), M = r(() => Le(b.value.stickyHeader)), N = r(() => Re(b.value.stickyHeader)), P = r(() => h.sorting.value ? [{
42
- id: h.sorting.value.id,
43
- desc: h.sorting.value.desc
44
- }] : []), vt = r(() => l(h.filters.value ?? {}, (e, t) => ({
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
- }))), F = r(() => Ge(h.selection.value)), I = r(() => h.hiddenColumns.value ?? ct), yt = r(() => ie(I.value.map((e) => [e, !1]))), bt = r(() => {
48
- let e = w.value.map((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: De(e),
64
+ enableColumnFilter: Ee(e),
53
65
  header: () => e.header,
54
66
  cell: (t) => e.cell?.(t.row.original) ?? null,
55
- accessorFn: (t) => fe(t, e),
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 re([
62
- E.value ? {
63
- ...at,
73
+ return ne([
74
+ D.value ? {
75
+ ...ot,
64
76
  id: d
65
77
  } : void 0,
66
- _t.value ? {
67
- ...at,
78
+ mt.value ? {
79
+ ...ot,
68
80
  id: u
69
81
  } : void 0,
70
82
  ...e
71
83
  ]);
72
- }), xt = rt({
73
- data: gt,
84
+ }), bt = it({
85
+ data: pt,
74
86
  enableSortingRemoval: !0,
75
- getCoreRowModel: lt,
87
+ features: ut,
76
88
  get columns() {
77
- return bt.value;
89
+ return yt.value;
78
90
  },
79
91
  get manualSorting() {
80
- return k.value;
92
+ return A.value;
81
93
  },
82
94
  get manualFiltering() {
83
- return k.value;
95
+ return A.value;
84
96
  },
85
97
  get enableHiding() {
86
- return D.value;
98
+ return O.value;
87
99
  },
88
100
  get enableRowSelection() {
89
- return E.value;
101
+ return D.value;
90
102
  },
91
103
  get enableMultiRowSelection() {
92
- return O.value;
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(F.value) : e;
103
- h.selection.value = We(t);
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(P.value) : e, n = s(t);
107
- h.sorting.value = n ? {
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 P.value;
120
+ return ht.value;
115
121
  },
116
122
  get rowSelection() {
117
- return F.value;
123
+ return _t.value;
118
124
  },
119
125
  get columnFilters() {
120
- return vt.value;
126
+ return gt.value;
121
127
  },
122
128
  get columnVisibility() {
123
- return yt.value;
129
+ return vt.value;
124
130
  }
125
131
  }
126
- }), L = r(() => {
127
- let e = xt.getRowModel().rows;
128
- if (k.value) return e;
129
- let t = h.search.value ?? "", n = I.value;
130
- return e.filter((e) => He(e.original, w.value, h.columnSearch.value, n) ? Ue(e.original, w.value, t, n) : !1);
131
- }), R = r(() => A.value ? Ye(L.value, h.page.value ?? 1, j.value) : L.value), z = r(() => l(R.value, "id")), St = r(() => xe(z.value, h.selection.value ?? [])), B = r(() => {
132
- let e = (s(xt.getHeaderGroups())?.headers ?? []).map((e) => {
133
- let t = o(T.value, e.column.id);
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 = we(e, M.value ? 20 : 10);
148
+ }), t = Ce(e, N.value ? 20 : 10);
143
149
  return e.map((e) => {
144
- let n = o(t, e.id), r = e.column?.sortable ? de(h.sorting.value ?? null, e.id) : "none";
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: Ce(r),
165
+ sortIcon: Se(r),
160
166
  hideable: e.column?.hideable !== !1,
161
167
  filterOptions: e.column?.filters ?? [],
162
- filterable: De(e.column),
163
- searchable: ke(e.column),
168
+ filterable: Ee(e.column),
169
+ searchable: Oe(e.column),
164
170
  filterMultiple: e.column?.filterMultiple !== !1,
165
- searchQuery: he(h.columnSearch.value, e.id),
166
- filterValues: me(h.filters.value, e.id),
167
- filterActive: Oe(h.filters.value, e.id) || Ae(h.columnSearch.value, e.id)
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
- }), V = r(() => {
171
- let e = we(B.value.map((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 R.value.map((t) => ({
184
+ return L.value.map((t) => ({
179
185
  id: t.id,
180
186
  original: t.original,
181
- expanded: (h.expanded.value ?? []).includes(t.id),
182
- selected: (h.selection.value ?? []).includes(t.id),
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 = o(T.value, n.column.id), i = o(e, n.column.id), a = r ? fe(t.original, r) : void 0;
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) : ge(a)
204
+ content: r?.cell ? r.cell(t.original) : he(a)
199
205
  };
200
206
  })
201
207
  }));
202
- }), Ct = r(() => B.value.length), H = r(() => Me(h.perPage.value, v?.vnode.props?.["onUpdate:perPage"] !== void 0, !!_.perPage)), U = r(() => ye({
203
- perPage: h.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(() => !!_.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: f({ [N.value ? "" : o(S.value, "root") ?? ""]: !0 }) })), Dt = r(() => B.value.some((e) => !!e.stickyStyle)), K = ee({
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
- }), q;
212
- function J(e) {
213
- let t = e ? Te(e.scrollLeft, e.scrollWidth, e.clientWidth) : {
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
- (K.value.end !== t.end || K.value.start !== t.start) && (K.value = t);
223
+ (G.value.end !== t.end || G.value.start !== t.start) && (G.value = t);
218
224
  }
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));
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 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);
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 Ot(e) {
236
+ function Dt(e) {
231
237
  let t = e.el;
232
- Q(t instanceof HTMLElement ? t : null);
238
+ Z(t instanceof HTMLElement ? t : null);
233
239
  }
234
- function kt() {
235
- Q(null);
240
+ function Ot() {
241
+ Z(null);
236
242
  }
237
- function At(e) {
238
- let t = x.value?.wrapper?.onScroll;
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 && J(n);
247
+ n instanceof HTMLElement && q(n);
242
248
  }
243
- function jt(e, t) {
244
- let n = x.value?.wrapper?.[e];
249
+ function Q(e, t) {
250
+ let n = S.value?.wrapper?.[e];
245
251
  c(n) && n(t);
246
252
  }
247
- function Mt(e) {
248
- jt("onVnodeMounted", e);
253
+ function At(e) {
254
+ Q("onVnodeMounted", e);
249
255
  let t = e.el;
250
- Y(t instanceof HTMLElement ? t : null);
256
+ J(t instanceof HTMLElement ? t : null);
251
257
  }
252
- function Nt(e) {
253
- jt("onVnodeUnmounted", e), Y(null);
258
+ function jt(e) {
259
+ Q("onVnodeUnmounted", e), J(null);
254
260
  }
255
261
  a(() => {
256
- Y(null), Q(null);
262
+ J(null), Z(null);
257
263
  });
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,
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
- ...x.value?.table,
269
- "aria-busy": b.value.loading || void 0
274
+ ...S.value?.table,
275
+ "aria-busy": y.value.loading || void 0
270
276
  },
271
277
  root: {
272
- ...x.value?.wrapper,
273
- onScroll: At,
274
- onVnodeMounted: Mt,
275
- onVnodeUnmounted: Nt
278
+ ...S.value?.wrapper,
279
+ onScroll: kt,
280
+ onVnodeMounted: At,
281
+ onVnodeUnmounted: jt
276
282
  }
277
283
  },
278
284
  classes: {
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: f({
284
- "relative z-40": b.value.loading && b.value.loadingVariant === "bar",
285
- [o(S.value, "header") ?? ""]: !0
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: f({
288
- "border-separate border-spacing-0": Dt.value && !M.value,
289
- [o(S.value, "table") ?? ""]: !0
293
+ table: p({
294
+ "border-separate border-spacing-0": Et.value && !N.value,
295
+ [s(C.value, "table") ?? ""]: !0
290
296
  }),
291
- root: f({
292
- "overflow-auto": N.value,
293
- [o(S.value, "wrapper") ?? ""]: !0,
294
- [N.value ? o(S.value, "root") ?? "" : ""]: !0
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 Ft(e, t = !1) {
299
- let n = pe(e.width, e.isExpand || e.isSelection), r = t && M.value;
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 It(e) {
320
+ function Pt(e) {
315
321
  return e.isSelection || e.isExpand ? "center" : e.align ?? "start";
316
322
  }
317
- function Lt(e) {
323
+ function Ft(e) {
318
324
  return e.isSelection || e.isExpand ? "center" : e.align ?? "start";
319
325
  }
320
- function Rt(t) {
326
+ function It(t) {
321
327
  let n = t.isSelection || t.isExpand;
322
- return e(x.value?.head, {}, {
323
- style: Ft(t, !0),
328
+ return e(S.value?.head, {}, {
329
+ style: Nt(t, !0),
324
330
  "aria-sort": t.sortable ? t.ariaSort : void 0,
325
- class: f({
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
- [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,
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 zt(t) {
342
+ function Lt(t) {
337
343
  let n = t.isSelection || t.isExpand;
338
- return e(x.value?.cell, {}, {
339
- style: Ft(t),
340
- class: f({
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
- [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,
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 Bt = r(() => e(x.value?.toolbar, {}, { class: f({
357
+ let Rt = r(() => e(S.value?.toolbar, {}, { class: p({
352
358
  "flex items-center justify-between gap-3 pb-3": !0,
353
- [o(S.value, "toolbar") ?? ""]: !0
354
- }) })), Vt = r(() => e(x.value?.empty, {}, { class: f({
359
+ [s(C.value, "toolbar") ?? ""]: !0
360
+ }) })), zt = r(() => e(S.value?.empty, {}, { class: p({
355
361
  "w-full": !0,
356
- [o(S.value, "empty") ?? ""]: !0
357
- }) })), Ht = r(() => e(x.value?.loading, {}, { class: f({
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": b.value.loadingVariant !== "bar",
360
- [o(S.value, "loading") ?? ""]: !0
361
- }) })), Ut = r(() => e({}, {}, { class: f({ "pointer-events-none absolute inset-x-0 top-0 z-40": !0 }) })), Wt = r(() => e({}, {}, { class: f({ "w-fit min-w-0 max-w-full": b.value.full === !1 }) })), Gt = r(() => e(x.value?.footer, {}, { class: f({
362
- "w-0 min-w-full": b.value.full === !1,
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
- [o(S.value, "footer") ?? ""]: !0
365
- }) })), $ = r(() => _e({
366
- showPager: G.value,
367
- showPerPage: H.value,
368
- inline: X.value,
369
- showSelected: W.value
370
- })), Kt = r(() => e(x.value?.selected, {}, { class: f({
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
- [o(S.value, "selected") ?? ""]: !0
374
- }) })), qt = r(() => e({}, {}, {
375
- onVnodeMounted: Ot,
376
- onVnodeUnmounted: kt,
377
- class: f({
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": b.value.full !== !1,
386
- "w-0 min-w-full": b.value.full === !1,
387
- [o(S.value, "pagination") ?? ""]: !0
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 Jt(e) {
391
- h.sorting.value = $e(h.sorting.value ?? null, e);
396
+ function Kt(e) {
397
+ m.sorting.value = Qe(m.sorting.value ?? null, e);
392
398
  }
393
- function Yt(e, t) {
394
- h.selection.value = Je(h.selection.value ?? [], e, t, b.value.selectionMode);
399
+ function qt(e, t) {
400
+ m.selection.value = qe(m.selection.value ?? [], e, t, y.value.selectionMode);
395
401
  }
396
- function Xt(e) {
397
- h.perPage.value = e, h.page.value !== 1 && (h.page.value = 1);
402
+ function Jt(e) {
403
+ m.perPage.value = e, m.page.value !== 1 && (m.page.value = 1);
398
404
  }
399
- function Zt(e) {
400
- h.search.value = e, h.page.value !== 1 && (h.page.value = 1);
405
+ function Yt(e) {
406
+ m.search.value = e, m.page.value !== 1 && (m.page.value = 1);
401
407
  }
402
- let Qt = r(() => ({
403
- page: h.page.value ?? 1,
404
- count: U.value ?? 1,
408
+ let Xt = r(() => ({
409
+ page: m.page.value ?? 1,
410
+ count: H.value ?? 1,
405
411
  onPageChange: (e) => {
406
- h.page.value = e;
412
+ m.page.value = e;
407
413
  }
408
- })), $t = r(() => ({
409
- perPage: j.value,
410
- onPerPageChange: Xt,
411
- options: ve(j.value, b.value.perPageOptions)
412
- })), en = r(() => ({
413
- selectedCount: (h.selection.value ?? []).length,
414
- totalCount: Se({
415
- totalCount: b.value.totalCount,
416
- filteredCount: L.value.length
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 tn(e) {
420
- h.selection.value = Ze(h.selection.value ?? [], z.value, e);
425
+ function $t(e) {
426
+ m.selection.value = Xe(m.selection.value ?? [], R.value, e);
421
427
  }
422
- function nn(e, t, n) {
423
- let r = o(T.value, e);
424
- r?.filters && r.filters.length > 0 && (h.filters.value = Ke(h.filters.value, e, t)), ke(r) && (h.columnSearch.value = qe(h.columnSearch.value, e, n)), h.page.value !== 1 && (h.page.value = 1);
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 rn(e, t) {
427
- h.expanded.value = Qe(h.expanded.value ?? [], e, t);
432
+ function tn(e, t) {
433
+ m.expanded.value = Ze(m.expanded.value ?? [], e, t);
428
434
  }
429
- function an(e, t) {
430
- h.hiddenColumns.value = Xe(h.hiddenColumns.value ?? [], e, t, l(w.value, "id"));
435
+ function nn(e, t) {
436
+ m.hiddenColumns.value = Ye(m.hiddenColumns.value ?? [], e, t, l(T.value, "id"));
431
437
  }
432
- function on(e) {
433
- h.hiddenColumns.value = e;
438
+ function rn(e) {
439
+ m.hiddenColumns.value = e;
434
440
  }
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);
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
- }), cn = r(() => w.value.map((e) => ({
462
+ }), on = r(() => T.value.map((e) => ({
457
463
  id: e.id,
458
464
  hideable: e.hideable !== !1,
459
- hidden: I.value.includes(e.id),
465
+ hidden: F.value.includes(e.id),
460
466
  label: ce(e.header) ? e.header : e.id
461
- }))), ln = r(() => Ne(h.search.value, v?.vnode.props?.["onUpdate:search"] !== void 0, _.search !== void 0, b.value.showSearch));
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: 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(() => !!_.toolbar || !!_.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")
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 { g as useDataTable };
522
+ export { S as useDataTable };