@vendorflow/components 2.0.97 → 2.0.99
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/lib/components/material-ui/ButtonMenu/ButtonMenu.js +1 -1
- package/lib/components/material-ui/ColorPicker/styles.d.ts +1 -1
- package/lib/components/material-ui/DataTable/DataTable.d.ts +1 -0
- package/lib/components/material-ui/DataTable/DataTable.js +2 -1
- package/lib/components/material-ui/DataTable/TablePieces/BodyRow.d.ts +3 -1
- package/lib/components/material-ui/DataTable/TablePieces/BodyRow.js +3 -2
- package/lib/components/material-ui/DataTable/TablePieces/TableBodyContent.d.ts +3 -1
- package/lib/components/material-ui/DataTable/TablePieces/TableBodyContent.js +3 -3
- package/lib/types/Component.types.d.ts +1 -0
- package/package.json +1 -1
- package/lib/TempHooks.d.ts +0 -9
- package/lib/TempHooks.js +0 -25
- package/lib/components/InfiniteScroll/InfiniteScroll.d.ts +0 -16
- package/lib/components/InfiniteScroll/InfiniteScroll.js +0 -159
- package/lib/components/InfiniteScroll/index.d.ts +0 -1
- package/lib/components/InfiniteScroll/index.js +0 -8
- package/lib/components/blueprint/InputGroup/InputGroup.d.ts +0 -20
- package/lib/components/blueprint/InputGroup/InputGroup.js +0 -13
- package/lib/components/blueprint/InputGroup/InputGroup.story.d.ts +0 -2
- package/lib/components/blueprint/InputGroup/InputGroup.story.js +0 -11
- package/lib/components/blueprint/InputGroup/index.d.ts +0 -1
- package/lib/components/blueprint/InputGroup/index.js +0 -4
- package/lib/components/blueprint/InputSelect/InputSelect.d.ts +0 -51
- package/lib/components/blueprint/InputSelect/InputSelect.js +0 -98
- package/lib/components/blueprint/InputSelect/InputSelect.story.d.ts +0 -3
- package/lib/components/blueprint/InputSelect/InputSelect.story.js +0 -19
- package/lib/components/blueprint/InputSelect/index.d.ts +0 -1
- package/lib/components/blueprint/InputSelect/index.js +0 -4
- package/lib/components/blueprint/InputTime/InputTime.d.ts +0 -24
- package/lib/components/blueprint/InputTime/InputTime.js +0 -28
- package/lib/components/blueprint/InputTime/InputTime.story.d.ts +0 -2
- package/lib/components/blueprint/InputTime/InputTime.story.js +0 -11
- package/lib/components/blueprint/InputTime/index.d.ts +0 -1
- package/lib/components/blueprint/InputTime/index.js +0 -4
- package/lib/components/material-ui/ChatInterface/ActionsMenu.d.ts +0 -4
- package/lib/components/material-ui/ChatInterface/ActionsMenu.js +0 -37
- package/lib/components/material-ui/ChatInterface/ChatInterface.d.ts +0 -33
- package/lib/components/material-ui/ChatInterface/ChatInterface.js +0 -109
- package/lib/components/material-ui/ChatInterface/ChatInterface.story.d.ts +0 -1
- package/lib/components/material-ui/ChatInterface/ChatInterface.story.js +0 -134
- package/lib/components/material-ui/ChatInterface/MessageInput.d.ts +0 -9
- package/lib/components/material-ui/ChatInterface/MessageInput.js +0 -53
- package/lib/components/material-ui/ChatInterface/MessageItem.d.ts +0 -8
- package/lib/components/material-ui/ChatInterface/MessageItem.js +0 -71
- package/lib/components/material-ui/ChatInterface/MessageThread.d.ts +0 -6
- package/lib/components/material-ui/ChatInterface/MessageThread.js +0 -119
- package/lib/components/material-ui/ChatInterface/index.d.ts +0 -1
- package/lib/components/material-ui/ChatInterface/index.js +0 -8
- package/lib/components/material-ui/DataTable/AppliedFilters.d.ts +0 -12
- package/lib/components/material-ui/DataTable/AppliedFilters.js +0 -26
- package/lib/components/material-ui/DataTable/GlobalSearchFilter.d.ts +0 -10
- package/lib/components/material-ui/DataTable/GlobalSearchFilter.js +0 -49
- package/lib/components/material-ui/DataTable/IndeterminateCheckbox.d.ts +0 -4
- package/lib/components/material-ui/DataTable/IndeterminateCheckbox.js +0 -65
- package/lib/components/material-ui/DataTable/SortIndicator.d.ts +0 -10
- package/lib/components/material-ui/DataTable/SortIndicator.js +0 -33
- package/lib/components/material-ui/DataTable/Toolbar.d.ts +0 -24
- package/lib/components/material-ui/DataTable/Toolbar.js +0 -63
- package/lib/components/material-ui/DataTable/Utils.d.ts +0 -25
- package/lib/components/material-ui/DataTable/Utils.js +0 -119
- package/lib/components/material-ui/DataTable/ViewColumnTool.d.ts +0 -11
- package/lib/components/material-ui/DataTable/ViewColumnTool.js +0 -76
- package/lib/components/material-ui/ErrorBoundary/ErrorBoundary.d.ts +0 -7
- package/lib/components/material-ui/ErrorBoundary/ErrorBoundary.js +0 -20
- package/lib/components/material-ui/ErrorBoundary/index.d.ts +0 -1
- package/lib/components/material-ui/ErrorBoundary/index.js +0 -8
- package/lib/services/Select.service.d.ts +0 -5
- package/lib/services/Select.service.js +0 -67
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
/** @jsxRuntime classic */
|
|
11
|
-
/** @jsx jsx */
|
|
12
|
-
var react_1 = require("@emotion/react");
|
|
13
|
-
var react_2 = require("react");
|
|
14
|
-
var MessageItem_1 = __importDefault(require("./MessageItem"));
|
|
15
|
-
var lodash_1 = require("lodash");
|
|
16
|
-
var material_1 = require("@mui/material");
|
|
17
|
-
function MessageThread(_a) {
|
|
18
|
-
var _b;
|
|
19
|
-
var userId = _a.userId, messages = _a.messages, inputHeight = _a.inputHeight, hasNextPage = _a.hasNextPage, fetchNextPage = _a.fetchNextPage, isLoading = _a.isLoading, isFetching = _a.isFetching, isSubmitting = _a.isSubmitting, colors = _a.colors;
|
|
20
|
-
var isInitialized = (0, react_2.useRef)(false);
|
|
21
|
-
var isScrollLoad = (0, react_2.useRef)(false);
|
|
22
|
-
var hasSubmitted = (0, react_2.useRef)(false);
|
|
23
|
-
var prevScrollTop = (0, react_2.useRef)(null);
|
|
24
|
-
var prevScrollHeight = (0, react_2.useRef)(null);
|
|
25
|
-
var shouldScrollToPrevPosition = (0, react_2.useRef)(false);
|
|
26
|
-
var scrollParent = (0, react_2.useRef)(null);
|
|
27
|
-
var handleScrollEvent = (0, react_2.useCallback)((0, lodash_1.debounce)(function (evt) {
|
|
28
|
-
var parent = evt.target;
|
|
29
|
-
if (parent.scrollTop === 0 && hasNextPage && fetchNextPage && !isLoading && !isFetching) {
|
|
30
|
-
isScrollLoad.current = true;
|
|
31
|
-
prevScrollHeight.current = parent.scrollHeight;
|
|
32
|
-
fetchNextPage();
|
|
33
|
-
}
|
|
34
|
-
}, 300), [hasNextPage, fetchNextPage, isLoading, isFetching]);
|
|
35
|
-
(0, react_2.useEffect)(function () {
|
|
36
|
-
if (isSubmitting) {
|
|
37
|
-
hasSubmitted.current = true;
|
|
38
|
-
}
|
|
39
|
-
}, [isSubmitting]);
|
|
40
|
-
// This will handle the initial loading of messages, then scroll to bottom
|
|
41
|
-
(0, react_2.useEffect)(function () {
|
|
42
|
-
if (!isInitialized.current && !isFetching && scrollParent.current) {
|
|
43
|
-
var _a = scrollParent.current, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight;
|
|
44
|
-
if (clientHeight >= scrollHeight && hasNextPage && fetchNextPage) {
|
|
45
|
-
fetchNextPage();
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
isInitialized.current = true;
|
|
49
|
-
scrollParent.current.scrollTo(0, scrollHeight - clientHeight);
|
|
50
|
-
}
|
|
51
|
-
}, [isFetching, isInitialized.current, hasNextPage, fetchNextPage]);
|
|
52
|
-
// Sets up the scroll event listener
|
|
53
|
-
(0, react_2.useEffect)(function () {
|
|
54
|
-
if (scrollParent.current) {
|
|
55
|
-
scrollParent.current.addEventListener('scroll', handleScrollEvent);
|
|
56
|
-
}
|
|
57
|
-
return function () {
|
|
58
|
-
if (scrollParent.current) {
|
|
59
|
-
scrollParent.current.removeEventListener('scroll', handleScrollEvent);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}, [scrollParent.current, hasNextPage, fetchNextPage, isLoading, isFetching]);
|
|
63
|
-
// Handles the scroll position adjustment after fetching the next page
|
|
64
|
-
(0, react_2.useEffect)(function () {
|
|
65
|
-
if (!isFetching &&
|
|
66
|
-
isInitialized.current &&
|
|
67
|
-
scrollParent.current &&
|
|
68
|
-
isScrollLoad.current &&
|
|
69
|
-
prevScrollHeight.current &&
|
|
70
|
-
scrollParent.current.scrollHeight !== prevScrollHeight.current) {
|
|
71
|
-
var delta = scrollParent.current.scrollHeight - prevScrollHeight.current;
|
|
72
|
-
scrollParent.current.scrollTo(0, delta);
|
|
73
|
-
isScrollLoad.current = false;
|
|
74
|
-
prevScrollHeight.current = 0;
|
|
75
|
-
}
|
|
76
|
-
}, [isFetching, prevScrollHeight.current]);
|
|
77
|
-
// Manages scroll position for data changes that are triggered from anything other than the scroll event
|
|
78
|
-
(0, react_2.useEffect)(function () {
|
|
79
|
-
var _a;
|
|
80
|
-
if (scrollParent.current && !isScrollLoad.current && isInitialized.current) {
|
|
81
|
-
var _b = scrollParent.current, scrollHeight = _b.scrollHeight, scrollTop = _b.scrollTop, clientHeight = _b.clientHeight;
|
|
82
|
-
if (isFetching) {
|
|
83
|
-
// track the current position
|
|
84
|
-
prevScrollHeight.current = scrollHeight;
|
|
85
|
-
prevScrollTop.current = scrollTop;
|
|
86
|
-
var distanceFromBottom = scrollHeight - scrollTop - clientHeight;
|
|
87
|
-
if (!isSubmitting && distanceFromBottom > 200) {
|
|
88
|
-
shouldScrollToPrevPosition.current = true;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
// init to scroll to bottom delta
|
|
93
|
-
var delta = scrollHeight - clientHeight;
|
|
94
|
-
if (hasSubmitted.current) {
|
|
95
|
-
// scroll to bottom if this was triggered by the current user's sent message
|
|
96
|
-
(_a = scrollParent.current) === null || _a === void 0 ? void 0 : _a.scrollTo(0, delta);
|
|
97
|
-
}
|
|
98
|
-
else if (!isFetching && prevScrollHeight.current !== null && prevScrollTop.current !== null) {
|
|
99
|
-
if (shouldScrollToPrevPosition.current) {
|
|
100
|
-
delta = prevScrollTop.current;
|
|
101
|
-
}
|
|
102
|
-
scrollParent.current.scrollTo(0, delta);
|
|
103
|
-
}
|
|
104
|
-
// clean up
|
|
105
|
-
prevScrollHeight.current = null;
|
|
106
|
-
prevScrollTop.current = null;
|
|
107
|
-
hasSubmitted.current = false;
|
|
108
|
-
shouldScrollToPrevPosition.current = false;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}, [isFetching, (_b = scrollParent.current) === null || _b === void 0 ? void 0 : _b.scrollHeight]);
|
|
112
|
-
return ((0, react_1.jsx)("div", { ref: scrollParent, css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n height: calc(100% - ", "px);\n width: 100%;\n padding: 0.5rem 1rem;\n overflow-y: auto;\n "], ["\n box-sizing: border-box;\n height: calc(100% - ", "px);\n width: 100%;\n padding: 0.5rem 1rem;\n overflow-y: auto;\n "])), inputHeight) },
|
|
113
|
-
(0, react_1.jsx)("div", { css: (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n align-items: flex-start;\n "], ["\n display: flex;\n flex-direction: column-reverse;\n justify-content: flex-start;\n align-items: flex-start;\n "]))) },
|
|
114
|
-
messages.map(function (message) { return ((0, react_1.jsx)(MessageItem_1.default, { key: "" + message.id, message: message, userId: userId, colors: colors })); }),
|
|
115
|
-
hasNextPage && ((0, react_1.jsx)("div", { key: "loader", css: (0, react_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n margin: 0.5rem 0;\n height: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n\n && {\n visibility: ", ";\n }\n "], ["\n width: 100%;\n margin: 0.5rem 0;\n height: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n\n && {\n visibility: ", ";\n }\n "])), isFetching && isScrollLoad ? 'visible' : 'hidden') },
|
|
116
|
-
(0, react_1.jsx)(material_1.CircularProgress, { size: "1.5rem", disableShrink: true }))))));
|
|
117
|
-
}
|
|
118
|
-
exports.default = MessageThread;
|
|
119
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ChatInterface';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var ChatInterface_1 = require("./ChatInterface");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ChatInterface_1).default; } });
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { Filters, UseFiltersInstanceProps } from 'react-table';
|
|
5
|
-
import { SimpleMap } from '../../../types/Internal.types';
|
|
6
|
-
interface Props<D extends object> {
|
|
7
|
-
columnNameById: SimpleMap<string>;
|
|
8
|
-
filters: Filters<D>;
|
|
9
|
-
setFilter: UseFiltersInstanceProps<D>['setFilter'];
|
|
10
|
-
}
|
|
11
|
-
export default function AppliedFilters<D extends object>({ columnNameById, filters, setFilter }: Props<D>): jsx.JSX.Element | null;
|
|
12
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
/** @jsxRuntime classic */
|
|
8
|
-
/** @jsx jsx */
|
|
9
|
-
var react_1 = require("@emotion/react");
|
|
10
|
-
var material_1 = require("@mui/material");
|
|
11
|
-
var SingleSelectFilter_1 = require("./FilterTool/Filters/SingleSelectFilter");
|
|
12
|
-
var PADDING = 24;
|
|
13
|
-
function AppliedFilters(_a) {
|
|
14
|
-
var columnNameById = _a.columnNameById, filters = _a.filters, setFilter = _a.setFilter;
|
|
15
|
-
if (!filters.length) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return ((0, react_1.jsx)(material_1.Stack, { direction: "row", overflow: "none", css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: calc(100% - ", "px);\n padding: 8px ", "px;\n flex-wrap: wrap;\n gap: 0.25rem 0.25rem;\n "], ["\n width: calc(100% - ", "px);\n padding: 8px ", "px;\n flex-wrap: wrap;\n gap: 0.25rem 0.25rem;\n "])), PADDING * 2, PADDING) }, filters
|
|
19
|
-
.filter(function (filter) {
|
|
20
|
-
return (Array.isArray(filter.value) && !!filter.value.length) ||
|
|
21
|
-
(!Array.isArray(filter.value) && filter.value != null);
|
|
22
|
-
})
|
|
23
|
-
.map(function (filter) { return ((0, react_1.jsx)(material_1.Chip, { key: filter.id, label: columnNameById[filter.id] + ": " + (filter.value === '' ? SingleSelectFilter_1.BLANK_VALUE_LABEL : filter.value), onDelete: function () { return setFilter(filter.id, null); } })); })));
|
|
24
|
-
}
|
|
25
|
-
exports.default = AppliedFilters;
|
|
26
|
-
var templateObject_1;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
interface Props {
|
|
5
|
-
setShowSearch: (value: boolean) => void;
|
|
6
|
-
globalFilter: string;
|
|
7
|
-
setGlobalFilter: (filterValue: any) => void;
|
|
8
|
-
}
|
|
9
|
-
export default function GlobalSearchFilter({ globalFilter, setGlobalFilter, setShowSearch }: Props): jsx.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
7
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
8
|
-
if (!m) return o;
|
|
9
|
-
var i = m.call(o), r, ar = [], e;
|
|
10
|
-
try {
|
|
11
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
12
|
-
}
|
|
13
|
-
catch (error) { e = { error: error }; }
|
|
14
|
-
finally {
|
|
15
|
-
try {
|
|
16
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17
|
-
}
|
|
18
|
-
finally { if (e) throw e.error; }
|
|
19
|
-
}
|
|
20
|
-
return ar;
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
/** @jsxRuntime classic */
|
|
24
|
-
/** @jsx jsx */
|
|
25
|
-
var react_1 = require("@emotion/react");
|
|
26
|
-
var material_1 = require("@mui/material");
|
|
27
|
-
var icons_material_1 = require("@mui/icons-material");
|
|
28
|
-
var react_table_1 = require("react-table");
|
|
29
|
-
var react_2 = require("react");
|
|
30
|
-
function GlobalSearchFilter(_a) {
|
|
31
|
-
var globalFilter = _a.globalFilter, setGlobalFilter = _a.setGlobalFilter, setShowSearch = _a.setShowSearch;
|
|
32
|
-
var _b = __read((0, react_2.useState)(globalFilter), 2), value = _b[0], setValue = _b[1];
|
|
33
|
-
var onChange = (0, react_table_1.useAsyncDebounce)(function (value) {
|
|
34
|
-
setGlobalFilter(value || undefined);
|
|
35
|
-
}, 300);
|
|
36
|
-
return ((0, react_1.jsx)("div", { css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n max-width: 100%;\n min-width: 20rem;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n "], ["\n max-width: 100%;\n min-width: 20rem;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n "]))), "data-testid": "globalSearchFilter" },
|
|
37
|
-
(0, react_1.jsx)(icons_material_1.Search, null),
|
|
38
|
-
(0, react_1.jsx)(material_1.TextField, { value: value || '', onChange: function (evt) {
|
|
39
|
-
setValue(evt.target.value);
|
|
40
|
-
onChange(evt.target.value);
|
|
41
|
-
}, fullWidth: true, variant: "standard", autoFocus: true }),
|
|
42
|
-
(0, react_1.jsx)(material_1.IconButton, { onClick: function () {
|
|
43
|
-
setGlobalFilter(null);
|
|
44
|
-
setShowSearch(false);
|
|
45
|
-
} },
|
|
46
|
-
(0, react_1.jsx)(icons_material_1.Close, null))));
|
|
47
|
-
}
|
|
48
|
-
exports.default = GlobalSearchFilter;
|
|
49
|
-
var templateObject_1;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.CHECKBOX_WIDTH = void 0;
|
|
30
|
-
/** @jsxRuntime classic */
|
|
31
|
-
/** @jsx jsx */
|
|
32
|
-
var react_1 = require("@emotion/react");
|
|
33
|
-
var react_2 = require("react");
|
|
34
|
-
var material_1 = require("@mui/material");
|
|
35
|
-
exports.CHECKBOX_WIDTH = 32;
|
|
36
|
-
// eslint-disable-next-line react/display-name
|
|
37
|
-
var IndeterminateCheckbox = (0, react_2.forwardRef)(function (_a, ref) {
|
|
38
|
-
var indeterminate = _a.indeterminate, restOfProps = __rest(_a, ["indeterminate"]);
|
|
39
|
-
var resolvedRef = useForwardedRef(ref);
|
|
40
|
-
(0, react_2.useEffect)(function () {
|
|
41
|
-
if (resolvedRef.current) {
|
|
42
|
-
resolvedRef.current.indeterminate = indeterminate;
|
|
43
|
-
}
|
|
44
|
-
}, [resolvedRef, indeterminate]);
|
|
45
|
-
return ((0, react_1.jsx)(react_2.Fragment, null,
|
|
46
|
-
(0, react_1.jsx)(material_1.Checkbox, __assign({ css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n "], ["\n width: ", "px;\n height: ", "px;\n "])), exports.CHECKBOX_WIDTH, exports.CHECKBOX_WIDTH),
|
|
47
|
-
//@ts-ignore
|
|
48
|
-
ref: resolvedRef }, restOfProps, { indeterminate: indeterminate }))));
|
|
49
|
-
});
|
|
50
|
-
exports.default = IndeterminateCheckbox;
|
|
51
|
-
function useForwardedRef(ref) {
|
|
52
|
-
var innerRef = (0, react_2.useRef)(null);
|
|
53
|
-
(0, react_2.useEffect)(function () {
|
|
54
|
-
if (!ref)
|
|
55
|
-
return;
|
|
56
|
-
if (typeof ref === 'function') {
|
|
57
|
-
ref(innerRef.current);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
ref.current = innerRef.current;
|
|
61
|
-
}
|
|
62
|
-
}, []);
|
|
63
|
-
return innerRef;
|
|
64
|
-
}
|
|
65
|
-
var templateObject_1;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
interface Props {
|
|
5
|
-
canSort?: boolean;
|
|
6
|
-
isSorted?: boolean;
|
|
7
|
-
isSortedDesc?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export default function SortIndicator({ canSort, isSorted, isSortedDesc }: Props): jsx.JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
/** @jsxRuntime classic */
|
|
8
|
-
/** @jsx jsx */
|
|
9
|
-
var react_1 = require("@emotion/react");
|
|
10
|
-
var icons_material_1 = require("@mui/icons-material");
|
|
11
|
-
var iconStyle = (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-left: 0.25rem;\n color: #b2b2b2;\n line-height: 0;\n\n && {\n font-size: 1rem;\n }\n"], ["\n margin-left: 0.25rem;\n color: #b2b2b2;\n line-height: 0;\n\n && {\n font-size: 1rem;\n }\n"])));
|
|
12
|
-
var smallIconStyle = (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n && {\n font-size: 0.75rem;\n }\n"], ["\n ", ";\n && {\n font-size: 0.75rem;\n }\n"])), iconStyle);
|
|
13
|
-
var wrapperStyle = (0, react_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n line-height: 0;\n flex: none;\n"], ["\n line-height: 0;\n flex: none;\n"])));
|
|
14
|
-
var stackedWrapperStyle = (0, react_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n flex: none;\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"], ["\n ", ";\n flex: none;\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), wrapperStyle);
|
|
15
|
-
function SortIndicator(_a) {
|
|
16
|
-
var canSort = _a.canSort, isSorted = _a.isSorted, isSortedDesc = _a.isSortedDesc;
|
|
17
|
-
if (!canSort) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
if (!isSorted) {
|
|
21
|
-
return ((0, react_1.jsx)("span", { css: stackedWrapperStyle },
|
|
22
|
-
(0, react_1.jsx)(icons_material_1.ArrowUpward, { css: smallIconStyle }),
|
|
23
|
-
(0, react_1.jsx)(icons_material_1.ArrowDownward, { css: smallIconStyle })));
|
|
24
|
-
}
|
|
25
|
-
if (isSortedDesc) {
|
|
26
|
-
return ((0, react_1.jsx)("span", { css: wrapperStyle },
|
|
27
|
-
(0, react_1.jsx)(icons_material_1.ArrowDownward, { css: iconStyle })));
|
|
28
|
-
}
|
|
29
|
-
return ((0, react_1.jsx)("span", { css: wrapperStyle },
|
|
30
|
-
(0, react_1.jsx)(icons_material_1.ArrowUpward, { css: iconStyle })));
|
|
31
|
-
}
|
|
32
|
-
exports.default = SortIndicator;
|
|
33
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
import { SimpleMap } from '../../../types/Internal.types';
|
|
6
|
-
import { EnhancedHeader } from './DataTable';
|
|
7
|
-
import { UseFiltersInstanceProps } from 'react-table';
|
|
8
|
-
interface Props<D extends object> {
|
|
9
|
-
title?: string;
|
|
10
|
-
allColumns: EnhancedHeader<D>[];
|
|
11
|
-
columnNameById: SimpleMap<string>;
|
|
12
|
-
enableFilters?: boolean;
|
|
13
|
-
enableGlobalSearch?: boolean;
|
|
14
|
-
enableHideColumns?: boolean;
|
|
15
|
-
hasRowsSelected: boolean;
|
|
16
|
-
numRowsSelected: number;
|
|
17
|
-
globalFilter: string;
|
|
18
|
-
renderActions?: () => ReactNode;
|
|
19
|
-
renderRowSelectActions?: () => ReactNode;
|
|
20
|
-
setAllFilters: UseFiltersInstanceProps<D>['setAllFilters'];
|
|
21
|
-
setGlobalFilter: (filterValue: any) => void | Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
export default function Toolbar<D extends object>({ title, allColumns, columnNameById, enableFilters, enableGlobalSearch, enableHideColumns, hasRowsSelected, numRowsSelected, globalFilter, renderActions, renderRowSelectActions, setAllFilters, setGlobalFilter, }: Props<D>): jsx.JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
7
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
8
|
-
if (!m) return o;
|
|
9
|
-
var i = m.call(o), r, ar = [], e;
|
|
10
|
-
try {
|
|
11
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
12
|
-
}
|
|
13
|
-
catch (error) { e = { error: error }; }
|
|
14
|
-
finally {
|
|
15
|
-
try {
|
|
16
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17
|
-
}
|
|
18
|
-
finally { if (e) throw e.error; }
|
|
19
|
-
}
|
|
20
|
-
return ar;
|
|
21
|
-
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
/** @jsxRuntime classic */
|
|
27
|
-
/** @jsx jsx */
|
|
28
|
-
var react_1 = require("@emotion/react");
|
|
29
|
-
var material_1 = require("@mui/material");
|
|
30
|
-
var ViewColumnTool_1 = __importDefault(require("./ViewColumnTool"));
|
|
31
|
-
var icons_material_1 = require("@mui/icons-material");
|
|
32
|
-
var react_2 = require("react");
|
|
33
|
-
var GlobalSearchFilter_1 = __importDefault(require("./GlobalSearchFilter"));
|
|
34
|
-
var FilterTool_1 = __importDefault(require("./FilterTool"));
|
|
35
|
-
function Toolbar(_a) {
|
|
36
|
-
var title = _a.title, allColumns = _a.allColumns, columnNameById = _a.columnNameById, enableFilters = _a.enableFilters, enableGlobalSearch = _a.enableGlobalSearch, enableHideColumns = _a.enableHideColumns, hasRowsSelected = _a.hasRowsSelected, numRowsSelected = _a.numRowsSelected, globalFilter = _a.globalFilter, renderActions = _a.renderActions, renderRowSelectActions = _a.renderRowSelectActions, setAllFilters = _a.setAllFilters, setGlobalFilter = _a.setGlobalFilter;
|
|
37
|
-
var _b = __read((0, react_2.useState)(false), 2), showSearch = _b[0], setShowSearch = _b[1];
|
|
38
|
-
return ((0, react_1.jsx)(material_1.Toolbar, { sx: hasRowsSelected ? { backgroundColor: function (theme) { return (0, material_1.lighten)(theme.palette.primary.light, 0.85); } } : undefined }, hasRowsSelected ? ((0, react_1.jsx)(material_1.Grid, { container: true, spacing: 2 },
|
|
39
|
-
(0, react_1.jsx)(material_1.Grid, { item: true, sm: 6 },
|
|
40
|
-
(0, react_1.jsx)(material_1.Stack, { height: "100%", direction: "row", alignContent: "center" },
|
|
41
|
-
(0, react_1.jsx)(material_1.Typography, { css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: 1.125rem;\n margin-top: 4px;\n "], ["\n font-size: 1.125rem;\n margin-top: 4px;\n "]))) },
|
|
42
|
-
numRowsSelected,
|
|
43
|
-
" selected"))),
|
|
44
|
-
(0, react_1.jsx)(material_1.Grid, { item: true, sm: 6 },
|
|
45
|
-
(0, react_1.jsx)(material_1.Stack, { direction: "row", justifyContent: "flex-end", css: (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "]))) }, renderRowSelectActions && renderRowSelectActions())))) : ((0, react_1.jsx)(material_1.Grid, { container: true, spacing: 2 },
|
|
46
|
-
(0, react_1.jsx)(material_1.Grid, { item: true, sm: 6 },
|
|
47
|
-
(0, react_1.jsx)(material_1.Stack, { direction: "row" }, enableGlobalSearch && showSearch ? ((0, react_1.jsx)(GlobalSearchFilter_1.default, { globalFilter: globalFilter, setGlobalFilter: setGlobalFilter, setShowSearch: setShowSearch })) : ((0, react_1.jsx)(material_1.Typography, { css: (0, react_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 1.125rem;\n margin-top: 6px;\n "], ["\n font-size: 1.125rem;\n margin-top: 6px;\n "]))) }, title || '')))),
|
|
48
|
-
(0, react_1.jsx)(material_1.Grid, { item: true, sm: 6 },
|
|
49
|
-
(0, react_1.jsx)(material_1.Stack, { direction: "row", justifyContent: "flex-end", css: (0, react_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "]))) },
|
|
50
|
-
enableGlobalSearch && ((0, react_1.jsx)(material_1.Tooltip, { title: "Search" },
|
|
51
|
-
(0, react_1.jsx)(material_1.IconButton, { onClick: function () {
|
|
52
|
-
if (showSearch) {
|
|
53
|
-
setGlobalFilter(null);
|
|
54
|
-
}
|
|
55
|
-
setShowSearch(!showSearch);
|
|
56
|
-
} },
|
|
57
|
-
(0, react_1.jsx)(icons_material_1.Search, null)))),
|
|
58
|
-
enableHideColumns && (0, react_1.jsx)(ViewColumnTool_1.default, { allColumns: allColumns, columnNameById: columnNameById }),
|
|
59
|
-
enableFilters && ((0, react_1.jsx)(FilterTool_1.default, { allColumns: allColumns, columnNameById: columnNameById, setAllFilters: setAllFilters })),
|
|
60
|
-
renderActions && renderActions()))))));
|
|
61
|
-
}
|
|
62
|
-
exports.default = Toolbar;
|
|
63
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import short from 'short-uuid';
|
|
3
|
-
import { EnhancedRow } from './DataTable';
|
|
4
|
-
/**
|
|
5
|
-
* This custom hook is designed to replace the `<CellMeasurer />` component in `react-virtualized`
|
|
6
|
-
* in `react-window`
|
|
7
|
-
*
|
|
8
|
-
* This hook returns props to be given to the `<VariableSizeList />` component in `react-window`
|
|
9
|
-
*
|
|
10
|
-
* `items` are react elements
|
|
11
|
-
*/
|
|
12
|
-
export default function useCellMeasurer({ items, renderItem, }: {
|
|
13
|
-
items: any[];
|
|
14
|
-
renderItem: (item: EnhancedRow<any>) => JSX.Element;
|
|
15
|
-
}): {
|
|
16
|
-
innerRef: import("react").RefObject<HTMLDivElement>;
|
|
17
|
-
itemSize: (index: any) => number;
|
|
18
|
-
itemCount: number;
|
|
19
|
-
key: short.SUUID;
|
|
20
|
-
style: {
|
|
21
|
-
visibility?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
visibility: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
-
if (!m) return o;
|
|
5
|
-
var i = m.call(o), r, ar = [], e;
|
|
6
|
-
try {
|
|
7
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
-
}
|
|
9
|
-
catch (error) { e = { error: error }; }
|
|
10
|
-
finally {
|
|
11
|
-
try {
|
|
12
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
-
}
|
|
14
|
-
finally { if (e) throw e.error; }
|
|
15
|
-
}
|
|
16
|
-
return ar;
|
|
17
|
-
};
|
|
18
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
var react_1 = require("react");
|
|
23
|
-
var short_uuid_1 = __importDefault(require("short-uuid"));
|
|
24
|
-
var server_1 = require("react-dom/server");
|
|
25
|
-
var resize_observer_polyfill_1 = __importDefault(require("resize-observer-polyfill"));
|
|
26
|
-
/**
|
|
27
|
-
* This custom hook is designed to replace the `<CellMeasurer />` component in `react-virtualized`
|
|
28
|
-
* in `react-window`
|
|
29
|
-
*
|
|
30
|
-
* This hook returns props to be given to the `<VariableSizeList />` component in `react-window`
|
|
31
|
-
*
|
|
32
|
-
* `items` are react elements
|
|
33
|
-
*/
|
|
34
|
-
function useCellMeasurer(_a) {
|
|
35
|
-
var items = _a.items, renderItem = _a.renderItem;
|
|
36
|
-
// create a ref to get the `div` element the `VariableSizeList` uses
|
|
37
|
-
var innerRef = (0, react_1.useRef)(null);
|
|
38
|
-
// create a unique ID for this cell measurer instance
|
|
39
|
-
var id = (0, react_1.useMemo)(function () { return short_uuid_1.default.generate(); }, []);
|
|
40
|
-
// create a "hidden sizing element" in state.
|
|
41
|
-
//
|
|
42
|
-
// when the innerRef element mounts, the width of the innerRef will be used for width of
|
|
43
|
-
// the hidden sizing element
|
|
44
|
-
var _b = __read((0, react_1.useState)(null), 2), hiddenSizingEl = _b[0], setHiddenSizingEl = _b[1];
|
|
45
|
-
// this width is used to determine whether the list needs to be re-rendered due to a resize
|
|
46
|
-
var _c = __read((0, react_1.useState)(0), 2), width = _c[0], setWidth = _c[1];
|
|
47
|
-
// `itemSize` is a function required by `VariableSizeList`. This function is called when it needs
|
|
48
|
-
// to get the height of the item inside it.
|
|
49
|
-
// note: the result of this function is memoized by `react-window` so it will only be called once
|
|
50
|
-
// to get the item size
|
|
51
|
-
var itemSize = (0, react_1.useCallback)(function (index) {
|
|
52
|
-
if (!hiddenSizingEl)
|
|
53
|
-
return 0;
|
|
54
|
-
// get the item (which is a react node)
|
|
55
|
-
var item = items[index];
|
|
56
|
-
// then render the react node to a string synchronously with `react-dom/server`
|
|
57
|
-
hiddenSizingEl.innerHTML = (0, server_1.renderToString)(renderItem(item));
|
|
58
|
-
// get and return the size of the hidden sizing element
|
|
59
|
-
return hiddenSizingEl.clientHeight || 0;
|
|
60
|
-
}, [hiddenSizingEl, items]);
|
|
61
|
-
// this effects adds the hidden sizing element to the DOM
|
|
62
|
-
(0, react_1.useEffect)(function () {
|
|
63
|
-
/** @type {HTMLElement} */
|
|
64
|
-
var innerEl = innerRef.current;
|
|
65
|
-
if (!innerEl)
|
|
66
|
-
return;
|
|
67
|
-
if (hiddenSizingEl)
|
|
68
|
-
return;
|
|
69
|
-
var newHiddenSizingEl = document.createElement('div');
|
|
70
|
-
var width = innerEl.clientWidth;
|
|
71
|
-
newHiddenSizingEl.classList.add("hidden-sizing-element-" + id);
|
|
72
|
-
newHiddenSizingEl.style.position = 'absolute';
|
|
73
|
-
newHiddenSizingEl.style.top = '0';
|
|
74
|
-
newHiddenSizingEl.style.width = width + "px";
|
|
75
|
-
newHiddenSizingEl.style.pointerEvents = 'none';
|
|
76
|
-
newHiddenSizingEl.style.visibility = 'hidden';
|
|
77
|
-
setHiddenSizingEl(newHiddenSizingEl);
|
|
78
|
-
document.body.appendChild(newHiddenSizingEl);
|
|
79
|
-
}, [hiddenSizingEl, id]);
|
|
80
|
-
// this removes all hidden sizing elements on unmount
|
|
81
|
-
(0, react_1.useEffect)(function () {
|
|
82
|
-
// returning a function from `useEffect` is the "clean-up" phase
|
|
83
|
-
return function () {
|
|
84
|
-
var hiddenSizingElement = document.querySelector(".hidden-sizing-element-" + id);
|
|
85
|
-
if (hiddenSizingElement) {
|
|
86
|
-
document.body.removeChild(hiddenSizingElement);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}, [id]);
|
|
90
|
-
// this is used to watch for changes in the size of the list element and sets the width
|
|
91
|
-
(0, react_1.useEffect)(function () {
|
|
92
|
-
var el = innerRef.current;
|
|
93
|
-
if (!el)
|
|
94
|
-
return;
|
|
95
|
-
function handleResize() {
|
|
96
|
-
var width = ((el === null || el === void 0 ? void 0 : el.getBoundingClientRect()) || { width: 0 }).width;
|
|
97
|
-
setWidth(width);
|
|
98
|
-
}
|
|
99
|
-
var resizeObserver = new resize_observer_polyfill_1.default(handleResize);
|
|
100
|
-
resizeObserver.observe(el);
|
|
101
|
-
return function () { return resizeObserver.disconnect(); };
|
|
102
|
-
}, []);
|
|
103
|
-
// this key is used to re-render the list when the dependencies array changes
|
|
104
|
-
var key = (0, react_1.useMemo)(function () { return short_uuid_1.default.generate(); }, [itemSize, hiddenSizingEl, width]);
|
|
105
|
-
// while there is no hidden sizing element, hide the list element
|
|
106
|
-
var style = hiddenSizingEl
|
|
107
|
-
? {}
|
|
108
|
-
: {
|
|
109
|
-
visibility: 'hidden',
|
|
110
|
-
};
|
|
111
|
-
return {
|
|
112
|
-
innerRef: innerRef,
|
|
113
|
-
itemSize: itemSize,
|
|
114
|
-
itemCount: items.length,
|
|
115
|
-
key: key,
|
|
116
|
-
style: style,
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
exports.default = useCellMeasurer;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ColumnInstance } from 'react-table';
|
|
5
|
-
import { SimpleMap } from '../../../types/Internal.types';
|
|
6
|
-
interface Props<D extends object> {
|
|
7
|
-
allColumns: ColumnInstance<D>[];
|
|
8
|
-
columnNameById: SimpleMap<string>;
|
|
9
|
-
}
|
|
10
|
-
export default function ViewColumnTool<D extends object>({ allColumns, columnNameById }: Props<D>): jsx.JSX.Element;
|
|
11
|
-
export {};
|