@linzjs/step-ag-grid 17.0.0 → 17.0.2
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/README.md +1 -1
- package/dist/GridTheme.scss +2 -2
- package/dist/src/utils/storybookTestUtil.d.ts +3 -0
- package/dist/step-ag-grid.cjs.js +11 -6
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +11 -6
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +2 -2
- package/src/contexts/GridContextProvider.tsx +11 -6
- package/src/stories/grid/GridFilterButtons.stories.tsx +2 -7
- package/src/stories/grid/GridNonEditableRow.stories.tsx +4 -12
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +2 -7
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +2 -7
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +2 -7
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +2 -7
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +3 -7
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +2 -7
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +2 -7
- package/src/stories/grid/GridReadOnly.stories.tsx +2 -7
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +2 -3
- package/src/styles/GridTheme.scss +2 -2
- package/src/utils/storybookTestUtil.ts +6 -0
package/README.md
CHANGED
package/dist/GridTheme.scss
CHANGED
|
@@ -81,7 +81,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.ag-header .ag-header-cell[aria-colindex="1"] {
|
|
84
|
-
padding-left:
|
|
84
|
+
padding-left: 17px;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.ag-cell[role="gridcell"] {
|
|
@@ -90,7 +90,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.ag-cell[aria-colindex="1"] {
|
|
93
|
-
border-left:
|
|
93
|
+
border-left: 1px solid transparent;
|
|
94
94
|
padding-left: lui.$unit-rg;
|
|
95
95
|
}
|
|
96
96
|
|
package/dist/step-ag-grid.cjs.js
CHANGED
|
@@ -2533,8 +2533,8 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
|
|
|
2533
2533
|
{
|
|
2534
2534
|
colId: "selection",
|
|
2535
2535
|
editable: false,
|
|
2536
|
-
minWidth:
|
|
2537
|
-
maxWidth:
|
|
2536
|
+
minWidth: 48,
|
|
2537
|
+
maxWidth: 48,
|
|
2538
2538
|
pinned: selectColumnPinned,
|
|
2539
2539
|
headerComponentParams: {
|
|
2540
2540
|
exportable: false,
|
|
@@ -4614,7 +4614,7 @@ const GridContextProvider = (props) => {
|
|
|
4614
4614
|
/**
|
|
4615
4615
|
* Get ColDefs, with flattened ColGroupDefs
|
|
4616
4616
|
*/
|
|
4617
|
-
const getColumns = React.useCallback((filterDef = () => true) => lodashEs.filter(columnApi?.
|
|
4617
|
+
const getColumns = React.useCallback((filterDef = () => true) => lodashEs.filter(columnApi?.getColumns()?.map((col) => col.getColDef()) ?? [], filterDef), [columnApi]);
|
|
4618
4618
|
const getColumnIds = React.useCallback((filterDef = () => true) => lodashEs.compact(getColumns(filterDef).map(getColId)), [getColumns]);
|
|
4619
4619
|
/**
|
|
4620
4620
|
* Internal method for selecting and flashing rows.
|
|
@@ -4886,9 +4886,14 @@ const GridContextProvider = (props) => {
|
|
|
4886
4886
|
return ok;
|
|
4887
4887
|
});
|
|
4888
4888
|
}, [gridApiOp, modifyUpdating, selectNextEditableCell]);
|
|
4889
|
-
const redrawRows = React.
|
|
4890
|
-
|
|
4891
|
-
|
|
4889
|
+
const redrawRows = React.useMemo(() => debounce((rowNodes) => {
|
|
4890
|
+
try {
|
|
4891
|
+
gridApi && gridApi.redrawRows(rowNodes ? { rowNodes } : undefined);
|
|
4892
|
+
}
|
|
4893
|
+
catch (ex) {
|
|
4894
|
+
console.error(ex);
|
|
4895
|
+
}
|
|
4896
|
+
}, 50), [gridApi]);
|
|
4892
4897
|
// waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
|
|
4893
4898
|
const externallySelectedItemsAreInSyncRef = React.useRef(false);
|
|
4894
4899
|
React.useEffect(() => {
|