@linzjs/step-ag-grid 12.1.1 → 13.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/README.md +14 -12
- package/dist/src/components/GridCell.d.ts +2 -2
- package/dist/src/components/GridCellMultiEditor.d.ts +4 -4
- package/dist/src/components/gridFilter/GridFilterButtons.d.ts +3 -3
- package/dist/src/components/gridFilter/index.d.ts +3 -0
- package/dist/src/components/gridForm/GridFormSubComponentTextArea.d.ts +1 -1
- package/dist/src/components/gridForm/GridFormSubComponentTextInput.d.ts +1 -1
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +1 -1
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +1 -1
- package/dist/src/components/gridForm/index.d.ts +9 -0
- package/dist/src/components/gridHeader/index.d.ts +1 -0
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/index.d.ts +8 -0
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +1 -1
- package/dist/src/components/gridRender/index.d.ts +2 -0
- package/dist/src/components/index.d.ts +16 -0
- package/dist/src/contexts/GridPopoverContextProvider.d.ts +1 -1
- package/dist/src/index.d.ts +6 -38
- package/dist/src/lui/ActionButton.d.ts +2 -2
- package/dist/src/lui/TextInputFormatted.d.ts +1 -1
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +1 -1
- package/dist/src/react-menu3/components/Menu.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +1 -1
- package/dist/src/react-menu3/utils/utils.d.ts +1 -1
- package/dist/step-ag-grid.esm.js +3652 -59498
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +5 -2
- package/src/components/Grid.tsx +8 -7
- package/src/components/GridCell.tsx +8 -7
- package/src/components/GridCellMultiEditor.tsx +5 -4
- package/src/components/GridFilter.ts +1 -0
- package/src/components/GridIcon.tsx +1 -0
- package/src/components/GridLoadableCell.tsx +1 -0
- package/src/components/GridPopoverHook.tsx +3 -2
- package/src/components/PostSortRowsHook.ts +4 -3
- package/src/components/gridFilter/GridFilterButtons.tsx +4 -2
- package/src/components/gridFilter/GridFilterQuick.tsx +1 -0
- package/src/components/gridFilter/index.ts +3 -0
- package/src/components/gridForm/GridFormDropDown.tsx +10 -9
- package/src/components/gridForm/GridFormEditBearing.tsx +4 -3
- package/src/components/gridForm/GridFormMessage.tsx +3 -2
- package/src/components/gridForm/GridFormMultiSelect.tsx +15 -13
- package/src/components/gridForm/GridFormPopoverMenu.tsx +7 -6
- package/src/components/gridForm/GridFormSubComponentTextArea.tsx +3 -2
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +2 -1
- package/src/components/gridForm/GridFormTextArea.tsx +4 -3
- package/src/components/gridForm/GridFormTextInput.tsx +4 -3
- package/src/components/gridForm/index.ts +9 -0
- package/src/components/gridHeader/GridHeaderSelect.tsx +1 -1
- package/src/components/gridHeader/index.ts +1 -0
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +1 -1
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +3 -2
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +1 -1
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +1 -1
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +1 -1
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +1 -1
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +1 -1
- package/src/components/gridPopoverEdit/index.ts +8 -0
- package/src/components/gridRender/GridRenderGenericCell.tsx +3 -2
- package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +2 -0
- package/src/components/gridRender/index.ts +2 -0
- package/src/components/index.ts +16 -0
- package/src/contexts/GridContext.tsx +2 -1
- package/src/contexts/GridContextProvider.tsx +5 -4
- package/src/contexts/GridPopoverContext.tsx +2 -1
- package/src/contexts/GridPopoverContextProvider.tsx +4 -3
- package/src/contexts/GridUpdatingContextProvider.tsx +2 -1
- package/src/index.ts +7 -45
- package/src/lui/ActionButton.tsx +5 -4
- package/src/lui/TextAreaInput.tsx +3 -2
- package/src/lui/TextInputFormatted.tsx +3 -4
- package/src/lui/reactUtils.test.tsx +4 -3
- package/src/lui/stateDeferredHook.tsx +1 -0
- package/src/lui/timeoutHook.test.tsx +2 -1
- package/src/react-menu3/components/ControlledMenu.tsx +7 -6
- package/src/react-menu3/components/FocusableItem.tsx +3 -2
- package/src/react-menu3/components/Menu.tsx +8 -7
- package/src/react-menu3/components/MenuButton.tsx +3 -2
- package/src/react-menu3/components/MenuDivider.tsx +3 -2
- package/src/react-menu3/components/MenuGroup.tsx +5 -4
- package/src/react-menu3/components/MenuHeader.tsx +3 -2
- package/src/react-menu3/components/MenuItem.tsx +5 -4
- package/src/react-menu3/components/MenuList.tsx +11 -10
- package/src/react-menu3/components/MenuRadioGroup.tsx +4 -3
- package/src/react-menu3/components/SubMenu.tsx +26 -25
- package/src/react-menu3/contexts/EventHandlersContext.ts +1 -0
- package/src/react-menu3/contexts/MenuListContext.ts +2 -1
- package/src/react-menu3/contexts/MenuListItemContext.ts +2 -1
- package/src/react-menu3/contexts/RadioGroupContext.ts +1 -0
- package/src/react-menu3/contexts/SettingsContext.ts +2 -1
- package/src/react-menu3/hooks/useBEM.ts +1 -0
- package/src/react-menu3/hooks/useCombinedRef.ts +1 -1
- package/src/react-menu3/hooks/useItemEffect.ts +1 -0
- package/src/react-menu3/hooks/useItemState.ts +4 -3
- package/src/react-menu3/hooks/useItems.ts +3 -2
- package/src/react-menu3/hooks/useMenuChange.ts +3 -2
- package/src/react-menu3/hooks/useMenuState.ts +2 -1
- package/src/react-menu3/hooks/useMenuStateAndFocus.ts +2 -1
- package/src/react-menu3/positionUtils/getPositionHelpers.ts +2 -1
- package/src/react-menu3/positionUtils/placeLeftorRight.ts +3 -2
- package/src/react-menu3/positionUtils/placeToporBottom.ts +3 -2
- package/src/react-menu3/positionUtils/positionContextMenu.ts +1 -1
- package/src/react-menu3/positionUtils/positionMenu.ts +4 -3
- package/src/react-menu3/style-utils/index.ts +4 -4
- package/src/react-menu3/utils/propTypes2.ts +1 -1
- package/src/react-menu3/utils/utils.ts +3 -2
- package/src/react-menu3/utils/withHovering.tsx +2 -1
- package/src/stories/components/ActionButton.stories.tsx +4 -3
- package/src/stories/grid/FormTest.tsx +4 -7
- package/src/stories/grid/GridFilterButtons.stories.tsx +110 -0
- package/src/stories/grid/GridKeyboardInteractions.stories.tsx +23 -18
- package/src/stories/grid/GridNonEditableRow.stories.tsx +22 -17
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +7 -9
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +25 -18
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +14 -11
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +22 -15
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +20 -15
- package/src/stories/grid/GridReadOnly.stories.tsx +25 -20
- package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +10 -9
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +7 -8
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +7 -8
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +11 -10
- package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +12 -11
- package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +7 -7
- package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +7 -7
- package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +5 -6
- package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +10 -6
- package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +10 -6
- package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +5 -5
- package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +5 -6
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +8 -7
- package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +5 -6
- package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +5 -6
- package/src/stories/react-menu/ReactMenu.stories.tsx +3 -2
- package/src/utils/testQuick.ts +1 -0
- package/src/utils/testUtil.ts +2 -1
- package/src/utils/textValidator.test.ts +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormDropDown, GridFormDropDownProps, MenuHeaderItem } from "../../../components/gridForm/GridFormDropDown";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
|
-
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import { GridBaseRow, GridContextProvider, GridFormDropDown, GridFormDropDownProps, MenuHeaderItem } from "../../..";
|
|
10
9
|
|
|
11
10
|
export default {
|
|
12
11
|
title: "GridForm / Static Tests",
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormEditBearing, GridFormEditBearingProps } from "../../../components/gridForm/GridFormEditBearing";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
|
-
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
GridContextProvider,
|
|
10
|
+
GridFormEditBearing,
|
|
11
|
+
GridFormEditBearingProps,
|
|
12
|
+
GridPopoverEditBearingEditorParams,
|
|
13
|
+
} from "../../..";
|
|
10
14
|
|
|
11
15
|
export default {
|
|
12
16
|
title: "GridForm / Static Tests",
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormEditBearing, GridFormEditBearingProps } from "../../../components/gridForm/GridFormEditBearing";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
|
-
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
GridContextProvider,
|
|
10
|
+
GridFormEditBearing,
|
|
11
|
+
GridFormEditBearingProps,
|
|
12
|
+
GridPopoverEditBearingCorrectionEditorParams,
|
|
13
|
+
} from "../../..";
|
|
10
14
|
|
|
11
15
|
export default {
|
|
12
16
|
title: "GridForm / Static Tests",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormMessage } from "../../../components/gridForm/GridFormMessage";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
4
|
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import { GridContextProvider, GridFormMessage } from "../../..";
|
|
9
|
+
|
|
10
10
|
export default {
|
|
11
11
|
title: "GridForm / Static Tests",
|
|
12
12
|
component: GridFormMessage,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormMultiSelect, GridFormMultiSelectProps } from "../../../components/gridForm/GridFormMultiSelect";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
|
-
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import { GridBaseRow, GridContextProvider, GridFormMultiSelect, GridFormMultiSelectProps } from "../../..";
|
|
10
9
|
|
|
11
10
|
export default {
|
|
12
11
|
title: "GridForm / Static Tests",
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
2
|
+
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
5
3
|
import { useRef } from "react";
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
6
8
|
import {
|
|
9
|
+
GridBaseRow,
|
|
10
|
+
GridContextProvider,
|
|
7
11
|
GridFormPopoverMenu,
|
|
8
12
|
GridFormPopoverMenuProps,
|
|
9
13
|
PopoutMenuSeparator,
|
|
10
|
-
} from "
|
|
11
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
12
|
-
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
13
|
-
import { GridBaseRow } from "../../../components/Grid";
|
|
14
|
+
} from "../../..";
|
|
14
15
|
|
|
15
16
|
export default {
|
|
16
17
|
title: "GridForm / Static Tests",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormTextArea, GridFormTextAreaProps } from "../../../components/gridForm/GridFormTextArea";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
|
-
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import { GridBaseRow, GridContextProvider, GridFormTextArea, GridFormTextAreaProps } from "../../..";
|
|
10
9
|
|
|
11
10
|
export default {
|
|
12
11
|
title: "GridForm / Static Tests",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "@linzjs/lui/dist/scss/base.scss";
|
|
2
|
-
import "@linzjs/lui/dist/fonts";
|
|
3
|
-
|
|
4
1
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
5
|
-
import { GridFormTextInput, GridFormTextInputProps } from "../../../components/gridForm/GridFormTextInput";
|
|
6
|
-
import { GridContextProvider } from "../../../contexts/GridContextProvider";
|
|
7
2
|
import { GridPopoverContext, GridPopoverContextType } from "contexts/GridPopoverContext";
|
|
8
3
|
import { useRef } from "react";
|
|
9
|
-
|
|
4
|
+
|
|
5
|
+
import "@linzjs/lui/dist/fonts";
|
|
6
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
7
|
+
|
|
8
|
+
import { GridBaseRow, GridContextProvider, GridFormTextInput, GridFormTextInputProps } from "../../..";
|
|
10
9
|
|
|
11
10
|
export default {
|
|
12
11
|
title: "GridForm / Static Tests",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { expect, jest } from "@storybook/jest";
|
|
1
2
|
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
3
|
+
import { userEvent, within } from "@storybook/testing-library";
|
|
4
|
+
|
|
2
5
|
import { Grid } from "../../components/Grid";
|
|
3
6
|
import { Menu, MenuButton, MenuDivider, MenuItem, SubMenu } from "../../react-menu3";
|
|
4
|
-
import { userEvent, within } from "@storybook/testing-library";
|
|
5
7
|
import { wait } from "../../utils/util";
|
|
6
|
-
import { expect, jest } from "@storybook/jest";
|
|
7
8
|
|
|
8
9
|
export default {
|
|
9
10
|
title: "Components / React-menu",
|
package/src/utils/testQuick.ts
CHANGED
package/src/utils/testUtil.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { act, waitFor, within } from "@testing-library/react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { findQuick, getAllQuick, getMatcher, getQuick, IQueryQuick, queryQuick } from "./testQuick";
|
|
4
3
|
import { isEqual } from "lodash-es";
|
|
5
4
|
|
|
5
|
+
import { IQueryQuick, findQuick, getAllQuick, getMatcher, getQuick, queryQuick } from "./testQuick";
|
|
6
|
+
|
|
6
7
|
export const countRows = async (within?: HTMLElement): Promise<number> => {
|
|
7
8
|
return getAllQuick({ tagName: `div[row-id]:not(:empty)` }, within).length;
|
|
8
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextInputValidator, TextInputValidatorProps } from "./textValidator";
|
|
2
1
|
import { GridBaseRow } from "../components/Grid";
|
|
2
|
+
import { TextInputValidator, TextInputValidatorProps } from "./textValidator";
|
|
3
3
|
|
|
4
4
|
describe("TextInputValidator", () => {
|
|
5
5
|
test("number format", () => {
|