@linzjs/step-ag-grid 30.1.0 → 30.2.0

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.
@@ -190,6 +190,18 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
190
190
  align-items: center;
191
191
  }
192
192
 
193
+ .ag-cell span.GridCell-dropDownIcon {
194
+ fill: lui.$charcoal;
195
+ max-width: 26px;
196
+ width: 26px;
197
+ visibility: hidden;
198
+ }
199
+
200
+ .ag-cell.ag-cell-inline-editing span.GridCell-dropDownIcon {
201
+ max-width: 24px;
202
+ width: 24px;
203
+ }
204
+
193
205
  .ag-cell .GridCell-editableIcon {
194
206
  fill: lui.$silver;
195
207
  visibility: hidden;
@@ -63822,16 +63822,22 @@ const GridPopoverEditBearingCorrection = (colDef, props) => GridPopoverEditBeari
63822
63822
  },
63823
63823
  });
63824
63824
 
63825
- const GridPopoverEditDropDown = (colDef, props) => GridCell(colDef, {
63826
- editor: GridFormDropDown,
63827
- ...props,
63828
- editorParams: {
63829
- ...props.editorParams,
63830
- className: clsx({
63831
- 'GridPopoverEditDropDown-containerLarge': !props.editorParams?.className?.includes('GridPopoverEditDropDown-container'),
63832
- }, props.editorParams?.className),
63833
- },
63834
- });
63825
+ const GridPopoverEditDropDown = (colDef, props) => {
63826
+ colDef.cellRendererParams = {
63827
+ rightHoverElement: (jsxRuntime.jsx(GridIcon, { icon: 'ic_arrow_drop_down', title: '', className: 'GridCell-editableIcon GridCell-dropDownIcon' })),
63828
+ ...colDef.cellRendererParams,
63829
+ };
63830
+ return GridCell(colDef, {
63831
+ editor: GridFormDropDown,
63832
+ ...props,
63833
+ editorParams: {
63834
+ ...props.editorParams,
63835
+ className: clsx({
63836
+ 'GridPopoverEditDropDown-containerLarge': !props.editorParams?.className?.includes('GridPopoverEditDropDown-container'),
63837
+ }, props.editorParams?.className),
63838
+ },
63839
+ });
63840
+ };
63835
63841
 
63836
63842
  const GridRenderPopoutMenuCell = (props) => {
63837
63843
  const disabled = !fnOrVar(props.colDef?.editable, props);
@@ -63914,8 +63920,14 @@ const GridContextProvider = (props) => {
63914
63920
  const enableMultilineBulkEditRef = React13.useRef(false);
63915
63921
  const idsBeforeUpdate = React13.useRef([]);
63916
63922
  const prePopupFocusedCell = React13.useRef();
63917
- const [externallySelectedItemsAreInSync, setExternallySelectedItemsAreInSync] = React13.useState(false);
63923
+ const [externallySelectedItemsAreInSync, _setExternallySelectedItemsAreInSync] = React13.useState(false);
63918
63924
  const externalFilters = React13.useRef([]);
63925
+ // waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
63926
+ const externallySelectedItemsAreInSyncRef = React13.useRef(false);
63927
+ const setExternallySelectedItemsAreInSync = React13.useCallback((cond) => {
63928
+ _setExternallySelectedItemsAreInSync(cond);
63929
+ externallySelectedItemsAreInSyncRef.current = cond;
63930
+ }, [_setExternallySelectedItemsAreInSync]);
63919
63931
  const setQuickFilter = React13.useCallback((filter) => {
63920
63932
  // If we don't clear the focused cell focus switches back to grid when typing in the quick filter input
63921
63933
  gridApi?.clearFocusedCell();
@@ -64262,11 +64274,6 @@ const GridContextProvider = (props) => {
64262
64274
  });
64263
64275
  }
64264
64276
  }, [gridApi]);
64265
- // waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
64266
- const externallySelectedItemsAreInSyncRef = React13.useRef(false);
64267
- React13.useEffect(() => {
64268
- externallySelectedItemsAreInSyncRef.current = externallySelectedItemsAreInSync;
64269
- }, [externallySelectedItemsAreInSync]);
64270
64277
  const waitForExternallySelectedItemsToBeInSync = React13.useCallback(async () => {
64271
64278
  if (!hasExternallySelectedItemsRef.current) {
64272
64279
  externallySelectedItemsAreInSyncRef.current = true;
@@ -64322,7 +64329,7 @@ const GridContextProvider = (props) => {
64322
64329
  finally {
64323
64330
  startCellEditingInProgressRef.current = false;
64324
64331
  }
64325
- }, [anyUpdating, gridApi, prePopupOps, waitForExternallySelectedItemsToBeInSync]);
64332
+ }, [anyUpdating, gridApi, prePopupOps, setExternallySelectedItemsAreInSync, waitForExternallySelectedItemsToBeInSync]);
64326
64333
  const bulkEditingCompleteCallbackRef = React13.useRef();
64327
64334
  const onBulkEditingComplete = React13.useCallback(async () => {
64328
64335
  await bulkEditingCompleteCallbackRef.current?.();