@linzjs/step-ag-grid 22.2.5 → 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.
@@ -898,7 +898,7 @@ const updateState = (status, setState, latestState, timeoutId, onChange) => {
898
898
  current: state
899
899
  });
900
900
  };
901
- const useTransition = ({
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] = useTransition({
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 = void 0;
3242
- var deferred = void 0;
3243
- var timer = void 0;
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 === void 0 ) ref = {};
3325
+ if ( ref === undefined ) ref = {};
3326
3326
  var insertAt = ref.insertAt;
3327
3327
 
3328
3328
  if (!css || typeof document === 'undefined') { return; }
@@ -3348,11 +3348,11 @@ function styleInject(css, ref) {
3348
3348
  }
3349
3349
  }
3350
3350
 
3351
- var css_248z$2 = ".FormError-helpText{color:#6b6966;font-size:.75rem;font-weight:400}";
3351
+ var css_248z$2 = ".FormError{display:flex}.FormError-helpText{color:#6b6966;font-size:.75rem;font-weight:400}.FormError-text-icon{margin-right:4px;margin-top:4px}.FormError-error{align-items:center;color:#2a292c;font-size:14px;font-weight:600;padding-left:0}";
3352
3352
  styleInject(css_248z$2);
3353
3353
 
3354
3354
  const FormError = (props) => {
3355
- return (jsxs(Fragment, { children: [props.error && (jsx("span", { className: "LuiTextInput-error", style: { paddingLeft: 0 }, children: props.error })), props.helpText && !props.error && jsx("span", { className: "FormError-helpText", children: props.helpText })] }));
3355
+ return (jsxs(Fragment, { children: [props.error && (jsxs("div", { className: "FormError", children: [jsx(LuiIcon, { alt: "error", name: "ic_error", className: "FormError-text-icon", size: "sm", status: "error" }), jsx("span", { className: "FormError-error", children: props.error })] })), props.helpText && !props.error && jsx("span", { className: "FormError-helpText", children: props.helpText })] }));
3356
3356
  };
3357
3357
 
3358
3358
  function escapeStringRegexp(string) {
@@ -3733,7 +3733,7 @@ const GridFormDropDown = (props) => {
3733
3733
  })] }) })] }));
3734
3734
  };
3735
3735
 
3736
- var css_248z$1 = ".LuiTextInput.GridLuiTextInput{margin-bottom:0}.LuiTextInput-formatted{color:#beb9b4;line-height:48px;position:absolute;right:14px;top:0}";
3736
+ var css_248z$1 = ".LuiTextInput.GridLuiTextInput{margin-bottom:0}.LuiTextInput-formatted{color:#6b6966;line-height:48px;position:absolute;right:14px;top:0}";
3737
3737
  styleInject(css_248z$1);
3738
3738
 
3739
3739
  const TextInputFormatted = (props) => {
@@ -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-inProgress.lui-button-lg.lui-button-icon-right svg *{fill:#0000}.ActionButton-fill{justify-content:center;width:100%}";
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 ? (jsx(LuiMiniSpinner, { size: 16, divProps: {
5332
- "data-testid": "loading-spinner",
5333
- style: {
5334
- margin: 0,
5335
- paddingRight: 5,
5336
- paddingLeft: 3,
5337
- paddingBottom: 0,
5338
- paddingTop: 0,
5339
- },
5340
- role: "status",
5341
- "aria-label": "Loading",
5342
- } })) : (jsx(LuiIcon, { name: icon, alt: ariaLabel ?? name ?? "", size: size })), iconPosition === "left" && buttonText] }));
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 = () => {