@linzjs/step-ag-grid 22.3.0 → 23.0.1
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 +21 -21
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +21 -21
- 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/components/gridFilter/GridFilterHeaderIconButton.tsx +1 -1
- package/src/lui/ActionButton.scss +4 -5
- package/src/lui/ActionButton.tsx +20 -19
- 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/vite.config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vite").
|
|
1
|
+
declare const _default: import("vite").UserConfigFnPromise;
|
|
2
2
|
export default _default;
|
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": "23.0.1",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"debounce-promise": "^3.1.2",
|
|
40
40
|
"lodash-es": ">=4",
|
|
41
41
|
"matcher": "^5.0.0",
|
|
42
|
-
"react-transition-state": "^2.
|
|
42
|
+
"react-transition-state": "^2.2.0",
|
|
43
43
|
"usehooks-ts": "^3.1.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
@@ -77,53 +77,53 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
80
|
-
"@chromatic-com/storybook": "^2.
|
|
81
|
-
"@linzjs/lui": "^
|
|
80
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
81
|
+
"@linzjs/lui": "^22.2.1",
|
|
82
82
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
83
83
|
"@rollup/plugin-json": "^6.1.0",
|
|
84
84
|
"@rollup/plugin-node-resolve": "^15.2.4",
|
|
85
85
|
"@semantic-release/changelog": "^6.0.3",
|
|
86
86
|
"@semantic-release/git": "^10.0.1",
|
|
87
|
-
"@storybook/addon-essentials": "^8.
|
|
88
|
-
"@storybook/addon-interactions": "^8.
|
|
89
|
-
"@storybook/addon-links": "^8.
|
|
90
|
-
"@storybook/react": "^8.
|
|
91
|
-
"@storybook/react-vite": "^8.
|
|
92
|
-
"@storybook/test": "^8.
|
|
93
|
-
"@storybook/test-runner": "^0.
|
|
87
|
+
"@storybook/addon-essentials": "^8.5.0",
|
|
88
|
+
"@storybook/addon-interactions": "^8.5.0",
|
|
89
|
+
"@storybook/addon-links": "^8.5.0",
|
|
90
|
+
"@storybook/react": "^8.5.0",
|
|
91
|
+
"@storybook/react-vite": "^8.5.0",
|
|
92
|
+
"@storybook/test": "^8.5.0",
|
|
93
|
+
"@storybook/test-runner": "^0.21.0",
|
|
94
94
|
"@testing-library/dom": "^10.4.0",
|
|
95
|
-
"@testing-library/jest-dom": "^6.
|
|
96
|
-
"@testing-library/react": "^16.0
|
|
97
|
-
"@testing-library/user-event": "^14.
|
|
95
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
96
|
+
"@testing-library/react": "^16.2.0",
|
|
97
|
+
"@testing-library/user-event": "^14.6.0",
|
|
98
98
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
99
99
|
"@types/debounce-promise": "^3.1.9",
|
|
100
|
-
"@types/jest": "^29.5.
|
|
100
|
+
"@types/jest": "^29.5.14",
|
|
101
101
|
"@types/lodash-es": "^4.17.12",
|
|
102
|
-
"@types/node": "^22.
|
|
102
|
+
"@types/node": "^22.10.7",
|
|
103
103
|
"@types/react": "^18.3.8",
|
|
104
104
|
"@types/react-dom": "^18.3.0",
|
|
105
105
|
"@types/uuid": "^10.0.0",
|
|
106
106
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
107
107
|
"@typescript-eslint/parser": "^7.15.0",
|
|
108
|
-
"@vitejs/plugin-react-swc": "^3.7.
|
|
108
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
109
109
|
"ag-grid-community": "^32.2.0",
|
|
110
110
|
"ag-grid-react": "^32.2.0",
|
|
111
111
|
"babel-jest": "^29.7.0",
|
|
112
112
|
"babel-preset-react-app": "^10.0.1",
|
|
113
|
-
"chromatic": "^11.
|
|
113
|
+
"chromatic": "^11.25.0",
|
|
114
114
|
"css-loader": "^7.1.2",
|
|
115
|
-
"esbuild": "^0.24.
|
|
115
|
+
"esbuild": "^0.24.2",
|
|
116
116
|
"eslint": "^8.57.0",
|
|
117
117
|
"eslint-config-prettier": "^9.1.0",
|
|
118
118
|
"eslint-config-react-app": "^7.0.1",
|
|
119
119
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
120
|
-
"eslint-plugin-import": "^2.
|
|
121
|
-
"eslint-plugin-jest": "^28.
|
|
122
|
-
"eslint-plugin-jsx-a11y": "^6.10.
|
|
123
|
-
"eslint-plugin-prettier": "^5.2.
|
|
124
|
-
"eslint-plugin-react": "^7.
|
|
120
|
+
"eslint-plugin-import": "^2.31.0",
|
|
121
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
122
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
123
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
124
|
+
"eslint-plugin-react": "^7.37.4",
|
|
125
125
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
126
|
-
"eslint-plugin-storybook": "^0.
|
|
126
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
127
127
|
"eslint-plugin-testing-library": "^6.3.0",
|
|
128
128
|
"jest": "^29.7.0",
|
|
129
129
|
"jest-canvas-mock": "^2.5.2",
|
|
@@ -131,22 +131,22 @@
|
|
|
131
131
|
"jest-expect-message": "^1.1.3",
|
|
132
132
|
"mkdirp": "^3.0.1",
|
|
133
133
|
"npm-run-all": "^4.1.5",
|
|
134
|
-
"postcss": "^8.
|
|
134
|
+
"postcss": "^8.5.1",
|
|
135
135
|
"postcss-loader": "^7.3.4",
|
|
136
136
|
"postcss-scss": "^4.0.9",
|
|
137
|
-
"prettier": "^3.
|
|
137
|
+
"prettier": "^3.4.2",
|
|
138
138
|
"react": ">=18",
|
|
139
139
|
"react-app-polyfill": "^3.0.0",
|
|
140
140
|
"react-dom": "^18.3.1",
|
|
141
|
-
"rollup": "^4.
|
|
141
|
+
"rollup": "^4.31.0",
|
|
142
142
|
"rollup-plugin-copy": "^3.5.0",
|
|
143
143
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
144
144
|
"rollup-plugin-postcss": "^4.0.2",
|
|
145
145
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
146
|
-
"sass": "^1.
|
|
146
|
+
"sass": "^1.83.4",
|
|
147
147
|
"sass-loader": "^14.2.1",
|
|
148
148
|
"semantic-release": "^22.0.12",
|
|
149
|
-
"storybook": "^8.
|
|
149
|
+
"storybook": "^8.5.0",
|
|
150
150
|
"storybook-css-modules-preset": "^1.1.1",
|
|
151
151
|
"style-loader": "^4.0.0",
|
|
152
152
|
"stylelint": "^15.11.0",
|
|
@@ -154,10 +154,10 @@
|
|
|
154
154
|
"stylelint-config-standard": "^34.0.0",
|
|
155
155
|
"stylelint-prettier": "^4.1.0",
|
|
156
156
|
"stylelint-scss": "^5.3.2",
|
|
157
|
-
"typescript": "^5.
|
|
158
|
-
"vite": "^
|
|
157
|
+
"typescript": "^5.7.3",
|
|
158
|
+
"vite": "^6.0.10",
|
|
159
159
|
"vite-plugin-html": "^3.2.2",
|
|
160
|
-
"vite-tsconfig-paths": "^5.
|
|
160
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
161
161
|
},
|
|
162
162
|
"babel": {
|
|
163
163
|
"presets": [
|
|
@@ -21,7 +21,7 @@ export const GridFilterHeaderIconButton = forwardRef<HTMLButtonElement, GridFilt
|
|
|
21
21
|
level={"tertiary"}
|
|
22
22
|
className={"lui-button-icon-only"}
|
|
23
23
|
ref={ref}
|
|
24
|
-
aria-label
|
|
24
|
+
buttonProps={{ "aria-label": title }}
|
|
25
25
|
title={title}
|
|
26
26
|
onClick={onClick}
|
|
27
27
|
disabled={disabled}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.ActionButton-inProgress .LuiIcon {
|
|
9
|
+
visibility: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
.ActionButton-minimal.lui-button-lg.lui-button-icon-right {
|
|
9
13
|
padding-right: 38px;
|
|
10
14
|
}
|
|
@@ -41,14 +45,9 @@
|
|
|
41
45
|
cursor: progress;
|
|
42
46
|
color: #007198;
|
|
43
47
|
background-color: colors.$polar;
|
|
44
|
-
|
|
45
|
-
svg * {
|
|
46
|
-
fill: transparent;
|
|
47
|
-
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.ActionButton-fill {
|
|
51
51
|
width: 100%;
|
|
52
52
|
justify-content: center;
|
|
53
53
|
}
|
|
54
|
-
|
package/src/lui/ActionButton.tsx
CHANGED
|
@@ -67,7 +67,7 @@ export const ActionButton = ({
|
|
|
67
67
|
type={"button"}
|
|
68
68
|
level={level}
|
|
69
69
|
title={title ?? ariaLabel ?? name}
|
|
70
|
-
aria-label
|
|
70
|
+
buttonProps={{ "aria-label": ariaLabel ?? name }}
|
|
71
71
|
className={clsx(
|
|
72
72
|
"lui-button-icon-right",
|
|
73
73
|
"ActionButton",
|
|
@@ -90,25 +90,26 @@ export const ActionButton = ({
|
|
|
90
90
|
disabled={localInProgress || disabled}
|
|
91
91
|
>
|
|
92
92
|
{iconPosition === "right" && buttonText}
|
|
93
|
-
{localInProgress
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
93
|
+
{localInProgress && (
|
|
94
|
+
<div style={{ position: "relative" }}>
|
|
95
|
+
<LuiMiniSpinner
|
|
96
|
+
size={14}
|
|
97
|
+
divProps={{
|
|
98
|
+
"data-testid": "loading-spinner",
|
|
99
|
+
style: {
|
|
100
|
+
position: "absolute",
|
|
101
|
+
left: 4,
|
|
102
|
+
top: -10,
|
|
103
|
+
bottom: 10,
|
|
104
|
+
right: -4,
|
|
105
|
+
},
|
|
106
|
+
role: "status",
|
|
107
|
+
"aria-label": "Loading",
|
|
108
|
+
}}
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
111
|
)}
|
|
112
|
+
<LuiIcon name={icon} alt={ariaLabel ?? name ?? ""} size={size} />
|
|
112
113
|
{iconPosition === "left" && buttonText}
|
|
113
114
|
</LuiButton>
|
|
114
115
|
);
|
|
@@ -22,6 +22,7 @@ const updateValue = fn((saveFn: (selectedRows: any[]) => Promise<boolean>, _tabD
|
|
|
22
22
|
const onSave = fn(async () => true);
|
|
23
23
|
const onSelectFilter = fn();
|
|
24
24
|
|
|
25
|
+
const five = <div>Five</div>;
|
|
25
26
|
let options: MultiSelectGridOption[] = [];
|
|
26
27
|
const Template: StoryFn<typeof GridFormMultiSelectGrid> = (props: GridFormMultiSelectGridProps<any>) => {
|
|
27
28
|
options = [
|
|
@@ -30,7 +31,7 @@ const Template: StoryFn<typeof GridFormMultiSelectGrid> = (props: GridFormMultiS
|
|
|
30
31
|
{ label: "Two", value: 2 },
|
|
31
32
|
{ label: "Three", value: 3 },
|
|
32
33
|
{ label: "Four", value: 4 },
|
|
33
|
-
{ label:
|
|
34
|
+
{ label: five, value: 5 },
|
|
34
35
|
];
|
|
35
36
|
const config: GridFormMultiSelectGridProps<any> = {
|
|
36
37
|
onSave,
|
package/src/styles/Grid.scss
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@use "./react-menu-customisations";
|
|
3
3
|
@use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/ColorVars" as colors;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
.LabelPreferencesPanelGridCellAlignCenter .ag-wrapper {
|
|
7
6
|
margin-left: auto;
|
|
8
7
|
margin-right: auto;
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
justify-content: center;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
|
|
17
15
|
.Grid-container {
|
|
18
16
|
flex: 1;
|
|
19
17
|
width: 100%;
|