@mantine-vue/table 2.2.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 (211) hide show
  1. package/README.md +340 -0
  2. package/cjs/index.cjs +5345 -0
  3. package/cjs/index.cjs.map +1 -0
  4. package/esm/index.mjs +5214 -0
  5. package/esm/index.mjs.map +1 -0
  6. package/lib/components/MVT_TableSlots.d.ts +103 -0
  7. package/lib/components/MantineVueTable.d.ts +18 -0
  8. package/lib/components/body/MVT_TableBody.d.ts +64 -0
  9. package/lib/components/body/MVT_TableBodyCell.d.ts +136 -0
  10. package/lib/components/body/MVT_TableBodyCellValue.d.ts +40 -0
  11. package/lib/components/body/MVT_TableBodyEmptyRow.d.ts +42 -0
  12. package/lib/components/body/MVT_TableBodyRow.d.ts +170 -0
  13. package/lib/components/body/MVT_TableBodyRowGrabHandle.d.ts +31 -0
  14. package/lib/components/body/MVT_TableBodyRowPinButton.d.ts +23 -0
  15. package/lib/components/body/MVT_TableDetailPanel.d.ts +68 -0
  16. package/lib/components/buttons/MVT_ColumnPinningButtons.d.ts +23 -0
  17. package/lib/components/buttons/MVT_CopyButton.d.ts +23 -0
  18. package/lib/components/buttons/MVT_EditActionButtons.d.ts +33 -0
  19. package/lib/components/buttons/MVT_ExpandAllButton.d.ts +15 -0
  20. package/lib/components/buttons/MVT_ExpandButton.d.ts +23 -0
  21. package/lib/components/buttons/MVT_GrabHandleButton.d.ts +41 -0
  22. package/lib/components/buttons/MVT_RowPinButton.d.ts +31 -0
  23. package/lib/components/buttons/MVT_ShowHideColumnsButton.d.ts +15 -0
  24. package/lib/components/buttons/MVT_ToggleDensePaddingButton.d.ts +15 -0
  25. package/lib/components/buttons/MVT_ToggleFiltersButton.d.ts +15 -0
  26. package/lib/components/buttons/MVT_ToggleFullScreenButton.d.ts +15 -0
  27. package/lib/components/buttons/MVT_ToggleGlobalFilterButton.d.ts +15 -0
  28. package/lib/components/buttons/MVT_ToggleRowActionMenuButton.d.ts +31 -0
  29. package/lib/components/footer/MVT_TableFooter.d.ts +25 -0
  30. package/lib/components/footer/MVT_TableFooterCell.d.ts +33 -0
  31. package/lib/components/footer/MVT_TableFooterRow.d.ts +33 -0
  32. package/lib/components/head/MVT_TableHead.d.ts +25 -0
  33. package/lib/components/head/MVT_TableHeadCell.d.ts +42 -0
  34. package/lib/components/head/MVT_TableHeadCellFilterContainer.d.ts +23 -0
  35. package/lib/components/head/MVT_TableHeadCellFilterLabel.d.ts +23 -0
  36. package/lib/components/head/MVT_TableHeadCellGrabHandle.d.ts +31 -0
  37. package/lib/components/head/MVT_TableHeadCellResizeHandle.d.ts +23 -0
  38. package/lib/components/head/MVT_TableHeadCellSortLabel.d.ts +23 -0
  39. package/lib/components/head/MVT_TableHeadRow.d.ts +33 -0
  40. package/lib/components/inputs/MVT_EditCellTextInput.d.ts +23 -0
  41. package/lib/components/inputs/MVT_FilterCheckbox.d.ts +23 -0
  42. package/lib/components/inputs/MVT_FilterRangeFields.d.ts +23 -0
  43. package/lib/components/inputs/MVT_FilterRangeSlider.d.ts +23 -0
  44. package/lib/components/inputs/MVT_FilterTextInput.d.ts +33 -0
  45. package/lib/components/inputs/MVT_GlobalFilterTextInput.d.ts +15 -0
  46. package/lib/components/inputs/MVT_SelectCheckbox.d.ts +34 -0
  47. package/lib/components/menus/MVT_ColumnActionMenu.d.ts +42 -0
  48. package/lib/components/menus/MVT_FilterOptionMenu.d.ts +35 -0
  49. package/lib/components/menus/MVT_RowActionMenu.d.ts +31 -0
  50. package/lib/components/menus/MVT_ShowHideColumnsMenu.d.ts +15 -0
  51. package/lib/components/menus/MVT_ShowHideColumnsMenuItems.d.ts +54 -0
  52. package/lib/components/modals/MVT_EditRowModal.d.ts +29 -0
  53. package/lib/components/table/MVT_Table.d.ts +15 -0
  54. package/lib/components/table/MVT_TableContainer.d.ts +15 -0
  55. package/lib/components/table/MVT_TablePaper.d.ts +15 -0
  56. package/lib/components/toolbar/MVT_BottomToolbar.d.ts +15 -0
  57. package/lib/components/toolbar/MVT_ProgressBar.d.ts +23 -0
  58. package/lib/components/toolbar/MVT_TablePagination.d.ts +25 -0
  59. package/lib/components/toolbar/MVT_ToolbarAlertBanner.d.ts +25 -0
  60. package/lib/components/toolbar/MVT_ToolbarDropZone.d.ts +15 -0
  61. package/lib/components/toolbar/MVT_ToolbarInternalButtons.d.ts +15 -0
  62. package/lib/components/toolbar/MVT_TopToolbar.d.ts +15 -0
  63. package/lib/fns/aggregationFns.d.ts +11 -0
  64. package/lib/fns/filterFns.d.ts +70 -0
  65. package/lib/fns/sortingFns.d.ts +12 -0
  66. package/lib/hooks/display-columns/getMVT_RowActionsColumnDef.d.ts +2 -0
  67. package/lib/hooks/display-columns/getMVT_RowDragColumnDef.d.ts +2 -0
  68. package/lib/hooks/display-columns/getMVT_RowExpandColumnDef.d.ts +2 -0
  69. package/lib/hooks/display-columns/getMVT_RowNumbersColumnDef.d.ts +2 -0
  70. package/lib/hooks/display-columns/getMVT_RowPinningColumnDef.d.ts +2 -0
  71. package/lib/hooks/display-columns/getMVT_RowSelectColumnDef.d.ts +2 -0
  72. package/lib/hooks/display-columns/getMVT_RowSpacerColumnDef.d.ts +2 -0
  73. package/lib/hooks/useMVT_ColumnVirtualizer.d.ts +3 -0
  74. package/lib/hooks/useMVT_Effects.d.ts +5 -0
  75. package/lib/hooks/useMVT_RowVirtualizer.d.ts +3 -0
  76. package/lib/hooks/useMVT_Rows.d.ts +6 -0
  77. package/lib/hooks/useMVT_TableInstance.d.ts +10 -0
  78. package/lib/hooks/useMVT_TableOptions.d.ts +25 -0
  79. package/lib/hooks/useMantineVueTable.d.ts +2 -0
  80. package/lib/icons.d.ts +36 -0
  81. package/lib/index.d.mts +75 -0
  82. package/lib/index.d.ts +75 -0
  83. package/lib/locales/ar.d.ts +2 -0
  84. package/lib/locales/az.d.ts +2 -0
  85. package/lib/locales/bg.d.ts +2 -0
  86. package/lib/locales/cs.d.ts +2 -0
  87. package/lib/locales/da.d.ts +2 -0
  88. package/lib/locales/de.d.ts +2 -0
  89. package/lib/locales/el.d.ts +2 -0
  90. package/lib/locales/en.d.ts +2 -0
  91. package/lib/locales/es.d.ts +2 -0
  92. package/lib/locales/et.d.ts +2 -0
  93. package/lib/locales/fa.d.ts +2 -0
  94. package/lib/locales/fi.d.ts +2 -0
  95. package/lib/locales/fr.d.ts +2 -0
  96. package/lib/locales/he.d.ts +2 -0
  97. package/lib/locales/hr.d.ts +2 -0
  98. package/lib/locales/hu.d.ts +2 -0
  99. package/lib/locales/hy.d.ts +2 -0
  100. package/lib/locales/id.d.ts +2 -0
  101. package/lib/locales/it.d.ts +2 -0
  102. package/lib/locales/ja.d.ts +2 -0
  103. package/lib/locales/ko.d.ts +2 -0
  104. package/lib/locales/nl.d.ts +2 -0
  105. package/lib/locales/no.d.ts +2 -0
  106. package/lib/locales/np.d.ts +2 -0
  107. package/lib/locales/pl.d.ts +2 -0
  108. package/lib/locales/pt-BR.d.ts +2 -0
  109. package/lib/locales/pt.d.ts +2 -0
  110. package/lib/locales/ro.d.ts +2 -0
  111. package/lib/locales/ru.d.ts +2 -0
  112. package/lib/locales/sk.d.ts +2 -0
  113. package/lib/locales/sr-Cyrl-RS.d.ts +2 -0
  114. package/lib/locales/sr-Latn-RS.d.ts +2 -0
  115. package/lib/locales/sv.d.ts +2 -0
  116. package/lib/locales/th.d.ts +2 -0
  117. package/lib/locales/tr.d.ts +2 -0
  118. package/lib/locales/uk.d.ts +2 -0
  119. package/lib/locales/vi.d.ts +2 -0
  120. package/lib/locales/zh-Hans.d.ts +2 -0
  121. package/lib/locales/zh-Hant.d.ts +2 -0
  122. package/lib/mantine.types.d.ts +32 -0
  123. package/lib/types.d.ts +887 -0
  124. package/lib/utils/column.utils.d.ts +9 -0
  125. package/lib/utils/displayColumn.utils.d.ts +17 -0
  126. package/lib/utils/row.utils.d.ts +16 -0
  127. package/lib/utils/style.utils.d.ts +8 -0
  128. package/lib/utils/tanstack.helpers.d.ts +14 -0
  129. package/lib/utils/utils.d.ts +1 -0
  130. package/lib/utils/virtualization.utils.d.ts +2 -0
  131. package/locales/ar.cjs +97 -0
  132. package/locales/ar.mjs +96 -0
  133. package/locales/az.cjs +97 -0
  134. package/locales/az.mjs +96 -0
  135. package/locales/bg.cjs +97 -0
  136. package/locales/bg.mjs +96 -0
  137. package/locales/cs.cjs +97 -0
  138. package/locales/cs.mjs +96 -0
  139. package/locales/da.cjs +97 -0
  140. package/locales/da.mjs +96 -0
  141. package/locales/de.cjs +97 -0
  142. package/locales/de.mjs +96 -0
  143. package/locales/el.cjs +97 -0
  144. package/locales/el.mjs +96 -0
  145. package/locales/en.cjs +97 -0
  146. package/locales/en.mjs +96 -0
  147. package/locales/es.cjs +97 -0
  148. package/locales/es.mjs +96 -0
  149. package/locales/et.cjs +97 -0
  150. package/locales/et.mjs +96 -0
  151. package/locales/fa.cjs +97 -0
  152. package/locales/fa.mjs +96 -0
  153. package/locales/fi.cjs +97 -0
  154. package/locales/fi.mjs +96 -0
  155. package/locales/fr.cjs +97 -0
  156. package/locales/fr.mjs +96 -0
  157. package/locales/he.cjs +97 -0
  158. package/locales/he.mjs +96 -0
  159. package/locales/hr.cjs +97 -0
  160. package/locales/hr.mjs +96 -0
  161. package/locales/hu.cjs +97 -0
  162. package/locales/hu.mjs +96 -0
  163. package/locales/hy.cjs +97 -0
  164. package/locales/hy.mjs +96 -0
  165. package/locales/id.cjs +97 -0
  166. package/locales/id.mjs +96 -0
  167. package/locales/it.cjs +97 -0
  168. package/locales/it.mjs +96 -0
  169. package/locales/ja.cjs +97 -0
  170. package/locales/ja.mjs +96 -0
  171. package/locales/ko.cjs +97 -0
  172. package/locales/ko.mjs +96 -0
  173. package/locales/nl.cjs +97 -0
  174. package/locales/nl.mjs +96 -0
  175. package/locales/no.cjs +97 -0
  176. package/locales/no.mjs +96 -0
  177. package/locales/np.cjs +97 -0
  178. package/locales/np.mjs +96 -0
  179. package/locales/pl.cjs +97 -0
  180. package/locales/pl.mjs +96 -0
  181. package/locales/pt-BR.cjs +97 -0
  182. package/locales/pt-BR.mjs +96 -0
  183. package/locales/pt.cjs +97 -0
  184. package/locales/pt.mjs +96 -0
  185. package/locales/ro.cjs +97 -0
  186. package/locales/ro.mjs +96 -0
  187. package/locales/ru.cjs +97 -0
  188. package/locales/ru.mjs +96 -0
  189. package/locales/sk.cjs +97 -0
  190. package/locales/sk.mjs +96 -0
  191. package/locales/sr-Cyrl-RS.cjs +97 -0
  192. package/locales/sr-Cyrl-RS.mjs +96 -0
  193. package/locales/sr-Latn-RS.cjs +97 -0
  194. package/locales/sr-Latn-RS.mjs +96 -0
  195. package/locales/sv.cjs +97 -0
  196. package/locales/sv.mjs +96 -0
  197. package/locales/th.cjs +97 -0
  198. package/locales/th.mjs +96 -0
  199. package/locales/tr.cjs +97 -0
  200. package/locales/tr.mjs +96 -0
  201. package/locales/uk.cjs +97 -0
  202. package/locales/uk.mjs +96 -0
  203. package/locales/vi.cjs +97 -0
  204. package/locales/vi.mjs +96 -0
  205. package/locales/zh-Hans.cjs +97 -0
  206. package/locales/zh-Hans.mjs +96 -0
  207. package/locales/zh-Hant.cjs +97 -0
  208. package/locales/zh-Hant.mjs +96 -0
  209. package/package.json +79 -0
  210. package/styles.css +1118 -0
  211. package/styles.layer.css +1120 -0
@@ -0,0 +1,11 @@
1
+ export declare const MVT_AggregationFns: {
2
+ sum: import("@tanstack/table-core").AggregationFn<any>;
3
+ min: import("@tanstack/table-core").AggregationFn<any>;
4
+ max: import("@tanstack/table-core").AggregationFn<any>;
5
+ extent: import("@tanstack/table-core").AggregationFn<any>;
6
+ mean: import("@tanstack/table-core").AggregationFn<any>;
7
+ median: import("@tanstack/table-core").AggregationFn<any>;
8
+ unique: import("@tanstack/table-core").AggregationFn<any>;
9
+ uniqueCount: import("@tanstack/table-core").AggregationFn<any>;
10
+ count: import("@tanstack/table-core").AggregationFn<any>;
11
+ };
@@ -0,0 +1,70 @@
1
+ import { type RankingInfo } from '@tanstack/match-sorter-utils';
2
+ import { type Row } from '@tanstack/vue-table';
3
+ import { type MVT_FilterOption, type MVT_Localization, type MVT_RowData } from '../types';
4
+ export declare const MVT_FilterFns: {
5
+ between: {
6
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
7
+ autoRemove(val: any): boolean;
8
+ };
9
+ betweenInclusive: {
10
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
11
+ autoRemove(val: any): boolean;
12
+ };
13
+ contains: {
14
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
15
+ autoRemove(val: any): boolean;
16
+ };
17
+ empty: {
18
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
19
+ autoRemove(val: any): boolean;
20
+ };
21
+ endsWith: {
22
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
23
+ autoRemove(val: any): boolean;
24
+ };
25
+ equals: {
26
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
27
+ autoRemove(val: any): boolean;
28
+ };
29
+ fuzzy: {
30
+ <TData extends MVT_RowData>(row: Row<TData>, columnId: string, filterValue: number | string, addMeta: (item: RankingInfo) => void): boolean;
31
+ autoRemove(val: any): boolean;
32
+ };
33
+ greaterThan: {
34
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
35
+ autoRemove(val: any): boolean;
36
+ };
37
+ greaterThanOrEqualTo: {
38
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
39
+ autoRemove(val: any): boolean;
40
+ };
41
+ lessThan: {
42
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
43
+ autoRemove(val: any): boolean;
44
+ };
45
+ lessThanOrEqualTo: {
46
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
47
+ autoRemove(val: any): boolean;
48
+ };
49
+ notEmpty: {
50
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
51
+ autoRemove(val: any): boolean;
52
+ };
53
+ notEquals: {
54
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
55
+ autoRemove(val: any): boolean;
56
+ };
57
+ startsWith: {
58
+ <TData extends MVT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
59
+ autoRemove(val: any): boolean;
60
+ };
61
+ includesString: import("@tanstack/table-core").FilterFn<any>;
62
+ includesStringSensitive: import("@tanstack/table-core").FilterFn<any>;
63
+ equalsString: import("@tanstack/table-core").FilterFn<any>;
64
+ arrIncludes: import("@tanstack/table-core").FilterFn<any>;
65
+ arrIncludesAll: import("@tanstack/table-core").FilterFn<any>;
66
+ arrIncludesSome: import("@tanstack/table-core").FilterFn<any>;
67
+ weakEquals: import("@tanstack/table-core").FilterFn<any>;
68
+ inNumberRange: import("@tanstack/table-core").FilterFn<any>;
69
+ };
70
+ export declare function localizedFilterOption(localization: MVT_Localization, option: MVT_FilterOption): string;
@@ -0,0 +1,12 @@
1
+ import { type Row } from '@tanstack/vue-table';
2
+ import { type MVT_Row, type MVT_RowData } from '../types';
3
+ export declare const MVT_SortingFns: {
4
+ fuzzy: <TData extends MVT_RowData>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
5
+ alphanumeric: import("@tanstack/table-core").SortingFn<any>;
6
+ alphanumericCaseSensitive: import("@tanstack/table-core").SortingFn<any>;
7
+ text: import("@tanstack/table-core").SortingFn<any>;
8
+ textCaseSensitive: import("@tanstack/table-core").SortingFn<any>;
9
+ datetime: import("@tanstack/table-core").SortingFn<any>;
10
+ basic: import("@tanstack/table-core").SortingFn<any>;
11
+ };
12
+ export declare const rankGlobalFuzzy: <TData extends MVT_RowData>(rowA: MVT_Row<TData>, rowB: MVT_Row<TData>) => number;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowActionsColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowDragColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowExpandColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowNumbersColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowPinningColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowSelectColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,2 @@
1
+ import { type MVT_ColumnDef, type MVT_RowData, type MVT_StatefulTableOptions } from '../../types';
2
+ export declare const getMVT_RowSpacerColumnDef: <TData extends MVT_RowData>(tableOptions: MVT_StatefulTableOptions<TData>) => MVT_ColumnDef<TData> | null;
@@ -0,0 +1,3 @@
1
+ import { type Ref } from 'vue';
2
+ import { type MVT_ColumnVirtualizer, type MVT_RowData, type MVT_TableInstance } from '../types';
3
+ export declare const useMVT_ColumnVirtualizer: <TData extends MVT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement>(table: MVT_TableInstance<TData>) => Ref<MVT_ColumnVirtualizer> | undefined;
@@ -0,0 +1,5 @@
1
+ import { type MVT_RowData, type MVT_TableInstance } from '../types';
2
+ /**
3
+ * Side effects for the table instance.
4
+ */
5
+ export declare const useMVT_Effects: <TData extends MVT_RowData>(table: MVT_TableInstance<TData>) => void;
@@ -0,0 +1,3 @@
1
+ import { type Ref } from 'vue';
2
+ import { type MVT_Row, type MVT_RowData, type MVT_RowVirtualizer, type MVT_TableInstance } from '../types';
3
+ export declare const useMVT_RowVirtualizer: <TData extends MVT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement>(table: MVT_TableInstance<TData>, rows?: Ref<MVT_Row<TData>[]>) => Ref<MVT_RowVirtualizer<TScrollElement, TItemElement>> | undefined;
@@ -0,0 +1,6 @@
1
+ import { type ComputedRef } from 'vue';
2
+ import { type MVT_Row, type MVT_RowData, type MVT_TableInstance } from '../types';
3
+ /**
4
+ * Returns the MVT-adjusted rows (ranking, pinning, and creating-row insertion)
5
+ */
6
+ export declare const useMVT_Rows: <TData extends MVT_RowData>(table: MVT_TableInstance<TData>) => ComputedRef<MVT_Row<TData>[]>;
@@ -0,0 +1,10 @@
1
+ import { type MVT_DefinedTableOptions, type MVT_RowData, type MVT_TableInstance } from '../types';
2
+ /**
3
+ * The MVT composable that wraps TanStack's `useVueTable` and adds MVT
4
+ * functionality. MVT-managed state slices are held in Vue refs and injected
5
+ * into the table via reactive getters
6
+ *
7
+ * @param definedTableOptions - table options with proper defaults set
8
+ * @returns the MVT table instance
9
+ */
10
+ export declare const useMVT_TableInstance: <TData extends MVT_RowData>(definedTableOptions: MVT_DefinedTableOptions<TData>) => MVT_TableInstance<TData>;
@@ -0,0 +1,25 @@
1
+ import { type MVT_DefinedTableOptions, type MVT_RowData, type MVT_TableOptions } from '../types';
2
+ export declare const MVT_DefaultColumn: {
3
+ readonly filterVariant: "text";
4
+ readonly maxSize: 1000;
5
+ readonly minSize: 40;
6
+ readonly size: 180;
7
+ };
8
+ export declare const MVT_DefaultDisplayColumn: {
9
+ readonly columnDefType: "display";
10
+ readonly enableClickToCopy: false;
11
+ readonly enableColumnActions: false;
12
+ readonly enableColumnDragging: false;
13
+ readonly enableColumnFilter: false;
14
+ readonly enableColumnOrdering: false;
15
+ readonly enableEditing: false;
16
+ readonly enableGlobalFilter: false;
17
+ readonly enableGrouping: false;
18
+ readonly enableHiding: false;
19
+ readonly enableResizing: false;
20
+ readonly enableSorting: false;
21
+ };
22
+ /**
23
+ * Applies MVT's option defaults
24
+ */
25
+ export declare const useMVT_TableOptions: <TData extends MVT_RowData>(tableOptions: MVT_TableOptions<TData>) => MVT_DefinedTableOptions<TData>;
@@ -0,0 +1,2 @@
1
+ import { type MVT_RowData, type MVT_TableInstance, type MVT_TableOptions } from '../types';
2
+ export declare const useMantineVueTable: <TData extends MVT_RowData>(tableOptions: MVT_TableOptions<TData>) => MVT_TableInstance<TData>;
package/lib/icons.d.ts ADDED
@@ -0,0 +1,36 @@
1
+ export declare const MVT_Default_Icons: {
2
+ readonly IconArrowAutofitContent: import("@tabler/icons-vue").Icon;
3
+ readonly IconArrowsSort: import("@tabler/icons-vue").Icon;
4
+ readonly IconBaselineDensityLarge: import("@tabler/icons-vue").Icon;
5
+ readonly IconBaselineDensityMedium: import("@tabler/icons-vue").Icon;
6
+ readonly IconBaselineDensitySmall: import("@tabler/icons-vue").Icon;
7
+ readonly IconBoxMultiple: import("@tabler/icons-vue").Icon;
8
+ readonly IconChevronDown: import("@tabler/icons-vue").Icon;
9
+ readonly IconChevronLeft: import("@tabler/icons-vue").Icon;
10
+ readonly IconChevronLeftPipe: import("@tabler/icons-vue").Icon;
11
+ readonly IconChevronRight: import("@tabler/icons-vue").Icon;
12
+ readonly IconChevronRightPipe: import("@tabler/icons-vue").Icon;
13
+ readonly IconChevronsDown: import("@tabler/icons-vue").Icon;
14
+ readonly IconCircleX: import("@tabler/icons-vue").Icon;
15
+ readonly IconClearAll: import("@tabler/icons-vue").Icon;
16
+ readonly IconColumns: import("@tabler/icons-vue").Icon;
17
+ readonly IconDeviceFloppy: import("@tabler/icons-vue").Icon;
18
+ readonly IconDots: import("@tabler/icons-vue").Icon;
19
+ readonly IconDotsVertical: import("@tabler/icons-vue").Icon;
20
+ readonly IconEdit: import("@tabler/icons-vue").Icon;
21
+ readonly IconEyeOff: import("@tabler/icons-vue").Icon;
22
+ readonly IconFilter: import("@tabler/icons-vue").Icon;
23
+ readonly IconFilterCog: import("@tabler/icons-vue").Icon;
24
+ readonly IconFilterOff: import("@tabler/icons-vue").Icon;
25
+ readonly IconGripHorizontal: import("@tabler/icons-vue").Icon;
26
+ readonly IconMaximize: import("@tabler/icons-vue").Icon;
27
+ readonly IconMinimize: import("@tabler/icons-vue").Icon;
28
+ readonly IconPinned: import("@tabler/icons-vue").Icon;
29
+ readonly IconPinnedOff: import("@tabler/icons-vue").Icon;
30
+ readonly IconSearch: import("@tabler/icons-vue").Icon;
31
+ readonly IconSearchOff: import("@tabler/icons-vue").Icon;
32
+ readonly IconSortAscending: import("@tabler/icons-vue").Icon;
33
+ readonly IconSortDescending: import("@tabler/icons-vue").Icon;
34
+ readonly IconX: import("@tabler/icons-vue").Icon;
35
+ };
36
+ export type MVT_Icons = Record<keyof typeof MVT_Default_Icons, any>;
@@ -0,0 +1,75 @@
1
+ export * from './components/MantineVueTable';
2
+ export * from './components/MVT_TableSlots';
3
+ export * from './components/body/MVT_TableBody';
4
+ export * from './components/body/MVT_TableBodyCell';
5
+ export * from './components/body/MVT_TableBodyCellValue';
6
+ export * from './components/body/MVT_TableBodyEmptyRow';
7
+ export * from './components/body/MVT_TableBodyRow';
8
+ export * from './components/body/MVT_TableBodyRowGrabHandle';
9
+ export * from './components/body/MVT_TableBodyRowPinButton';
10
+ export * from './components/body/MVT_TableDetailPanel';
11
+ export * from './components/buttons/MVT_CopyButton';
12
+ export * from './components/buttons/MVT_ColumnPinningButtons';
13
+ export * from './components/buttons/MVT_EditActionButtons';
14
+ export * from './components/buttons/MVT_ExpandAllButton';
15
+ export * from './components/buttons/MVT_ExpandButton';
16
+ export * from './components/buttons/MVT_GrabHandleButton';
17
+ export * from './components/buttons/MVT_RowPinButton';
18
+ export * from './components/buttons/MVT_ShowHideColumnsButton';
19
+ export * from './components/buttons/MVT_ToggleDensePaddingButton';
20
+ export * from './components/buttons/MVT_ToggleFiltersButton';
21
+ export * from './components/buttons/MVT_ToggleFullScreenButton';
22
+ export * from './components/buttons/MVT_ToggleGlobalFilterButton';
23
+ export * from './components/buttons/MVT_ToggleRowActionMenuButton';
24
+ export * from './components/footer/MVT_TableFooter';
25
+ export * from './components/footer/MVT_TableFooterCell';
26
+ export * from './components/footer/MVT_TableFooterRow';
27
+ export * from './components/head/MVT_TableHead';
28
+ export * from './components/head/MVT_TableHeadCell';
29
+ export * from './components/head/MVT_TableHeadCellFilterContainer';
30
+ export * from './components/head/MVT_TableHeadCellFilterLabel';
31
+ export * from './components/head/MVT_TableHeadCellGrabHandle';
32
+ export * from './components/head/MVT_TableHeadCellResizeHandle';
33
+ export * from './components/head/MVT_TableHeadCellSortLabel';
34
+ export * from './components/head/MVT_TableHeadRow';
35
+ export * from './components/inputs/MVT_EditCellTextInput';
36
+ export * from './components/inputs/MVT_FilterCheckbox';
37
+ export * from './components/inputs/MVT_FilterRangeFields';
38
+ export * from './components/inputs/MVT_FilterRangeSlider';
39
+ export * from './components/inputs/MVT_FilterTextInput';
40
+ export * from './components/inputs/MVT_GlobalFilterTextInput';
41
+ export * from './components/inputs/MVT_SelectCheckbox';
42
+ export * from './components/menus/MVT_ColumnActionMenu';
43
+ export * from './components/menus/MVT_FilterOptionMenu';
44
+ export * from './components/menus/MVT_RowActionMenu';
45
+ export * from './components/menus/MVT_ShowHideColumnsMenu';
46
+ export * from './components/menus/MVT_ShowHideColumnsMenuItems';
47
+ export * from './components/modals/MVT_EditRowModal';
48
+ export * from './components/table/MVT_Table';
49
+ export * from './components/table/MVT_TableContainer';
50
+ export * from './components/table/MVT_TablePaper';
51
+ export * from './components/toolbar/MVT_BottomToolbar';
52
+ export * from './components/toolbar/MVT_ProgressBar';
53
+ export * from './components/toolbar/MVT_TablePagination';
54
+ export * from './components/toolbar/MVT_ToolbarAlertBanner';
55
+ export * from './components/toolbar/MVT_ToolbarDropZone';
56
+ export * from './components/toolbar/MVT_ToolbarInternalButtons';
57
+ export * from './components/toolbar/MVT_TopToolbar';
58
+ export * from './fns/aggregationFns';
59
+ export * from './fns/filterFns';
60
+ export * from './fns/sortingFns';
61
+ export * from './hooks/useMantineVueTable';
62
+ export * from './hooks/useMVT_ColumnVirtualizer';
63
+ export * from './hooks/useMVT_Effects';
64
+ export * from './hooks/useMVT_Rows';
65
+ export * from './hooks/useMVT_RowVirtualizer';
66
+ export * from './hooks/useMVT_TableInstance';
67
+ export * from './hooks/useMVT_TableOptions';
68
+ export * from './icons';
69
+ export * from './types';
70
+ export * from './utils/column.utils';
71
+ export * from './utils/displayColumn.utils';
72
+ export * from './utils/row.utils';
73
+ export * from './utils/style.utils';
74
+ export * from './utils/tanstack.helpers';
75
+ export * from './utils/utils';
package/lib/index.d.ts ADDED
@@ -0,0 +1,75 @@
1
+ export * from './components/MantineVueTable';
2
+ export * from './components/MVT_TableSlots';
3
+ export * from './components/body/MVT_TableBody';
4
+ export * from './components/body/MVT_TableBodyCell';
5
+ export * from './components/body/MVT_TableBodyCellValue';
6
+ export * from './components/body/MVT_TableBodyEmptyRow';
7
+ export * from './components/body/MVT_TableBodyRow';
8
+ export * from './components/body/MVT_TableBodyRowGrabHandle';
9
+ export * from './components/body/MVT_TableBodyRowPinButton';
10
+ export * from './components/body/MVT_TableDetailPanel';
11
+ export * from './components/buttons/MVT_CopyButton';
12
+ export * from './components/buttons/MVT_ColumnPinningButtons';
13
+ export * from './components/buttons/MVT_EditActionButtons';
14
+ export * from './components/buttons/MVT_ExpandAllButton';
15
+ export * from './components/buttons/MVT_ExpandButton';
16
+ export * from './components/buttons/MVT_GrabHandleButton';
17
+ export * from './components/buttons/MVT_RowPinButton';
18
+ export * from './components/buttons/MVT_ShowHideColumnsButton';
19
+ export * from './components/buttons/MVT_ToggleDensePaddingButton';
20
+ export * from './components/buttons/MVT_ToggleFiltersButton';
21
+ export * from './components/buttons/MVT_ToggleFullScreenButton';
22
+ export * from './components/buttons/MVT_ToggleGlobalFilterButton';
23
+ export * from './components/buttons/MVT_ToggleRowActionMenuButton';
24
+ export * from './components/footer/MVT_TableFooter';
25
+ export * from './components/footer/MVT_TableFooterCell';
26
+ export * from './components/footer/MVT_TableFooterRow';
27
+ export * from './components/head/MVT_TableHead';
28
+ export * from './components/head/MVT_TableHeadCell';
29
+ export * from './components/head/MVT_TableHeadCellFilterContainer';
30
+ export * from './components/head/MVT_TableHeadCellFilterLabel';
31
+ export * from './components/head/MVT_TableHeadCellGrabHandle';
32
+ export * from './components/head/MVT_TableHeadCellResizeHandle';
33
+ export * from './components/head/MVT_TableHeadCellSortLabel';
34
+ export * from './components/head/MVT_TableHeadRow';
35
+ export * from './components/inputs/MVT_EditCellTextInput';
36
+ export * from './components/inputs/MVT_FilterCheckbox';
37
+ export * from './components/inputs/MVT_FilterRangeFields';
38
+ export * from './components/inputs/MVT_FilterRangeSlider';
39
+ export * from './components/inputs/MVT_FilterTextInput';
40
+ export * from './components/inputs/MVT_GlobalFilterTextInput';
41
+ export * from './components/inputs/MVT_SelectCheckbox';
42
+ export * from './components/menus/MVT_ColumnActionMenu';
43
+ export * from './components/menus/MVT_FilterOptionMenu';
44
+ export * from './components/menus/MVT_RowActionMenu';
45
+ export * from './components/menus/MVT_ShowHideColumnsMenu';
46
+ export * from './components/menus/MVT_ShowHideColumnsMenuItems';
47
+ export * from './components/modals/MVT_EditRowModal';
48
+ export * from './components/table/MVT_Table';
49
+ export * from './components/table/MVT_TableContainer';
50
+ export * from './components/table/MVT_TablePaper';
51
+ export * from './components/toolbar/MVT_BottomToolbar';
52
+ export * from './components/toolbar/MVT_ProgressBar';
53
+ export * from './components/toolbar/MVT_TablePagination';
54
+ export * from './components/toolbar/MVT_ToolbarAlertBanner';
55
+ export * from './components/toolbar/MVT_ToolbarDropZone';
56
+ export * from './components/toolbar/MVT_ToolbarInternalButtons';
57
+ export * from './components/toolbar/MVT_TopToolbar';
58
+ export * from './fns/aggregationFns';
59
+ export * from './fns/filterFns';
60
+ export * from './fns/sortingFns';
61
+ export * from './hooks/useMantineVueTable';
62
+ export * from './hooks/useMVT_ColumnVirtualizer';
63
+ export * from './hooks/useMVT_Effects';
64
+ export * from './hooks/useMVT_Rows';
65
+ export * from './hooks/useMVT_RowVirtualizer';
66
+ export * from './hooks/useMVT_TableInstance';
67
+ export * from './hooks/useMVT_TableOptions';
68
+ export * from './icons';
69
+ export * from './types';
70
+ export * from './utils/column.utils';
71
+ export * from './utils/displayColumn.utils';
72
+ export * from './utils/row.utils';
73
+ export * from './utils/style.utils';
74
+ export * from './utils/tanstack.helpers';
75
+ export * from './utils/utils';
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_AR: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_AZ: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_BG: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_CS: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_DA: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_DE: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_EL: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_EN: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_ES: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_ET: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_FA: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_FI: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_FR: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_HE: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_HR: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_HU: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_HY: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_ID: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_IT: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_JA: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_KO: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_NL: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_NO: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_NP: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_PL: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_PT_BR: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_PT: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_RO: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_RU: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_SK: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_SR_CYRL_RS: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_SR_LATN_RS: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_SV: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_TH: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_TR: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_UK: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_VI: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_ZH_HANS: MVT_Localization;
@@ -0,0 +1,2 @@
1
+ import { type MVT_Localization } from '..';
2
+ export declare const MVT_Localization_ZH_HANT: MVT_Localization;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Mantine component prop-type bridge.
3
+ *
4
+ */
5
+ import { type AutocompleteProps, type BoxProps, type ModalProps, type MultiSelectProps, type SelectProps } from '@mantine-vue/core';
6
+ export type { AutocompleteProps, BoxProps, ModalProps, MultiSelectProps, SelectProps };
7
+ /** Permissive stand-in for a Mantine Vue component's props (Box props + passthrough attributes). */
8
+ type MantineComponentProps = BoxProps & Record<string, any>;
9
+ export type ActionIconProps = MantineComponentProps;
10
+ export type AlertProps = MantineComponentProps;
11
+ export type BadgeProps = MantineComponentProps;
12
+ export type CheckboxProps = MantineComponentProps;
13
+ export type HighlightProps = MantineComponentProps;
14
+ export type LoadingOverlayProps = MantineComponentProps;
15
+ export type PaginationProps = MantineComponentProps;
16
+ export type PaperProps = MantineComponentProps;
17
+ export type ProgressProps = MantineComponentProps;
18
+ export type RadioProps = MantineComponentProps;
19
+ export type RangeSliderProps = MantineComponentProps;
20
+ export type SkeletonProps = MantineComponentProps;
21
+ export type SwitchProps = MantineComponentProps;
22
+ export type TextInputProps = MantineComponentProps;
23
+ export type UnstyledButtonProps = MantineComponentProps;
24
+ export type TableProps = MantineComponentProps;
25
+ export type TableTbodyProps = MantineComponentProps;
26
+ export type TableTdProps = MantineComponentProps;
27
+ export type TableTfootProps = MantineComponentProps;
28
+ export type TableTheadProps = MantineComponentProps;
29
+ export type TableThProps = MantineComponentProps;
30
+ export type TableTrProps = MantineComponentProps;
31
+ /** From `@mantine-vue/dates` not yet exported as a named interface. */
32
+ export type DateInputProps = MantineComponentProps;