@linzjs/step-ag-grid 22.3.0 → 23.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.
- package/dist/GridTheme.scss +1 -1
- package/dist/step-ag-grid.cjs.js +19 -19
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +19 -19
- 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/lui/ActionButton.scss +4 -5
- package/src/lui/ActionButton.tsx +19 -18
- 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,
|
|
@@ -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
|
/**
|
|
@@ -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 = () => {
|