@linzjs/step-ag-grid 17.4.7 → 17.4.9
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/GridTheme.scss +4 -10
- package/dist/step-ag-grid.cjs.js +8 -4
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +8 -4
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +1 -0
- package/src/styles/GridTheme.scss +4 -10
- package/src/utils/testUtil.ts +8 -3
package/dist/GridTheme.scss
CHANGED
|
@@ -8,13 +8,13 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
8
8
|
@include ag.grid-styles(
|
|
9
9
|
(
|
|
10
10
|
themes: (
|
|
11
|
-
step-compact: (
|
|
11
|
+
'step-compact.theme-specific': (
|
|
12
12
|
extend-theme: alpine,
|
|
13
13
|
--ag-row-height: 36px,
|
|
14
14
|
--ag-header-height: 36px,
|
|
15
15
|
--ag-font-size: calc($grid-base-font-size - 2px),
|
|
16
16
|
),
|
|
17
|
-
step-default: (
|
|
17
|
+
'step-default.theme-specific': (
|
|
18
18
|
extend-theme: alpine,
|
|
19
19
|
--ag-row-height: 40px,
|
|
20
20
|
--ag-header-height: 40px,
|
|
@@ -47,8 +47,8 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
47
47
|
)
|
|
48
48
|
);
|
|
49
49
|
|
|
50
|
-
.ag-theme-step-default,
|
|
51
|
-
.ag-theme-step-compact {
|
|
50
|
+
.ag-theme-step-default.theme-specific,
|
|
51
|
+
.ag-theme-step-compact.theme-specific {
|
|
52
52
|
.ag-cell[col-id="selection"] {
|
|
53
53
|
display: flex; // Fix that when you click below checkbox it doesn't process a click
|
|
54
54
|
}
|
|
@@ -91,13 +91,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
91
91
|
padding-right: 15px;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.ag-cell[role="gridcell"] {
|
|
95
|
-
border-right: none;
|
|
96
|
-
border-left: 1px var(--ag-cell-horizontal-border);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
94
|
.ag-cell[aria-colindex="1"] {
|
|
100
|
-
border-left: 1px solid transparent;
|
|
101
95
|
padding-left: lui.$unit-rg;
|
|
102
96
|
}
|
|
103
97
|
|
package/dist/step-ag-grid.cjs.js
CHANGED
|
@@ -2791,7 +2791,7 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
|
|
|
2791
2791
|
}, [params]);
|
|
2792
2792
|
// This is setting a ref in the GridContext so won't be triggering an update loop
|
|
2793
2793
|
setOnCellEditingComplete(params.onCellEditingComplete);
|
|
2794
|
-
return (jsxRuntime.jsxs("div", { "data-testid": dataTestId, className: clsx("Grid-container", theme, staleGrid && "Grid-sortIsStale", gridReady && params.rowData && autoSized && "Grid-ready"), children: [gridContextMenu.component, jsxRuntime.jsx("div", { style: { flex: 1 }, ref: gridDivRef, children: jsxRuntime.jsx(agGridReact.AgGridReact, { rowHeight: rowHeight, animateRows: params.animateRows, rowClassRules: params.rowClassRules, getRowId: (params) => `${params.data.id}`, suppressRowClickSelection: true, rowSelection: rowSelection, suppressBrowserResizeObserver: true, onGridSizeChanged: onGridSizeChanged, suppressColumnVirtualisation: suppressColumnVirtualization, suppressClickEdit: true, onColumnVisible: () => {
|
|
2794
|
+
return (jsxRuntime.jsxs("div", { "data-testid": dataTestId, className: clsx("Grid-container", theme, "theme-specific", staleGrid && "Grid-sortIsStale", gridReady && params.rowData && autoSized && "Grid-ready"), children: [gridContextMenu.component, jsxRuntime.jsx("div", { style: { flex: 1 }, ref: gridDivRef, children: jsxRuntime.jsx(agGridReact.AgGridReact, { rowHeight: rowHeight, animateRows: params.animateRows, rowClassRules: params.rowClassRules, getRowId: (params) => `${params.data.id}`, suppressRowClickSelection: true, rowSelection: rowSelection, suppressBrowserResizeObserver: true, onGridSizeChanged: onGridSizeChanged, suppressColumnVirtualisation: suppressColumnVirtualization, suppressClickEdit: true, onColumnVisible: () => {
|
|
2795
2795
|
setInitialContentSize();
|
|
2796
2796
|
}, onRowDataUpdated: onRowDataChanged, onCellKeyDown: onCellKeyPress, onCellClicked: onCellClicked, onCellDoubleClicked: onCellDoubleClick, onCellEditingStarted: refreshSelectedRows, domLayout: params.domLayout, onColumnResized: onColumnResized, defaultColDef: { minWidth: 48, ...lodashEs.omit(params.defaultColDef, ["editable"]) }, columnDefs: columnDefsAdjusted, rowData: params.rowData, noRowsOverlayComponent: (event) => {
|
|
2797
2797
|
let rowCount = 0;
|
|
@@ -25597,9 +25597,13 @@ const findRow = async (rowId, within) => {
|
|
|
25597
25597
|
let row;
|
|
25598
25598
|
await act(async () => {
|
|
25599
25599
|
row = await findQuick({ tagName: `.ag-center-cols-container div[row-id='${rowId}']:not(:empty)` }, within);
|
|
25600
|
-
|
|
25601
|
-
const
|
|
25602
|
-
|
|
25600
|
+
let combineChildren = [...row.children];
|
|
25601
|
+
const leftCols = queryQuick({ tagName: `.ag-pinned-left-cols-container div[row-id='${rowId}']` }, within);
|
|
25602
|
+
if (leftCols)
|
|
25603
|
+
combineChildren = [...leftCols.children, ...combineChildren];
|
|
25604
|
+
const rightCols = queryQuick({ tagName: `.ag-pinned-right-cols-container div[row-id='${rowId}']` }, within);
|
|
25605
|
+
if (rightCols)
|
|
25606
|
+
combineChildren = [...rightCols.children, ...combineChildren];
|
|
25603
25607
|
row.replaceChildren(...combineChildren);
|
|
25604
25608
|
});
|
|
25605
25609
|
return row;
|