@alaarab/ogrid-core 2.4.0 → 2.4.1
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/index.js
CHANGED
|
@@ -1263,7 +1263,8 @@ function computeCellDescriptor(item, col, rowIndex, colIdx, input) {
|
|
|
1263
1263
|
globalColIndex,
|
|
1264
1264
|
rowId,
|
|
1265
1265
|
rowIndex,
|
|
1266
|
-
displayValue: formulaDisplay !== void 0 ? formulaDisplay : cellValue
|
|
1266
|
+
displayValue: formulaDisplay !== void 0 ? formulaDisplay : cellValue,
|
|
1267
|
+
columnType: col.type
|
|
1267
1268
|
};
|
|
1268
1269
|
}
|
|
1269
1270
|
function resolveCellDisplayContent(col, item, displayValue) {
|
|
@@ -1404,6 +1405,8 @@ var CHECKBOX_COLUMN_WIDTH = 48;
|
|
|
1404
1405
|
var ROW_NUMBER_COLUMN_WIDTH = 50;
|
|
1405
1406
|
var DEFAULT_MIN_COLUMN_WIDTH = 80;
|
|
1406
1407
|
var CELL_PADDING = 16;
|
|
1408
|
+
var ROW_NUMBER_COLUMN_MIN_WIDTH = 30;
|
|
1409
|
+
var ROW_NUMBER_COLUMN_ID = "__row_number__";
|
|
1407
1410
|
var GRID_BORDER_RADIUS = 6;
|
|
1408
1411
|
|
|
1409
1412
|
// src/utils/columnAutosize.ts
|
|
@@ -7144,4 +7147,4 @@ var FormulaEngine = class {
|
|
|
7144
7147
|
}
|
|
7145
7148
|
};
|
|
7146
7149
|
|
|
7147
|
-
export { AUTOSIZE_EXTRA_PX, AUTOSIZE_MAX_PX, CELL_PADDING, CHECKBOX_COLUMN_WIDTH, CIRC_ERROR, COLUMN_HEADER_MENU_ITEMS, CellDescriptorCache, DEFAULT_DEBOUNCE_MS, DEFAULT_MIN_COLUMN_WIDTH, DIV_ZERO_ERROR, DependencyGraph, FORMULA_BAR_CSS, FORMULA_BAR_STYLES, FORMULA_REF_COLORS, FormulaEngine, FormulaError, FormulaEvaluator, GENERAL_ERROR, GRID_BORDER_RADIUS, GRID_CONTEXT_MENU_ITEMS, MAX_PAGE_BUTTONS, NAME_ERROR, NA_ERROR, PAGE_SIZE_OPTIONS, PEOPLE_SEARCH_DEBOUNCE_MS, REF_ERROR, ROW_NUMBER_COLUMN_WIDTH, SIDEBAR_TRANSITION_MS, UndoRedoStack, VALUE_ERROR, Z_INDEX, adjustFormulaReferences, applyCellDeletion, applyCutClear, applyFillValues, applyPastedValues, applyRangeRowSelection, areGridRowPropsEqual, booleanParser, buildCellIndex, buildCsvHeader, buildCsvRows, buildHeaderRows, buildInlineEditorProps, buildPopoverEditorProps, calculateDropTarget, clampSelectionToBounds, columnLetterToIndex, computeAggregations, computeArrowNavigation, computeAutoScrollSpeed, computeNextSortState, computeRowSelectionState, computeTabNavigation, computeTotalHeight, computeVisibleColumnRange, computeVisibleRange, createBuiltInFunctions, createGridDataAccessor, createSortFilterWorker, currencyParser, dateParser, debounce, deriveFilterOptionsFromData, deriveFormulaBarText, emailParser, escapeCsvValue, exportToCsv, extractFormulaReferences, extractValueMatrix, findCtrlArrowTarget, flattenArgs, flattenColumns, formatAddress, formatCellReference, formatCellValueForTsv, formatSelectionAsTsv, formatShortcut, toString as formulaToString, fromCellKey, getCellRenderDescriptor, getCellValue, getColumnHeaderMenuItems, getContextMenuHandlers, getDataGridStatusBarConfig, getFilterField, getHeaderFilterConfig, getMultiSelectFilterFields, getPaginationViewModel, getPinStateForColumn, getScrollTopForRow, getStatusBarParts, handleFormulaBarKeyDown, indexToColumnLetter, injectGlobalStyles, isColumnEditable, isFilterConfig, isFormulaError, isInSelectionRange, isRowInRange, measureColumnContentWidth, measureRange, mergeFilter, normalizeSelectionRange, numberParser, parse, parseCellRef, parseRange, parseTsvClipboard, parseValue, partitionColumnsForVirtualization, processClientSideData, processClientSideDataAsync, processFormulaBarCommit, rangesEqual, reorderColumnArray, resolveCellDisplayContent, resolveCellStyle, terminateSortFilterWorker, toBoolean, toCellKey, toNumber, toUserLike, tokenize, triggerCsvDownload, validateColumns, validateRowIds, validateVirtualScrollConfig };
|
|
7150
|
+
export { AUTOSIZE_EXTRA_PX, AUTOSIZE_MAX_PX, CELL_PADDING, CHECKBOX_COLUMN_WIDTH, CIRC_ERROR, COLUMN_HEADER_MENU_ITEMS, CellDescriptorCache, DEFAULT_DEBOUNCE_MS, DEFAULT_MIN_COLUMN_WIDTH, DIV_ZERO_ERROR, DependencyGraph, FORMULA_BAR_CSS, FORMULA_BAR_STYLES, FORMULA_REF_COLORS, FormulaEngine, FormulaError, FormulaEvaluator, GENERAL_ERROR, GRID_BORDER_RADIUS, GRID_CONTEXT_MENU_ITEMS, MAX_PAGE_BUTTONS, NAME_ERROR, NA_ERROR, PAGE_SIZE_OPTIONS, PEOPLE_SEARCH_DEBOUNCE_MS, REF_ERROR, ROW_NUMBER_COLUMN_ID, ROW_NUMBER_COLUMN_MIN_WIDTH, ROW_NUMBER_COLUMN_WIDTH, SIDEBAR_TRANSITION_MS, UndoRedoStack, VALUE_ERROR, Z_INDEX, adjustFormulaReferences, applyCellDeletion, applyCutClear, applyFillValues, applyPastedValues, applyRangeRowSelection, areGridRowPropsEqual, booleanParser, buildCellIndex, buildCsvHeader, buildCsvRows, buildHeaderRows, buildInlineEditorProps, buildPopoverEditorProps, calculateDropTarget, clampSelectionToBounds, columnLetterToIndex, computeAggregations, computeArrowNavigation, computeAutoScrollSpeed, computeNextSortState, computeRowSelectionState, computeTabNavigation, computeTotalHeight, computeVisibleColumnRange, computeVisibleRange, createBuiltInFunctions, createGridDataAccessor, createSortFilterWorker, currencyParser, dateParser, debounce, deriveFilterOptionsFromData, deriveFormulaBarText, emailParser, escapeCsvValue, exportToCsv, extractFormulaReferences, extractValueMatrix, findCtrlArrowTarget, flattenArgs, flattenColumns, formatAddress, formatCellReference, formatCellValueForTsv, formatSelectionAsTsv, formatShortcut, toString as formulaToString, fromCellKey, getCellRenderDescriptor, getCellValue, getColumnHeaderMenuItems, getContextMenuHandlers, getDataGridStatusBarConfig, getFilterField, getHeaderFilterConfig, getMultiSelectFilterFields, getPaginationViewModel, getPinStateForColumn, getScrollTopForRow, getStatusBarParts, handleFormulaBarKeyDown, indexToColumnLetter, injectGlobalStyles, isColumnEditable, isFilterConfig, isFormulaError, isInSelectionRange, isRowInRange, measureColumnContentWidth, measureRange, mergeFilter, normalizeSelectionRange, numberParser, parse, parseCellRef, parseRange, parseTsvClipboard, parseValue, partitionColumnsForVirtualization, processClientSideData, processClientSideDataAsync, processFormulaBarCommit, rangesEqual, reorderColumnArray, resolveCellDisplayContent, resolveCellStyle, terminateSortFilterWorker, toBoolean, toCellKey, toNumber, toUserLike, tokenize, triggerCsvDownload, validateColumns, validateRowIds, validateVirtualScrollConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CHECKBOX_COLUMN_WIDTH, ROW_NUMBER_COLUMN_WIDTH, DEFAULT_MIN_COLUMN_WIDTH, CELL_PADDING, GRID_BORDER_RADIUS, } from './layout';
|
|
1
|
+
export { CHECKBOX_COLUMN_WIDTH, ROW_NUMBER_COLUMN_WIDTH, ROW_NUMBER_COLUMN_MIN_WIDTH, ROW_NUMBER_COLUMN_ID, DEFAULT_MIN_COLUMN_WIDTH, CELL_PADDING, GRID_BORDER_RADIUS, } from './layout';
|
|
2
2
|
export { DEFAULT_DEBOUNCE_MS, PEOPLE_SEARCH_DEBOUNCE_MS, SIDEBAR_TRANSITION_MS, } from './timing';
|
|
3
3
|
export { Z_INDEX } from './zIndex';
|
|
4
4
|
export type { ZIndexKey } from './zIndex';
|
|
@@ -9,5 +9,9 @@ export declare const ROW_NUMBER_COLUMN_WIDTH = 50;
|
|
|
9
9
|
export declare const DEFAULT_MIN_COLUMN_WIDTH = 80;
|
|
10
10
|
/** Horizontal padding inside cells, used for width calculations. */
|
|
11
11
|
export declare const CELL_PADDING = 16;
|
|
12
|
+
/** Minimum width for the row number column when resizing (in pixels). */
|
|
13
|
+
export declare const ROW_NUMBER_COLUMN_MIN_WIDTH = 30;
|
|
14
|
+
/** Sentinel column ID for the row number column in columnSizingOverrides. */
|
|
15
|
+
export declare const ROW_NUMBER_COLUMN_ID = "__row_number__";
|
|
12
16
|
/** Border radius for the grid container in pixels. */
|
|
13
17
|
export declare const GRID_BORDER_RADIUS = 6;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export { validateColumns, validateRowIds, validateVirtualScrollConfig } from './
|
|
|
45
45
|
export { indexToColumnLetter, formatCellReference } from './utils';
|
|
46
46
|
export { extractFormulaReferences, processFormulaBarCommit, deriveFormulaBarText, handleFormulaBarKeyDown } from './utils';
|
|
47
47
|
export type { FormulaReference } from './utils';
|
|
48
|
-
export { CHECKBOX_COLUMN_WIDTH, ROW_NUMBER_COLUMN_WIDTH, DEFAULT_MIN_COLUMN_WIDTH, CELL_PADDING, GRID_BORDER_RADIUS, } from './constants';
|
|
48
|
+
export { CHECKBOX_COLUMN_WIDTH, ROW_NUMBER_COLUMN_WIDTH, ROW_NUMBER_COLUMN_MIN_WIDTH, ROW_NUMBER_COLUMN_ID, DEFAULT_MIN_COLUMN_WIDTH, CELL_PADDING, GRID_BORDER_RADIUS, } from './constants';
|
|
49
49
|
export { DEFAULT_DEBOUNCE_MS, PEOPLE_SEARCH_DEBOUNCE_MS, SIDEBAR_TRANSITION_MS, } from './constants';
|
|
50
50
|
export { Z_INDEX } from './constants';
|
|
51
51
|
export type { ZIndexKey } from './constants';
|
|
@@ -99,6 +99,8 @@ export interface CellRenderDescriptor {
|
|
|
99
99
|
rowIndex: number;
|
|
100
100
|
/** Raw value for display (when mode === 'display'). UI uses col.renderCell or col.valueFormatter. */
|
|
101
101
|
displayValue?: unknown;
|
|
102
|
+
/** The column's declared type (text, numeric, date, boolean). */
|
|
103
|
+
columnType?: 'text' | 'numeric' | 'date' | 'boolean';
|
|
102
104
|
}
|
|
103
105
|
/**
|
|
104
106
|
* Per-grid cache for cell render descriptors.
|
package/package.json
CHANGED