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