Skip to content

Commit ae51c00

Browse files
Merge pull request #63 from webdevnerdstuff/dev
v1.1.0
2 parents f84fe79 + 35c45fe commit ae51c00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+6981
-5921
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trim_trailing_whitespace = false
1414
[*.{yml,yaml}]
1515
indent_size = 2
1616

17-
[*.{js,ts,vue}]
17+
[*.{js,ts,mts,vue}]
1818
indent_size = 2
1919
indent_style = tab
2020

.eslintrc.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ module.exports = {
1313
],
1414
ignorePatterns: [
1515
'.eslintrc.js',
16-
'vite.build.config.ts',
17-
'vite.config.ts',
16+
'vite.build.config.mts',
17+
'vite.config.mts',
18+
'*.bk.vue',
19+
'*.spec.ts',
1820
],
1921
overrides: [
2022
{
@@ -39,11 +41,6 @@ module.exports = {
3941
'vue',
4042
],
4143
root: true,
42-
settings: {
43-
'import/resolver': {
44-
'babel-module': {},
45-
},
46-
},
4744
rules: {
4845
'@typescript-eslint/ban-ts-comment': 0,
4946
'@typescript-eslint/ban-types': [

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
npx lint-staged && npm run test:build

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
node-version=19.9.0
2-
engine-strict=true
1+
node-version=20.10.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.9.0
1+
20.10.0

dist/plugin/VDrilldownTable.vue.d.ts

Lines changed: 60 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Props } from '../types';
1+
import { Props } from './types';
22
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
33
colorPercentageChange: number;
44
colorPercentageDirection: "desc";
55
colors: () => {
6-
readonly default: import('../types').DefaultColors;
6+
readonly default: import('./types').DefaultColors;
77
readonly footer: {
88
readonly background: undefined;
99
readonly color: undefined;
@@ -16,15 +16,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
1616
readonly percentageDirection: "desc";
1717
};
1818
columnWidths: () => never[];
19-
defaultColors: () => import('../types').DefaultColors;
19+
defaultColors: () => import('./types').DefaultColors;
2020
density: string;
2121
drilldownKey: string;
2222
elevation: number;
2323
expandOnClick: boolean;
2424
filterKeys: undefined;
2525
footerBackgroundColor: undefined;
2626
footerColor: undefined;
27-
footers: () => import('../types').Column[];
27+
footers: () => import('./types').Column[];
2828
headerBackgroundColor: undefined;
2929
headerColor: undefined;
3030
height: string;
@@ -75,7 +75,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7575
xxl: number;
7676
};
7777
searchDebounce: number;
78-
searchEvents: () => {};
7978
searchMaxWait: number;
8079
searchProps: () => {};
8180
selectStrategy: "page";
@@ -90,20 +89,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9089
sortBy: () => never[];
9190
tableType: () => {};
9291
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
93-
"update:drilldown": (...args: any[]) => void;
94-
"update:expanded": (...args: any[]) => void;
9592
"click:row": (...args: any[]) => void;
9693
"click:row:checkbox": (...args: any[]) => void;
97-
"update:sortBy": (...args: any[]) => void;
98-
"update:search": (...args: any[]) => void;
94+
"update:expanded": (...args: any[]) => void;
95+
"update:drilldown": (...args: any[]) => void;
9996
"update:options": (...args: any[]) => void;
10097
"update:itemsPerPage": (...args: any[]) => void;
10198
"update:page": (...args: any[]) => void;
102-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
99+
"update:search": (...args: any[]) => void;
100+
"update:sortBy": (...args: any[]) => void;
101+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
103102
colorPercentageChange: number;
104103
colorPercentageDirection: "desc";
105104
colors: () => {
106-
readonly default: import('../types').DefaultColors;
105+
readonly default: import('./types').DefaultColors;
107106
readonly footer: {
108107
readonly background: undefined;
109108
readonly color: undefined;
@@ -116,15 +115,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
116115
readonly percentageDirection: "desc";
117116
};
118117
columnWidths: () => never[];
119-
defaultColors: () => import('../types').DefaultColors;
118+
defaultColors: () => import('./types').DefaultColors;
120119
density: string;
121120
drilldownKey: string;
122121
elevation: number;
123122
expandOnClick: boolean;
124123
filterKeys: undefined;
125124
footerBackgroundColor: undefined;
126125
footerColor: undefined;
127-
footers: () => import('../types').Column[];
126+
footers: () => import('./types').Column[];
128127
headerBackgroundColor: undefined;
129128
headerColor: undefined;
130129
height: string;
@@ -175,7 +174,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
175174
xxl: number;
176175
};
177176
searchDebounce: number;
178-
searchEvents: () => {};
179177
searchMaxWait: number;
180178
searchProps: () => {};
181179
selectStrategy: "page";
@@ -190,71 +188,70 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
190188
sortBy: () => never[];
191189
tableType: () => {};
192190
}>>> & {
193-
"onUpdate:sortBy"?: ((...args: any[]) => any) | undefined;
194-
"onUpdate:expanded"?: ((...args: any[]) => any) | undefined;
195-
"onUpdate:page"?: ((...args: any[]) => any) | undefined;
196-
"onUpdate:itemsPerPage"?: ((...args: any[]) => any) | undefined;
197-
"onUpdate:options"?: ((...args: any[]) => any) | undefined;
198191
"onClick:row"?: ((...args: any[]) => any) | undefined;
199192
"onClick:row:checkbox"?: ((...args: any[]) => any) | undefined;
200-
"onUpdate:search"?: ((...args: any[]) => any) | undefined;
193+
"onUpdate:expanded"?: ((...args: any[]) => any) | undefined;
201194
"onUpdate:drilldown"?: ((...args: any[]) => any) | undefined;
195+
"onUpdate:options"?: ((...args: any[]) => any) | undefined;
196+
"onUpdate:itemsPerPage"?: ((...args: any[]) => any) | undefined;
197+
"onUpdate:page"?: ((...args: any[]) => any) | undefined;
198+
"onUpdate:search"?: ((...args: any[]) => any) | undefined;
199+
"onUpdate:sortBy"?: ((...args: any[]) => any) | undefined;
202200
}, {
203-
filterKeys: string | string[];
204-
noFilter: boolean;
201+
page: string | number;
202+
colorPercentageChange: number;
203+
colorPercentageDirection: "desc" | "asc";
205204
density: any;
206-
height: string | number;
207-
hover: boolean;
208-
loading: string | boolean;
209-
sortAscIcon: string | import("vue").JSXComponent | (string | [path: string, opacity: number])[];
210-
sortBy: readonly {
211-
key: string;
212-
order?: boolean | "asc" | "desc" | undefined;
213-
}[];
214-
showSelect: boolean;
215-
selectStrategy: "page" | "all" | "single";
216-
items: any[];
217-
itemValue: string | boolean | readonly (string | number)[] | ((item: Record<string, any>, fallback?: any) => any) | null;
218-
itemSelectable: string | boolean | readonly (string | number)[] | ((item: Record<string, any>, fallback?: any) => any) | null;
219-
returnObject: boolean;
205+
drilldownKey: string;
206+
elevation: string | number;
220207
expandOnClick: boolean;
221-
showExpand: boolean;
222-
search: string;
223-
loadingText: string;
208+
footers: import('./types').Column[];
209+
height: string | number;
224210
hideNoData: boolean;
225-
noDataText: string;
226-
page: string | number;
227-
itemsPerPage: string | number;
211+
hover: boolean;
212+
itemChildrenKey: string;
213+
itemSelectable: string | boolean | readonly (string | number)[] | ((item: any, fallback?: any) => any) | null;
214+
itemValue: string | boolean | readonly (string | number)[] | ((item: any, fallback?: any) => any) | null;
215+
items: readonly any[];
228216
itemsLength: number;
229-
colors: import('../types').ColorsObject;
217+
itemsPerPage: string | number;
230218
level: number;
231-
colorPercentageChange: number;
232-
colorPercentageDirection: "asc" | "desc";
233-
columnWidths: number[];
234-
headerBackgroundColor: string;
235-
headerColor: string;
219+
levels: number;
220+
loaderProps: import('./types').LoaderProps;
236221
loaderType: string | false | string[] | null;
222+
loading: string | boolean;
223+
loadingText: string;
237224
matchColumnWidths: boolean;
238-
loaderProps: import('../types').LoaderProps;
239-
levels: number;
240-
footerBackgroundColor: string;
241-
footerColor: string;
242-
elevation: string | number;
243-
separator: "default" | "horizontal" | "vertical" | "cell";
244-
isDrilldown: boolean;
245-
footers: import('../types').Column[];
246-
searchContainerCols: import('../types').SearchContainerCols;
247-
searchEvents: import('../types').KeyStringAny<any>;
248-
searchProps: import('../types').KeyStringAny<any>;
249-
showSearch: boolean;
250-
defaultColors: import('../types').DefaultColors;
251-
drilldownKey: string;
252-
itemChildrenKey: string;
225+
noDataText: string;
226+
search: string;
227+
searchContainerCols: import('./types').SearchContainerCols;
253228
searchDebounce: number | null;
254229
searchMaxWait: number | null;
230+
searchProps: import('./types').KeyStringAny<any>;
231+
selectStrategy: "page" | "all" | "single";
232+
separator: "horizontal" | "default" | "vertical" | "cell";
255233
server: boolean;
256234
showDrilldownWhenLoading: boolean;
235+
showExpand: boolean;
257236
showFooterRow: boolean;
237+
showSearch: boolean;
238+
showSelect: boolean;
239+
sortAscIcon: string | (string | [path: string, opacity: number])[] | import("vue").JSXComponent;
240+
sortBy: readonly {
241+
key: string;
242+
order?: boolean | "desc" | "asc" | undefined;
243+
}[];
244+
defaultColors: import('./types').DefaultColors;
245+
colors: import('./types').ColorsObject;
246+
headerBackgroundColor: string;
247+
footerBackgroundColor: string;
248+
footerColor: string;
249+
headerColor: string;
250+
columnWidths: number[];
251+
filterKeys: string | string[];
252+
isDrilldown: boolean;
253+
noFilter: boolean;
254+
returnObject: boolean;
258255
tableType: {};
259256
}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<string, (_: {}) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
260257
loader?(_: {}): any;

dist/plugin/components/TableLoader.vue.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { TableLoader } from '../../types';
1+
import { TableLoader } from '../types';
22
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableLoader>, {
33
height: number;
44
loaderType: string;
55
loadingText: string;
66
size: string;
77
textLoader: boolean;
8-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableLoader>, {
8+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableLoader>, {
99
height: number;
1010
loaderType: string;
1111
loadingText: string;
1212
size: string;
1313
textLoader: boolean;
1414
}>>>, {
1515
height: string | number;
16+
loaderType: string | false | string[] | null | undefined;
1617
loadingText: string;
1718
size: string | number;
18-
loaderType: string | false | string[] | null | undefined;
1919
textLoader: boolean;
2020
}, {}>;
2121
export default _default;

dist/plugin/composables/classes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UseBodyCellClasses, UseBodyRowClasses, UseCellAlignClasses, UseCellClasses, UseCheckBoxClasses, UseHeaderCellClasses, UseHeaderRowClasses, UseSortIconClasses, UseTFootCellClasses, UseTableClasses, UseTFootClasses, UseTFootRowClasses } from '../../types';
1+
import { UseBodyCellClasses, UseBodyRowClasses, UseCellAlignClasses, UseCellClasses, UseCheckBoxClasses, UseHeaderCellClasses, UseHeaderRowClasses, UseSortIconClasses, UseTFootCellClasses, UseTableClasses, UseTFootClasses, UseTFootRowClasses } from '../types';
22
export declare const useTableClasses: UseTableClasses;
33
export declare const useCellAlignClasses: UseCellAlignClasses;
44
export declare const useCheckBoxClasses: UseCheckBoxClasses;

dist/plugin/composables/emits.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import { UseEmitUpdatedExpanded } from '../../types';
1+
import { UseEmitUpdatedExpanded } from '../types';
22
export declare const useEmitUpdatedExpanded: UseEmitUpdatedExpanded;

dist/plugin/composables/helpers.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Column, UseGetSortDirection, UseConvertToUnit } from '../../types';
1+
import { Column, UseGetSortDirection, UseConvertToUnit } from '../types';
22
/**
33
* Get's the sort direction for a column
44
*/

0 commit comments

Comments
 (0)