@homebound/beam 2.134.0 → 2.134.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.
|
@@ -22,4 +22,5 @@ interface NextPrev<R extends Kinded> {
|
|
|
22
22
|
prev: GridDataRow<R> | undefined;
|
|
23
23
|
}
|
|
24
24
|
export declare function createRowLookup<R extends Kinded>(columns: GridColumn<R>[], filteredRows: RowTuple<R>[], virtuosoRef: MutableRefObject<VirtuosoHandle | null>): GridRowLookup<R>;
|
|
25
|
+
export declare function getKinds<R extends Kinded>(columns: GridColumn<R>[]): R[];
|
|
25
26
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRowLookup = void 0;
|
|
3
|
+
exports.getKinds = exports.createRowLookup = void 0;
|
|
4
|
+
const GridTable_1 = require("./GridTable");
|
|
4
5
|
const nestedCards_1 = require("./nestedCards");
|
|
5
6
|
function createRowLookup(columns, filteredRows, virtuosoRef) {
|
|
6
7
|
return {
|
|
@@ -52,7 +53,6 @@ function createRowLookup(columns, filteredRows, virtuosoRef) {
|
|
|
52
53
|
}
|
|
53
54
|
exports.createRowLookup = createRowLookup;
|
|
54
55
|
function getKinds(columns) {
|
|
55
|
-
|
|
56
|
-
const nonKindKeys = ["w", "sort", "sortValue", "align"];
|
|
57
|
-
return Object.keys(columns[0] || {}).filter((key) => !nonKindKeys.includes(key));
|
|
56
|
+
return Object.keys(columns.find((c) => !c.isAction) || {}).filter((key) => !GridTable_1.nonKindGridColumnKeys.includes(key));
|
|
58
57
|
}
|
|
58
|
+
exports.getKinds = getKinds;
|
|
@@ -469,7 +469,16 @@ function calcColumnSizes(columns, firstLastColumnWidth, tableWidth, tableMinWidt
|
|
|
469
469
|
return !firstLastColumnWidth ? sizes : [`${firstLastColumnWidth}px`, ...sizes, `${firstLastColumnWidth}px`];
|
|
470
470
|
}
|
|
471
471
|
exports.calcColumnSizes = calcColumnSizes;
|
|
472
|
-
exports.nonKindGridColumnKeys = [
|
|
472
|
+
exports.nonKindGridColumnKeys = [
|
|
473
|
+
"w",
|
|
474
|
+
"mw",
|
|
475
|
+
"align",
|
|
476
|
+
"serverSideSortKey",
|
|
477
|
+
"clientSideSort",
|
|
478
|
+
"sticky",
|
|
479
|
+
"wrapAction",
|
|
480
|
+
"isAction",
|
|
481
|
+
];
|
|
473
482
|
function getIndentationCss(style, rowStyle, columnIndex, maybeContent) {
|
|
474
483
|
// Look for cell-specific indent or row-specific indent (row-specific is only one the first column)
|
|
475
484
|
const indent = (isGridCellContent(maybeContent) && maybeContent.indent) || (columnIndex === 0 && (rowStyle === null || rowStyle === void 0 ? void 0 : rowStyle.indent));
|