pace-table-lib 1.0.55 → 1.0.57

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,9 +1,4 @@
1
+ import { ContextMenuProps } from "../StaticTable/StaticTableTypeDec.types";
1
2
  import "./ContextMenu.scss";
2
- declare const ContextMenu: ({ x, y, visible, options, onClose }: {
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;
@@ -78,4 +78,10 @@ export declare const TEXT_STYLES: {
78
78
  export declare const SORT_OP: {
79
79
  LOW_TO_HIGH: string;
80
80
  HIGH_TO_LOW: string;
81
+ A_TO_Z: string;
82
+ Z_TO_A: string;
83
+ };
84
+ export declare const SORT_FOR: {
85
+ ROW: string;
86
+ COLUMN: string;
81
87
  };
@@ -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 {};