@linzjs/step-ag-grid 31.2.5 → 32.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 (63) hide show
  1. package/dist/index.css +5 -1
  2. package/dist/src/components/GridCell.d.ts +1 -1
  3. package/dist/src/components/GridLoadableCell.d.ts +1 -1
  4. package/dist/src/components/GridNoRowsOverlay.d.ts +1 -1
  5. package/dist/src/components/GridPopoverHook.d.ts +1 -1
  6. package/dist/src/components/gridFilter/GridFilterDownloadCsvButton.d.ts +1 -1
  7. package/dist/src/components/gridFilter/GridFilterQuick.d.ts +1 -1
  8. package/dist/src/components/gridFilter/GridFilters.d.ts +1 -1
  9. package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -1
  10. package/dist/src/components/gridForm/GridFormEditBearing.d.ts +1 -1
  11. package/dist/src/components/gridForm/GridFormInlineTextInput.d.ts +1 -1
  12. package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +2 -2
  13. package/dist/src/components/gridForm/GridFormPopoverMenu.d.ts +1 -1
  14. package/dist/src/components/gridForm/GridFormTextInput.d.ts +1 -1
  15. package/dist/src/components/gridHeader/GridHeaderSelect.d.ts +1 -1
  16. package/dist/src/components/gridHook/useGridContextMenu.d.ts +1 -1
  17. package/dist/src/components/gridHook/useGridCopy.d.ts +1 -1
  18. package/dist/src/components/gridHook/useGridRangeSelection.d.ts +1 -1
  19. package/dist/src/components/gridRender/GridRenderPopoutMenuCell.d.ts +1 -1
  20. package/dist/src/contexts/GridPopoverContextProvider.d.ts +1 -1
  21. package/dist/src/contexts/GridUpdatingContextProvider.d.ts +1 -1
  22. package/dist/src/lui/FormError.d.ts +1 -1
  23. package/dist/src/lui/TextAreaInput.d.ts +1 -1
  24. package/dist/src/react-menu3/components/ControlledMenu.d.ts +1 -1
  25. package/dist/src/react-menu3/components/FocusableItem.d.ts +1 -1
  26. package/dist/src/react-menu3/components/Menu.d.ts +1 -1
  27. package/dist/src/react-menu3/components/MenuGroup.d.ts +1 -1
  28. package/dist/src/react-menu3/components/MenuHeader.d.ts +1 -1
  29. package/dist/src/react-menu3/components/MenuList.d.ts +1 -1
  30. package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +1 -1
  31. package/dist/src/react-menu3/components/SubMenu.d.ts +1 -1
  32. package/dist/src/utils/useSharedInterval.d.ts +5 -0
  33. package/dist/step-ag-grid.cjs +247 -102
  34. package/dist/step-ag-grid.cjs.map +1 -1
  35. package/dist/step-ag-grid.esm.js +247 -102
  36. package/dist/step-ag-grid.esm.js.map +1 -1
  37. package/package.json +29 -30
  38. package/src/components/gridHook/useGridRangeSelection.ts +1 -1
  39. package/src/components/gridPopoverEdit/GridEditBoolean.tsx +64 -26
  40. package/src/contexts/GridContextProvider.tsx +18 -5
  41. package/src/react-app-env.d.ts +4 -1
  42. package/src/stories/grid/GridFilterColumnsMultiSelect.stories.tsx +1 -1
  43. package/src/stories/grid/GridNonEditableRow.stories.tsx +2 -2
  44. package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +48 -9
  45. package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +1 -1
  46. package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +1 -1
  47. package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +1 -1
  48. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +1 -1
  49. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +1 -1
  50. package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +1 -1
  51. package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +1 -1
  52. package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +1 -1
  53. package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +1 -1
  54. package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +1 -1
  55. package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +1 -1
  56. package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +1 -1
  57. package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +1 -1
  58. package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +1 -1
  59. package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +1 -1
  60. package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +1 -1
  61. package/src/styles/GridLoadableCell.scss +5 -1
  62. package/src/utils/useSharedInterval.ts +57 -0
  63. package/src/utils/util.ts +4 -2
package/src/utils/util.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { isEmpty, negate } from 'lodash-es';
2
- import natsort from 'natsort';
2
+ import natsortModule from 'natsort';
3
+ // natsort is a CJS module that sets exports.default, so interop wraps it in an extra layer
4
+ const natsort: typeof natsortModule = (natsortModule as any).default ?? natsortModule;
3
5
 
4
6
  export type MaybePromise<T> = T | Promise<T>;
5
7
 
@@ -52,7 +54,7 @@ export const fnOrVar = (fn: any, param?: any) => (typeof fn === 'function' ? fn(
52
54
  export const sanitiseFileName = (filename: string): string => {
53
55
  const valid = filename
54
56
  .trim()
55
- .replaceAll(/(\/|\\)+/g, '-')
57
+ .replaceAll(/([\/\\])+/g, '-')
56
58
  .replaceAll(/\s+/g, '_')
57
59
  .replaceAll(/[^\w\-āēīōūĀĒĪŌŪ.]/g, '');
58
60
  const parts = valid.split('.');