@alaarab/ogrid-core 2.0.3 → 2.0.4
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/esm/constants.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** Width of the row selection checkbox column in pixels. */
|
|
5
5
|
export const CHECKBOX_COLUMN_WIDTH = 48;
|
|
6
|
+
/** Width of the row numbers column in pixels. */
|
|
7
|
+
export const ROW_NUMBER_COLUMN_WIDTH = 50;
|
|
6
8
|
/** Default minimum width for resizable columns in pixels. */
|
|
7
9
|
export const DEFAULT_MIN_COLUMN_WIDTH = 80;
|
|
8
10
|
/** Horizontal padding inside cells, used for width calculations. */
|
|
@@ -44,3 +44,9 @@ export function getContextMenuHandlers(props) {
|
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
+
/** Column header menu items for pin/unpin actions. */
|
|
48
|
+
export const COLUMN_HEADER_MENU_ITEMS = [
|
|
49
|
+
{ id: 'pinLeft', label: 'Pin left' },
|
|
50
|
+
{ id: 'pinRight', label: 'Pin right' },
|
|
51
|
+
{ id: 'unpin', label: 'Unpin' },
|
|
52
|
+
];
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { getFilterField, mergeFilter, deriveFilterOptionsFromData, getMultiSelec
|
|
|
5
5
|
export { getStatusBarParts } from './statusBarHelpers';
|
|
6
6
|
export { getDataGridStatusBarConfig } from './dataGridStatusBar';
|
|
7
7
|
export { getPaginationViewModel, PAGE_SIZE_OPTIONS, MAX_PAGE_BUTTONS, } from './paginationHelpers';
|
|
8
|
-
export { GRID_CONTEXT_MENU_ITEMS, getContextMenuHandlers, formatShortcut } from './gridContextMenuHelpers';
|
|
8
|
+
export { GRID_CONTEXT_MENU_ITEMS, COLUMN_HEADER_MENU_ITEMS, getContextMenuHandlers, formatShortcut } from './gridContextMenuHelpers';
|
|
9
9
|
export { parseValue, numberParser, currencyParser, dateParser, emailParser, booleanParser, } from './valueParsers';
|
|
10
10
|
export { computeAggregations } from './aggregationUtils';
|
|
11
11
|
export { processClientSideData } from './clientSideData';
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** Width of the row selection checkbox column in pixels. */
|
|
5
5
|
export declare const CHECKBOX_COLUMN_WIDTH = 48;
|
|
6
|
+
/** Width of the row numbers column in pixels. */
|
|
7
|
+
export declare const ROW_NUMBER_COLUMN_WIDTH = 50;
|
|
6
8
|
/** Default minimum width for resizable columns in pixels. */
|
|
7
9
|
export declare const DEFAULT_MIN_COLUMN_WIDTH = 80;
|
|
8
10
|
/** Horizontal padding inside cells, used for width calculations. */
|
|
@@ -29,3 +29,11 @@ export interface GridContextMenuHandlerProps {
|
|
|
29
29
|
* action and then onClose. Used by Fluent, Material, and Radix GridContextMenu components.
|
|
30
30
|
*/
|
|
31
31
|
export declare function getContextMenuHandlers(props: GridContextMenuHandlerProps): Record<string, () => void>;
|
|
32
|
+
/** Column header menu item definition. */
|
|
33
|
+
export interface IColumnHeaderMenuItem {
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
icon?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Column header menu items for pin/unpin actions. */
|
|
39
|
+
export declare const COLUMN_HEADER_MENU_ITEMS: IColumnHeaderMenuItem[];
|
|
@@ -6,10 +6,10 @@ export { getStatusBarParts } from './statusBarHelpers';
|
|
|
6
6
|
export { getDataGridStatusBarConfig } from './dataGridStatusBar';
|
|
7
7
|
export { getPaginationViewModel, PAGE_SIZE_OPTIONS, MAX_PAGE_BUTTONS, } from './paginationHelpers';
|
|
8
8
|
export type { PaginationViewModel } from './paginationHelpers';
|
|
9
|
-
export { GRID_CONTEXT_MENU_ITEMS, getContextMenuHandlers, formatShortcut } from './gridContextMenuHelpers';
|
|
9
|
+
export { GRID_CONTEXT_MENU_ITEMS, COLUMN_HEADER_MENU_ITEMS, getContextMenuHandlers, formatShortcut } from './gridContextMenuHelpers';
|
|
10
10
|
export type { CsvColumn } from './exportToCsv';
|
|
11
11
|
export type { StatusBarPart, StatusBarPartsInput } from './statusBarHelpers';
|
|
12
|
-
export type { GridContextMenuItem, GridContextMenuHandlerProps } from './gridContextMenuHelpers';
|
|
12
|
+
export type { GridContextMenuItem, IColumnHeaderMenuItem, GridContextMenuHandlerProps } from './gridContextMenuHelpers';
|
|
13
13
|
export { parseValue, numberParser, currencyParser, dateParser, emailParser, booleanParser, } from './valueParsers';
|
|
14
14
|
export type { ParseValueResult } from './valueParsers';
|
|
15
15
|
export { computeAggregations } from './aggregationUtils';
|
package/package.json
CHANGED