e-virt-table 1.2.15 → 1.2.17
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/dist/index.cjs.js +4 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2203 -2685
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Cell.d.ts +3 -2
- package/dist/lib/Cell.js.map +1 -1
- package/dist/lib/CellHeader.d.ts +3 -2
- package/dist/lib/CellHeader.js.map +1 -1
- package/dist/lib/Config.d.ts +123 -0
- package/dist/lib/Config.js +136 -14
- package/dist/lib/Config.js.map +1 -1
- package/dist/lib/Database.d.ts +4 -4
- package/dist/lib/Database.js +48 -58
- package/dist/lib/Database.js.map +1 -1
- package/dist/lib/EVirtTable.js +11 -3
- package/dist/lib/EVirtTable.js.map +1 -1
- package/dist/lib/Validator.d.ts +26 -0
- package/dist/lib/Validator.js +72 -0
- package/dist/lib/Validator.js.map +1 -0
- package/dist/lib/types.d.ts +2 -10
- package/package.json +2 -3
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type Cell from './Cell';
|
|
2
2
|
import type CellHeader from './CellHeader';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Rule, Rules } from './Validator';
|
|
4
4
|
import Config from './Config';
|
|
5
5
|
export type OptionalizeExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
|
|
6
6
|
export type EVirtTableOptions = {
|
|
@@ -55,14 +55,6 @@ export type ContextmenuItem = {
|
|
|
55
55
|
render: Function;
|
|
56
56
|
};
|
|
57
57
|
export type Render = Function | string | undefined;
|
|
58
|
-
export interface Rule extends RuleItem {
|
|
59
|
-
column?: Column;
|
|
60
|
-
row?: any;
|
|
61
|
-
rowIndex?: number;
|
|
62
|
-
colIndex?: number;
|
|
63
|
-
}
|
|
64
|
-
export type Rules = Rule | Rule[];
|
|
65
|
-
export type Descriptor = Record<string, Rules>;
|
|
66
58
|
export type ValidateItemError = {
|
|
67
59
|
rowIndex: number;
|
|
68
60
|
key: string;
|
|
@@ -126,7 +118,7 @@ export interface Column {
|
|
|
126
118
|
readonly?: boolean;
|
|
127
119
|
children?: Column[];
|
|
128
120
|
column?: Column;
|
|
129
|
-
rules?: Rules;
|
|
121
|
+
rules?: Rules | Rule;
|
|
130
122
|
options?: any;
|
|
131
123
|
}
|
|
132
124
|
export type OverlayerTooltip = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "e-virt-table",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.17",
|
|
5
5
|
"description": "A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"vite-plugin-css-injected-by-js": "^3.5.2"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@floating-ui/dom": "^1.6.11"
|
|
56
|
-
"async-validator": "^4.2.5"
|
|
55
|
+
"@floating-ui/dom": "^1.6.11"
|
|
57
56
|
}
|
|
58
57
|
}
|