@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.
- package/dist/src/index.d.ts +1 -0
- package/dist/src/utils/isChromatic.d.ts +11 -0
- package/dist/step-ag-grid.cjs +25 -9
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +24 -10
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +16 -16
- package/src/components/Grid.tsx +1 -1
- package/src/contexts/GridContextProvider.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/stories/components/ActionButton.stories.tsx +0 -1
- package/src/stories/grid/GridCopy.stories.tsx +1 -6
- package/src/stories/grid/GridDragRow.stories.tsx +1 -6
- package/src/stories/grid/GridFilterButtons.stories.tsx +0 -5
- package/src/stories/grid/GridFilterColumnsMultiSelect.stories.tsx +0 -5
- package/src/stories/grid/GridInlineText.stories.tsx +0 -5
- package/src/stories/grid/GridNoRowsOverlay.stories.tsx +0 -5
- package/src/stories/grid/GridNonEditableRow.stories.tsx +0 -5
- package/src/stories/grid/GridPinnedRow.stories.tsx +1 -6
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +0 -5
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +0 -5
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +0 -5
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +0 -5
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +0 -5
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +0 -5
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +0 -5
- package/src/stories/grid/GridReadOnly.stories.tsx +1 -6
- package/src/stories/grid/GridSorting.stories.tsx +1 -6
- package/src/stories/grid/GridViewList.stories.tsx +1 -6
- package/src/stories/grid/GridViewSelectableList.stories.tsx +1 -6
- package/src/stories/grid/gridAutosize/GridAutoSize.stories.tsx +28 -11
- package/src/stories/grid/gridAutosize/GridFitSize.stories.tsx +27 -11
- package/src/stories/grid/gridAutosize/GridFitSizeFlex.stories.tsx +27 -11
- package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +0 -1
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +0 -1
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +0 -1
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +0 -1
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +0 -1
- package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +0 -1
- package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +0 -1
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +0 -5
- package/src/utils/isChromatic.tsx +30 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './react-menu3/index';
|
|
|
14
14
|
export * from './react-menu3/types';
|
|
15
15
|
export * from './utils/bearing';
|
|
16
16
|
export * from './utils/deferredPromise';
|
|
17
|
+
export * from './utils/isChromatic';
|
|
17
18
|
export * from './utils/textMatcher';
|
|
18
19
|
export * from './utils/textValidator';
|
|
19
20
|
export * from './utils/util';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Decorator } from '@storybook/react-vite';
|
|
2
|
+
export interface WindowChromaticProps {
|
|
3
|
+
FORCE_IS_CHROMATIC?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Wraps chromatic's isChromatic(). If window.FORCE_IS_CHROMATIC is set, returns that;
|
|
7
|
+
* otherwise returns whatever the real chromaticIsChromatic() reports.
|
|
8
|
+
*/
|
|
9
|
+
export declare const isChromatic: () => boolean;
|
|
10
|
+
/** Story decorator that forces isChromatic() to false for the story's lifetime. */
|
|
11
|
+
export declare const ChromaticAllowGridAutosize: Decorator;
|
package/dist/step-ag-grid.cjs
CHANGED
|
@@ -57824,15 +57824,6 @@ var AgGridReact = class extends React13.Component {
|
|
|
57824
57824
|
}
|
|
57825
57825
|
};
|
|
57826
57826
|
|
|
57827
|
-
function isChromatic(windowArgument) {
|
|
57828
|
-
const windowToCheck = (globalThis.window !== undefined && globalThis);
|
|
57829
|
-
return !!(
|
|
57830
|
-
windowToCheck &&
|
|
57831
|
-
(/Chromatic/.test(windowToCheck.navigator.userAgent) ||
|
|
57832
|
-
/chromatic=true/.test(windowToCheck.location.href))
|
|
57833
|
-
);
|
|
57834
|
-
}
|
|
57835
|
-
|
|
57836
57827
|
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}
|
|
57837
57828
|
|
|
57838
57829
|
const NoContext = () => {
|
|
@@ -57906,6 +57897,29 @@ const GridUpdatingContext = React13.createContext({
|
|
|
57906
57897
|
updatedDep: 0
|
|
57907
57898
|
});
|
|
57908
57899
|
|
|
57900
|
+
function isChromatic$1(windowArgument) {
|
|
57901
|
+
const windowToCheck = (globalThis.window !== undefined && globalThis);
|
|
57902
|
+
return !!(
|
|
57903
|
+
windowToCheck &&
|
|
57904
|
+
(/Chromatic/.test(windowToCheck.navigator.userAgent) ||
|
|
57905
|
+
/chromatic=true/.test(windowToCheck.location.href))
|
|
57906
|
+
);
|
|
57907
|
+
}
|
|
57908
|
+
|
|
57909
|
+
const isChromatic = () => {
|
|
57910
|
+
const forced = window.FORCE_IS_CHROMATIC;
|
|
57911
|
+
return forced ?? isChromatic$1();
|
|
57912
|
+
};
|
|
57913
|
+
const ChromaticAllowGridAutosize = (Story) => {
|
|
57914
|
+
window.FORCE_IS_CHROMATIC = false;
|
|
57915
|
+
React13.useEffect(() => {
|
|
57916
|
+
return () => {
|
|
57917
|
+
delete window.FORCE_IS_CHROMATIC;
|
|
57918
|
+
};
|
|
57919
|
+
}, []);
|
|
57920
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Story, {});
|
|
57921
|
+
};
|
|
57922
|
+
|
|
57909
57923
|
const isStorybook = window.IS_STORYBOOK;
|
|
57910
57924
|
|
|
57911
57925
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -65548,6 +65562,7 @@ const useDeferredPromise = () => {
|
|
|
65548
65562
|
|
|
65549
65563
|
exports.ActionButton = ActionButton;
|
|
65550
65564
|
exports.CancelPromise = CancelPromise;
|
|
65565
|
+
exports.ChromaticAllowGridAutosize = ChromaticAllowGridAutosize;
|
|
65551
65566
|
exports.ComponentLoadingWrapper = ComponentLoadingWrapper;
|
|
65552
65567
|
exports.ControlledMenu = ControlledMenu;
|
|
65553
65568
|
exports.Editor = Editor;
|
|
@@ -65642,6 +65657,7 @@ exports.findParentWithClass = findParentWithClass;
|
|
|
65642
65657
|
exports.fnOrVar = fnOrVar;
|
|
65643
65658
|
exports.generateFilterGetter = generateFilterGetter;
|
|
65644
65659
|
exports.hasParentClass = hasParentClass;
|
|
65660
|
+
exports.isChromatic = isChromatic;
|
|
65645
65661
|
exports.isFloat = isFloat;
|
|
65646
65662
|
exports.isGridCellFiller = isGridCellFiller;
|
|
65647
65663
|
exports.isNotEmpty = isNotEmpty;
|