pace-table-lib 1.0.54 → 1.0.56
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/components/SortUI/ContextMenu.d.ts +2 -7
- package/dist/components/StaticTable/StaticTable.d.ts +1 -1
- package/dist/components/StaticTable/StaticTableConst.d.ts +6 -0
- package/dist/components/StaticTable/StaticTableTypeDec.types.d.ts +17 -0
- package/dist/pace-table-lib.es.js +94 -70
- package/dist/pace-table-lib.es.js.map +1 -1
- package/dist/pace-table-lib.umd.js +95 -72
- package/dist/pace-table-lib.umd.js.map +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,4 @@
|
|
|
1
|
+
import { ContextMenuProps } from "../StaticTable/StaticTableTypeDec.types";
|
|
1
2
|
import "./ContextMenu.scss";
|
|
2
|
-
declare const ContextMenu: ({
|
|
3
|
-
x: any;
|
|
4
|
-
y: any;
|
|
5
|
-
visible: any;
|
|
6
|
-
options: any;
|
|
7
|
-
onClose: any;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare const ContextMenu: ({ contextMenuData, onContextMenuClose }: ContextMenuProps) => import("react").ReactPortal | null;
|
|
9
4
|
export default ContextMenu;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "react-virtualized/styles.css";
|
|
2
2
|
import "./StaticTable.scss";
|
|
3
3
|
import { StaticTableProps } from "./StaticTableTypeDec.types";
|
|
4
|
-
export default function StaticTable({ tableData, leftFixedCellNameList, tableStyleProps, tableWidth, tableHeight, measureFormatConfigs }: StaticTableProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default function StaticTable({ tableData, leftFixedCellNameList, tableStyleProps, tableWidth, tableHeight, measureFormatConfigs, onSortMenuClick }: StaticTableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ export type StaticTableProps = {
|
|
|
10
10
|
tableStyleProps: TableStyleConfig;
|
|
11
11
|
tableWidth: number;
|
|
12
12
|
tableHeight: number;
|
|
13
|
+
onSortMenuClick?: (response: SortObj) => void;
|
|
13
14
|
measureFormatConfigs?: MeasureFormatObj[];
|
|
14
15
|
};
|
|
15
16
|
export type DisplayUnitsType = typeof DISPLAY_UNITS_OBJ[keyof typeof DISPLAY_UNITS_OBJ];
|
|
@@ -245,4 +246,20 @@ export declare enum STYLE_FOR {
|
|
|
245
246
|
ROW = 2,
|
|
246
247
|
DATA_CELL = 3
|
|
247
248
|
}
|
|
249
|
+
export type SortObj = {
|
|
250
|
+
SortCondition: "row" | "column";
|
|
251
|
+
SortColumnIndex: number;
|
|
252
|
+
SortType: number;
|
|
253
|
+
};
|
|
254
|
+
export type ContextMenuDataType = {
|
|
255
|
+
visible: boolean;
|
|
256
|
+
x: number;
|
|
257
|
+
y: number;
|
|
258
|
+
sortIndex: number;
|
|
259
|
+
sortFor: string;
|
|
260
|
+
};
|
|
261
|
+
export type ContextMenuProps = {
|
|
262
|
+
contextMenuData: ContextMenuDataType;
|
|
263
|
+
onContextMenuClose: (action: number) => void;
|
|
264
|
+
};
|
|
248
265
|
export {};
|