@linzjs/step-ag-grid 27.3.3 → 28.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/src/utils/__tests__/storybookTestUtil.ts +1 -1
- package/dist/step-ag-grid.cjs +7 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +7 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +24 -24
- package/src/components/Grid.tsx +9 -0
- package/src/components/GridCellMultiSelectClassRules.tsx +1 -1
- package/src/stories/components/ActionButton.stories.tsx +1 -1
- package/src/stories/grid/GridDragRow.stories.tsx +1 -1
- package/src/stories/grid/GridFilterButtons.stories.tsx +1 -1
- package/src/stories/grid/GridNoRowsOverlay.stories.tsx +2 -3
- package/src/stories/grid/GridNonEditableRow.stories.tsx +3 -2
- package/src/stories/grid/GridPinnedRow.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +1 -1
- package/src/stories/grid/GridReadOnly.stories.tsx +1 -1
- package/src/stories/grid/GridViewList.stories.tsx +1 -1
- package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +3 -3
- package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +1 -1
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +4 -4
- package/src/stories/react-menu/ReactMenu.stories.tsx +4 -4
- package/src/utils/__tests__/storybookTestUtil.ts +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@linzjs/step-ag-grid",
|
|
3
3
|
"repository": "github:linz/step-ag-grid.git",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "28.0.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@linzjs/lui": ">=21",
|
|
31
|
-
"ag-grid-community": "^
|
|
32
|
-
"ag-grid-react": "^
|
|
31
|
+
"ag-grid-community": "^34.1.0",
|
|
32
|
+
"ag-grid-react": "^34.1.0",
|
|
33
33
|
"lodash-es": ">=4",
|
|
34
34
|
"react": ">=18",
|
|
35
35
|
"react-dom": ">=18"
|
|
@@ -76,40 +76,39 @@
|
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
80
|
-
"@swc/core-linux-x64-gnu": "^1.
|
|
79
|
+
"@rollup/rollup-linux-x64-gnu": "^4.46.2",
|
|
80
|
+
"@swc/core-linux-x64-gnu": "^1.13.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@chromatic-com/storybook": "^
|
|
84
|
-
"@linzjs/lui": "^
|
|
83
|
+
"@chromatic-com/storybook": "^4.0.1",
|
|
84
|
+
"@linzjs/lui": "^23.7.2",
|
|
85
85
|
"@linzjs/style": "^5.4.0",
|
|
86
86
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
87
87
|
"@rollup/plugin-json": "^6.1.0",
|
|
88
88
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
89
89
|
"@semantic-release/git": "^10.0.1",
|
|
90
|
-
"@storybook/addon-
|
|
91
|
-
"@storybook/addon-
|
|
92
|
-
"@storybook/
|
|
93
|
-
"@storybook/react": "^
|
|
94
|
-
"@
|
|
95
|
-
"@storybook/test": "^8.6.12",
|
|
96
|
-
"@storybook/test-runner": "^0.22.1",
|
|
97
|
-
"@testing-library/dom": "^10.4.0",
|
|
90
|
+
"@storybook/addon-docs": "^9.1.0",
|
|
91
|
+
"@storybook/addon-links": "^9.1.0",
|
|
92
|
+
"@storybook/react": "^9.1.0",
|
|
93
|
+
"@storybook/react-vite": "^9.1.0",
|
|
94
|
+
"@testing-library/dom": "^10.4.1",
|
|
98
95
|
"@testing-library/react": "^16.3.0",
|
|
99
96
|
"@testing-library/user-event": "^14.6.1",
|
|
100
97
|
"@types/debounce-promise": "^3.1.9",
|
|
101
98
|
"@types/lodash-es": "^4.17.12",
|
|
102
|
-
"@types/node": "^22.
|
|
99
|
+
"@types/node": "^22.17.0",
|
|
103
100
|
"@types/react": "^18.3.23",
|
|
104
101
|
"@types/react-dom": "^18.3.7",
|
|
105
102
|
"@types/uuid": "^10.0.0",
|
|
106
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
103
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
107
104
|
"@vitest/ui": "^3.2.4",
|
|
108
|
-
"ag-grid-community": "^
|
|
109
|
-
"ag-grid-react": "^
|
|
105
|
+
"ag-grid-community": "^34.1.0",
|
|
106
|
+
"ag-grid-react": "^34.1.0",
|
|
110
107
|
"babel-preset-react-app": "^10.1.0",
|
|
111
|
-
"chromatic": "^
|
|
108
|
+
"chromatic": "^13.1.3",
|
|
112
109
|
"css-loader": "^7.1.2",
|
|
110
|
+
"eslint-plugin-react": "^7.37.5",
|
|
111
|
+
"eslint-plugin-storybook": "^9.1.0",
|
|
113
112
|
"jsdom": "^26.1.0",
|
|
114
113
|
"lodash-es": "^4.17.21",
|
|
115
114
|
"mkdirp": "^3.0.1",
|
|
@@ -120,18 +119,19 @@
|
|
|
120
119
|
"react": ">=18",
|
|
121
120
|
"react-app-polyfill": "^3.0.0",
|
|
122
121
|
"react-dom": "^18.3.1",
|
|
123
|
-
"
|
|
122
|
+
"rimraf": "^6.0.1",
|
|
123
|
+
"rollup": "^4.46.2",
|
|
124
124
|
"rollup-plugin-copy": "^3.5.0",
|
|
125
125
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
126
126
|
"rollup-plugin-postcss": "^4.0.2",
|
|
127
127
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
128
128
|
"sass": "^1.89.2",
|
|
129
129
|
"sass-loader": "^16.0.5",
|
|
130
|
-
"semantic-release": "^24.2.
|
|
131
|
-
"storybook": "^
|
|
130
|
+
"semantic-release": "^24.2.7",
|
|
131
|
+
"storybook": "^9.1.0",
|
|
132
132
|
"storybook-css-modules-preset": "^1.1.1",
|
|
133
133
|
"style-loader": "^4.0.0",
|
|
134
|
-
"typescript": "^5.
|
|
134
|
+
"typescript": "^5.9.2",
|
|
135
135
|
"vite": "^6.3.5",
|
|
136
136
|
"vite-plugin-html": "^3.2.2",
|
|
137
137
|
"vite-tsconfig-paths": "^5.1.4",
|
package/src/components/Grid.tsx
CHANGED
|
@@ -647,6 +647,15 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
|
|
|
647
647
|
[params, clearHighlightRowClasses],
|
|
648
648
|
);
|
|
649
649
|
|
|
650
|
+
useEffect(() => {
|
|
651
|
+
if (params.setExternalSelectedItems && selectable == null) {
|
|
652
|
+
console.warn(
|
|
653
|
+
'<Grid/> has setExternalSelectedItems parameter, but is missing selectable parameter,' +
|
|
654
|
+
'this will cause weird delays in editing.\nIf you need to hide selection column use hideSelectColumn=true',
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
}, [params.setExternalSelectedItems, selectable]);
|
|
658
|
+
|
|
650
659
|
// This is setting a ref in the GridContext so won't be triggering an update loop
|
|
651
660
|
setOnCellEditingComplete(params.onCellEditingComplete);
|
|
652
661
|
|
|
@@ -14,7 +14,7 @@ export const GridCellMultiSelectClassRules: CellClassRules = {
|
|
|
14
14
|
.getSelectedNodes()
|
|
15
15
|
?.map((row) => row.id)
|
|
16
16
|
?.includes(node.id) &&
|
|
17
|
-
api.getEditingCells().some((cell) => cell.
|
|
17
|
+
api.getEditingCells().some((cell) => cell.colId === colDef.colId)
|
|
18
18
|
);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
2
2
|
import '@linzjs/lui/dist/fonts';
|
|
3
3
|
|
|
4
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
4
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
|
|
7
7
|
import { ActionButton } from '../../lui/ActionButton';
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useCallback, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
2
2
|
import '@linzjs/lui/dist/fonts';
|
|
3
3
|
|
|
4
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
5
|
-
import { expect } from '
|
|
6
|
-
import { within } from '@storybook/test';
|
|
4
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
5
|
+
import { expect, within } from 'storybook/test';
|
|
7
6
|
|
|
8
7
|
import { GridNoRowsOverlay, GridNoRowsOverlayProps } from '../../components';
|
|
9
8
|
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverEditDropDown } from 'components/gridPopoverEdit/GridPopoverEditDropDown';
|
|
8
8
|
import { GridPopoverTextArea } from 'components/gridPopoverEdit/GridPopoverTextArea';
|
|
9
9
|
import { useMemo, useState } from 'react';
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
GridProps,
|
|
20
20
|
GridUpdatingContextProvider,
|
|
21
21
|
MenuOption,
|
|
22
|
+
primitiveToSelectOption,
|
|
22
23
|
wait,
|
|
23
24
|
} from '../..';
|
|
24
25
|
import { waitForGridReady } from '../../utils/__tests__/storybookTestUtil';
|
|
@@ -69,7 +70,7 @@ const GridNonEditableRowTemplate: StoryFn<typeof Grid> = (props: GridProps) => {
|
|
|
69
70
|
editorParams: {
|
|
70
71
|
filtered: 'local',
|
|
71
72
|
filterPlaceholder: 'Filter',
|
|
72
|
-
options: ['Architect', 'Developer', 'Product Owner', 'Scrum Master', 'Tester'],
|
|
73
|
+
options: ['Architect', 'Developer', 'Product Owner', 'Scrum Master', 'Tester'].map(primitiveToSelectOption),
|
|
73
74
|
},
|
|
74
75
|
},
|
|
75
76
|
),
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { ReactElement, useCallback, useContext, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import { ColDefT, Grid, GridCell, GridContextProvider, GridProps, GridUpdatingContextProvider } from '../..';
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useCallback, useContext, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useCallback, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { isEmpty, partition } from 'lodash-es';
|
|
8
8
|
import { useMemo, useState } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { countBy, mergeWith, pull, range, union } from 'lodash-es';
|
|
8
8
|
import { useMemo, useState } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { ReactElement, useCallback, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,7 +3,7 @@ import '../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import { GridContext, GridFormDropDown, GridFormDropDownProps, GridFormSubComponentTextInput } from '../../..';
|
|
12
12
|
|
package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx
CHANGED
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
GridContext,
|
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
GridContext,
|
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, waitFor, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import { GridContext, GridFormMultiSelectGrid, GridFormMultiSelectGridProps, MultiSelectGridOption } from '../../..';
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
GridContext,
|
|
@@ -3,11 +3,11 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import * as test from '@storybook/test';
|
|
8
|
-
import { expect, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
9
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
10
8
|
import { useRef } from 'react';
|
|
9
|
+
import * as test from 'storybook/test';
|
|
10
|
+
import { expect, userEvent, within } from 'storybook/test';
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
GridBaseRow,
|
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import { GridContext, GridFormTextArea, GridFormTextAreaProps } from '../../..';
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect, fn, userEvent, within } from '@storybook/test';
|
|
6
|
+
import { StoryFn } from '@storybook/react-vite';
|
|
8
7
|
import { GridPopoverContext } from 'contexts/GridPopoverContext';
|
|
9
8
|
import { useRef } from 'react';
|
|
9
|
+
import { expect, fn, userEvent, within } from 'storybook/test';
|
|
10
10
|
|
|
11
11
|
import { GridContext, GridFormTextInput, GridFormTextInputProps } from '../../..';
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
7
7
|
import { GridPopoverContext, GridPopoverContextType } from 'contexts/GridPopoverContext';
|
|
8
8
|
import { useRef } from 'react';
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ import '../../../styles/index.scss';
|
|
|
3
3
|
import '@linzjs/lui/dist/scss/base.scss';
|
|
4
4
|
import '@linzjs/lui/dist/fonts';
|
|
5
5
|
|
|
6
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
7
|
-
import { expect } from '@storybook/test';
|
|
8
|
-
import { fn } from '@storybook/test';
|
|
9
|
-
import { userEvent, waitFor } from '@storybook/test';
|
|
6
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
10
7
|
import { useMemo, useState } from 'react';
|
|
8
|
+
import { expect } from 'storybook/test';
|
|
9
|
+
import { fn } from 'storybook/test';
|
|
10
|
+
import { userEvent, waitFor } from 'storybook/test';
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
ColDefT,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../react-menu3/styles/index.scss';
|
|
2
2
|
|
|
3
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
4
|
-
import { expect } from '
|
|
5
|
-
import * as test from '
|
|
6
|
-
import { userEvent, within } from '
|
|
3
|
+
import { Meta, StoryFn } from '@storybook/react-vite';
|
|
4
|
+
import { expect } from 'storybook/test';
|
|
5
|
+
import * as test from 'storybook/test';
|
|
6
|
+
import { userEvent, within } from 'storybook/test';
|
|
7
7
|
|
|
8
8
|
import { Grid } from '../../components/Grid';
|
|
9
9
|
import { Menu, MenuButton, MenuDivider, MenuItem, SubMenu } from '../../react-menu3';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { expect, waitFor } from '
|
|
1
|
+
import { expect, waitFor } from 'storybook/test';
|
|
2
2
|
|
|
3
3
|
export const waitForGridReady = ({ canvasElement }: { canvasElement: HTMLElement }) =>
|
|
4
4
|
waitFor(() => expect(canvasElement.querySelector('.Grid-ready')).toBeInTheDocument(), { timeout: 5000 });
|