v-datatable-plus 1.1.0 → 1.1.1

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 CHANGED
@@ -17,6 +17,9 @@
17
17
 
18
18
  `v-datatable-plus` provides enhanced wrappers around Vuetify `VDataTable` and `VDataTableServer`.
19
19
 
20
+ ## [Documentation](https://ansaripro.github.io/v-datatable-plus/)
21
+ Find full documentation and live examples at the link above.
22
+
20
23
  ### Highlights
21
24
 
22
25
  - Header row filtering with typed filter modes (`FilterType`, `FilterMode`)
@@ -196,8 +199,6 @@ function onClickRow(payload: RowClickEventPayload) {
196
199
  </template>
197
200
  ```
198
201
 
199
- ## [Documentation](https://ansaripro.github.io/v-datatable-plus/)
200
-
201
202
  ## License
202
203
 
203
204
  Copyright (c) 2024 AnsariPro
@@ -7,4 +7,4 @@ import type { Plugin } from 'vue';
7
7
  declare const VDatatablePlusPlugin: Plugin;
8
8
  export default VDatatablePlusPlugin;
9
9
  export { VDatatablePlus, VDatatableServerPlus, ResizeableSplitter, FilterType, FilterMode };
10
- export type { FilterTypeValue, FilterModeValue, RowItem, SortDirection, GroupByItem, ItemsPerPageOption, SelectedRowValue, DataTableHeader, ColumnMenuEventPayload, RowClickEventPayload, VDatatablePlusProps, VDatatableServerPlusProps, VDatatablePlusEmits, VDatatableServerPlusEmits, } from './types/index';
10
+ export type { FilterTypeValue, FilterModeValue, RowItem, SortDirection, GroupByItem, ItemsPerPageOption, SelectedRowValue, DataTableHeader, ColumnMenuEventPayload, RowClickEventPayload, ResizeableSplitterProps, VDatatablePlusProps, VDatatableServerPlusProps, VDatatablePlusEmits, VDatatableServerPlusEmits, } from './types/index';
@@ -1,5 +1,6 @@
1
1
  import type { ColumnMenuEventPayload, DataTableHeader, GroupByItem, ItemsPerPageOption, RowClickEventPayload, RowItem, SelectedRowValue } from './datatable';
2
2
  type AnyFn = (...args: any[]) => any;
3
+ type CssLike = string | Record<string, any> | Array<string | Record<string, any>>;
3
4
  interface BaseDatatableProps {
4
5
  hideTitleBar?: boolean;
5
6
  hideColumnMenu?: boolean;
@@ -19,6 +20,13 @@ interface BaseDatatableProps {
19
20
  rowHighlightClass?: string;
20
21
  headerTextSize?: string;
21
22
  headerIconSize?: string;
23
+ headerCellClass?: CssLike;
24
+ headerCellStyle?: CssLike;
25
+ tableClass?: CssLike;
26
+ tableStyle?: CssLike;
27
+ rightPanelClass?: CssLike;
28
+ rightPanelStyle?: CssLike;
29
+ dataTableProps?: Record<string, any>;
22
30
  color?: string;
23
31
  itemValue?: string;
24
32
  search?: string;
@@ -79,6 +87,11 @@ export interface VDatatableServerPlusProps extends BaseDatatableProps {
79
87
  itemsLength?: number;
80
88
  itemsPerPage?: number;
81
89
  }
90
+ export interface ResizeableSplitterProps {
91
+ isFixed?: boolean;
92
+ showSplitter?: boolean;
93
+ splitterPosition?: number;
94
+ }
82
95
  export interface VDatatablePlusEmits {
83
96
  (e: 'update:currentItems', value: any): void;
84
97
  (e: 'update:expanded', value: any[]): void;
@@ -13,4 +13,4 @@ export declare const FilterMode: {
13
13
  export type FilterTypeValue = (typeof FilterType)[keyof typeof FilterType];
14
14
  export type FilterModeValue = (typeof FilterMode)[keyof typeof FilterMode];
15
15
  export type { RowItem, SortDirection, GroupByItem, ItemsPerPageOption, SelectedRowValue, DataTableHeader, ColumnMenuEventPayload, RowClickEventPayload, } from './datatable';
16
- export type { VDatatablePlusProps, VDatatableServerPlusProps, VDatatablePlusEmits, VDatatableServerPlusEmits, } from './components';
16
+ export type { ResizeableSplitterProps, VDatatablePlusProps, VDatatableServerPlusProps, VDatatablePlusEmits, VDatatableServerPlusEmits, } from './components';