@trackunit/react-table 2.1.55 → 2.1.57
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/index.cjs.js +3 -3
- package/index.esm.js +3 -3
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -430,7 +430,7 @@ const ColumnFilterItem = ({ name, onToggle, toggled, disabled, index, moveColumn
|
|
|
430
430
|
moveColumn(dragIndex, hoverIndex);
|
|
431
431
|
item.index = hoverIndex;
|
|
432
432
|
},
|
|
433
|
-
drop(
|
|
433
|
+
drop(_item, _monitor) {
|
|
434
434
|
onDrop();
|
|
435
435
|
},
|
|
436
436
|
});
|
|
@@ -441,7 +441,7 @@ const ColumnFilterItem = ({ name, onToggle, toggled, disabled, index, moveColumn
|
|
|
441
441
|
collect: (monitor) => ({
|
|
442
442
|
isDragging: monitor.isDragging(),
|
|
443
443
|
}),
|
|
444
|
-
end(
|
|
444
|
+
end(_draggedItem, monitor) {
|
|
445
445
|
if (!monitor.didDrop()) {
|
|
446
446
|
onCancelDrop();
|
|
447
447
|
}
|
|
@@ -504,7 +504,7 @@ const ColumnFilter = ({ columns, setColumnOrder, defaultColumnOrder = [], column
|
|
|
504
504
|
if (!open) {
|
|
505
505
|
setSearchText("");
|
|
506
506
|
}
|
|
507
|
-
}, placement: "bottom-start", children:
|
|
507
|
+
}, placement: "bottom-start", children: () => {
|
|
508
508
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(reactComponents.PopoverTrigger, { children: jsxRuntime.jsx(reactComponents.IconButton, { icon: jsxRuntime.jsx(reactComponents.Icon, { name: "Cog6Tooth", size: "small" }), size: "small", title: t("table.columnFilters.tooltip"), variant: "secondary" }) }), jsxRuntime.jsx(reactComponents.PopoverContent, { children: () => (jsxRuntime.jsx(reactDnd.DndProvider, { backend: reactDndHtml5Backend.HTML5Backend, children: jsxRuntime.jsxs(reactComponents.MenuList, { className: "relative max-h-[55vh] w-72 overflow-y-auto", children: [jsxRuntime.jsxs("div", { className: "mb-2 flex items-center gap-1", children: [jsxRuntime.jsx(reactFormComponents.Search, { autoFocus: true, className: "flex-1", fieldSize: "small", id: "column-search", onChange: e => setSearchText(e.currentTarget.value.toLowerCase()), onClear: () => setSearchText(""), placeholder: t("table.search.placeholder"), value: searchText }), jsxRuntime.jsx(reactComponents.Button, { "data-testid": "resetColumnState", onClick: resetColumnState, size: "small", variant: "ghost-neutral", children: t("layout.actions.reset") })] }), jsxRuntime.jsx(ColumnFiltersDragAndDrop, { columns: sortedColumns, isSortDisabled: !!searchText, onUserEvent: onUserEvent, setColumnOrder: setColumnOrder, visibleColumnsCount: visibleColumnsCount })] }) })) })] }));
|
|
509
509
|
} }));
|
|
510
510
|
};
|
package/index.esm.js
CHANGED
|
@@ -429,7 +429,7 @@ const ColumnFilterItem = ({ name, onToggle, toggled, disabled, index, moveColumn
|
|
|
429
429
|
moveColumn(dragIndex, hoverIndex);
|
|
430
430
|
item.index = hoverIndex;
|
|
431
431
|
},
|
|
432
|
-
drop(
|
|
432
|
+
drop(_item, _monitor) {
|
|
433
433
|
onDrop();
|
|
434
434
|
},
|
|
435
435
|
});
|
|
@@ -440,7 +440,7 @@ const ColumnFilterItem = ({ name, onToggle, toggled, disabled, index, moveColumn
|
|
|
440
440
|
collect: (monitor) => ({
|
|
441
441
|
isDragging: monitor.isDragging(),
|
|
442
442
|
}),
|
|
443
|
-
end(
|
|
443
|
+
end(_draggedItem, monitor) {
|
|
444
444
|
if (!monitor.didDrop()) {
|
|
445
445
|
onCancelDrop();
|
|
446
446
|
}
|
|
@@ -503,7 +503,7 @@ const ColumnFilter = ({ columns, setColumnOrder, defaultColumnOrder = [], column
|
|
|
503
503
|
if (!open) {
|
|
504
504
|
setSearchText("");
|
|
505
505
|
}
|
|
506
|
-
}, placement: "bottom-start", children:
|
|
506
|
+
}, placement: "bottom-start", children: () => {
|
|
507
507
|
return (jsxs(Fragment, { children: [jsx(PopoverTrigger, { children: jsx(IconButton, { icon: jsx(Icon, { name: "Cog6Tooth", size: "small" }), size: "small", title: t("table.columnFilters.tooltip"), variant: "secondary" }) }), jsx(PopoverContent, { children: () => (jsx(DndProvider, { backend: HTML5Backend, children: jsxs(MenuList, { className: "relative max-h-[55vh] w-72 overflow-y-auto", children: [jsxs("div", { className: "mb-2 flex items-center gap-1", children: [jsx(Search, { autoFocus: true, className: "flex-1", fieldSize: "small", id: "column-search", onChange: e => setSearchText(e.currentTarget.value.toLowerCase()), onClear: () => setSearchText(""), placeholder: t("table.search.placeholder"), value: searchText }), jsx(Button, { "data-testid": "resetColumnState", onClick: resetColumnState, size: "small", variant: "ghost-neutral", children: t("layout.actions.reset") })] }), jsx(ColumnFiltersDragAndDrop, { columns: sortedColumns, isSortDisabled: !!searchText, onUserEvent: onUserEvent, setColumnOrder: setColumnOrder, visibleColumnsCount: visibleColumnsCount })] }) })) })] }));
|
|
508
508
|
} }));
|
|
509
509
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.57",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"react-dnd": "16.0.1",
|
|
12
12
|
"react-dnd-html5-backend": "16.0.1",
|
|
13
13
|
"tailwind-merge": "^2.0.0",
|
|
14
|
-
"@trackunit/react-components": "2.1.
|
|
15
|
-
"@trackunit/shared-utils": "1.15.
|
|
16
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
17
|
-
"@trackunit/ui-icons": "1.13.
|
|
18
|
-
"@trackunit/react-table-base-components": "2.1.
|
|
19
|
-
"@trackunit/react-form-components": "2.1.
|
|
20
|
-
"@trackunit/i18n-library-translation": "2.0.
|
|
21
|
-
"@trackunit/iris-app-runtime-core-api": "1.16.
|
|
14
|
+
"@trackunit/react-components": "2.1.52",
|
|
15
|
+
"@trackunit/shared-utils": "1.15.52",
|
|
16
|
+
"@trackunit/css-class-variance-utilities": "1.13.52",
|
|
17
|
+
"@trackunit/ui-icons": "1.13.53",
|
|
18
|
+
"@trackunit/react-table-base-components": "2.1.55",
|
|
19
|
+
"@trackunit/react-form-components": "2.1.54",
|
|
20
|
+
"@trackunit/i18n-library-translation": "2.0.52",
|
|
21
|
+
"@trackunit/iris-app-runtime-core-api": "1.16.57"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tanstack/react-router": "^1.114.29",
|