@linzjs/step-ag-grid 32.5.0 → 32.6.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 (49) hide show
  1. package/dist/src/index.d.ts +1 -0
  2. package/dist/src/utils/isChromatic.d.ts +11 -0
  3. package/dist/step-ag-grid.cjs +25 -9
  4. package/dist/step-ag-grid.cjs.map +1 -1
  5. package/dist/step-ag-grid.esm.js +24 -10
  6. package/dist/step-ag-grid.esm.js.map +1 -1
  7. package/package.json +16 -16
  8. package/src/components/Grid.tsx +1 -1
  9. package/src/contexts/GridContextProvider.tsx +1 -1
  10. package/src/index.ts +1 -0
  11. package/src/stories/components/ActionButton.stories.tsx +0 -1
  12. package/src/stories/grid/GridCopy.stories.tsx +1 -6
  13. package/src/stories/grid/GridDragRow.stories.tsx +1 -6
  14. package/src/stories/grid/GridFilterButtons.stories.tsx +0 -5
  15. package/src/stories/grid/GridFilterColumnsMultiSelect.stories.tsx +0 -5
  16. package/src/stories/grid/GridInlineText.stories.tsx +0 -5
  17. package/src/stories/grid/GridNoRowsOverlay.stories.tsx +0 -5
  18. package/src/stories/grid/GridNonEditableRow.stories.tsx +0 -5
  19. package/src/stories/grid/GridPinnedRow.stories.tsx +1 -6
  20. package/src/stories/grid/GridPopoutContextMenu.stories.tsx +0 -5
  21. package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +0 -5
  22. package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +0 -5
  23. package/src/stories/grid/GridPopoverEditBearing.stories.tsx +0 -5
  24. package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +0 -5
  25. package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +0 -5
  26. package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +0 -5
  27. package/src/stories/grid/GridReadOnly.stories.tsx +1 -6
  28. package/src/stories/grid/GridSorting.stories.tsx +1 -6
  29. package/src/stories/grid/GridViewList.stories.tsx +1 -6
  30. package/src/stories/grid/GridViewSelectableList.stories.tsx +1 -6
  31. package/src/stories/grid/gridAutosize/GridAutoSize.stories.tsx +28 -11
  32. package/src/stories/grid/gridAutosize/GridFitSize.stories.tsx +27 -11
  33. package/src/stories/grid/gridAutosize/GridFitSizeFlex.stories.tsx +27 -11
  34. package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +0 -1
  35. package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +0 -1
  36. package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +0 -1
  37. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +0 -1
  38. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +0 -1
  39. package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +0 -1
  40. package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +0 -1
  41. package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +0 -1
  42. package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +0 -1
  43. package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +0 -1
  44. package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +0 -1
  45. package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +0 -1
  46. package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +0 -1
  47. package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +0 -1
  48. package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +0 -5
  49. package/src/utils/isChromatic.tsx +30 -0
@@ -57822,15 +57822,6 @@ var AgGridReact = class extends Component$1 {
57822
57822
  }
57823
57823
  };
57824
57824
 
57825
- function isChromatic(windowArgument) {
57826
- const windowToCheck = (globalThis.window !== undefined && globalThis);
57827
- return !!(
57828
- windowToCheck &&
57829
- (/Chromatic/.test(windowToCheck.navigator.userAgent) ||
57830
- /chromatic=true/.test(windowToCheck.location.href))
57831
- );
57832
- }
57833
-
57834
57825
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
57835
57826
 
57836
57827
  const NoContext = () => {
@@ -57904,6 +57895,29 @@ const GridUpdatingContext = createContext({
57904
57895
  updatedDep: 0
57905
57896
  });
57906
57897
 
57898
+ function isChromatic$1(windowArgument) {
57899
+ const windowToCheck = (globalThis.window !== undefined && globalThis);
57900
+ return !!(
57901
+ windowToCheck &&
57902
+ (/Chromatic/.test(windowToCheck.navigator.userAgent) ||
57903
+ /chromatic=true/.test(windowToCheck.location.href))
57904
+ );
57905
+ }
57906
+
57907
+ const isChromatic = () => {
57908
+ const forced = window.FORCE_IS_CHROMATIC;
57909
+ return forced ?? isChromatic$1();
57910
+ };
57911
+ const ChromaticAllowGridAutosize = (Story) => {
57912
+ window.FORCE_IS_CHROMATIC = false;
57913
+ useEffect(() => {
57914
+ return () => {
57915
+ delete window.FORCE_IS_CHROMATIC;
57916
+ };
57917
+ }, []);
57918
+ return /* @__PURE__ */ jsx(Story, {});
57919
+ };
57920
+
57907
57921
  const isStorybook = window.IS_STORYBOOK;
57908
57922
 
57909
57923
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -65544,5 +65558,5 @@ const useDeferredPromise = () => {
65544
65558
  };
65545
65559
  };
65546
65560
 
65547
- export { ActionButton, CancelPromise, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, FormError, GenericCellEditorComponentWrapper, Grid, GridButton, GridCell, GridCellBearingValueFormatter, GridCellFiller, GridCellFillerColId, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridEditBoolean, GridFilterButtons, GridFilterColumnsMultiSelect, GridFilterColumnsToggle, GridFilterDownloadCsvButton, GridFilterHeaderIconButton, GridFilterQuick, GridFilters, GridFormDropDown, GridFormEditBearing, GridFormInlineTextInput, GridFormMessage, GridFormMultiSelect, GridFormMultiSelectGrid, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridIcon, GridInlineTextInput, 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, agGridSelectRowColId, bearingCorrectionRangeValidator, bearingCorrectionValueFormatter, bearingNumberParser, bearingRangeValidator, bearingStringValidator, bearingValueFormatter, colStateFlexed, colStateId, colStateNotFlexed, compareNaturalInsensitive, convertDDToDMS, createCheckboxMultiFilterParams, defaultValueFormatter, downloadCsvUseValueFormattersProcessCellCallback, findParentWithClass, fnOrVar, generateFilterGetter, hasParentClass, isFloat, isGridCellFiller, isNotEmpty, primitiveToSelectOption, reorderRows, sanitiseFileName, stringByteLengthIsInvalid, suppressCellKeyboardEvents, textInputValidatorPropsToSummary, textMatch, useDeferredPromise, useGridContext, useGridContextMenu, useGridFilter, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait, waitForCondition };
65561
+ export { ActionButton, CancelPromise, ChromaticAllowGridAutosize, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, FormError, GenericCellEditorComponentWrapper, Grid, GridButton, GridCell, GridCellBearingValueFormatter, GridCellFiller, GridCellFillerColId, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridEditBoolean, GridFilterButtons, GridFilterColumnsMultiSelect, GridFilterColumnsToggle, GridFilterDownloadCsvButton, GridFilterHeaderIconButton, GridFilterQuick, GridFilters, GridFormDropDown, GridFormEditBearing, GridFormInlineTextInput, GridFormMessage, GridFormMultiSelect, GridFormMultiSelectGrid, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridIcon, GridInlineTextInput, 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, agGridSelectRowColId, bearingCorrectionRangeValidator, bearingCorrectionValueFormatter, bearingNumberParser, bearingRangeValidator, bearingStringValidator, bearingValueFormatter, colStateFlexed, colStateId, colStateNotFlexed, compareNaturalInsensitive, convertDDToDMS, createCheckboxMultiFilterParams, defaultValueFormatter, downloadCsvUseValueFormattersProcessCellCallback, findParentWithClass, fnOrVar, generateFilterGetter, hasParentClass, isChromatic, isFloat, isGridCellFiller, isNotEmpty, primitiveToSelectOption, reorderRows, sanitiseFileName, stringByteLengthIsInvalid, suppressCellKeyboardEvents, textInputValidatorPropsToSummary, textMatch, useDeferredPromise, useGridContext, useGridContextMenu, useGridFilter, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait, waitForCondition };
65548
65562
  //# sourceMappingURL=step-ag-grid.esm.js.map