@linzjs/step-ag-grid 8.4.1 → 8.4.3

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.
Files changed (35) hide show
  1. package/dist/src/lui/TextAreaInput.d.ts +1 -0
  2. package/dist/src/lui/TextInputFormatted.d.ts +1 -0
  3. package/dist/src/react-menu3/components/FocusableItem.d.ts +1 -1
  4. package/dist/src/react-menu3/components/MenuItem.d.ts +3 -1
  5. package/dist/src/react-menu3/components/SubMenu.d.ts +1 -1
  6. package/dist/src/react-menu3/utils/withHovering.d.ts +2 -2
  7. package/dist/step-ag-grid.esm.js +46 -54
  8. package/dist/step-ag-grid.esm.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/components/gridForm/GridFormDropDown.tsx +11 -13
  11. package/src/components/gridForm/GridFormMultiSelect.tsx +20 -24
  12. package/src/components/gridForm/GridFormPopoverMenu.tsx +18 -22
  13. package/src/components/gridForm/GridFormSubComponentTextArea.tsx +1 -0
  14. package/src/components/gridForm/GridFormSubComponentTextInput.tsx +1 -0
  15. package/src/components/gridForm/GridFormTextArea.tsx +1 -1
  16. package/src/components/gridForm/GridFormTextInput.tsx +1 -1
  17. package/src/lui/TextAreaInput.tsx +2 -0
  18. package/src/lui/TextInputFormatted.tsx +2 -0
  19. package/src/react-menu3/components/MenuItem.tsx +1 -1
  20. package/src/react-menu3/utils/withHovering.tsx +3 -3
  21. package/src/stories/grid/GridPopoutEditDropDown.stories.tsx +10 -2
  22. package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +128 -0
  23. package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +92 -0
  24. package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +91 -0
  25. package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +171 -0
  26. package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +78 -0
  27. package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +85 -0
  28. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormDropDown.stories.tsx +1 -1
  29. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormEditBearing.stories.tsx +1 -1
  30. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormEditBearingCorrection.stories.tsx +1 -1
  31. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormMessage.stories.tsx +1 -1
  32. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormMultiSelect.stories.tsx +1 -1
  33. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormPopoverMenu.stories.tsx +1 -1
  34. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormTextArea.stories.tsx +1 -1
  35. package/src/stories/grid/{gridForm → gridFormStatic}/GridFormTextInput.stories.tsx +1 -1
@@ -6,5 +6,6 @@ export interface LuiTextAreaInputProps extends InputHTMLAttributes<HTMLTextAreaE
6
6
  mandatory?: boolean;
7
7
  helpText?: string;
8
8
  error?: JSX.Element | string | boolean | null;
9
+ allowTabToSave?: boolean;
9
10
  }
10
11
  export declare const TextAreaInput: (props: LuiTextAreaInputProps) => JSX.Element;
@@ -5,5 +5,6 @@ export interface LuiTextInputProps extends DetailedHTMLProps<InputHTMLAttributes
5
5
  helpText?: string;
6
6
  error?: JSX.Element | string | boolean | null;
7
7
  formatted?: string;
8
+ allowTabToSave?: boolean;
8
9
  }
9
10
  export declare const TextInputFormatted: (props: LuiTextInputProps) => JSX.Element;
@@ -6,4 +6,4 @@ export interface FocusableItemProps extends BaseProps, withHoveringResultProps {
6
6
  children: (ref: LegacyRef<any>) => JSX.Element;
7
7
  }
8
8
  export declare const FocusableItemFr: ({ className, disabled, children, isHovering, menuItemRef, externalRef, ...restProps }: FocusableItemProps) => JSX.Element;
9
- export declare const FocusableItem: any;
9
+ export declare const FocusableItem: import("react").ForwardRefExoticComponent<Pick<FocusableItemProps, "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "isHovering" | "menuItemRef" | "externalRef"> & import("react").RefAttributes<unknown>>;
@@ -1,4 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { BaseProps, ClickEvent, EventHandler, Hoverable, MenuItemTypeProp, RenderProp } from "../types";
3
+ import { withHoveringResultProps } from "../utils/withHovering";
2
4
  export type MenuItemModifiers = Readonly<{
3
5
  /**
4
6
  * 'radio' for radio item, 'checkbox' for checkbox item, or `undefined` for other items.
@@ -54,4 +56,4 @@ export interface MenuItemProps extends Omit<BaseProps<MenuItemModifiers>, "onCli
54
56
  */
55
57
  children?: RenderProp<MenuItemModifiers>;
56
58
  }
57
- export declare const MenuItem: any;
59
+ export declare const MenuItem: import("react").ForwardRefExoticComponent<Pick<MenuItemProps & withHoveringResultProps, "onClick" | "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "href" | "rel" | "target" | "type" | "checked" | "disabled" | "index" | keyof withHoveringResultProps> & import("react").RefAttributes<unknown>>;
@@ -106,5 +106,5 @@ export interface SubMenuProps extends BaseMenuProps, Hoverable, UncontrolledMenu
106
106
  openTrigger?: "none" | "clickOnly";
107
107
  }
108
108
  export declare const SubMenuFr: ({ "aria-label": ariaLabel, className, disabled, direction, label, openTrigger, onMenuChange, isHovering, instanceRef, menuItemRef, itemProps, ...restProps }: SubMenuProps) => JSX.Element;
109
- export declare const SubMenu: any;
109
+ export declare const SubMenu: import("react").ForwardRefExoticComponent<Pick<SubMenuProps, "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "menuClassName" | "menuStyle" | "arrowClassName" | "arrowStyle" | "arrow" | "offsetX" | "offsetY" | "align" | "direction" | "position" | "overflow" | "setDownOverflow" | "itemProps" | "label" | "openTrigger" | "disabled" | "index" | "instanceRef" | "onMenuChange" | "isHovering" | "menuItemRef" | "externalRef"> & import("react").RefAttributes<unknown>>;
110
110
  export {};
@@ -1,7 +1,7 @@
1
- import { MutableRefObject } from "react";
1
+ import { MutableRefObject, PropsWithRef } from "react";
2
2
  export interface withHoveringResultProps {
3
3
  isHovering?: boolean;
4
4
  externalRef?: MutableRefObject<any>;
5
5
  menuItemRef?: MutableRefObject<any>;
6
6
  }
7
- export declare const withHovering: (name: string, WrappedComponent: (...args: any) => JSX.Element) => any;
7
+ export declare const withHovering: <T>(name: string, WrappedComponent: (props: T) => JSX.Element) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<PropsWithRef<T>> & import("react").RefAttributes<unknown>>;
@@ -1858,7 +1858,7 @@ var MenuItemFr = function (_a) {
1858
1858
  }
1859
1859
  };
1860
1860
  /**
1861
- * Keyboard events are triggered on up, otherwise sub-components get spaces and enters typed in them
1861
+ * Keyboard events are triggered on up, otherwise subcomponents get spaces and enters typed in them
1862
1862
  */
1863
1863
  var handleKeyUp = function (e) {
1864
1864
  if (!isHovering)
@@ -3504,20 +3504,17 @@ var GridFormDropDown = function (props) {
3504
3504
  }
3505
3505
  }
3506
3506
  return ((!filteredValues || filteredValues.includes(item)) && (jsxs(Fragment, { children: [showHeader, jsxs("div", { children: [jsxs(MenuItem, __assign({ disabled: !!item.disabled, title: item.disabled && typeof item.disabled !== "boolean" ? item.disabled : "", value: item.value, onFocus: function () {
3507
- setSelectedItem(item);
3508
- if (item.subComponent) {
3509
- subComponentIsValid.current = true;
3510
- subComponentInitialValue.current = null;
3511
- }
3512
- else {
3507
+ if (selectedItem !== item) {
3508
+ setSelectedItem(item);
3513
3509
  setSubSelectedValue(null);
3514
3510
  subComponentIsValid.current = true;
3511
+ if (item.subComponent) {
3512
+ subComponentInitialValue.current = null;
3513
+ }
3515
3514
  }
3516
3515
  }, onClick: function (e) {
3517
- if (item.subComponent) {
3518
- e.keepOpen = true;
3519
- }
3520
- } }, { children: [(_a = item.label) !== null && _a !== void 0 ? _a : (item.value == null ? "<".concat(item.value, ">") : "".concat(item.value)), item.subComponent ? "..." : ""] }), "".concat(fieldToString(field), "-").concat(index)), item.subComponent && selectedItem === item && (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function (ref) { return (jsx(GridSubComponentContext.Provider, __assign({ value: {
3516
+ e.keepOpen = !!item.subComponent;
3517
+ } }, { children: [(_a = item.label) !== null && _a !== void 0 ? _a : (item.value == null ? "<".concat(item.value, ">") : "".concat(item.value)), item.subComponent ? "..." : ""] }), "".concat(fieldToString(field), "-").concat(index)), item.subComponent && selectedItem === item && (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function () { return (jsx(GridSubComponentContext.Provider, __assign({ value: {
3521
3518
  context: { options: options },
3522
3519
  data: data,
3523
3520
  value: subSelectedValue,
@@ -3533,11 +3530,10 @@ var GridFormDropDown = function (props) {
3533
3530
  },
3534
3531
  triggerSave: function () { return __awaiter(void 0, void 0, void 0, function () {
3535
3532
  return __generator(this, function (_a) {
3536
- ref.closeMenu();
3537
3533
  return [2 /*return*/];
3538
3534
  });
3539
3535
  }); }
3540
- } }, { children: item.subComponent && (jsx("div", __assign({ className: "subComponent" }, { children: jsx(item.subComponent, {}, "".concat(fieldToString(field), "-").concat(index, "_subcomponent_inner")) }))) }))); } }), "".concat(item.label, "_subcomponent")))] }, "menu-wrapper-".concat(index))] }, "".concat(index))));
3536
+ } }, { children: item.subComponent && (jsx("div", __assign({ className: "subComponent" }, { children: jsx(item.subComponent, {}) }))) }))); } }), "".concat(item.label, "_subcomponent")))] }, "menu-wrapper-".concat(index))] }, "".concat(index))));
3541
3537
  })] }) }))] }));
3542
3538
  };
3543
3539
 
@@ -3899,21 +3895,19 @@ var MenuRadioItem = function (props) {
3899
3895
  };
3900
3896
  var MenuSubComponent = function (props) {
3901
3897
  var data = props.data, item = props.item, options = props.options, setOptions = props.setOptions, subComponentIsValid = props.subComponentIsValid, triggerSave = props.triggerSave;
3902
- return (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function (_) {
3903
- return item.subComponent && (jsx(GridSubComponentContext.Provider, __assign({ value: {
3904
- context: { options: options },
3905
- data: data,
3906
- value: item.subValue,
3907
- setValue: function (value) {
3908
- item.subValue = value;
3909
- setOptions(__spreadArray([], options, true));
3910
- },
3911
- setValid: function (valid) {
3912
- subComponentIsValid["".concat(item.value)] = valid;
3913
- },
3914
- triggerSave: triggerSave
3915
- } }, { children: jsx("div", __assign({ className: "subComponent" }, { children: jsx(item.subComponent, {}) })) })));
3916
- } }), "".concat(item.value, "_subcomponent")));
3898
+ return (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function () { return (jsx(GridSubComponentContext.Provider, __assign({ value: {
3899
+ context: { options: options },
3900
+ data: data,
3901
+ value: item.subValue,
3902
+ setValue: function (value) {
3903
+ item.subValue = value;
3904
+ setOptions(__spreadArray([], options, true));
3905
+ },
3906
+ setValid: function (valid) {
3907
+ subComponentIsValid["".concat(item.value)] = valid;
3908
+ },
3909
+ triggerSave: triggerSave
3910
+ } }, { children: jsx("div", __assign({ className: "subComponent" }, { children: item.subComponent && jsx(item.subComponent, {}) })) }))); } }), "".concat(item.value, "_subcomponent")));
3917
3911
  };
3918
3912
 
3919
3913
  var GridPopoutEditMultiSelect = function (colDef, props) {
@@ -4047,20 +4041,18 @@ var GridFormPopoverMenu = function (props) {
4047
4041
  save: save
4048
4042
  }), popoverWrapper = _e.popoverWrapper, triggerSave = _e.triggerSave;
4049
4043
  return popoverWrapper(jsx(ComponentLoadingWrapper, __assign({ loading: !options, className: "GridFormPopupMenu" }, { children: jsx(Fragment$1, { children: (options === null || options === void 0 ? void 0 : options.length) === 0 ? (jsx(MenuItem, __assign({ className: "GridPopoverMenu-noOptions", disabled: true }, { children: "No actions" }), "GridPopoverMenu-empty")) : (options === null || options === void 0 ? void 0 : options.map(function (item, index) {
4050
- return item.label === "__isMenuSeparator__" ? (jsx(MenuDivider, {}, "$$divider_".concat(index))) : (!item.hidden && (jsxs(Fragment, { children: [jsx(MenuItem, __assign({ onClick: function (e) { return onMenuItemClick(e, item); }, disabled: !!item.disabled, title: item.disabled && typeof item.disabled !== "boolean" ? item.disabled : "" }, { children: item.label }), "".concat(item.label)), item.subComponent && subComponentSelected === item && (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function (_) {
4051
- return item.subComponent && (jsx(GridSubComponentContext.Provider, __assign({ value: {
4052
- context: {},
4053
- data: data,
4054
- value: subSelectedValue,
4055
- setValue: function (value) {
4056
- setSubSelectedValue(value);
4057
- },
4058
- setValid: function (valid) {
4059
- subComponentIsValid.current = valid;
4060
- },
4061
- triggerSave: triggerSave
4062
- } }, { children: jsx("div", __assign({ className: "subComponent" }, { children: jsx(item.subComponent, {}) })) })));
4063
- } }), "".concat(item.label, "_subcomponent")))] }, "".concat(item.label))));
4044
+ return item.label === "__isMenuSeparator__" ? (jsx(MenuDivider, {}, "$$divider_".concat(index))) : (!item.hidden && (jsxs(Fragment, { children: [jsx(MenuItem, __assign({ onClick: function (e) { return onMenuItemClick(e, item); }, disabled: !!item.disabled, title: item.disabled && typeof item.disabled !== "boolean" ? item.disabled : "" }, { children: item.label }), "".concat(item.label)), item.subComponent && subComponentSelected === item && (jsx(FocusableItem, __assign({ className: "LuiDeprecatedForms" }, { children: function () { return (jsx(GridSubComponentContext.Provider, __assign({ value: {
4045
+ context: {},
4046
+ data: data,
4047
+ value: subSelectedValue,
4048
+ setValue: function (value) {
4049
+ setSubSelectedValue(value);
4050
+ },
4051
+ setValid: function (valid) {
4052
+ subComponentIsValid.current = valid;
4053
+ },
4054
+ triggerSave: triggerSave
4055
+ } }, { children: jsx("div", __assign({ className: "subComponent" }, { children: item.subComponent && jsx(item.subComponent, {}) })) }))); } }), "".concat(item.label, "_subcomponent")))] }, "".concat(item.label))));
4064
4056
  })) }) })));
4065
4057
  };
4066
4058
 
@@ -4177,7 +4169,7 @@ var TextInputFormatted = function (props) {
4177
4169
  return (jsxs("div", __assign({ className: clsx("LuiTextInput Grid-popoverContainer", props.error && "hasError", props.className) }, { children: [jsxs("span", __assign({ className: "LuiTextInput-inputWrapper" }, { children: [jsx("input", __assign({ type: "text", spellCheck: true, defaultValue: props.value }, omit(props, ["error", "value", "helpText", "formatted", "className"]), { className: "LuiTextInput-input", onMouseEnter: function (e) {
4178
4170
  e.currentTarget.focus();
4179
4171
  props.onMouseEnter && props.onMouseEnter(e);
4180
- } })), jsx("span", __assign({ className: "LuiTextInput-formatted" }, { children: props.formatted }))] })), jsx(FormError, { error: props.error, helpText: props.helpText })] })));
4172
+ }, "data-allowtabtosave": props.allowTabToSave })), jsx("span", __assign({ className: "LuiTextInput-formatted" }, { children: props.formatted }))] })), jsx(FormError, { error: props.error, helpText: props.helpText })] })));
4181
4173
  };
4182
4174
 
4183
4175
  var GridFormEditBearing = function (props) {
@@ -4361,7 +4353,7 @@ var TextAreaInput = function (props) {
4361
4353
  e.currentTarget.selectionStart = e.currentTarget.value.length;
4362
4354
  }
4363
4355
  props.onMouseEnter && props.onMouseEnter(e);
4364
- } }, { children: props.value })) }))] })), jsx(FormError, { error: props.error, helpText: props.helpText })] })));
4356
+ }, "data-allowtabtosave": props.allowTabToSave }, { children: props.value })) }))] })), jsx(FormError, { error: props.error, helpText: props.helpText })] })));
4365
4357
  };
4366
4358
 
4367
4359
  var TextInputValidator = function (props, value, data, context) {
@@ -4418,10 +4410,10 @@ var TextInputValidator = function (props, value, data, context) {
4418
4410
  };
4419
4411
 
4420
4412
  var GridFormTextArea = function (props) {
4421
- var _a, _b;
4422
- var _c = useGridPopoverContext(), field = _c.field, initialVale = _c.value, data = _c.data;
4413
+ var _a, _b, _c;
4414
+ var _d = useGridPopoverContext(), field = _d.field, initialVale = _d.value, data = _d.data;
4423
4415
  var initValue = useMemo(function () { return (initialVale == null ? "" : "".concat(initialVale)); }, [initialVale]);
4424
- var _d = useState(initValue), value = _d[0], setValue = _d[1];
4416
+ var _e = useState(initValue), value = _e[0], setValue = _e[1];
4425
4417
  var helpText = (_a = props.helpText) !== null && _a !== void 0 ? _a : "Press tab to save";
4426
4418
  var invalid = useCallback(function () { return TextInputValidator(props, value, data, {}); }, [props, value, data]);
4427
4419
  var save = useCallback(function (selectedRows) { return __awaiter(void 0, void 0, void 0, function () {
@@ -4449,17 +4441,17 @@ var GridFormTextArea = function (props) {
4449
4441
  invalid: invalid,
4450
4442
  save: save
4451
4443
  }).popoverWrapper;
4452
- return popoverWrapper(jsx("div", __assign({ className: "subComponent", style: { display: "flex", flexDirection: "row", width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 } }, { children: jsx(TextAreaInput, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), placeholder: props.placeholder, helpText: helpText }) })));
4444
+ return popoverWrapper(jsx("div", __assign({ className: "subComponent", style: { display: "flex", flexDirection: "row", width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 } }, { children: jsx(TextAreaInput, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), placeholder: (_c = props.placeholder) !== null && _c !== void 0 ? _c : "Type here", helpText: helpText }) })));
4453
4445
  };
4454
4446
 
4455
4447
  var GridPopoverTextArea = function (colDef, params) { return GridCell(colDef, __assign({ editor: GridFormTextArea }, params)); };
4456
4448
 
4457
4449
  var GridFormTextInput = function (props) {
4458
- var _a, _b;
4459
- var _c = useGridPopoverContext(), field = _c.field, initialVale = _c.value, data = _c.data;
4450
+ var _a, _b, _c;
4451
+ var _d = useGridPopoverContext(), field = _d.field, initialVale = _d.value, data = _d.data;
4460
4452
  var helpText = (_a = props.helpText) !== null && _a !== void 0 ? _a : "Press enter or tab to save";
4461
4453
  var initValue = useMemo(function () { return (initialVale == null ? "" : "".concat(initialVale)); }, [initialVale]);
4462
- var _d = useState(initValue), value = _d[0], setValue = _d[1];
4454
+ var _e = useState(initValue), value = _e[0], setValue = _e[1];
4463
4455
  var invalid = useCallback(function () { return TextInputValidator(props, value, data, {}); }, [data, props, value]);
4464
4456
  var save = useCallback(function (selectedRows) { return __awaiter(void 0, void 0, void 0, function () {
4465
4457
  var trimmedValue;
@@ -4486,7 +4478,7 @@ var GridFormTextInput = function (props) {
4486
4478
  invalid: invalid,
4487
4479
  save: save
4488
4480
  }).popoverWrapper;
4489
- return popoverWrapper(jsx("div", __assign({ style: { display: "flex", flexDirection: "row" }, className: "FormTest subComponent" }, { children: jsx(TextInputFormatted, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), formatted: props.units, style: { width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 }, placeholder: props.placeholder, helpText: helpText }) })));
4481
+ return popoverWrapper(jsx("div", __assign({ style: { display: "flex", flexDirection: "row" }, className: "FormTest subComponent" }, { children: jsx(TextInputFormatted, { value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), formatted: props.units, style: { width: (_b = props.width) !== null && _b !== void 0 ? _b : 240 }, placeholder: (_c = props.placeholder) !== null && _c !== void 0 ? _c : "Type here", helpText: helpText }) })));
4490
4482
  };
4491
4483
 
4492
4484
  var GridPopoverTextInput = function (colDef, params) {
@@ -4506,7 +4498,7 @@ var GridFormSubComponentTextInput = function (props) {
4506
4498
  useEffect(function () {
4507
4499
  setValid(value != null && invalid() == null);
4508
4500
  }, [setValid, invalid, value]);
4509
- return (jsx(TextInputFormatted, { value: value, error: invalid(), onChange: function (e) { return setValue(e.target.value); }, helpText: helpText, autoFocus: true, placeholder: props.placeholder, style: { width: "100%" } }));
4501
+ return (jsx(TextInputFormatted, { value: value, error: invalid(), onChange: function (e) { return setValue(e.target.value); }, helpText: helpText, autoFocus: true, placeholder: props.placeholder, style: { width: "100%" }, allowTabToSave: true }));
4510
4502
  };
4511
4503
 
4512
4504
  var GridFormSubComponentTextArea = function (props) {
@@ -4522,7 +4514,7 @@ var GridFormSubComponentTextArea = function (props) {
4522
4514
  useEffect(function () {
4523
4515
  setValid(value != null && invalid() == null);
4524
4516
  }, [setValid, invalid, value]);
4525
- return (jsx("div", __assign({ className: clsx("FreeTextInput", props.className) }, { children: jsx(TextAreaInput, { className: "free-text-input", value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), helpText: helpText, autoFocus: true, placeholder: props.placeholder }) })));
4517
+ return (jsx("div", __assign({ className: clsx("FreeTextInput", props.className) }, { children: jsx(TextAreaInput, { className: "free-text-input", value: value, onChange: function (e) { return setValue(e.target.value); }, error: invalid(), helpText: helpText, autoFocus: true, placeholder: props.placeholder, allowTabToSave: true }) })));
4526
4518
  };
4527
4519
 
4528
4520
  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%}";