@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.
- package/README.md +340 -0
- package/cjs/index.cjs +5345 -0
- package/cjs/index.cjs.map +1 -0
- package/esm/index.mjs +5214 -0
- package/esm/index.mjs.map +1 -0
- package/lib/components/MVT_TableSlots.d.ts +103 -0
- package/lib/components/MantineVueTable.d.ts +18 -0
- package/lib/components/body/MVT_TableBody.d.ts +64 -0
- package/lib/components/body/MVT_TableBodyCell.d.ts +136 -0
- package/lib/components/body/MVT_TableBodyCellValue.d.ts +40 -0
- package/lib/components/body/MVT_TableBodyEmptyRow.d.ts +42 -0
- package/lib/components/body/MVT_TableBodyRow.d.ts +170 -0
- package/lib/components/body/MVT_TableBodyRowGrabHandle.d.ts +31 -0
- package/lib/components/body/MVT_TableBodyRowPinButton.d.ts +23 -0
- package/lib/components/body/MVT_TableDetailPanel.d.ts +68 -0
- package/lib/components/buttons/MVT_ColumnPinningButtons.d.ts +23 -0
- package/lib/components/buttons/MVT_CopyButton.d.ts +23 -0
- package/lib/components/buttons/MVT_EditActionButtons.d.ts +33 -0
- package/lib/components/buttons/MVT_ExpandAllButton.d.ts +15 -0
- package/lib/components/buttons/MVT_ExpandButton.d.ts +23 -0
- package/lib/components/buttons/MVT_GrabHandleButton.d.ts +41 -0
- package/lib/components/buttons/MVT_RowPinButton.d.ts +31 -0
- package/lib/components/buttons/MVT_ShowHideColumnsButton.d.ts +15 -0
- package/lib/components/buttons/MVT_ToggleDensePaddingButton.d.ts +15 -0
- package/lib/components/buttons/MVT_ToggleFiltersButton.d.ts +15 -0
- package/lib/components/buttons/MVT_ToggleFullScreenButton.d.ts +15 -0
- package/lib/components/buttons/MVT_ToggleGlobalFilterButton.d.ts +15 -0
- package/lib/components/buttons/MVT_ToggleRowActionMenuButton.d.ts +31 -0
- package/lib/components/footer/MVT_TableFooter.d.ts +25 -0
- package/lib/components/footer/MVT_TableFooterCell.d.ts +33 -0
- package/lib/components/footer/MVT_TableFooterRow.d.ts +33 -0
- package/lib/components/head/MVT_TableHead.d.ts +25 -0
- package/lib/components/head/MVT_TableHeadCell.d.ts +42 -0
- package/lib/components/head/MVT_TableHeadCellFilterContainer.d.ts +23 -0
- package/lib/components/head/MVT_TableHeadCellFilterLabel.d.ts +23 -0
- package/lib/components/head/MVT_TableHeadCellGrabHandle.d.ts +31 -0
- package/lib/components/head/MVT_TableHeadCellResizeHandle.d.ts +23 -0
- package/lib/components/head/MVT_TableHeadCellSortLabel.d.ts +23 -0
- package/lib/components/head/MVT_TableHeadRow.d.ts +33 -0
- package/lib/components/inputs/MVT_EditCellTextInput.d.ts +23 -0
- package/lib/components/inputs/MVT_FilterCheckbox.d.ts +23 -0
- package/lib/components/inputs/MVT_FilterRangeFields.d.ts +23 -0
- package/lib/components/inputs/MVT_FilterRangeSlider.d.ts +23 -0
- package/lib/components/inputs/MVT_FilterTextInput.d.ts +33 -0
- package/lib/components/inputs/MVT_GlobalFilterTextInput.d.ts +15 -0
- package/lib/components/inputs/MVT_SelectCheckbox.d.ts +34 -0
- package/lib/components/menus/MVT_ColumnActionMenu.d.ts +42 -0
- package/lib/components/menus/MVT_FilterOptionMenu.d.ts +35 -0
- package/lib/components/menus/MVT_RowActionMenu.d.ts +31 -0
- package/lib/components/menus/MVT_ShowHideColumnsMenu.d.ts +15 -0
- package/lib/components/menus/MVT_ShowHideColumnsMenuItems.d.ts +54 -0
- package/lib/components/modals/MVT_EditRowModal.d.ts +29 -0
- package/lib/components/table/MVT_Table.d.ts +15 -0
- package/lib/components/table/MVT_TableContainer.d.ts +15 -0
- package/lib/components/table/MVT_TablePaper.d.ts +15 -0
- package/lib/components/toolbar/MVT_BottomToolbar.d.ts +15 -0
- package/lib/components/toolbar/MVT_ProgressBar.d.ts +23 -0
- package/lib/components/toolbar/MVT_TablePagination.d.ts +25 -0
- package/lib/components/toolbar/MVT_ToolbarAlertBanner.d.ts +25 -0
- package/lib/components/toolbar/MVT_ToolbarDropZone.d.ts +15 -0
- package/lib/components/toolbar/MVT_ToolbarInternalButtons.d.ts +15 -0
- package/lib/components/toolbar/MVT_TopToolbar.d.ts +15 -0
- package/lib/fns/aggregationFns.d.ts +11 -0
- package/lib/fns/filterFns.d.ts +70 -0
- package/lib/fns/sortingFns.d.ts +12 -0
- package/lib/hooks/display-columns/getMVT_RowActionsColumnDef.d.ts +2 -0
- package/lib/hooks/display-columns/getMVT_RowDragColumnDef.d.ts +2 -0
- package/lib/hooks/display-columns/getMVT_RowExpandColumnDef.d.ts +2 -0
- package/lib/hooks/display-columns/getMVT_RowNumbersColumnDef.d.ts +2 -0
- package/lib/hooks/display-columns/getMVT_RowPinningColumnDef.d.ts +2 -0
- package/lib/hooks/display-columns/getMVT_RowSelectColumnDef.d.ts +2 -0
- package/lib/hooks/display-columns/getMVT_RowSpacerColumnDef.d.ts +2 -0
- package/lib/hooks/useMVT_ColumnVirtualizer.d.ts +3 -0
- package/lib/hooks/useMVT_Effects.d.ts +5 -0
- package/lib/hooks/useMVT_RowVirtualizer.d.ts +3 -0
- package/lib/hooks/useMVT_Rows.d.ts +6 -0
- package/lib/hooks/useMVT_TableInstance.d.ts +10 -0
- package/lib/hooks/useMVT_TableOptions.d.ts +25 -0
- package/lib/hooks/useMantineVueTable.d.ts +2 -0
- package/lib/icons.d.ts +36 -0
- package/lib/index.d.mts +75 -0
- package/lib/index.d.ts +75 -0
- package/lib/locales/ar.d.ts +2 -0
- package/lib/locales/az.d.ts +2 -0
- package/lib/locales/bg.d.ts +2 -0
- package/lib/locales/cs.d.ts +2 -0
- package/lib/locales/da.d.ts +2 -0
- package/lib/locales/de.d.ts +2 -0
- package/lib/locales/el.d.ts +2 -0
- package/lib/locales/en.d.ts +2 -0
- package/lib/locales/es.d.ts +2 -0
- package/lib/locales/et.d.ts +2 -0
- package/lib/locales/fa.d.ts +2 -0
- package/lib/locales/fi.d.ts +2 -0
- package/lib/locales/fr.d.ts +2 -0
- package/lib/locales/he.d.ts +2 -0
- package/lib/locales/hr.d.ts +2 -0
- package/lib/locales/hu.d.ts +2 -0
- package/lib/locales/hy.d.ts +2 -0
- package/lib/locales/id.d.ts +2 -0
- package/lib/locales/it.d.ts +2 -0
- package/lib/locales/ja.d.ts +2 -0
- package/lib/locales/ko.d.ts +2 -0
- package/lib/locales/nl.d.ts +2 -0
- package/lib/locales/no.d.ts +2 -0
- package/lib/locales/np.d.ts +2 -0
- package/lib/locales/pl.d.ts +2 -0
- package/lib/locales/pt-BR.d.ts +2 -0
- package/lib/locales/pt.d.ts +2 -0
- package/lib/locales/ro.d.ts +2 -0
- package/lib/locales/ru.d.ts +2 -0
- package/lib/locales/sk.d.ts +2 -0
- package/lib/locales/sr-Cyrl-RS.d.ts +2 -0
- package/lib/locales/sr-Latn-RS.d.ts +2 -0
- package/lib/locales/sv.d.ts +2 -0
- package/lib/locales/th.d.ts +2 -0
- package/lib/locales/tr.d.ts +2 -0
- package/lib/locales/uk.d.ts +2 -0
- package/lib/locales/vi.d.ts +2 -0
- package/lib/locales/zh-Hans.d.ts +2 -0
- package/lib/locales/zh-Hant.d.ts +2 -0
- package/lib/mantine.types.d.ts +32 -0
- package/lib/types.d.ts +887 -0
- package/lib/utils/column.utils.d.ts +9 -0
- package/lib/utils/displayColumn.utils.d.ts +17 -0
- package/lib/utils/row.utils.d.ts +16 -0
- package/lib/utils/style.utils.d.ts +8 -0
- package/lib/utils/tanstack.helpers.d.ts +14 -0
- package/lib/utils/utils.d.ts +1 -0
- package/lib/utils/virtualization.utils.d.ts +2 -0
- package/locales/ar.cjs +97 -0
- package/locales/ar.mjs +96 -0
- package/locales/az.cjs +97 -0
- package/locales/az.mjs +96 -0
- package/locales/bg.cjs +97 -0
- package/locales/bg.mjs +96 -0
- package/locales/cs.cjs +97 -0
- package/locales/cs.mjs +96 -0
- package/locales/da.cjs +97 -0
- package/locales/da.mjs +96 -0
- package/locales/de.cjs +97 -0
- package/locales/de.mjs +96 -0
- package/locales/el.cjs +97 -0
- package/locales/el.mjs +96 -0
- package/locales/en.cjs +97 -0
- package/locales/en.mjs +96 -0
- package/locales/es.cjs +97 -0
- package/locales/es.mjs +96 -0
- package/locales/et.cjs +97 -0
- package/locales/et.mjs +96 -0
- package/locales/fa.cjs +97 -0
- package/locales/fa.mjs +96 -0
- package/locales/fi.cjs +97 -0
- package/locales/fi.mjs +96 -0
- package/locales/fr.cjs +97 -0
- package/locales/fr.mjs +96 -0
- package/locales/he.cjs +97 -0
- package/locales/he.mjs +96 -0
- package/locales/hr.cjs +97 -0
- package/locales/hr.mjs +96 -0
- package/locales/hu.cjs +97 -0
- package/locales/hu.mjs +96 -0
- package/locales/hy.cjs +97 -0
- package/locales/hy.mjs +96 -0
- package/locales/id.cjs +97 -0
- package/locales/id.mjs +96 -0
- package/locales/it.cjs +97 -0
- package/locales/it.mjs +96 -0
- package/locales/ja.cjs +97 -0
- package/locales/ja.mjs +96 -0
- package/locales/ko.cjs +97 -0
- package/locales/ko.mjs +96 -0
- package/locales/nl.cjs +97 -0
- package/locales/nl.mjs +96 -0
- package/locales/no.cjs +97 -0
- package/locales/no.mjs +96 -0
- package/locales/np.cjs +97 -0
- package/locales/np.mjs +96 -0
- package/locales/pl.cjs +97 -0
- package/locales/pl.mjs +96 -0
- package/locales/pt-BR.cjs +97 -0
- package/locales/pt-BR.mjs +96 -0
- package/locales/pt.cjs +97 -0
- package/locales/pt.mjs +96 -0
- package/locales/ro.cjs +97 -0
- package/locales/ro.mjs +96 -0
- package/locales/ru.cjs +97 -0
- package/locales/ru.mjs +96 -0
- package/locales/sk.cjs +97 -0
- package/locales/sk.mjs +96 -0
- package/locales/sr-Cyrl-RS.cjs +97 -0
- package/locales/sr-Cyrl-RS.mjs +96 -0
- package/locales/sr-Latn-RS.cjs +97 -0
- package/locales/sr-Latn-RS.mjs +96 -0
- package/locales/sv.cjs +97 -0
- package/locales/sv.mjs +96 -0
- package/locales/th.cjs +97 -0
- package/locales/th.mjs +96 -0
- package/locales/tr.cjs +97 -0
- package/locales/tr.mjs +96 -0
- package/locales/uk.cjs +97 -0
- package/locales/uk.mjs +96 -0
- package/locales/vi.cjs +97 -0
- package/locales/vi.mjs +96 -0
- package/locales/zh-Hans.cjs +97 -0
- package/locales/zh-Hans.mjs +96 -0
- package/locales/zh-Hant.cjs +97 -0
- package/locales/zh-Hant.mjs +96 -0
- package/package.json +79 -0
- package/styles.css +1118 -0
- 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,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,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>;
|
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>;
|
package/lib/index.d.mts
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';
|
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,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;
|