@mcurros2/microm 1.1.10-0 → 1.1.12-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 -674
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -7
- 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;
|
|
@@ -8283,9 +8283,10 @@ function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
|
|
|
8283
8283
|
const ConfigMenuDropDown = (0, $b4te3$react.useMemo)(()=>(0, $b4te3$reactjsxruntime.jsx)((0, $5Buf1.DataGridColumnsMenu), {
|
|
8284
8284
|
setOpened: setOpenColumnsConfigMenu,
|
|
8285
8285
|
columns: columns,
|
|
8286
|
-
|
|
8286
|
+
setColumns: setColumns
|
|
8287
8287
|
}), [
|
|
8288
|
-
columns
|
|
8288
|
+
columns,
|
|
8289
|
+
setColumns
|
|
8289
8290
|
]);
|
|
8290
8291
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$reactjsxruntime.Fragment), {
|
|
8291
8292
|
children: renderOnlyWhenVisible && isFirstVisible === false ? (0, $b4te3$reactjsxruntime.jsx)("div", {
|
|
@@ -32807,16 +32808,22 @@ $parcel$export(module.exports, "DataGridColumnsMenu", function () { return $4147
|
|
|
32807
32808
|
|
|
32808
32809
|
|
|
32809
32810
|
function $4147ddc1926c6c51$export$72c73377cef8aa5(props) {
|
|
32810
|
-
const { columns: columns, setOpened: setOpened,
|
|
32811
|
+
const { columns: columns, setOpened: setOpened, setColumns: setColumns } = props;
|
|
32812
|
+
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
32811
32813
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Dropdown, {
|
|
32812
32814
|
children: columns === null || columns === void 0 ? void 0 : columns.map((column, index)=>{
|
|
32813
32815
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Item, {
|
|
32814
|
-
icon: column.hidden ?
|
|
32816
|
+
icon: column.hidden ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconCircleDashedCheck), {
|
|
32815
32817
|
size: "1rem"
|
|
32818
|
+
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconCheck), {
|
|
32819
|
+
size: "1rem",
|
|
32820
|
+
color: theme.primaryColor
|
|
32816
32821
|
}),
|
|
32817
32822
|
onClick: ()=>{
|
|
32818
32823
|
column.hidden = !column.hidden;
|
|
32819
|
-
|
|
32824
|
+
setColumns([
|
|
32825
|
+
...columns
|
|
32826
|
+
]);
|
|
32820
32827
|
setOpened(false);
|
|
32821
32828
|
},
|
|
32822
32829
|
children: column.text
|
|
@@ -33580,7 +33587,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
|
|
|
33580
33587
|
columns: columns,
|
|
33581
33588
|
rows: rows,
|
|
33582
33589
|
isLoading: isLoading,
|
|
33583
|
-
handleImportDataClick: handleImportDataClick
|
|
33590
|
+
handleImportDataClick: handleImportDataClick,
|
|
33591
|
+
setColumns: setColumns
|
|
33584
33592
|
};
|
|
33585
33593
|
}
|
|
33586
33594
|
|