@trackunit/react-table 1.11.9 → 1.11.11-alpha-e76d0654d61.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/index.cjs.js +8 -2
- package/index.esm.js +4 -2
- package/package.json +10 -10
package/index.cjs.js
CHANGED
|
@@ -16,6 +16,10 @@ var reactTableBaseComponents = require('@trackunit/react-table-base-components')
|
|
|
16
16
|
var tailwindMerge = require('tailwind-merge');
|
|
17
17
|
var irisAppRuntimeCoreApi = require('@trackunit/iris-app-runtime-core-api');
|
|
18
18
|
|
|
19
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
+
|
|
21
|
+
var update__default = /*#__PURE__*/_interopDefault(update);
|
|
22
|
+
|
|
19
23
|
var defaultTranslations = {
|
|
20
24
|
"layout.actions.reset": "Reset",
|
|
21
25
|
"table.actionsheet.selected": "{{count}} selected",
|
|
@@ -517,7 +521,7 @@ const ColumnFiltersDragAndDrop = ({ columns, setColumnOrder, onUserEvent, isSort
|
|
|
517
521
|
const moveColumn = react.useCallback((dragIndex, hoverIndex) => {
|
|
518
522
|
const dragColumn = localColumns[dragIndex];
|
|
519
523
|
if (dragColumn) {
|
|
520
|
-
setLocalColumns(
|
|
524
|
+
setLocalColumns(update__default.default(localColumns, {
|
|
521
525
|
$splice: [
|
|
522
526
|
[dragIndex, 1],
|
|
523
527
|
[hoverIndex, 0, dragColumn],
|
|
@@ -821,7 +825,9 @@ const useColumnDragDrop = ({ table, onColumnDragStart, }) => {
|
|
|
821
825
|
e.dataTransfer.setDragImage(dragGhost, 20, 20);
|
|
822
826
|
// Clean up the ghost element after drag operation completes
|
|
823
827
|
setTimeout(() => {
|
|
824
|
-
document.body
|
|
828
|
+
if (dragGhost.parentNode === document.body) {
|
|
829
|
+
document.body.removeChild(dragGhost);
|
|
830
|
+
}
|
|
825
831
|
}, 0);
|
|
826
832
|
}
|
|
827
833
|
startDragging(headerId);
|
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { registerTranslations, useNamespaceTranslation } from '@trackunit/i18n-library-translation';
|
|
3
|
-
import { MenuItem, Icon, Button, Tooltip, useOverflowItems, MoreMenu, MenuList, Spacer,
|
|
3
|
+
import { MenuItem, Icon, Button, Tooltip, useOverflowItems, MoreMenu, MenuList, Spacer, Text, cvaInteractableItem, Popover, PopoverTrigger, IconButton, PopoverContent, useInfiniteScroll, noPagination, Card, Spinner, EmptyState } from '@trackunit/react-components';
|
|
4
4
|
import { objectValues, nonNullable, objectKeys, objectEntries } from '@trackunit/shared-utils';
|
|
5
5
|
import { useMemo, Children, cloneElement, useRef, useState, useEffect, useCallback, createElement } from 'react';
|
|
6
6
|
import { cvaMerge } from '@trackunit/css-class-variance-utilities';
|
|
@@ -820,7 +820,9 @@ const useColumnDragDrop = ({ table, onColumnDragStart, }) => {
|
|
|
820
820
|
e.dataTransfer.setDragImage(dragGhost, 20, 20);
|
|
821
821
|
// Clean up the ghost element after drag operation completes
|
|
822
822
|
setTimeout(() => {
|
|
823
|
-
document.body
|
|
823
|
+
if (dragGhost.parentNode === document.body) {
|
|
824
|
+
document.body.removeChild(dragGhost);
|
|
825
|
+
}
|
|
824
826
|
}, 0);
|
|
825
827
|
}
|
|
826
828
|
startDragging(headerId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.11-alpha-e76d0654d61.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"react-dnd-html5-backend": "16.0.1",
|
|
15
15
|
"@tanstack/react-router": "1.114.29",
|
|
16
16
|
"tailwind-merge": "^2.0.0",
|
|
17
|
-
"@trackunit/react-components": "1.15.
|
|
18
|
-
"@trackunit/shared-utils": "1.13.
|
|
19
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
20
|
-
"@trackunit/ui-icons": "1.11.
|
|
21
|
-
"@trackunit/react-table-base-components": "1.11.
|
|
22
|
-
"@trackunit/react-form-components": "1.12.
|
|
23
|
-
"@trackunit/i18n-library-translation": "1.11.
|
|
24
|
-
"@trackunit/iris-app-runtime-core-api": "1.11.
|
|
25
|
-
"graphql": "
|
|
17
|
+
"@trackunit/react-components": "1.15.10-alpha-e76d0654d61.0",
|
|
18
|
+
"@trackunit/shared-utils": "1.13.9-alpha-e76d0654d61.0",
|
|
19
|
+
"@trackunit/css-class-variance-utilities": "1.11.9-alpha-e76d0654d61.0",
|
|
20
|
+
"@trackunit/ui-icons": "1.11.9-alpha-e76d0654d61.0",
|
|
21
|
+
"@trackunit/react-table-base-components": "1.11.11-alpha-e76d0654d61.0",
|
|
22
|
+
"@trackunit/react-form-components": "1.12.10-alpha-e76d0654d61.0",
|
|
23
|
+
"@trackunit/i18n-library-translation": "1.11.9-alpha-e76d0654d61.0",
|
|
24
|
+
"@trackunit/iris-app-runtime-core-api": "1.11.9-alpha-e76d0654d61.0",
|
|
25
|
+
"graphql": "16.12.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|
|
28
28
|
"main": "./index.cjs.js",
|