@linzjs/step-ag-grid 29.4.0 → 29.5.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 +21 -19
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -0
- package/dist/step-ag-grid.cjs +1 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +1 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +14 -14
- package/src/components/gridForm/GridFormDropDown.tsx +7 -0
- package/src/styles/GridTheme.scss +21 -19
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": "29.
|
|
5
|
+
"version": "29.5.1",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -76,22 +76,22 @@
|
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@rollup/rollup-linux-x64-gnu": "^4.52.
|
|
79
|
+
"@rollup/rollup-linux-x64-gnu": "^4.52.4",
|
|
80
80
|
"@swc/core-linux-x64-gnu": "^1.13.20"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@chromatic-com/storybook": "^4.1.1",
|
|
84
|
-
"@linzjs/lui": "^23.
|
|
84
|
+
"@linzjs/lui": "^23.14.2",
|
|
85
85
|
"@linzjs/style": "^5.4.0",
|
|
86
86
|
"@linzjs/windows": "^5.7.0",
|
|
87
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
87
|
+
"@rollup/plugin-commonjs": "^28.0.8",
|
|
88
88
|
"@rollup/plugin-json": "^6.1.0",
|
|
89
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
89
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
90
90
|
"@semantic-release/git": "^10.0.1",
|
|
91
|
-
"@storybook/addon-docs": "^9.1.
|
|
92
|
-
"@storybook/addon-links": "^9.1.
|
|
93
|
-
"@storybook/react": "^9.1.
|
|
94
|
-
"@storybook/react-vite": "^9.1.
|
|
91
|
+
"@storybook/addon-docs": "^9.1.12",
|
|
92
|
+
"@storybook/addon-links": "^9.1.12",
|
|
93
|
+
"@storybook/react": "^9.1.12",
|
|
94
|
+
"@storybook/react-vite": "^9.1.12",
|
|
95
95
|
"@testing-library/dom": "^10.4.1",
|
|
96
96
|
"@testing-library/react": "^16.3.0",
|
|
97
97
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"cross-env": "^10.1.0",
|
|
112
112
|
"css-loader": "^7.1.2",
|
|
113
113
|
"eslint-plugin-react": "^7.37.5",
|
|
114
|
-
"eslint-plugin-storybook": "^9.1.
|
|
114
|
+
"eslint-plugin-storybook": "^9.1.12",
|
|
115
115
|
"jsdom": "^26.1.0",
|
|
116
116
|
"lodash-es": "^4.17.21",
|
|
117
117
|
"mkdirp": "^3.0.1",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"react-app-polyfill": "^3.0.0",
|
|
124
124
|
"react-dom": "^18.3.1",
|
|
125
125
|
"rimraf": "^6.0.1",
|
|
126
|
-
"rollup": "^4.52.
|
|
126
|
+
"rollup": "^4.52.4",
|
|
127
127
|
"rollup-plugin-copy": "^3.5.0",
|
|
128
128
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
129
129
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
"sass": "^1.93.2",
|
|
132
132
|
"sass-loader": "^16.0.5",
|
|
133
133
|
"semantic-release": "^24.2.9",
|
|
134
|
-
"storybook": "^9.1.
|
|
134
|
+
"storybook": "^9.1.12",
|
|
135
135
|
"storybook-css-modules-preset": "^1.1.1",
|
|
136
136
|
"style-loader": "^4.0.0",
|
|
137
|
-
"typescript": "^5.9.
|
|
138
|
-
"vite": "^7.1.
|
|
137
|
+
"typescript": "^5.9.3",
|
|
138
|
+
"vite": "^7.1.10",
|
|
139
139
|
"vite-plugin-html": "^3.2.2",
|
|
140
140
|
"vite-tsconfig-paths": "^5.1.4",
|
|
141
141
|
"vitest": "^3.2.4"
|
|
@@ -75,6 +75,7 @@ export interface GridFormDropDownProps<TData extends GridBaseRow, TOptionValue>
|
|
|
75
75
|
| FinalSelectOption<TOptionValue>[]
|
|
76
76
|
| ((selectedRows: TData[], filter?: string) => MaybePromise<FinalSelectOption<TOptionValue>[] | undefined>)
|
|
77
77
|
| undefined;
|
|
78
|
+
topComponent?: () => ReactElement;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
const fieldToString = (field: any) => {
|
|
@@ -272,6 +273,12 @@ export const GridFormDropDown = <TData extends GridBaseRow, TOptionValue>(
|
|
|
272
273
|
)}
|
|
273
274
|
</FocusableItem>
|
|
274
275
|
<MenuDivider key={`$$divider_filter`} />
|
|
276
|
+
{props.topComponent && (
|
|
277
|
+
<div>
|
|
278
|
+
<props.topComponent />
|
|
279
|
+
<MenuDivider key={`$$divider_filter`} />
|
|
280
|
+
</div>
|
|
281
|
+
)}
|
|
275
282
|
</div>
|
|
276
283
|
)}
|
|
277
284
|
<ComponentLoadingWrapper loading={!options} className={'GridFormDropDown-options'}>
|
|
@@ -58,31 +58,30 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
.ag-theme-step-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
.ag-theme-step-default.theme-specific,
|
|
62
|
+
.ag-theme-step-compact.theme-specific {
|
|
63
|
+
// Don't hide the drag handle
|
|
64
|
+
.ag-drag-handle.ag-row-drag {
|
|
65
|
+
opacity: 1 !important;
|
|
66
|
+
}
|
|
65
67
|
|
|
66
|
-
.ag-header-hide-default-select .ag-labeled {
|
|
67
|
-
|
|
68
|
-
}
|
|
68
|
+
.ag-header-hide-default-select .ag-labeled {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
69
71
|
|
|
70
|
-
.ag-header-
|
|
71
|
-
|
|
72
|
-
}
|
|
72
|
+
div.ag-header-cell.ag-header-select-draggable[col-id='ag-Grid-SelectionColumn'] {
|
|
73
|
+
padding-left: 40px;
|
|
74
|
+
}
|
|
73
75
|
|
|
74
|
-
div.ag-header-cell.ag-header-select-draggable[col-id='ag-Grid-SelectionColumn'] {
|
|
75
|
-
|
|
76
|
-
}
|
|
76
|
+
div.ag-header-cell:not(.ag-header-select-draggable)[col-id='ag-Grid-SelectionColumn'] {
|
|
77
|
+
padding-left: 12px;
|
|
78
|
+
}
|
|
77
79
|
|
|
78
|
-
.ag-
|
|
79
|
-
|
|
80
|
-
margin:
|
|
80
|
+
div.ag-cell-wrapper {
|
|
81
|
+
margin-left: 4px;
|
|
82
|
+
margin-right: 4px;
|
|
81
83
|
}
|
|
82
|
-
}
|
|
83
84
|
|
|
84
|
-
.ag-theme-step-default.theme-specific,
|
|
85
|
-
.ag-theme-step-compact.theme-specific {
|
|
86
85
|
div.ag-center-cols-viewport {
|
|
87
86
|
// when using domLayout={"autoHeight"}, ag grid has a default min-height
|
|
88
87
|
// set to 150px so the !important is necessary here
|
|
@@ -158,6 +157,9 @@ div.ag-header-cell.ag-header-select-draggable[col-id='ag-Grid-SelectionColumn']
|
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
159
|
|
|
160
|
+
div.ag-cell-wrapper .ag-selection-checkbox {
|
|
161
|
+
margin: 0;
|
|
162
|
+
}
|
|
161
163
|
|
|
162
164
|
.ag-cell {
|
|
163
165
|
display: flex;
|