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.
@@ -1,6 +1,6 @@
1
1
  import type Cell from './Cell';
2
2
  import type CellHeader from './CellHeader';
3
- import type { RuleItem } from 'async-validator';
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.15",
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
  }