@mantine-vue/table 3.0.0 → 3.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/cjs/index.cjs +5966 -2889
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +5884 -2833
- package/esm/index.mjs.map +1 -1
- package/lib/components/MVT_TableSlots.d.ts +28 -0
- package/lib/components/MantineVueTable.vue.d.ts +14 -0
- package/lib/components/body/MVT_TableBody.vue.d.ts +9 -0
- package/lib/components/body/MVT_TableBodyCell.vue.d.ts +14 -0
- package/lib/components/body/MVT_TableBodyCellValue.vue.d.ts +14 -0
- package/lib/components/body/MVT_TableBodyEmptyRow.vue.d.ts +10 -0
- package/lib/components/body/MVT_TableBodyRow.vue.d.ts +31 -0
- package/lib/components/body/MVT_TableBodyRowGrabHandle.vue.d.ts +10 -0
- package/lib/components/body/MVT_TableBodyRowPinButton.vue.d.ts +8 -0
- package/lib/components/body/MVT_TableDetailPanel.vue.d.ts +14 -0
- package/lib/components/buttons/MVT_ColumnPinningButtons.vue.d.ts +8 -0
- package/lib/components/buttons/MVT_CopyButton.vue.d.ts +17 -0
- package/lib/components/buttons/MVT_EditActionButtons.vue.d.ts +9 -0
- package/lib/components/buttons/MVT_ExpandAllButton.vue.d.ts +19 -0
- package/lib/components/buttons/MVT_ExpandButton.vue.d.ts +20 -0
- package/lib/components/buttons/MVT_GrabHandleButton.vue.d.ts +21 -0
- package/lib/components/buttons/MVT_RowPinButton.vue.d.ts +9 -0
- package/lib/components/buttons/MVT_ShowHideColumnsButton.vue.d.ts +7 -0
- package/lib/components/buttons/MVT_ToggleDensePaddingButton.vue.d.ts +8 -0
- package/lib/components/buttons/MVT_ToggleFiltersButton.vue.d.ts +7 -0
- package/lib/components/buttons/MVT_ToggleFullScreenButton.vue.d.ts +7 -0
- package/lib/components/buttons/MVT_ToggleGlobalFilterButton.vue.d.ts +7 -0
- package/lib/components/buttons/MVT_ToggleRowActionMenuButton.vue.d.ts +22 -0
- package/lib/components/footer/MVT_TableFooter.vue.d.ts +8 -0
- package/lib/components/footer/MVT_TableFooterCell.vue.d.ts +9 -0
- package/lib/components/footer/MVT_TableFooterRow.vue.d.ts +9 -0
- package/lib/components/head/MVT_TableHead.vue.d.ts +8 -0
- package/lib/components/head/MVT_TableHeadCell.vue.d.ts +10 -0
- package/lib/components/head/MVT_TableHeadCellFilterContainer.vue.d.ts +21 -0
- package/lib/components/head/MVT_TableHeadCellFilterLabel.vue.d.ts +8 -0
- package/lib/components/head/MVT_TableHeadCellGrabHandle.vue.d.ts +10 -0
- package/lib/components/head/MVT_TableHeadCellResizeHandle.vue.d.ts +8 -0
- package/lib/components/head/MVT_TableHeadCellSortLabel.vue.d.ts +8 -0
- package/lib/components/head/MVT_TableHeadRow.vue.d.ts +9 -0
- package/lib/components/inputs/MVT_EditCellTextInput.vue.d.ts +22 -0
- package/lib/components/inputs/MVT_FilterCheckbox.vue.d.ts +8 -0
- package/lib/components/inputs/MVT_FilterRangeFields.vue.d.ts +8 -0
- package/lib/components/inputs/MVT_FilterRangeSlider.vue.d.ts +8 -0
- package/lib/components/inputs/MVT_FilterTextInput.vue.d.ts +23 -0
- package/lib/components/inputs/MVT_GlobalFilterTextInput.vue.d.ts +7 -0
- package/lib/components/inputs/MVT_SelectCheckbox.vue.d.ts +9 -0
- package/lib/components/menus/MVT_ColumnActionMenu.vue.d.ts +24 -0
- package/lib/components/menus/MVT_FilterOptionMenu.vue.d.ts +26 -0
- package/lib/components/menus/MVT_RowActionMenu.vue.d.ts +21 -0
- package/lib/components/menus/MVT_ShowHideColumnsMenu.vue.d.ts +7 -0
- package/lib/components/menus/MVT_ShowHideColumnsMenuItems.vue.d.ts +15 -0
- package/lib/components/modals/MVT_EditRowModal.vue.d.ts +36 -0
- package/lib/components/table/MVT_Table.vue.d.ts +7 -0
- package/lib/components/table/MVT_TableContainer.vue.d.ts +7 -0
- package/lib/components/table/MVT_TablePaper.vue.d.ts +7 -0
- package/lib/components/toolbar/MVT_BottomToolbar.vue.d.ts +7 -0
- package/lib/components/toolbar/MVT_ProgressBar.vue.d.ts +8 -0
- package/lib/components/toolbar/MVT_TablePagination.vue.d.ts +10 -0
- package/lib/components/toolbar/MVT_ToolbarAlertBanner.vue.d.ts +22 -0
- package/lib/components/toolbar/MVT_ToolbarDropZone.vue.d.ts +7 -0
- package/lib/components/toolbar/MVT_ToolbarInternalButtons.vue.d.ts +7 -0
- package/lib/components/toolbar/MVT_TopToolbar.vue.d.ts +7 -0
- package/lib/index.d.mts +63 -56
- package/lib/index.d.ts +63 -56
- package/lib/server-grouping/MVT_ServerGroupingBody.vue.d.ts +66 -0
- package/lib/server-grouping/MVT_ServerGroupingGroupBy.vue.d.ts +31 -0
- package/lib/server-grouping/createServerGroupingProvider.d.ts +39 -0
- package/lib/server-grouping/serverGrouping.types.d.ts +494 -0
- package/lib/server-grouping/serverGrouping.utils.d.ts +31 -0
- package/lib/server-grouping/serverGroupingSelection.d.ts +65 -0
- package/lib/server-grouping/useMVT_ServerGrouping.d.ts +50 -0
- package/lib/types.d.ts +36 -2
- package/lib/utils/renderable.d.ts +39 -0
- package/lib/utils/style.utils.d.ts +12 -0
- package/locales/en.cjs +11 -0
- package/locales/en.mjs +11 -0
- package/package.json +4 -4
- package/styles.css +60 -0
- package/styles.layer.css +60 -0
- package/lib/components/MantineVueTable.d.ts +0 -18
- package/lib/components/body/MVT_TableBody.d.ts +0 -64
- package/lib/components/body/MVT_TableBodyCell.d.ts +0 -136
- package/lib/components/body/MVT_TableBodyCellValue.d.ts +0 -40
- package/lib/components/body/MVT_TableBodyEmptyRow.d.ts +0 -42
- package/lib/components/body/MVT_TableBodyRow.d.ts +0 -170
- package/lib/components/body/MVT_TableBodyRowGrabHandle.d.ts +0 -31
- package/lib/components/body/MVT_TableBodyRowPinButton.d.ts +0 -23
- package/lib/components/body/MVT_TableDetailPanel.d.ts +0 -68
- package/lib/components/buttons/MVT_ColumnPinningButtons.d.ts +0 -23
- package/lib/components/buttons/MVT_CopyButton.d.ts +0 -23
- package/lib/components/buttons/MVT_EditActionButtons.d.ts +0 -33
- package/lib/components/buttons/MVT_ExpandAllButton.d.ts +0 -15
- package/lib/components/buttons/MVT_ExpandButton.d.ts +0 -23
- package/lib/components/buttons/MVT_GrabHandleButton.d.ts +0 -41
- package/lib/components/buttons/MVT_RowPinButton.d.ts +0 -31
- package/lib/components/buttons/MVT_ShowHideColumnsButton.d.ts +0 -15
- package/lib/components/buttons/MVT_ToggleDensePaddingButton.d.ts +0 -15
- package/lib/components/buttons/MVT_ToggleFiltersButton.d.ts +0 -15
- package/lib/components/buttons/MVT_ToggleFullScreenButton.d.ts +0 -15
- package/lib/components/buttons/MVT_ToggleGlobalFilterButton.d.ts +0 -15
- package/lib/components/buttons/MVT_ToggleRowActionMenuButton.d.ts +0 -31
- package/lib/components/footer/MVT_TableFooter.d.ts +0 -25
- package/lib/components/footer/MVT_TableFooterCell.d.ts +0 -33
- package/lib/components/footer/MVT_TableFooterRow.d.ts +0 -33
- package/lib/components/head/MVT_TableHead.d.ts +0 -25
- package/lib/components/head/MVT_TableHeadCell.d.ts +0 -42
- package/lib/components/head/MVT_TableHeadCellFilterContainer.d.ts +0 -23
- package/lib/components/head/MVT_TableHeadCellFilterLabel.d.ts +0 -23
- package/lib/components/head/MVT_TableHeadCellGrabHandle.d.ts +0 -31
- package/lib/components/head/MVT_TableHeadCellResizeHandle.d.ts +0 -23
- package/lib/components/head/MVT_TableHeadCellSortLabel.d.ts +0 -23
- package/lib/components/head/MVT_TableHeadRow.d.ts +0 -33
- package/lib/components/inputs/MVT_EditCellTextInput.d.ts +0 -23
- package/lib/components/inputs/MVT_FilterCheckbox.d.ts +0 -23
- package/lib/components/inputs/MVT_FilterRangeFields.d.ts +0 -23
- package/lib/components/inputs/MVT_FilterRangeSlider.d.ts +0 -23
- package/lib/components/inputs/MVT_FilterTextInput.d.ts +0 -33
- package/lib/components/inputs/MVT_GlobalFilterTextInput.d.ts +0 -15
- package/lib/components/inputs/MVT_SelectCheckbox.d.ts +0 -34
- package/lib/components/menus/MVT_ColumnActionMenu.d.ts +0 -42
- package/lib/components/menus/MVT_FilterOptionMenu.d.ts +0 -35
- package/lib/components/menus/MVT_RowActionMenu.d.ts +0 -31
- package/lib/components/menus/MVT_ShowHideColumnsMenu.d.ts +0 -15
- package/lib/components/menus/MVT_ShowHideColumnsMenuItems.d.ts +0 -54
- package/lib/components/modals/MVT_EditRowModal.d.ts +0 -29
- package/lib/components/table/MVT_Table.d.ts +0 -15
- package/lib/components/table/MVT_TableContainer.d.ts +0 -15
- package/lib/components/table/MVT_TablePaper.d.ts +0 -15
- package/lib/components/toolbar/MVT_BottomToolbar.d.ts +0 -15
- package/lib/components/toolbar/MVT_ProgressBar.d.ts +0 -23
- package/lib/components/toolbar/MVT_TablePagination.d.ts +0 -25
- package/lib/components/toolbar/MVT_ToolbarAlertBanner.d.ts +0 -25
- package/lib/components/toolbar/MVT_ToolbarDropZone.d.ts +0 -15
- package/lib/components/toolbar/MVT_ToolbarInternalButtons.d.ts +0 -15
- package/lib/components/toolbar/MVT_TopToolbar.d.ts +0 -15
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { MVT_FilterOption, MVT_Header, MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
import type { MVT_InternalFilterOption, MVT_Localization } from '../../types';
|
|
3
|
+
export declare const mrtFilterOptions: (l: MVT_Localization) => MVT_InternalFilterOption[];
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
|
+
header?: MVT_Header<MVT_RowData>;
|
|
8
|
+
onSelect?: () => void;
|
|
9
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
10
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
11
|
+
header?: MVT_Header<MVT_RowData>;
|
|
12
|
+
onSelect?: () => void;
|
|
13
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
14
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (arg: {
|
|
16
|
+
column?: MVT_Header<MVT_RowData>["column"];
|
|
17
|
+
internalFilterOptions: MVT_InternalFilterOption[];
|
|
18
|
+
onSelectFilterMode: (option: MVT_FilterOption) => void;
|
|
19
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
20
|
+
}) => any;
|
|
21
|
+
}>;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { MVT_Row, MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
handleEdit: (event: MouseEvent) => void;
|
|
4
|
+
row: MVT_Row<MVT_RowData>;
|
|
5
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default?: (arg: {
|
|
9
|
+
row: MVT_Row<MVT_RowData>;
|
|
10
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
11
|
+
}) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MVT_Column, MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
allColumns: MVT_Column<MVT_RowData>[];
|
|
4
|
+
column: MVT_Column<MVT_RowData>;
|
|
5
|
+
getHoveredColumn?: () => MVT_Column<MVT_RowData> | null;
|
|
6
|
+
hoveredColumn?: MVT_Column<MVT_RowData> | null;
|
|
7
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
hoveredColumnChange: (args_0: MVT_Column<MVT_RowData> | null) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onHoveredColumnChange?: ((args_0: MVT_Column<MVT_RowData> | null) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type VNodeChild } from 'vue';
|
|
2
|
+
import type { MVT_Row, MVT_RowData, MVT_TableInstance } from '../../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
create?: (arg: {
|
|
9
|
+
internalEditComponents: VNodeChild[];
|
|
10
|
+
row: MVT_Row<MVT_RowData>;
|
|
11
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
12
|
+
}) => any;
|
|
13
|
+
default?: (arg: {
|
|
14
|
+
internalEditComponents: VNodeChild[];
|
|
15
|
+
row: MVT_Row<MVT_RowData>;
|
|
16
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
17
|
+
}) => any;
|
|
18
|
+
edit?: (arg: {
|
|
19
|
+
internalEditComponents: VNodeChild[];
|
|
20
|
+
row: MVT_Row<MVT_RowData>;
|
|
21
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
22
|
+
}) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
close: () => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type MVT_RowData, type MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type MVT_RowData, type MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type MVT_RowData, type MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type MVT_RowData, type MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isTopToolbar: boolean;
|
|
4
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
|
+
position?: "bottom" | "top";
|
|
6
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
7
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
8
|
+
position?: "bottom" | "top";
|
|
9
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
10
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type VNodeChild } from 'vue';
|
|
2
|
+
import type { MVT_RowData, MVT_TableInstance } from '../../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
stackAlertBanner?: boolean;
|
|
5
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
default?: (arg: {
|
|
9
|
+
groupedAlert: VNodeChild;
|
|
10
|
+
selectedAlert: VNodeChild;
|
|
11
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
12
|
+
}) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MVT_RowData, MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type MVT_RowData, type MVT_TableInstance } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
package/lib/index.d.mts
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as MantineVueTable } from './components/MantineVueTable.vue';
|
|
2
2
|
export * from './components/MVT_TableSlots';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
3
|
+
export { default as MVT_TableBody, default as Memo_MVT_TableBody, } from './components/body/MVT_TableBody.vue';
|
|
4
|
+
export { default as MVT_TableBodyCell, default as Memo_MVT_TableBodyCell, } from './components/body/MVT_TableBodyCell.vue';
|
|
5
|
+
export { default as MVT_TableBodyCellValue } from './components/body/MVT_TableBodyCellValue.vue';
|
|
6
|
+
export { default as MVT_TableBodyEmptyRow } from './components/body/MVT_TableBodyEmptyRow.vue';
|
|
7
|
+
export { default as MVT_TableBodyRow, default as Memo_MVT_TableBodyRow, } from './components/body/MVT_TableBodyRow.vue';
|
|
8
|
+
export { default as MVT_TableBodyRowGrabHandle } from './components/body/MVT_TableBodyRowGrabHandle.vue';
|
|
9
|
+
export { default as MVT_TableBodyRowPinButton } from './components/body/MVT_TableBodyRowPinButton.vue';
|
|
10
|
+
export { default as MVT_TableDetailPanel } from './components/body/MVT_TableDetailPanel.vue';
|
|
11
|
+
export { default as MVT_CopyButton } from './components/buttons/MVT_CopyButton.vue';
|
|
12
|
+
export { default as MVT_ColumnPinningButtons } from './components/buttons/MVT_ColumnPinningButtons.vue';
|
|
13
|
+
export { default as MVT_EditActionButtons } from './components/buttons/MVT_EditActionButtons.vue';
|
|
14
|
+
export { default as MVT_ExpandAllButton } from './components/buttons/MVT_ExpandAllButton.vue';
|
|
15
|
+
export { default as MVT_ExpandButton } from './components/buttons/MVT_ExpandButton.vue';
|
|
16
|
+
export { default as MVT_GrabHandleButton } from './components/buttons/MVT_GrabHandleButton.vue';
|
|
17
|
+
export { default as MVT_RowPinButton } from './components/buttons/MVT_RowPinButton.vue';
|
|
18
|
+
export { default as MVT_ShowHideColumnsButton } from './components/buttons/MVT_ShowHideColumnsButton.vue';
|
|
19
|
+
export { default as MVT_ToggleDensePaddingButton } from './components/buttons/MVT_ToggleDensePaddingButton.vue';
|
|
20
|
+
export { default as MVT_ToggleFiltersButton } from './components/buttons/MVT_ToggleFiltersButton.vue';
|
|
21
|
+
export { default as MVT_ToggleFullScreenButton } from './components/buttons/MVT_ToggleFullScreenButton.vue';
|
|
22
|
+
export { default as MVT_ToggleGlobalFilterButton } from './components/buttons/MVT_ToggleGlobalFilterButton.vue';
|
|
23
|
+
export { default as MVT_ToggleRowActionMenuButton } from './components/buttons/MVT_ToggleRowActionMenuButton.vue';
|
|
24
|
+
export { default as MVT_TableFooter } from './components/footer/MVT_TableFooter.vue';
|
|
25
|
+
export { default as MVT_TableFooterCell } from './components/footer/MVT_TableFooterCell.vue';
|
|
26
|
+
export { default as MVT_TableFooterRow } from './components/footer/MVT_TableFooterRow.vue';
|
|
27
|
+
export { default as MVT_TableHead } from './components/head/MVT_TableHead.vue';
|
|
28
|
+
export { default as MVT_TableHeadCell } from './components/head/MVT_TableHeadCell.vue';
|
|
29
|
+
export { default as MVT_TableHeadCellFilterContainer } from './components/head/MVT_TableHeadCellFilterContainer.vue';
|
|
30
|
+
export { default as MVT_TableHeadCellFilterLabel } from './components/head/MVT_TableHeadCellFilterLabel.vue';
|
|
31
|
+
export { default as MVT_TableHeadCellGrabHandle } from './components/head/MVT_TableHeadCellGrabHandle.vue';
|
|
32
|
+
export { default as MVT_TableHeadCellResizeHandle } from './components/head/MVT_TableHeadCellResizeHandle.vue';
|
|
33
|
+
export { default as MVT_TableHeadCellSortLabel } from './components/head/MVT_TableHeadCellSortLabel.vue';
|
|
34
|
+
export { default as MVT_TableHeadRow } from './components/head/MVT_TableHeadRow.vue';
|
|
35
|
+
export { default as MVT_EditCellTextInput } from './components/inputs/MVT_EditCellTextInput.vue';
|
|
36
|
+
export { default as MVT_FilterCheckbox } from './components/inputs/MVT_FilterCheckbox.vue';
|
|
37
|
+
export { default as MVT_FilterRangeFields } from './components/inputs/MVT_FilterRangeFields.vue';
|
|
38
|
+
export { default as MVT_FilterRangeSlider } from './components/inputs/MVT_FilterRangeSlider.vue';
|
|
39
|
+
export { default as MVT_FilterTextInput } from './components/inputs/MVT_FilterTextInput.vue';
|
|
40
|
+
export { default as MVT_GlobalFilterTextInput } from './components/inputs/MVT_GlobalFilterTextInput.vue';
|
|
41
|
+
export { default as MVT_SelectCheckbox } from './components/inputs/MVT_SelectCheckbox.vue';
|
|
42
|
+
export { default as MVT_ColumnActionMenu } from './components/menus/MVT_ColumnActionMenu.vue';
|
|
43
|
+
export { default as MVT_FilterOptionMenu, mrtFilterOptions, } from './components/menus/MVT_FilterOptionMenu.vue';
|
|
44
|
+
export { default as MVT_RowActionMenu } from './components/menus/MVT_RowActionMenu.vue';
|
|
45
|
+
export { default as MVT_ShowHideColumnsMenu } from './components/menus/MVT_ShowHideColumnsMenu.vue';
|
|
46
|
+
export { default as MVT_ShowHideColumnsMenuItems } from './components/menus/MVT_ShowHideColumnsMenuItems.vue';
|
|
47
|
+
export { default as MVT_EditRowModal } from './components/modals/MVT_EditRowModal.vue';
|
|
48
|
+
export { default as MVT_Table } from './components/table/MVT_Table.vue';
|
|
49
|
+
export { default as MVT_TableContainer } from './components/table/MVT_TableContainer.vue';
|
|
50
|
+
export { default as MVT_TablePaper } from './components/table/MVT_TablePaper.vue';
|
|
51
|
+
export { default as MVT_BottomToolbar } from './components/toolbar/MVT_BottomToolbar.vue';
|
|
52
|
+
export { default as MVT_ProgressBar } from './components/toolbar/MVT_ProgressBar.vue';
|
|
53
|
+
export { default as MVT_TablePagination } from './components/toolbar/MVT_TablePagination.vue';
|
|
54
|
+
export { default as MVT_ToolbarAlertBanner } from './components/toolbar/MVT_ToolbarAlertBanner.vue';
|
|
55
|
+
export { default as MVT_ToolbarDropZone } from './components/toolbar/MVT_ToolbarDropZone.vue';
|
|
56
|
+
export { default as MVT_ToolbarInternalButtons } from './components/toolbar/MVT_ToolbarInternalButtons.vue';
|
|
57
|
+
export { default as MVT_TopToolbar } from './components/toolbar/MVT_TopToolbar.vue';
|
|
58
|
+
export * from './server-grouping/createServerGroupingProvider';
|
|
59
|
+
export { default as MVT_ServerGroupingBody } from './server-grouping/MVT_ServerGroupingBody.vue';
|
|
60
|
+
export { default as MVT_ServerGroupingGroupBy, getServerGroupableColumns, getServerGroupingColumnActions, getServerGroupingGroupByContext, } from './server-grouping/MVT_ServerGroupingGroupBy.vue';
|
|
61
|
+
export * from './server-grouping/serverGrouping.types';
|
|
62
|
+
export * from './server-grouping/serverGrouping.utils';
|
|
63
|
+
export * from './server-grouping/serverGroupingSelection';
|
|
64
|
+
export * from './server-grouping/useMVT_ServerGrouping';
|
|
58
65
|
export * from './fns/aggregationFns';
|
|
59
66
|
export * from './fns/filterFns';
|
|
60
67
|
export * from './fns/sortingFns';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as MantineVueTable } from './components/MantineVueTable.vue';
|
|
2
2
|
export * from './components/MVT_TableSlots';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
3
|
+
export { default as MVT_TableBody, default as Memo_MVT_TableBody, } from './components/body/MVT_TableBody.vue';
|
|
4
|
+
export { default as MVT_TableBodyCell, default as Memo_MVT_TableBodyCell, } from './components/body/MVT_TableBodyCell.vue';
|
|
5
|
+
export { default as MVT_TableBodyCellValue } from './components/body/MVT_TableBodyCellValue.vue';
|
|
6
|
+
export { default as MVT_TableBodyEmptyRow } from './components/body/MVT_TableBodyEmptyRow.vue';
|
|
7
|
+
export { default as MVT_TableBodyRow, default as Memo_MVT_TableBodyRow, } from './components/body/MVT_TableBodyRow.vue';
|
|
8
|
+
export { default as MVT_TableBodyRowGrabHandle } from './components/body/MVT_TableBodyRowGrabHandle.vue';
|
|
9
|
+
export { default as MVT_TableBodyRowPinButton } from './components/body/MVT_TableBodyRowPinButton.vue';
|
|
10
|
+
export { default as MVT_TableDetailPanel } from './components/body/MVT_TableDetailPanel.vue';
|
|
11
|
+
export { default as MVT_CopyButton } from './components/buttons/MVT_CopyButton.vue';
|
|
12
|
+
export { default as MVT_ColumnPinningButtons } from './components/buttons/MVT_ColumnPinningButtons.vue';
|
|
13
|
+
export { default as MVT_EditActionButtons } from './components/buttons/MVT_EditActionButtons.vue';
|
|
14
|
+
export { default as MVT_ExpandAllButton } from './components/buttons/MVT_ExpandAllButton.vue';
|
|
15
|
+
export { default as MVT_ExpandButton } from './components/buttons/MVT_ExpandButton.vue';
|
|
16
|
+
export { default as MVT_GrabHandleButton } from './components/buttons/MVT_GrabHandleButton.vue';
|
|
17
|
+
export { default as MVT_RowPinButton } from './components/buttons/MVT_RowPinButton.vue';
|
|
18
|
+
export { default as MVT_ShowHideColumnsButton } from './components/buttons/MVT_ShowHideColumnsButton.vue';
|
|
19
|
+
export { default as MVT_ToggleDensePaddingButton } from './components/buttons/MVT_ToggleDensePaddingButton.vue';
|
|
20
|
+
export { default as MVT_ToggleFiltersButton } from './components/buttons/MVT_ToggleFiltersButton.vue';
|
|
21
|
+
export { default as MVT_ToggleFullScreenButton } from './components/buttons/MVT_ToggleFullScreenButton.vue';
|
|
22
|
+
export { default as MVT_ToggleGlobalFilterButton } from './components/buttons/MVT_ToggleGlobalFilterButton.vue';
|
|
23
|
+
export { default as MVT_ToggleRowActionMenuButton } from './components/buttons/MVT_ToggleRowActionMenuButton.vue';
|
|
24
|
+
export { default as MVT_TableFooter } from './components/footer/MVT_TableFooter.vue';
|
|
25
|
+
export { default as MVT_TableFooterCell } from './components/footer/MVT_TableFooterCell.vue';
|
|
26
|
+
export { default as MVT_TableFooterRow } from './components/footer/MVT_TableFooterRow.vue';
|
|
27
|
+
export { default as MVT_TableHead } from './components/head/MVT_TableHead.vue';
|
|
28
|
+
export { default as MVT_TableHeadCell } from './components/head/MVT_TableHeadCell.vue';
|
|
29
|
+
export { default as MVT_TableHeadCellFilterContainer } from './components/head/MVT_TableHeadCellFilterContainer.vue';
|
|
30
|
+
export { default as MVT_TableHeadCellFilterLabel } from './components/head/MVT_TableHeadCellFilterLabel.vue';
|
|
31
|
+
export { default as MVT_TableHeadCellGrabHandle } from './components/head/MVT_TableHeadCellGrabHandle.vue';
|
|
32
|
+
export { default as MVT_TableHeadCellResizeHandle } from './components/head/MVT_TableHeadCellResizeHandle.vue';
|
|
33
|
+
export { default as MVT_TableHeadCellSortLabel } from './components/head/MVT_TableHeadCellSortLabel.vue';
|
|
34
|
+
export { default as MVT_TableHeadRow } from './components/head/MVT_TableHeadRow.vue';
|
|
35
|
+
export { default as MVT_EditCellTextInput } from './components/inputs/MVT_EditCellTextInput.vue';
|
|
36
|
+
export { default as MVT_FilterCheckbox } from './components/inputs/MVT_FilterCheckbox.vue';
|
|
37
|
+
export { default as MVT_FilterRangeFields } from './components/inputs/MVT_FilterRangeFields.vue';
|
|
38
|
+
export { default as MVT_FilterRangeSlider } from './components/inputs/MVT_FilterRangeSlider.vue';
|
|
39
|
+
export { default as MVT_FilterTextInput } from './components/inputs/MVT_FilterTextInput.vue';
|
|
40
|
+
export { default as MVT_GlobalFilterTextInput } from './components/inputs/MVT_GlobalFilterTextInput.vue';
|
|
41
|
+
export { default as MVT_SelectCheckbox } from './components/inputs/MVT_SelectCheckbox.vue';
|
|
42
|
+
export { default as MVT_ColumnActionMenu } from './components/menus/MVT_ColumnActionMenu.vue';
|
|
43
|
+
export { default as MVT_FilterOptionMenu, mrtFilterOptions, } from './components/menus/MVT_FilterOptionMenu.vue';
|
|
44
|
+
export { default as MVT_RowActionMenu } from './components/menus/MVT_RowActionMenu.vue';
|
|
45
|
+
export { default as MVT_ShowHideColumnsMenu } from './components/menus/MVT_ShowHideColumnsMenu.vue';
|
|
46
|
+
export { default as MVT_ShowHideColumnsMenuItems } from './components/menus/MVT_ShowHideColumnsMenuItems.vue';
|
|
47
|
+
export { default as MVT_EditRowModal } from './components/modals/MVT_EditRowModal.vue';
|
|
48
|
+
export { default as MVT_Table } from './components/table/MVT_Table.vue';
|
|
49
|
+
export { default as MVT_TableContainer } from './components/table/MVT_TableContainer.vue';
|
|
50
|
+
export { default as MVT_TablePaper } from './components/table/MVT_TablePaper.vue';
|
|
51
|
+
export { default as MVT_BottomToolbar } from './components/toolbar/MVT_BottomToolbar.vue';
|
|
52
|
+
export { default as MVT_ProgressBar } from './components/toolbar/MVT_ProgressBar.vue';
|
|
53
|
+
export { default as MVT_TablePagination } from './components/toolbar/MVT_TablePagination.vue';
|
|
54
|
+
export { default as MVT_ToolbarAlertBanner } from './components/toolbar/MVT_ToolbarAlertBanner.vue';
|
|
55
|
+
export { default as MVT_ToolbarDropZone } from './components/toolbar/MVT_ToolbarDropZone.vue';
|
|
56
|
+
export { default as MVT_ToolbarInternalButtons } from './components/toolbar/MVT_ToolbarInternalButtons.vue';
|
|
57
|
+
export { default as MVT_TopToolbar } from './components/toolbar/MVT_TopToolbar.vue';
|
|
58
|
+
export * from './server-grouping/createServerGroupingProvider';
|
|
59
|
+
export { default as MVT_ServerGroupingBody } from './server-grouping/MVT_ServerGroupingBody.vue';
|
|
60
|
+
export { default as MVT_ServerGroupingGroupBy, getServerGroupableColumns, getServerGroupingColumnActions, getServerGroupingGroupByContext, } from './server-grouping/MVT_ServerGroupingGroupBy.vue';
|
|
61
|
+
export * from './server-grouping/serverGrouping.types';
|
|
62
|
+
export * from './server-grouping/serverGrouping.utils';
|
|
63
|
+
export * from './server-grouping/serverGroupingSelection';
|
|
64
|
+
export * from './server-grouping/useMVT_ServerGrouping';
|
|
58
65
|
export * from './fns/aggregationFns';
|
|
59
66
|
export * from './fns/filterFns';
|
|
60
67
|
export * from './fns/sortingFns';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type MVT_TableInstance } from '../types';
|
|
2
|
+
import type { VNodeChild } from 'vue';
|
|
3
|
+
import type { MVT_Column, MVT_Row, MVT_RowData } from '../types';
|
|
4
|
+
import type { MVT_ServerGroupNode, MVT_ServerGroupPathId } from './serverGrouping.types';
|
|
5
|
+
interface ServerGroupingCell {
|
|
6
|
+
content?: VNodeChild;
|
|
7
|
+
key: string;
|
|
8
|
+
kind: 'aggregate' | 'label' | 'spacer';
|
|
9
|
+
style: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The hierarchy flattened into sibling `<tr>`s. Table rows cannot nest, so the
|
|
13
|
+
* recursive walk produces a list the template renders in one pass.
|
|
14
|
+
*/
|
|
15
|
+
type ServerGroupingEntry = {
|
|
16
|
+
cells: ServerGroupingCell[];
|
|
17
|
+
count: VNodeChild;
|
|
18
|
+
depth: number;
|
|
19
|
+
expanded: boolean;
|
|
20
|
+
hasChildren: boolean;
|
|
21
|
+
key: string;
|
|
22
|
+
kind: 'group';
|
|
23
|
+
label: VNodeChild;
|
|
24
|
+
node: MVT_ServerGroupNode;
|
|
25
|
+
pathId: MVT_ServerGroupPathId;
|
|
26
|
+
rowProps: Record<string, any>;
|
|
27
|
+
showLoader: boolean;
|
|
28
|
+
} | {
|
|
29
|
+
custom: VNodeChild;
|
|
30
|
+
depth: number;
|
|
31
|
+
error: unknown;
|
|
32
|
+
key: string;
|
|
33
|
+
kind: 'error';
|
|
34
|
+
retry: () => void;
|
|
35
|
+
} | {
|
|
36
|
+
custom: VNodeChild;
|
|
37
|
+
depth: number;
|
|
38
|
+
key: string;
|
|
39
|
+
kind: 'empty' | 'loading';
|
|
40
|
+
} | {
|
|
41
|
+
index: number;
|
|
42
|
+
key: string;
|
|
43
|
+
kind: 'record';
|
|
44
|
+
numRows: number;
|
|
45
|
+
row: MVT_Row<MVT_RowData>;
|
|
46
|
+
} | {
|
|
47
|
+
depth: number;
|
|
48
|
+
isFetching: boolean;
|
|
49
|
+
key: string;
|
|
50
|
+
kind: 'pagination';
|
|
51
|
+
pageIndex: number;
|
|
52
|
+
rangeLabel: string;
|
|
53
|
+
setPageIndex: (pageIndex: number) => void;
|
|
54
|
+
totalRowCount: number;
|
|
55
|
+
lastRowIndex: number;
|
|
56
|
+
};
|
|
57
|
+
export type { ServerGroupingCell, ServerGroupingEntry, MVT_Column };
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
60
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
61
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
62
|
+
tableProps: Record<string, any>;
|
|
63
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
64
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
65
|
+
tableProps: Record<string, any>;
|
|
66
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type MVT_RowData, type MVT_TableInstance } from '../types';
|
|
2
|
+
import { type MVT_ServerGroupableColumn, type MVT_ServerGroupingGroupByContext } from './serverGrouping.types';
|
|
3
|
+
import { type MVT_ServerGroupingManager } from './useMVT_ServerGrouping';
|
|
4
|
+
/**
|
|
5
|
+
* Resolve the columns/fields offered by the group-by toolbar control.
|
|
6
|
+
*
|
|
7
|
+
* With `serverGrouping.groupBy.columns` set, exactly that whitelist is used
|
|
8
|
+
* (entries may be custom descriptors like `'createdAt:month'`). Otherwise
|
|
9
|
+
* every leaf `data` column whose `enableGrouping` is not `false` is offered —
|
|
10
|
+
* display columns and columns with `enableGrouping: false` never appear.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getServerGroupableColumns: (table: MVT_TableInstance<any>) => MVT_ServerGroupableColumn[];
|
|
13
|
+
/** Build the scoped context handed to the group-by slot / render callback. */
|
|
14
|
+
export declare const getServerGroupingGroupByContext: (table: MVT_TableInstance<any>, manager: MVT_ServerGroupingManager<MVT_RowData>) => MVT_ServerGroupingGroupByContext;
|
|
15
|
+
/**
|
|
16
|
+
* Grouping actions for one column's action menu, or `undefined` when the
|
|
17
|
+
* column cannot be grouped by.
|
|
18
|
+
*
|
|
19
|
+
* Uses exactly the same rules as the toolbar "Group by" control: server
|
|
20
|
+
* grouping must be active and driven by the table's `grouping` state, the
|
|
21
|
+
* control must not be disabled, and the column must be offered by
|
|
22
|
+
* {@link getServerGroupableColumns}.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getServerGroupingColumnActions: (table: MVT_TableInstance<any>, columnId: string) => MVT_ServerGroupingGroupByContext | undefined;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
28
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
29
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
30
|
+
table: MVT_TableInstance<MVT_RowData>;
|
|
31
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|