@visactor/openinula-vtable 1.18.7 → 1.19.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/components/base-component.d.ts +1 -0
- package/cjs/components/base-component.js +1 -2
- package/cjs/components/index.d.ts +14 -0
- package/cjs/containers/withContainer.d.ts +10 -0
- package/cjs/context/table.d.ts +3 -5
- package/cjs/context/table.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/tables/base-table.d.ts +3 -4
- package/cjs/tables/list-table.d.ts +3 -4
- package/cjs/tables/pivot-chart.d.ts +3 -4
- package/cjs/tables/pivot-table.d.ts +3 -4
- package/es/components/base-component.d.ts +1 -0
- package/es/components/base-component.js +1 -2
- package/es/components/index.d.ts +14 -0
- package/es/containers/withContainer.d.ts +10 -0
- package/es/context/table.d.ts +3 -5
- package/es/context/table.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/tables/base-table.d.ts +3 -4
- package/es/tables/list-table.d.ts +3 -4
- package/es/tables/pivot-chart.d.ts +3 -4
- package/es/tables/pivot-table.d.ts +3 -4
- package/package.json +3 -3
- package/cjs/components/component/menu.d.ts +0 -10
- package/cjs/components/component/tooltip.d.ts +0 -7
- package/cjs/components/list/list-column.d.ts +0 -4
- package/cjs/components/pivot/pivot-corner.d.ts +0 -4
- package/cjs/components/pivot/pivot-dimension.d.ts +0 -6
- package/cjs/components/pivot/pivot-header-title.d.ts +0 -5
- package/cjs/components/pivot/pivot-indicator.d.ts +0 -4
- package/es/components/component/menu.d.ts +0 -10
- package/es/components/component/tooltip.d.ts +0 -7
- package/es/components/list/list-column.d.ts +0 -4
- package/es/components/pivot/pivot-corner.d.ts +0 -4
- package/es/components/pivot/pivot-dimension.d.ts +0 -6
- package/es/components/pivot/pivot-header-title.d.ts +0 -5
- package/es/components/pivot/pivot-indicator.d.ts +0 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
2
|
+
export { ListColumn } from './list/list-column';
|
|
3
|
+
export { PivotColumnDimension, PivotRowDimension } from './pivot/pivot-dimension';
|
|
4
|
+
export { PivotIndicator } from './pivot/pivot-indicator';
|
|
5
|
+
export { PivotColumnHeaderTitle, PivotRowHeaderTitle } from './pivot/pivot-header-title';
|
|
6
|
+
export { PivotCorner } from './pivot/pivot-corner';
|
|
7
|
+
export { Menu } from './component/menu';
|
|
8
|
+
export { Tooltip } from './component/tooltip';
|
|
9
|
+
type Props = {
|
|
10
|
+
updateId?: number;
|
|
11
|
+
};
|
|
12
|
+
export interface IMarkElement extends Inula.InulaElement<Props, Inula.JSXElementConstructor<Props>> {
|
|
13
|
+
id: string | number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Inula from 'openinula';
|
|
2
|
+
export interface ContainerProps {
|
|
3
|
+
style?: Inula.CSSProperties;
|
|
4
|
+
className?: string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
}
|
|
8
|
+
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: typeof Inula.Component<any, CompProps>, name?: string, getProps?: (props: any) => CompProps): Inula.ExoticComponent<Inula.PropsOmitRef<CompProps & Props>> & Inula.Attributes & {
|
|
9
|
+
ref?: Inula.Ref<any>;
|
|
10
|
+
};
|
package/cjs/context/table.d.ts
CHANGED
|
@@ -4,10 +4,8 @@ export interface TableContextType {
|
|
|
4
4
|
table?: ListTable | PivotTable | PivotChart;
|
|
5
5
|
isChildrenUpdated?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const TableContext:
|
|
8
|
-
export declare function withTableInstance<T>(Component: typeof Inula.Component):
|
|
9
|
-
|
|
10
|
-
} & {
|
|
11
|
-
ref?: import("openinula").Ref<any>;
|
|
7
|
+
declare const TableContext: Inula.Context<TableContextType>;
|
|
8
|
+
export declare function withTableInstance<T>(Component: typeof Inula.Component): Inula.ExoticComponent<Inula.PropsOmitRef<T>> & Inula.Attributes & {
|
|
9
|
+
ref?: Inula.Ref<any>;
|
|
12
10
|
};
|
|
13
11
|
export default TableContext;
|
package/cjs/context/table.js
CHANGED
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -34,5 +34,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
34
34
|
const VTable = __importStar(require("@visactor/vtable"));
|
|
35
35
|
|
|
36
36
|
exports.VTable = VTable, __exportStar(require("./tables"), exports), __exportStar(require("./components"), exports),
|
|
37
|
-
exports.version = "1.
|
|
37
|
+
exports.version = "1.19.0";
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA2C;AAIlC,wBAAM;AAFf,2CAAyB;AACzB,+CAA6B;AAGhB,QAAA,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["import * as VTable from '@visactor/vtable';\n\nexport * from './tables';\nexport * from './components';\nexport { VTable };\n\nexport const version = \"1.
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA2C;AAIlC,wBAAM;AAFf,2CAAyB;AACzB,+CAA6B;AAGhB,QAAA,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["import * as VTable from '@visactor/vtable';\n\nexport * from './tables';\nexport * from './components';\nexport { VTable };\n\nexport const version = \"1.19.0\";\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as VTable from '@visactor/vtable';
|
|
2
|
+
import Inula from 'openinula';
|
|
2
3
|
import type { ContainerProps } from '../containers/withContainer';
|
|
3
4
|
import type { EventsProps } from '../eventsUtils';
|
|
4
5
|
export type IVTable = VTable.ListTable | VTable.PivotTable | VTable.PivotChart;
|
|
@@ -14,8 +15,6 @@ export interface BaseTableProps extends EventsProps {
|
|
|
14
15
|
onReady?: (instance: IVTable, isInitial: boolean) => void;
|
|
15
16
|
onError?: (err: Error) => void;
|
|
16
17
|
}
|
|
17
|
-
export declare const createTable: <T extends Inula.PropsWithChildren<BaseTableProps>>(componentName: string, type?: string, callback?: (props: T) => T) =>
|
|
18
|
-
|
|
19
|
-
} & {
|
|
20
|
-
ref?: import("openinula").Ref<any>;
|
|
18
|
+
export declare const createTable: <T extends Inula.PropsWithChildren<BaseTableProps>>(componentName: string, type?: string, callback?: (props: T) => T) => Inula.ExoticComponent<Inula.PropsOmitRef<T & ContainerProps>> & Inula.Attributes & {
|
|
19
|
+
ref?: Inula.Ref<any>;
|
|
21
20
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
1
2
|
import type { ListTableConstructorOptions } from '@visactor/vtable';
|
|
2
3
|
import type { BaseTableProps } from './base-table';
|
|
3
4
|
export interface ListTableProps extends Omit<BaseTableProps, 'records' | 'type'>, Omit<ListTableConstructorOptions, 'container'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const ListTable:
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
ref?: import("openinula").Ref<any>;
|
|
6
|
+
export declare const ListTable: Inula.ExoticComponent<Omit<any, "ref">> & Inula.Attributes & {
|
|
7
|
+
ref?: Inula.Ref<any>;
|
|
9
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
1
2
|
import type { PivotChartConstructorOptions } from '@visactor/vtable';
|
|
2
3
|
import type { BaseTableProps } from './base-table';
|
|
3
4
|
export interface PivotChartProps extends Omit<BaseTableProps, 'records' | 'type'>, Omit<PivotChartConstructorOptions, 'container'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const PivotChart:
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
ref?: import("openinula").Ref<any>;
|
|
6
|
+
export declare const PivotChart: Inula.ExoticComponent<Omit<any, "ref">> & Inula.Attributes & {
|
|
7
|
+
ref?: Inula.Ref<any>;
|
|
9
8
|
};
|
|
10
9
|
export declare function registerChartModule(name: string, chart: any): void;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
1
2
|
import type { PivotTableConstructorOptions } from '@visactor/vtable';
|
|
2
3
|
import type { BaseTableProps } from './base-table';
|
|
3
4
|
export interface PivotTableProps extends Omit<BaseTableProps, 'records' | 'type'>, Omit<PivotTableConstructorOptions, 'container'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const PivotTable:
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
ref?: import("openinula").Ref<any>;
|
|
6
|
+
export declare const PivotTable: Inula.ExoticComponent<Omit<any, "ref">> & Inula.Attributes & {
|
|
7
|
+
ref?: Inula.Ref<any>;
|
|
9
8
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
2
|
+
export { ListColumn } from './list/list-column';
|
|
3
|
+
export { PivotColumnDimension, PivotRowDimension } from './pivot/pivot-dimension';
|
|
4
|
+
export { PivotIndicator } from './pivot/pivot-indicator';
|
|
5
|
+
export { PivotColumnHeaderTitle, PivotRowHeaderTitle } from './pivot/pivot-header-title';
|
|
6
|
+
export { PivotCorner } from './pivot/pivot-corner';
|
|
7
|
+
export { Menu } from './component/menu';
|
|
8
|
+
export { Tooltip } from './component/tooltip';
|
|
9
|
+
type Props = {
|
|
10
|
+
updateId?: number;
|
|
11
|
+
};
|
|
12
|
+
export interface IMarkElement extends Inula.InulaElement<Props, Inula.JSXElementConstructor<Props>> {
|
|
13
|
+
id: string | number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Inula from 'openinula';
|
|
2
|
+
export interface ContainerProps {
|
|
3
|
+
style?: Inula.CSSProperties;
|
|
4
|
+
className?: string;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
}
|
|
8
|
+
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: typeof Inula.Component<any, CompProps>, name?: string, getProps?: (props: any) => CompProps): Inula.ExoticComponent<Inula.PropsOmitRef<CompProps & Props>> & Inula.Attributes & {
|
|
9
|
+
ref?: Inula.Ref<any>;
|
|
10
|
+
};
|
package/es/context/table.d.ts
CHANGED
|
@@ -4,10 +4,8 @@ export interface TableContextType {
|
|
|
4
4
|
table?: ListTable | PivotTable | PivotChart;
|
|
5
5
|
isChildrenUpdated?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const TableContext:
|
|
8
|
-
export declare function withTableInstance<T>(Component: typeof Inula.Component):
|
|
9
|
-
|
|
10
|
-
} & {
|
|
11
|
-
ref?: import("openinula").Ref<any>;
|
|
7
|
+
declare const TableContext: Inula.Context<TableContextType>;
|
|
8
|
+
export declare function withTableInstance<T>(Component: typeof Inula.Component): Inula.ExoticComponent<Inula.PropsOmitRef<T>> & Inula.Attributes & {
|
|
9
|
+
ref?: Inula.Ref<any>;
|
|
12
10
|
};
|
|
13
11
|
export default TableContext;
|
package/es/context/table.js
CHANGED
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;AAElB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["import * as VTable from '@visactor/vtable';\n\nexport * from './tables';\nexport * from './components';\nexport { VTable };\n\nexport const version = \"1.
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;AAElB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["import * as VTable from '@visactor/vtable';\n\nexport * from './tables';\nexport * from './components';\nexport { VTable };\n\nexport const version = \"1.19.0\";\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as VTable from '@visactor/vtable';
|
|
2
|
+
import Inula from 'openinula';
|
|
2
3
|
import type { ContainerProps } from '../containers/withContainer';
|
|
3
4
|
import type { EventsProps } from '../eventsUtils';
|
|
4
5
|
export type IVTable = VTable.ListTable | VTable.PivotTable | VTable.PivotChart;
|
|
@@ -14,8 +15,6 @@ export interface BaseTableProps extends EventsProps {
|
|
|
14
15
|
onReady?: (instance: IVTable, isInitial: boolean) => void;
|
|
15
16
|
onError?: (err: Error) => void;
|
|
16
17
|
}
|
|
17
|
-
export declare const createTable: <T extends Inula.PropsWithChildren<BaseTableProps>>(componentName: string, type?: string, callback?: (props: T) => T) =>
|
|
18
|
-
|
|
19
|
-
} & {
|
|
20
|
-
ref?: import("openinula").Ref<any>;
|
|
18
|
+
export declare const createTable: <T extends Inula.PropsWithChildren<BaseTableProps>>(componentName: string, type?: string, callback?: (props: T) => T) => Inula.ExoticComponent<Inula.PropsOmitRef<T & ContainerProps>> & Inula.Attributes & {
|
|
19
|
+
ref?: Inula.Ref<any>;
|
|
21
20
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
1
2
|
import type { ListTableConstructorOptions } from '@visactor/vtable';
|
|
2
3
|
import type { BaseTableProps } from './base-table';
|
|
3
4
|
export interface ListTableProps extends Omit<BaseTableProps, 'records' | 'type'>, Omit<ListTableConstructorOptions, 'container'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const ListTable:
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
ref?: import("openinula").Ref<any>;
|
|
6
|
+
export declare const ListTable: Inula.ExoticComponent<Omit<any, "ref">> & Inula.Attributes & {
|
|
7
|
+
ref?: Inula.Ref<any>;
|
|
9
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
1
2
|
import type { PivotChartConstructorOptions } from '@visactor/vtable';
|
|
2
3
|
import type { BaseTableProps } from './base-table';
|
|
3
4
|
export interface PivotChartProps extends Omit<BaseTableProps, 'records' | 'type'>, Omit<PivotChartConstructorOptions, 'container'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const PivotChart:
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
ref?: import("openinula").Ref<any>;
|
|
6
|
+
export declare const PivotChart: Inula.ExoticComponent<Omit<any, "ref">> & Inula.Attributes & {
|
|
7
|
+
ref?: Inula.Ref<any>;
|
|
9
8
|
};
|
|
10
9
|
export declare function registerChartModule(name: string, chart: any): void;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type Inula from 'openinula';
|
|
1
2
|
import type { PivotTableConstructorOptions } from '@visactor/vtable';
|
|
2
3
|
import type { BaseTableProps } from './base-table';
|
|
3
4
|
export interface PivotTableProps extends Omit<BaseTableProps, 'records' | 'type'>, Omit<PivotTableConstructorOptions, 'container'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const PivotTable:
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
ref?: import("openinula").Ref<any>;
|
|
6
|
+
export declare const PivotTable: Inula.ExoticComponent<Omit<any, "ref">> & Inula.Attributes & {
|
|
7
|
+
ref?: Inula.Ref<any>;
|
|
9
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/openinula-vtable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "The openinula version of VTable",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openinula",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@visactor/vutils": "~0.19.1",
|
|
47
|
-
"@visactor/vtable": "1.
|
|
47
|
+
"@visactor/vtable": "1.19.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@visactor/vchart": "
|
|
50
|
+
"@visactor/vchart": "2.0.0-alpha.1",
|
|
51
51
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
52
52
|
"eslint": "~8.18.0",
|
|
53
53
|
"vite": "3.2.6",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BaseTable } from '@visactor/vtable/src/core';
|
|
2
|
-
import type { BaseComponentProps } from '../base-component';
|
|
3
|
-
import type { TYPES } from '@visactor/vtable';
|
|
4
|
-
export type MenuProps = {
|
|
5
|
-
renderMode?: 'canvas' | 'html';
|
|
6
|
-
defaultHeaderMenuItems?: TYPES.MenuListItem[];
|
|
7
|
-
contextMenuItems?: TYPES.MenuListItem[] | ((field: string, row: number, col: number, table?: BaseTable) => TYPES.MenuListItem[]);
|
|
8
|
-
dropDownMenuHighlight?: TYPES.DropDownMenuHighlightInfo[];
|
|
9
|
-
} & BaseComponentProps;
|
|
10
|
-
export declare const Menu: Inula.FC<T>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BaseComponentProps } from '../base-component';
|
|
2
|
-
import type { IRowDimension, IColumnDimension } from '@visactor/vtable';
|
|
3
|
-
export type RowPivotDimensionProps = IRowDimension & BaseComponentProps;
|
|
4
|
-
export type ColumnPivotDimensionProps = IColumnDimension & BaseComponentProps;
|
|
5
|
-
export declare const PivotColumnDimension: Inula.FC<T>;
|
|
6
|
-
export declare const PivotRowDimension: Inula.FC<T>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { BaseComponentProps } from '../base-component';
|
|
2
|
-
import type { ITitleDefine } from '@visactor/vtable';
|
|
3
|
-
export type PivotHeaderTitleProps = ITitleDefine & BaseComponentProps;
|
|
4
|
-
export declare const PivotColumnHeaderTitle: Inula.FC<T>;
|
|
5
|
-
export declare const PivotRowHeaderTitle: Inula.FC<T>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BaseTable } from '@visactor/vtable/src/core';
|
|
2
|
-
import type { BaseComponentProps } from '../base-component';
|
|
3
|
-
import type { TYPES } from '@visactor/vtable';
|
|
4
|
-
export type MenuProps = {
|
|
5
|
-
renderMode?: 'canvas' | 'html';
|
|
6
|
-
defaultHeaderMenuItems?: TYPES.MenuListItem[];
|
|
7
|
-
contextMenuItems?: TYPES.MenuListItem[] | ((field: string, row: number, col: number, table?: BaseTable) => TYPES.MenuListItem[]);
|
|
8
|
-
dropDownMenuHighlight?: TYPES.DropDownMenuHighlightInfo[];
|
|
9
|
-
} & BaseComponentProps;
|
|
10
|
-
export declare const Menu: Inula.FC<T>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BaseComponentProps } from '../base-component';
|
|
2
|
-
import type { IRowDimension, IColumnDimension } from '@visactor/vtable';
|
|
3
|
-
export type RowPivotDimensionProps = IRowDimension & BaseComponentProps;
|
|
4
|
-
export type ColumnPivotDimensionProps = IColumnDimension & BaseComponentProps;
|
|
5
|
-
export declare const PivotColumnDimension: Inula.FC<T>;
|
|
6
|
-
export declare const PivotRowDimension: Inula.FC<T>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { BaseComponentProps } from '../base-component';
|
|
2
|
-
import type { ITitleDefine } from '@visactor/vtable';
|
|
3
|
-
export type PivotHeaderTitleProps = ITitleDefine & BaseComponentProps;
|
|
4
|
-
export declare const PivotColumnHeaderTitle: Inula.FC<T>;
|
|
5
|
-
export declare const PivotRowHeaderTitle: Inula.FC<T>;
|