@linzjs/step-ag-grid 24.0.0 → 25.0.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.
Files changed (53) hide show
  1. package/dist/GridTheme.scss +1 -1
  2. package/dist/index.css +0 -13
  3. package/dist/src/index.d.ts +2 -0
  4. package/{src/utils → dist/src/utils/__tests__}/testQuick.ts +1 -1
  5. package/{src/utils → dist/src/utils/__tests__}/testUtil.ts +1 -1
  6. package/dist/src/utils/__tests__/vitestUtil.ts +295 -0
  7. package/dist/{step-ag-grid.cjs.js → step-ag-grid.cjs} +4 -4
  8. package/dist/step-ag-grid.cjs.map +1 -0
  9. package/dist/step-ag-grid.esm.js +4 -6
  10. package/dist/step-ag-grid.esm.js.map +1 -1
  11. package/dist/vite.config.d.ts +1 -1
  12. package/package.json +23 -27
  13. package/src/components/GridCell.test.tsx +2 -0
  14. package/src/contexts/GridContextProvider.test.tsx +1 -0
  15. package/src/contexts/GridContextProvider.tsx +1 -2
  16. package/src/index.ts +2 -0
  17. package/src/lui/ActionButton.scss +2 -2
  18. package/src/lui/FormError.scss +3 -4
  19. package/src/lui/TextInputFormatted.scss +1 -1
  20. package/src/lui/reactUtils.test.tsx +1 -0
  21. package/src/lui/timeoutHook.test.tsx +7 -6
  22. package/src/stories/grid/GridDragRow.stories.tsx +1 -1
  23. package/src/stories/grid/GridFilterButtons.stories.tsx +1 -1
  24. package/src/stories/grid/GridNonEditableRow.stories.tsx +1 -1
  25. package/src/stories/grid/GridPinnedRow.stories.tsx +1 -1
  26. package/src/stories/grid/GridPopoutContextMenu.stories.tsx +1 -1
  27. package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +1 -1
  28. package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +1 -1
  29. package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +1 -1
  30. package/src/stories/grid/GridPopoverEditBearing.stories.tsx +1 -1
  31. package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +1 -1
  32. package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +1 -1
  33. package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +1 -1
  34. package/src/stories/grid/GridReadOnly.stories.tsx +1 -1
  35. package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +1 -1
  36. package/src/styles/Grid.scss +9 -9
  37. package/src/styles/GridIcon.scss +6 -6
  38. package/src/styles/GridPopoverMenu.scss +3 -3
  39. package/src/styles/GridTheme.scss +1 -1
  40. package/src/styles/react-menu-customisations.scss +26 -41
  41. package/src/utils/__tests__/storybookTestUtil.ts +4 -0
  42. package/src/utils/__tests__/testQuick.ts +157 -0
  43. package/src/utils/__tests__/testUtil.ts +294 -0
  44. package/src/utils/__tests__/vitestUtil.ts +295 -0
  45. package/src/utils/bearing.test.ts +3 -1
  46. package/src/utils/textMatcher.test.ts +2 -1
  47. package/src/utils/textValidator.test.ts +5 -6
  48. package/src/utils/util.test.ts +2 -1
  49. package/dist/src/utils/storybookTestUtil.d.ts +0 -3
  50. package/dist/src/utils/testQuick.d.ts +0 -62
  51. package/dist/src/utils/testUtil.d.ts +0 -46
  52. package/dist/step-ag-grid.cjs.js.map +0 -1
  53. /package/{src/utils → dist/src/utils/__tests__}/storybookTestUtil.ts +0 -0
@@ -2,8 +2,8 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { LuiMiniSpinner, LuiStatusSpinner, LuiIcon, LuiButtonGroup, LuiButton, LuiCheckboxInput } from '@linzjs/lui';
3
3
  import { RowHighlightPosition } from 'ag-grid-community';
4
4
  import { AgGridReact } from 'ag-grid-react';
5
- import { negate, isEmpty, findIndex, defer as defer$1, debounce as debounce$1, xorBy, last, difference, omit, sortBy, delay, partition, pick, groupBy, fromPairs, toPairs, isEqual, compact, filter, sumBy, pull, remove, castArray, flatten } from 'lodash-es';
6
- import React, { useRef, useEffect, useLayoutEffect, createContext, useContext, useState, useMemo, memo, forwardRef, useCallback, useReducer, cloneElement, useImperativeHandle, Fragment as Fragment$1, useId } from 'react';
5
+ import { negate, isEmpty, findIndex, defer as defer$1, debounce as debounce$1, xorBy, last, difference, omit, sortBy, delay, partition, pick, groupBy, fromPairs, toPairs, isEqual, compact, filter, sumBy, remove, pull, castArray, flatten } from 'lodash-es';
6
+ import React, { useRef, useLayoutEffect, useEffect, createContext, useContext, useState, useMemo, memo, forwardRef, useCallback, useReducer, cloneElement, useImperativeHandle, Fragment as Fragment$1, useId } from 'react';
7
7
  import { unstable_batchedUpdates, flushSync, createPortal } from 'react-dom';
8
8
 
9
9
  /**
@@ -5090,9 +5090,7 @@ const GridContextProvider = (props) => {
5090
5090
  gridApi && gridApi.redrawRows(rowNodes ? { rowNodes } : undefined);
5091
5091
  }
5092
5092
  catch (ex) {
5093
- // Hide errors in jest, but log them in browser
5094
- if (typeof jest === 'undefined')
5095
- console.error(ex);
5093
+ console.error(ex);
5096
5094
  }
5097
5095
  }, 50), [gridApi]);
5098
5096
  // waitForExternallySelectedItemsToBeInSync can't use the state as it won't be updated during function execution
@@ -5394,5 +5392,5 @@ const useDeferredPromise = () => {
5394
5392
  };
5395
5393
  };
5396
5394
 
5397
- export { ActionButton, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, FormError, GenericCellEditorComponentWrapper, Grid, GridButton, GridCell, GridCellFiller, GridCellFillerColId, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridEditBoolean, GridFilterButtons, GridFilterColumnsToggle, GridFilterDownloadCsvButton, GridFilterHeaderIconButton, GridFilterQuick, GridFilters, GridFormDropDown, GridFormEditBearing, GridFormMessage, GridFormMultiSelect, GridFormMultiSelectGrid, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridNoRowsOverlay, GridNoRowsOverlayFr, GridPopoutEditMultiSelect, GridPopoutEditMultiSelectGrid, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditBearingCorrectionEditorParams, GridPopoverEditBearingEditorParams, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, GridWrapper, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, bearingCorrectionRangeValidator, bearingCorrectionValueFormatter, bearingNumberParser, bearingRangeValidator, bearingStringValidator, bearingValueFormatter, clickInputWhenContainingCellClicked, convertDDToDMS, downloadCsvUseValueFormattersProcessCellCallback, findParentWithClass, fnOrVar, generateFilterGetter, hasParentClass, isFloat, isGridCellFiller, isNotEmpty, sanitiseFileName, stringByteLengthIsInvalid, suppressCellKeyboardEvents, useDeferredPromise, useGridContext, useGridContextMenu, useGridFilter, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait };
5395
+ export { ActionButton, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, FormError, GenericCellEditorComponentWrapper, Grid, GridButton, GridCell, GridCellFiller, GridCellFillerColId, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridEditBoolean, GridFilterButtons, GridFilterColumnsToggle, GridFilterDownloadCsvButton, GridFilterHeaderIconButton, GridFilterQuick, GridFilters, GridFormDropDown, GridFormEditBearing, GridFormMessage, GridFormMultiSelect, GridFormMultiSelectGrid, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridNoRowsOverlay, GridNoRowsOverlayFr, GridPopoutEditMultiSelect, GridPopoutEditMultiSelectGrid, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditBearingCorrectionEditorParams, GridPopoverEditBearingEditorParams, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, GridWrapper, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, TextInputValidator, bearingCorrectionRangeValidator, bearingCorrectionValueFormatter, bearingNumberParser, bearingRangeValidator, bearingStringValidator, bearingValueFormatter, clickInputWhenContainingCellClicked, convertDDToDMS, downloadCsvUseValueFormattersProcessCellCallback, findParentWithClass, fnOrVar, generateFilterGetter, hasParentClass, isFloat, isGridCellFiller, isNotEmpty, sanitiseFileName, stringByteLengthIsInvalid, suppressCellKeyboardEvents, textMatch, useDeferredPromise, useGridContext, useGridContextMenu, useGridFilter, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait };
5398
5396
  //# sourceMappingURL=step-ag-grid.esm.js.map