@linzjs/step-ag-grid 22.3.0 → 23.0.1
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/GridTheme.scss +1 -1
- package/dist/step-ag-grid.cjs.js +21 -21
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +21 -21
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/dist/vite.config.d.ts +1 -1
- package/package.json +33 -33
- package/src/components/gridFilter/GridFilterHeaderIconButton.tsx +1 -1
- package/src/lui/ActionButton.scss +4 -5
- package/src/lui/ActionButton.tsx +20 -19
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +2 -1
- package/src/styles/Grid.scss +0 -2
- package/src/styles/GridTheme.scss +1 -1
package/dist/GridTheme.scss
CHANGED
package/dist/step-ag-grid.cjs.js
CHANGED
|
@@ -900,7 +900,7 @@ const updateState = (status, setState, latestState, timeoutId, onChange) => {
|
|
|
900
900
|
current: state
|
|
901
901
|
});
|
|
902
902
|
};
|
|
903
|
-
const
|
|
903
|
+
const useTransitionState = ({
|
|
904
904
|
enter = true,
|
|
905
905
|
exit = true,
|
|
906
906
|
preEnter,
|
|
@@ -954,7 +954,7 @@ const useMenuState = (props) => {
|
|
|
954
954
|
const { initialMounted, unmountOnClose, transition, transitionTimeout } = props ?? {
|
|
955
955
|
transition: false,
|
|
956
956
|
};
|
|
957
|
-
const [state, toggleMenu, endTransition] =
|
|
957
|
+
const [state, toggleMenu, endTransition] = useTransitionState({
|
|
958
958
|
mountOnEnter: !initialMounted,
|
|
959
959
|
unmountOnExit: unmountOnClose,
|
|
960
960
|
timeout: transitionTimeout ?? 500,
|
|
@@ -3049,7 +3049,7 @@ const GridCellMultiEditor = (props, cellEditorSelector) => GridCell({
|
|
|
3049
3049
|
});
|
|
3050
3050
|
|
|
3051
3051
|
const GridFilterHeaderIconButton = React.forwardRef(function columnsButton({ icon, title, onClick, buttonProps, disabled = false, size = "md" }, ref) {
|
|
3052
|
-
return (jsxRuntime.jsx(lui.LuiButton, { ...buttonProps, type: "button", level: "tertiary", className: "lui-button-icon-only", ref: ref, "aria-label": title, title: title, onClick: onClick, disabled: disabled, children: jsxRuntime.jsx(lui.LuiIcon, { name: icon, alt: "Menu", size: size }) }));
|
|
3052
|
+
return (jsxRuntime.jsx(lui.LuiButton, { ...buttonProps, type: "button", level: "tertiary", className: "lui-button-icon-only", ref: ref, buttonProps: { "aria-label": title }, title: title, onClick: onClick, disabled: disabled, children: jsxRuntime.jsx(lui.LuiIcon, { name: icon, alt: "Menu", size: size }) }));
|
|
3053
3053
|
});
|
|
3054
3054
|
|
|
3055
3055
|
const GridFilterColumnsToggle = ({ saveState = true }) => {
|
|
@@ -3240,9 +3240,9 @@ var dist = function debounce(fn) {
|
|
|
3240
3240
|
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
3241
3241
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3242
3242
|
|
|
3243
|
-
var lastCallAt =
|
|
3244
|
-
var deferred =
|
|
3245
|
-
var timer =
|
|
3243
|
+
var lastCallAt = undefined;
|
|
3244
|
+
var deferred = undefined;
|
|
3245
|
+
var timer = undefined;
|
|
3246
3246
|
var pendingArgs = [];
|
|
3247
3247
|
return function debounced() {
|
|
3248
3248
|
var currentWait = getWait(wait);
|
|
@@ -3324,7 +3324,7 @@ const GridSubComponentContext = React.createContext({
|
|
|
3324
3324
|
});
|
|
3325
3325
|
|
|
3326
3326
|
function styleInject(css, ref) {
|
|
3327
|
-
if ( ref ===
|
|
3327
|
+
if ( ref === undefined ) ref = {};
|
|
3328
3328
|
var insertAt = ref.insertAt;
|
|
3329
3329
|
|
|
3330
3330
|
if (!css || typeof document === 'undefined') { return; }
|
|
@@ -5293,7 +5293,7 @@ const GridUpdatingContextProvider = (props) => {
|
|
|
5293
5293
|
return (jsxRuntime.jsx(GridUpdatingContext.Provider, { value: { modifyUpdating, checkUpdating, updatingCols, updatedDep }, children: props.children }));
|
|
5294
5294
|
};
|
|
5295
5295
|
|
|
5296
|
-
var css_248z = ".ActionButton{align-items:center;display:flex}.ActionButton-minimal.lui-button-lg.lui-button-icon-right{padding-right:38px}.ActionButton.lui-button-lg.lui-button-icon-right:not(.ActionButton-tight) .LuiIcon{margin:0 4px}.ActionButton.ActionButton-tight.lui-button-lg.lui-button-icon-right .LuiIcon{margin:0}.ActionButton-iconOnly.lui-button-lg.lui-button-icon-right:not(.ActionButton-tight){padding:8px 5px}.ActionButton-iconOnly.lui-button-lg.lui-button-icon-right.ActionButton-tight{padding:0}.ActionButton-minimalArea{position:relative}.ActionButton-minimalAreaDisplay{position:absolute}.ActionButton-minimalAreaExpand{visibility:hidden}.ActionButton-inProgress.lui-button-lg.lui-button-icon-right{background-color:#e2f3f7;color:#007198;cursor:progress}.ActionButton-
|
|
5296
|
+
var css_248z = ".ActionButton{align-items:center;display:flex}.ActionButton-inProgress .LuiIcon{visibility:hidden}.ActionButton-minimal.lui-button-lg.lui-button-icon-right{padding-right:38px}.ActionButton.lui-button-lg.lui-button-icon-right:not(.ActionButton-tight) .LuiIcon{margin:0 4px}.ActionButton.ActionButton-tight.lui-button-lg.lui-button-icon-right .LuiIcon{margin:0}.ActionButton-iconOnly.lui-button-lg.lui-button-icon-right:not(.ActionButton-tight){padding:8px 5px}.ActionButton-iconOnly.lui-button-lg.lui-button-icon-right.ActionButton-tight{padding:0}.ActionButton-minimalArea{position:relative}.ActionButton-minimalAreaDisplay{position:absolute}.ActionButton-minimalAreaExpand{visibility:hidden}.ActionButton-inProgress.lui-button-lg.lui-button-icon-right{background-color:#e2f3f7;color:#007198;cursor:progress}.ActionButton-fill{justify-content:center;width:100%}";
|
|
5297
5297
|
styleInject(css_248z);
|
|
5298
5298
|
|
|
5299
5299
|
/**
|
|
@@ -5321,7 +5321,7 @@ const ActionButton = ({ icon, name, inProgressName, disabled, dataTestId, style,
|
|
|
5321
5321
|
inProgress ? setLocalInProgress(true) : setLocalInProgressDeferred(false, minimumInProgressTimeMs);
|
|
5322
5322
|
}, [inProgress, lastInProgress, setLocalInProgress, setLocalInProgressDeferred]);
|
|
5323
5323
|
const buttonText = (jsxRuntime.jsxs("span", { className: "ActionButton-minimalArea", children: [jsxRuntime.jsx("span", { className: "ActionButton-minimalAreaDisplay", children: (localInProgress ? inProgressName : name) ?? name }), jsxRuntime.jsx("span", { className: "ActionButton-minimalAreaExpand", children: name })] }));
|
|
5324
|
-
return (jsxRuntime.jsxs(lui.LuiButton, { "data-testid": dataTestId, type: "button", level: level, title: title ?? ariaLabel ?? name, "aria-label": ariaLabel ?? name, className: clsx("lui-button-icon-right", "ActionButton", className, localInProgress && "ActionButton-inProgress", name != null && !className?.includes("ActionButton-fill") && "ActionButton-minimal", name == null && "ActionButton-iconOnly"), size: "lg", style: style, onClick: async () => {
|
|
5324
|
+
return (jsxRuntime.jsxs(lui.LuiButton, { "data-testid": dataTestId, type: "button", level: level, title: title ?? ariaLabel ?? name, buttonProps: { "aria-label": ariaLabel ?? name }, className: clsx("lui-button-icon-right", "ActionButton", className, localInProgress && "ActionButton-inProgress", name != null && !className?.includes("ActionButton-fill") && "ActionButton-minimal", name == null && "ActionButton-iconOnly"), size: "lg", style: style, onClick: async () => {
|
|
5325
5325
|
const promise = onClick();
|
|
5326
5326
|
const isPromise = typeof promise !== "undefined";
|
|
5327
5327
|
if (isPromise) {
|
|
@@ -5330,18 +5330,18 @@ const ActionButton = ({ icon, name, inProgressName, disabled, dataTestId, style,
|
|
|
5330
5330
|
await promise;
|
|
5331
5331
|
setInProgress(false);
|
|
5332
5332
|
}
|
|
5333
|
-
}, disabled: localInProgress || disabled, children: [iconPosition === "right" && buttonText, localInProgress
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5333
|
+
}, disabled: localInProgress || disabled, children: [iconPosition === "right" && buttonText, localInProgress && (jsxRuntime.jsx("div", { style: { position: "relative" }, children: jsxRuntime.jsx(lui.LuiMiniSpinner, { size: 14, divProps: {
|
|
5334
|
+
"data-testid": "loading-spinner",
|
|
5335
|
+
style: {
|
|
5336
|
+
position: "absolute",
|
|
5337
|
+
left: 4,
|
|
5338
|
+
top: -10,
|
|
5339
|
+
bottom: 10,
|
|
5340
|
+
right: -4,
|
|
5341
|
+
},
|
|
5342
|
+
role: "status",
|
|
5343
|
+
"aria-label": "Loading",
|
|
5344
|
+
} }) })), jsxRuntime.jsx(lui.LuiIcon, { name: icon, alt: ariaLabel ?? name ?? "", size: size }), iconPosition === "left" && buttonText] }));
|
|
5345
5345
|
};
|
|
5346
5346
|
|
|
5347
5347
|
const useDeferredPromise = () => {
|