@mcurros2/microm 1.1.9-0 → 1.1.11-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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8267,7 +8267,7 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
|
|
|
8267
8267
|
setRefresh: viewState.setRefresh,
|
|
8268
8268
|
setSearchText: viewState.setSearchText
|
|
8269
8269
|
});
|
|
8270
|
-
const { isLoading: isLoading, rows: rows, columns: columns } = dataGridAPI;
|
|
8270
|
+
const { isLoading: isLoading, rows: rows, columns: columns, setColumns: setColumns } = dataGridAPI;
|
|
8271
8271
|
const effectiveColumnOverrides = (0, $b4te3$react.useMemo)(()=>{
|
|
8272
8272
|
var _a, _b, _c;
|
|
8273
8273
|
if (!entity || !viewName) return columnsOverrides;
|
|
@@ -8279,11 +8279,14 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
|
|
|
8279
8279
|
viewName
|
|
8280
8280
|
]);
|
|
8281
8281
|
const [openColumnsConfigMenu, setOpenColumnsConfigMenu] = (0, $b4te3$react.useState)(false);
|
|
8282
|
+
const gridRef = (0, $b4te3$react.useRef)(null);
|
|
8282
8283
|
const ConfigMenuDropDown = (0, $b4te3$react.useMemo)(()=>(0, $b4te3$reactjsxruntime.jsx)((0, $5Buf1.DataGridColumnsMenu), {
|
|
8283
8284
|
setOpened: setOpenColumnsConfigMenu,
|
|
8284
|
-
columns: columns
|
|
8285
|
+
columns: columns,
|
|
8286
|
+
setColumns: setColumns
|
|
8285
8287
|
}), [
|
|
8286
|
-
columns
|
|
8288
|
+
columns,
|
|
8289
|
+
setColumns
|
|
8287
8290
|
]);
|
|
8288
8291
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$reactjsxruntime.Fragment), {
|
|
8289
8292
|
children: renderOnlyWhenVisible && isFirstVisible === false ? (0, $b4te3$reactjsxruntime.jsx)("div", {
|
|
@@ -8384,7 +8387,8 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
|
|
|
8384
8387
|
autoSizeColumnsOnLoad: autoSizeColumnsOnLoad,
|
|
8385
8388
|
rowBorders: rowBorders,
|
|
8386
8389
|
withBorder: withBorder,
|
|
8387
|
-
columnsOverrides: effectiveColumnOverrides
|
|
8390
|
+
columnsOverrides: effectiveColumnOverrides,
|
|
8391
|
+
ref: gridRef
|
|
8388
8392
|
})
|
|
8389
8393
|
]
|
|
8390
8394
|
}),
|
|
@@ -32804,7 +32808,7 @@ $parcel$export(module.exports, "DataGridColumnsMenu", function () { return $4147
|
|
|
32804
32808
|
|
|
32805
32809
|
|
|
32806
32810
|
function $4147ddc1926c6c51$export$72c73377cef8aa5(props) {
|
|
32807
|
-
const { columns: columns, setOpened: setOpened } = props;
|
|
32811
|
+
const { columns: columns, setOpened: setOpened, setColumns: setColumns } = props;
|
|
32808
32812
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Dropdown, {
|
|
32809
32813
|
children: columns === null || columns === void 0 ? void 0 : columns.map((column, index)=>{
|
|
32810
32814
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Item, {
|
|
@@ -32813,6 +32817,9 @@ function $4147ddc1926c6c51$export$72c73377cef8aa5(props) {
|
|
|
32813
32817
|
}),
|
|
32814
32818
|
onClick: ()=>{
|
|
32815
32819
|
column.hidden = !column.hidden;
|
|
32820
|
+
setColumns([
|
|
32821
|
+
...columns
|
|
32822
|
+
]);
|
|
32816
32823
|
setOpened(false);
|
|
32817
32824
|
},
|
|
32818
32825
|
children: column.text
|
|
@@ -33576,7 +33583,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
|
|
|
33576
33583
|
columns: columns,
|
|
33577
33584
|
rows: rows,
|
|
33578
33585
|
isLoading: isLoading,
|
|
33579
|
-
handleImportDataClick: handleImportDataClick
|
|
33586
|
+
handleImportDataClick: handleImportDataClick,
|
|
33587
|
+
setColumns: setColumns
|
|
33580
33588
|
};
|
|
33581
33589
|
}
|
|
33582
33590
|
|