@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/step-ag-grid.esm.js
CHANGED
|
@@ -898,7 +898,7 @@ const updateState = (status, setState, latestState, timeoutId, onChange) => {
|
|
|
898
898
|
current: state
|
|
899
899
|
});
|
|
900
900
|
};
|
|
901
|
-
const
|
|
901
|
+
const useTransitionState = ({
|
|
902
902
|
enter = true,
|
|
903
903
|
exit = true,
|
|
904
904
|
preEnter,
|
|
@@ -952,7 +952,7 @@ const useMenuState = (props) => {
|
|
|
952
952
|
const { initialMounted, unmountOnClose, transition, transitionTimeout } = props ?? {
|
|
953
953
|
transition: false,
|
|
954
954
|
};
|
|
955
|
-
const [state, toggleMenu, endTransition] =
|
|
955
|
+
const [state, toggleMenu, endTransition] = useTransitionState({
|
|
956
956
|
mountOnEnter: !initialMounted,
|
|
957
957
|
unmountOnExit: unmountOnClose,
|
|
958
958
|
timeout: transitionTimeout ?? 500,
|
|
@@ -3238,9 +3238,9 @@ var dist = function debounce(fn) {
|
|
|
3238
3238
|
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
3239
3239
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3240
3240
|
|
|
3241
|
-
var lastCallAt =
|
|
3242
|
-
var deferred =
|
|
3243
|
-
var timer =
|
|
3241
|
+
var lastCallAt = undefined;
|
|
3242
|
+
var deferred = undefined;
|
|
3243
|
+
var timer = undefined;
|
|
3244
3244
|
var pendingArgs = [];
|
|
3245
3245
|
return function debounced() {
|
|
3246
3246
|
var currentWait = getWait(wait);
|
|
@@ -3322,7 +3322,7 @@ const GridSubComponentContext = createContext({
|
|
|
3322
3322
|
});
|
|
3323
3323
|
|
|
3324
3324
|
function styleInject(css, ref) {
|
|
3325
|
-
if ( ref ===
|
|
3325
|
+
if ( ref === undefined ) ref = {};
|
|
3326
3326
|
var insertAt = ref.insertAt;
|
|
3327
3327
|
|
|
3328
3328
|
if (!css || typeof document === 'undefined') { return; }
|
|
@@ -5291,7 +5291,7 @@ const GridUpdatingContextProvider = (props) => {
|
|
|
5291
5291
|
return (jsx(GridUpdatingContext.Provider, { value: { modifyUpdating, checkUpdating, updatingCols, updatedDep }, children: props.children }));
|
|
5292
5292
|
};
|
|
5293
5293
|
|
|
5294
|
-
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-
|
|
5294
|
+
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%}";
|
|
5295
5295
|
styleInject(css_248z);
|
|
5296
5296
|
|
|
5297
5297
|
/**
|
|
@@ -5328,18 +5328,18 @@ const ActionButton = ({ icon, name, inProgressName, disabled, dataTestId, style,
|
|
|
5328
5328
|
await promise;
|
|
5329
5329
|
setInProgress(false);
|
|
5330
5330
|
}
|
|
5331
|
-
}, disabled: localInProgress || disabled, children: [iconPosition === "right" && buttonText, localInProgress
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5331
|
+
}, disabled: localInProgress || disabled, children: [iconPosition === "right" && buttonText, localInProgress && (jsx("div", { style: { position: "relative" }, children: jsx(LuiMiniSpinner, { size: 14, divProps: {
|
|
5332
|
+
"data-testid": "loading-spinner",
|
|
5333
|
+
style: {
|
|
5334
|
+
position: "absolute",
|
|
5335
|
+
left: 4,
|
|
5336
|
+
top: -10,
|
|
5337
|
+
bottom: 10,
|
|
5338
|
+
right: -4,
|
|
5339
|
+
},
|
|
5340
|
+
role: "status",
|
|
5341
|
+
"aria-label": "Loading",
|
|
5342
|
+
} }) })), jsx(LuiIcon, { name: icon, alt: ariaLabel ?? name ?? "", size: size }), iconPosition === "left" && buttonText] }));
|
|
5343
5343
|
};
|
|
5344
5344
|
|
|
5345
5345
|
const useDeferredPromise = () => {
|