@agile-team/mach-table-react 0.14.0 → 0.15.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 +3 -1
- package/dist/mach-table.css +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# @agile-team/mach-table-react
|
|
6
6
|
|
|
7
|
-
Official React 18+ adapter for MachTable 0.
|
|
7
|
+
Official React 18+ adapter for MachTable 0.15. It provides a generic `<MachTable>`, full app/route configuration, remote query and editing workflows, a cohesive controller, optional and persistent column resizing, a standard toolbar, React cell/detail renderer factories, latest-closure event handling and StrictMode-safe cleanup. `RobotGrid` remains a deprecated 0.x alias.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -41,6 +41,7 @@ export function App({ rows }: { rows: Row[] }) {
|
|
|
41
41
|
columnDefs={columns}
|
|
42
42
|
rowKey="id"
|
|
43
43
|
stateKey="customer-list"
|
|
44
|
+
enableColumnResize
|
|
44
45
|
/>
|
|
45
46
|
</div>
|
|
46
47
|
);
|
|
@@ -77,6 +78,7 @@ import { defineMachTableConfig, defineMachTablePreset } from "@agile-team/mach-t
|
|
|
77
78
|
export default defineMachTableConfig({
|
|
78
79
|
defaults: {
|
|
79
80
|
size: "compact",
|
|
81
|
+
enableColumnResize: true,
|
|
80
82
|
defaultColDef: { sortable: true, resizable: true, filter: true }
|
|
81
83
|
},
|
|
82
84
|
defaultPreset: "list",
|
package/dist/mach-table.css
CHANGED
|
@@ -429,8 +429,8 @@
|
|
|
429
429
|
.mach-header-resize {
|
|
430
430
|
position: absolute;
|
|
431
431
|
top: 0;
|
|
432
|
-
right:
|
|
433
|
-
width:
|
|
432
|
+
right: 0;
|
|
433
|
+
width: 8px;
|
|
434
434
|
height: 100%;
|
|
435
435
|
cursor: col-resize;
|
|
436
436
|
z-index: 2;
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
.mach-root--resizing .mach-header-resize::after {
|
|
442
442
|
content: "";
|
|
443
443
|
position: absolute;
|
|
444
|
-
inset: 0;
|
|
444
|
+
inset: 0 3px;
|
|
445
445
|
background: var(--mach-primary);
|
|
446
446
|
opacity: 0.45;
|
|
447
447
|
border-radius: 1px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agile-team/mach-table-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Official React 18+ adapter for the MachTable enterprise data grid",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"**/*.css"
|
|
68
68
|
],
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@agile-team/mach-table": "0.
|
|
70
|
+
"@agile-team/mach-table": "0.15.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": ">=18.0.0",
|