@gridsuite/commons-ui 0.46.0 → 0.48.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/README.md +0 -17
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +10 -0
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +147 -0
- package/dist/components/AuthenticationRouter/index.d.ts +1 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +18 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.js +110 -0
- package/dist/components/CardErrorBoundary/index.d.ts +1 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +22 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +254 -0
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +16 -0
- package/dist/components/ElementSearchDialog/element-search-dialog.js +139 -0
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +16 -0
- package/dist/components/ElementSearchDialog/equipment-item.js +77 -0
- package/dist/components/ElementSearchDialog/index.d.ts +2 -0
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +11 -0
- package/dist/components/ElementSearchDialog/tag-renderer.js +34 -0
- package/dist/components/FlatParameters/FlatParameters.d.ts +10 -0
- package/dist/components/FlatParameters/FlatParameters.js +411 -0
- package/dist/components/FlatParameters/index.d.ts +1 -0
- package/dist/components/Login/Login.d.ts +5 -0
- package/dist/components/Login/Login.js +78 -0
- package/dist/components/Login/Logout.d.ts +5 -0
- package/dist/components/Login/Logout.js +69 -0
- package/dist/components/Login/index.d.ts +1 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +4 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +127 -0
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +104 -0
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +548 -0
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +131 -0
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +790 -0
- package/dist/components/MuiVirtualizedTable/index.d.ts +2 -0
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +10 -0
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +87 -0
- package/dist/components/MultipleSelectionDialog/index.d.ts +1 -0
- package/dist/components/OverflowableText/index.d.ts +1 -0
- package/dist/components/OverflowableText/overflowable-text.d.ts +2 -0
- package/dist/components/OverflowableText/overflowable-text.js +87 -0
- package/dist/components/ReportViewer/filter-button.d.ts +1 -0
- package/dist/components/ReportViewer/filter-button.js +64 -0
- package/dist/components/ReportViewer/index.d.ts +1 -0
- package/dist/components/ReportViewer/log-report-item.d.ts +68 -0
- package/dist/components/ReportViewer/log-report-item.js +95 -0
- package/dist/components/ReportViewer/log-report.d.ts +21 -0
- package/dist/components/ReportViewer/log-report.js +49 -0
- package/dist/components/ReportViewer/log-table.d.ts +8 -0
- package/dist/components/ReportViewer/log-table.js +131 -0
- package/dist/components/ReportViewer/multi-select-list.d.ts +1 -0
- package/dist/components/ReportViewer/multi-select-list.js +40 -0
- package/dist/components/ReportViewer/report-item.d.ts +13 -0
- package/dist/components/ReportViewer/report-item.js +112 -0
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +2 -0
- package/dist/components/ReportViewer/report-tree-view-context.js +8 -0
- package/dist/components/ReportViewer/report-viewer.d.ts +4 -0
- package/dist/components/ReportViewer/report-viewer.js +158 -0
- package/dist/components/ReportViewerDialog/index.d.ts +1 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +1 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.js +61 -0
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +5 -0
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +13 -0
- package/dist/components/SignInCallbackHandler/index.d.ts +1 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +5 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.js +16 -0
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +1 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.js +28 -0
- package/dist/components/SnackbarProvider/index.d.ts +1 -0
- package/dist/components/TopBar/AboutDialog.d.ts +24 -0
- package/dist/components/TopBar/AboutDialog.js +467 -0
- package/dist/components/TopBar/GridLogo.d.ts +34 -0
- package/dist/components/TopBar/GridLogo.js +71 -0
- package/dist/components/TopBar/TopBar.d.ts +53 -0
- package/dist/components/TopBar/TopBar.js +679 -0
- package/dist/components/TopBar/index.d.ts +3 -0
- package/dist/components/TreeViewFinder/TreeViewFinder.d.ts +57 -0
- package/dist/components/TreeViewFinder/TreeViewFinder.js +288 -0
- package/dist/components/TreeViewFinder/index.d.ts +1 -0
- package/dist/components/react-hook-form/autocomplete-input.d.ts +30 -0
- package/dist/components/react-hook-form/autocomplete-input.js +96 -0
- package/dist/components/react-hook-form/booleans/boolean-input.d.ts +16 -0
- package/dist/components/react-hook-form/booleans/boolean-input.js +49 -0
- package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +14 -0
- package/dist/components/react-hook-form/booleans/checkbox-input.js +24 -0
- package/dist/components/react-hook-form/booleans/switch-input.d.ts +14 -0
- package/dist/components/react-hook-form/booleans/switch-input.js +24 -0
- package/dist/components/react-hook-form/directory-items-input.d.ts +28 -0
- package/dist/components/react-hook-form/directory-items-input.js +185 -0
- package/dist/components/react-hook-form/error-management/error-input.d.ts +5 -0
- package/dist/components/react-hook-form/error-management/error-input.js +42 -0
- package/dist/components/react-hook-form/error-management/field-error-alert.d.ts +4 -0
- package/dist/components/react-hook-form/error-management/field-error-alert.js +9 -0
- package/dist/components/react-hook-form/error-management/mid-form-error.d.ts +4 -0
- package/dist/components/react-hook-form/error-management/mid-form-error.js +20 -0
- package/dist/components/react-hook-form/numbers/float-input.d.ts +18 -0
- package/dist/components/react-hook-form/numbers/float-input.js +51 -0
- package/dist/components/react-hook-form/numbers/integer-input.d.ts +18 -0
- package/dist/components/react-hook-form/numbers/integer-input.js +36 -0
- package/dist/components/react-hook-form/numbers/utils.d.ts +2 -0
- package/dist/components/react-hook-form/numbers/utils.js +10 -0
- package/dist/components/react-hook-form/radio-input.d.ts +18 -0
- package/dist/components/react-hook-form/radio-input.js +44 -0
- package/{es/components/MultipleSelectionDialog/index.js → dist/components/react-hook-form/raw-read-only-input.d.ts} +3 -2
- package/dist/components/react-hook-form/raw-read-only-input.js +10 -0
- package/dist/components/react-hook-form/select-input.d.ts +17 -0
- package/dist/components/react-hook-form/select-input.js +31 -0
- package/dist/components/react-hook-form/slider-input.d.ts +21 -0
- package/dist/components/react-hook-form/slider-input.js +43 -0
- package/dist/components/react-hook-form/text-input.d.ts +33 -0
- package/dist/components/react-hook-form/text-input.js +94 -0
- package/dist/components/react-hook-form/utils/cancel-button.d.ts +10 -0
- package/dist/components/react-hook-form/utils/cancel-button.js +16 -0
- package/dist/components/react-hook-form/utils/field-label.d.ts +6 -0
- package/dist/components/react-hook-form/utils/field-label.js +12 -0
- package/dist/components/react-hook-form/utils/functions.d.ts +11 -0
- package/dist/components/react-hook-form/utils/functions.js +41 -0
- package/dist/components/react-hook-form/utils/submit-button.d.ts +10 -0
- package/dist/components/react-hook-form/utils/submit-button.js +23 -0
- package/dist/components/react-hook-form/utils/text-field-with-adornment.d.ts +12 -0
- package/dist/components/react-hook-form/utils/text-field-with-adornment.js +96 -0
- package/{es/components/translations/report-viewer-fr.js → dist/components/translations/card-error-boundary-en.d.ts} +5 -6
- package/dist/components/translations/card-error-boundary-en.js +8 -0
- package/dist/components/translations/card-error-boundary-fr.d.ts +12 -0
- package/dist/components/translations/card-error-boundary-fr.js +8 -0
- package/dist/components/translations/common-button-en.d.ts +5 -0
- package/dist/components/translations/common-button-en.js +7 -0
- package/dist/components/translations/common-button-fr.d.ts +5 -0
- package/dist/components/translations/common-button-fr.js +7 -0
- package/{es/components/translations/element-search-en.js → dist/components/translations/element-search-en.d.ts} +4 -5
- package/dist/components/translations/element-search-en.js +7 -0
- package/dist/components/translations/element-search-fr.d.ts +11 -0
- package/dist/components/translations/element-search-fr.js +7 -0
- package/dist/components/translations/equipment-search-en.d.ts +25 -0
- package/dist/components/translations/equipment-search-en.js +21 -0
- package/dist/components/translations/equipment-search-fr.d.ts +25 -0
- package/dist/components/translations/equipment-search-fr.js +21 -0
- package/{es/components/translations/flat-parameters-en.js → dist/components/translations/flat-parameters-en.d.ts} +5 -6
- package/dist/components/translations/flat-parameters-en.js +8 -0
- package/{es/components/translations/common-button-en.js → dist/components/translations/flat-parameters-fr.d.ts} +5 -5
- package/dist/components/translations/flat-parameters-fr.js +8 -0
- package/dist/components/translations/login-en.d.ts +18 -0
- package/dist/components/translations/login-en.js +14 -0
- package/dist/components/translations/login-fr.d.ts +18 -0
- package/dist/components/translations/login-fr.js +14 -0
- package/{es/components/translations/flat-parameters-fr.js → dist/components/translations/multiple-selection-dialog-en.d.ts} +5 -6
- package/dist/components/translations/multiple-selection-dialog-en.js +8 -0
- package/{es/components/translations/common-button-fr.js → dist/components/translations/multiple-selection-dialog-fr.d.ts} +5 -5
- package/dist/components/translations/multiple-selection-dialog-fr.js +8 -0
- package/{es/components/translations/report-viewer-en.js → dist/components/translations/report-viewer-en.d.ts} +5 -6
- package/dist/components/translations/report-viewer-en.js +8 -0
- package/{es/components/translations/element-search-fr.js → dist/components/translations/report-viewer-fr.d.ts} +5 -5
- package/dist/components/translations/report-viewer-fr.js +8 -0
- package/{es/components/translations/table-en.js → dist/components/translations/table-en.d.ts} +3 -4
- package/dist/components/translations/table-en.js +6 -0
- package/{es/components/translations/table-fr.js → dist/components/translations/table-fr.d.ts} +3 -4
- package/dist/components/translations/table-fr.js +6 -0
- package/dist/components/translations/top-bar-en.d.ts +31 -0
- package/dist/components/translations/top-bar-en.js +27 -0
- package/dist/components/translations/top-bar-fr.d.ts +31 -0
- package/dist/components/translations/top-bar-fr.js +27 -0
- package/dist/components/translations/treeview-finder-en.d.ts +16 -0
- package/dist/components/translations/treeview-finder-en.js +12 -0
- package/dist/components/translations/treeview-finder-fr.d.ts +16 -0
- package/dist/components/translations/treeview-finder-fr.js +12 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useDebounce.js +17 -0
- package/{es/components/ElementSearchDialog/index.js → dist/hooks/useIntlRef.d.ts} +2 -2
- package/dist/hooks/useIntlRef.js +13 -0
- package/dist/hooks/useSnackMessage.d.ts +5 -0
- package/dist/hooks/useSnackMessage.js +81 -0
- package/dist/index.d.ts +234 -0
- package/dist/index.js +158 -0
- package/dist/utils/AuthService.d.ts +9 -0
- package/dist/utils/AuthService.js +336 -0
- package/dist/utils/ElementType.d.ts +13 -0
- package/dist/utils/ElementType.js +42 -0
- package/dist/utils/EquipmentType.d.ts +136 -0
- package/dist/utils/EquipmentType.js +132 -0
- package/dist/utils/UserManagerMock.d.ts +34 -0
- package/dist/utils/UserManagerMock.js +85 -0
- package/dist/utils/actions.d.ts +50 -0
- package/dist/utils/actions.js +71 -0
- package/{es/components/CardErrorBoundary/index.js → dist/utils/algos.d.ts} +1 -1
- package/dist/utils/algos.js +24 -0
- package/dist/utils/styles.d.ts +5 -0
- package/dist/utils/styles.js +13 -0
- package/package.json +36 -21
- package/es/components/AuthenticationRouter/AuthenticationRouter.js +0 -102
- package/es/components/AuthenticationRouter/index.js +0 -7
- package/es/components/CardErrorBoundary/card-error-boundary.js +0 -138
- package/es/components/ElementSearchDialog/element-search-dialog.js +0 -153
- package/es/components/ElementSearchDialog/equipment-item.js +0 -63
- package/es/components/ElementSearchDialog/tag-renderer.js +0 -29
- package/es/components/FlatParameters/FlatParameters.js +0 -448
- package/es/components/FlatParameters/index.js +0 -8
- package/es/components/Login/Login.js +0 -79
- package/es/components/Login/Logout.js +0 -78
- package/es/components/Login/index.js +0 -7
- package/es/components/MuiVirtualizedTable/ColumnHeader.js +0 -125
- package/es/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +0 -619
- package/es/components/MuiVirtualizedTable/MuiVirtualizedTable.js +0 -780
- package/es/components/MuiVirtualizedTable/index.js +0 -9
- package/es/components/MultipleSelectionDialog/MultipleSelectionDialog.js +0 -95
- package/es/components/OverflowableText/index.js +0 -7
- package/es/components/OverflowableText/overflowable-text.js +0 -81
- package/es/components/ReportViewer/filter-button.js +0 -77
- package/es/components/ReportViewer/index.js +0 -7
- package/es/components/ReportViewer/log-report-item.js +0 -97
- package/es/components/ReportViewer/log-report.js +0 -63
- package/es/components/ReportViewer/log-table.js +0 -130
- package/es/components/ReportViewer/multi-select-list.js +0 -56
- package/es/components/ReportViewer/report-item.js +0 -131
- package/es/components/ReportViewer/report-tree-view-context.js +0 -13
- package/es/components/ReportViewer/report-viewer.js +0 -167
- package/es/components/ReportViewerDialog/index.js +0 -7
- package/es/components/ReportViewerDialog/report-viewer-dialog.js +0 -67
- package/es/components/SignInCallbackHandler/SignInCallbackHandler.js +0 -19
- package/es/components/SignInCallbackHandler/index.js +0 -7
- package/es/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.js +0 -19
- package/es/components/SilentRenewCallbackHandler/index.js +0 -7
- package/es/components/SnackbarProvider/SnackbarProvider.js +0 -39
- package/es/components/SnackbarProvider/index.js +0 -7
- package/es/components/TopBar/AboutDialog.js +0 -456
- package/es/components/TopBar/GridLogo.js +0 -73
- package/es/components/TopBar/TopBar.js +0 -487
- package/es/components/TopBar/index.js +0 -9
- package/es/components/TreeViewFinder/TreeViewFinder.js +0 -341
- package/es/components/TreeViewFinder/index.js +0 -7
- package/es/components/images/powsybl_logo.svg +0 -35
- package/es/components/react-hook-form/autocomplete-input.js +0 -110
- package/es/components/react-hook-form/booleans/boolean-input.js +0 -56
- package/es/components/react-hook-form/booleans/checkbox-input.js +0 -28
- package/es/components/react-hook-form/booleans/switch-input.js +0 -28
- package/es/components/react-hook-form/error-management/error-input.js +0 -50
- package/es/components/react-hook-form/error-management/field-error-alert.js +0 -22
- package/es/components/react-hook-form/error-management/mid-form-error.js +0 -25
- package/es/components/react-hook-form/numbers/float-input.js +0 -105
- package/es/components/react-hook-form/numbers/integer-input.js +0 -35
- package/es/components/react-hook-form/numbers/utils.js +0 -6
- package/es/components/react-hook-form/radio-input.js +0 -55
- package/es/components/react-hook-form/select-input.js +0 -40
- package/es/components/react-hook-form/slider-input.js +0 -48
- package/es/components/react-hook-form/text-input.js +0 -100
- package/es/components/react-hook-form/utils/cancel-button.js +0 -28
- package/es/components/react-hook-form/utils/field-label.js +0 -15
- package/es/components/react-hook-form/utils/functions.js +0 -42
- package/es/components/react-hook-form/utils/submit-button.js +0 -29
- package/es/components/react-hook-form/utils/text-field-with-adornment.js +0 -92
- package/es/components/translations/card-error-boundary-en.js +0 -13
- package/es/components/translations/card-error-boundary-fr.js +0 -13
- package/es/components/translations/equipment-search-en.js +0 -26
- package/es/components/translations/equipment-search-fr.js +0 -26
- package/es/components/translations/inputs-en.js +0 -25
- package/es/components/translations/inputs-fr.js +0 -25
- package/es/components/translations/login-en.js +0 -19
- package/es/components/translations/login-fr.js +0 -19
- package/es/components/translations/multiple-selection-dialog-en.js +0 -13
- package/es/components/translations/multiple-selection-dialog-fr.js +0 -13
- package/es/components/translations/top-bar-en.js +0 -32
- package/es/components/translations/top-bar-fr.js +0 -32
- package/es/components/translations/treeview-finder-en.js +0 -17
- package/es/components/translations/treeview-finder-fr.js +0 -17
- package/es/hooks/useDebounce.js +0 -26
- package/es/hooks/useIntlRef.js +0 -22
- package/es/hooks/useSnackMessage.js +0 -81
- package/es/index.js +0 -71
- package/es/utils/AuthService.js +0 -312
- package/es/utils/ElementType.js +0 -53
- package/es/utils/EquipmentType.js +0 -133
- package/es/utils/UserManagerMock.js +0 -81
- package/es/utils/actions.js +0 -65
- package/es/utils/algos.js +0 -29
- package/es/utils/styles.js +0 -35
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useRef } from "react";
|
|
3
|
+
import { ArrowUpward, ArrowDownward, FilterAltOutlined } from "@mui/icons-material";
|
|
4
|
+
import { styled } from "@mui/system";
|
|
5
|
+
import { Box } from "@mui/material";
|
|
6
|
+
import { mergeSx } from "../../utils/styles.js";
|
|
7
|
+
const styles = {
|
|
8
|
+
label: {
|
|
9
|
+
fontWeight: "bold",
|
|
10
|
+
fontSize: "0.875rem"
|
|
11
|
+
// to mimic TableCellRoot 'binding'
|
|
12
|
+
},
|
|
13
|
+
divFlex: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "row",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
height: "100%"
|
|
18
|
+
},
|
|
19
|
+
divNum: {
|
|
20
|
+
flexDirection: "row-reverse",
|
|
21
|
+
textAlign: "right"
|
|
22
|
+
},
|
|
23
|
+
sortDiv: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexDirection: "column",
|
|
26
|
+
alignItems: "center"
|
|
27
|
+
},
|
|
28
|
+
sortButton: {
|
|
29
|
+
fill: "currentcolor"
|
|
30
|
+
},
|
|
31
|
+
filterButton: {
|
|
32
|
+
stroke: "currentcolor"
|
|
33
|
+
},
|
|
34
|
+
filterTooLossy: (theme) => ({
|
|
35
|
+
stroke: theme.palette.secondary.main
|
|
36
|
+
}),
|
|
37
|
+
transparent: {
|
|
38
|
+
opacity: 0
|
|
39
|
+
},
|
|
40
|
+
hovered: {
|
|
41
|
+
opacity: 0.5
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const SortButton = (props) => {
|
|
45
|
+
const sortRank = Math.abs(props.signedRank);
|
|
46
|
+
const visibilityStyle = (!props.signedRank || void 0) && (props.headerHovered ? styles.hovered : styles.transparent);
|
|
47
|
+
return /* @__PURE__ */ jsxs(Box, { sx: styles.sortDiv, onClick: props.onClick, children: [
|
|
48
|
+
props.signedRank >= 0 ? /* @__PURE__ */ jsx(ArrowUpward, { sx: visibilityStyle }) : /* @__PURE__ */ jsx(ArrowDownward, { sx: visibilityStyle }),
|
|
49
|
+
sortRank > 1 && !props.hovered && /* @__PURE__ */ jsx("sub", { children: sortRank })
|
|
50
|
+
] });
|
|
51
|
+
};
|
|
52
|
+
const FilterButton = (props) => {
|
|
53
|
+
const visibilityStyle = !props.filterLevel && (props.headerHovered ? styles.hovered : styles.transparent);
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
FilterAltOutlined,
|
|
56
|
+
{
|
|
57
|
+
onClick: props.onClick,
|
|
58
|
+
sx: mergeSx(
|
|
59
|
+
styles.filterButton,
|
|
60
|
+
props.filterLevel > 1 && styles.filterTooLossy,
|
|
61
|
+
visibilityStyle
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
const ColumnHeader = React.forwardRef((props, ref) => {
|
|
67
|
+
const {
|
|
68
|
+
className,
|
|
69
|
+
label,
|
|
70
|
+
numeric,
|
|
71
|
+
sortSignedRank,
|
|
72
|
+
filterLevel,
|
|
73
|
+
onSortClick,
|
|
74
|
+
onFilterClick,
|
|
75
|
+
onContextMenu,
|
|
76
|
+
style
|
|
77
|
+
} = props;
|
|
78
|
+
const [hovered, setHovered] = React.useState();
|
|
79
|
+
const onHover = React.useCallback((evt) => {
|
|
80
|
+
setHovered(evt.type === "mouseenter");
|
|
81
|
+
}, []);
|
|
82
|
+
const topmostDiv = useRef();
|
|
83
|
+
const handleFilterClick = React.useMemo(() => {
|
|
84
|
+
if (!onFilterClick) {
|
|
85
|
+
return void 0;
|
|
86
|
+
}
|
|
87
|
+
return (evt) => {
|
|
88
|
+
onFilterClick(evt, topmostDiv.current);
|
|
89
|
+
};
|
|
90
|
+
}, [onFilterClick]);
|
|
91
|
+
return /* @__PURE__ */ jsxs(
|
|
92
|
+
Box,
|
|
93
|
+
{
|
|
94
|
+
ref: topmostDiv,
|
|
95
|
+
onMouseEnter: onHover,
|
|
96
|
+
onMouseLeave: onHover,
|
|
97
|
+
sx: mergeSx(styles.divFlex, numeric && styles.divNum),
|
|
98
|
+
className,
|
|
99
|
+
style,
|
|
100
|
+
onContextMenu,
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsx(Box, { ref, sx: styles.label, children: label }),
|
|
103
|
+
onSortClick && /* @__PURE__ */ jsx(
|
|
104
|
+
SortButton,
|
|
105
|
+
{
|
|
106
|
+
headerHovered: hovered,
|
|
107
|
+
onClick: onSortClick,
|
|
108
|
+
signedRank: sortSignedRank
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
handleFilterClick && /* @__PURE__ */ jsx(
|
|
112
|
+
FilterButton,
|
|
113
|
+
{
|
|
114
|
+
headerHovered: hovered,
|
|
115
|
+
onClick: handleFilterClick,
|
|
116
|
+
filterLevel
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
const ColumnHeader$1 = styled(ColumnHeader)({});
|
|
124
|
+
export {
|
|
125
|
+
ColumnHeader,
|
|
126
|
+
ColumnHeader$1 as default
|
|
127
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export namespace CHANGE_WAYS {
|
|
2
|
+
const SIMPLE: string;
|
|
3
|
+
const TAIL: string;
|
|
4
|
+
const AMEND: string;
|
|
5
|
+
const REMOVE: string;
|
|
6
|
+
}
|
|
7
|
+
export const noOpHelper: Readonly<{
|
|
8
|
+
debugName: "noOp";
|
|
9
|
+
maintainsStats: false;
|
|
10
|
+
initStat: () => undefined;
|
|
11
|
+
updateStat: (colStat: any, value: any) => void;
|
|
12
|
+
accepts: (value: any, userParams: any, outerParams: any) => true;
|
|
13
|
+
}>;
|
|
14
|
+
export const collectibleHelper: Readonly<{
|
|
15
|
+
debugName: "collectible";
|
|
16
|
+
maintainsStats: true;
|
|
17
|
+
initStat: () => {
|
|
18
|
+
seen: {};
|
|
19
|
+
kept: {};
|
|
20
|
+
};
|
|
21
|
+
updateStat: (colStat: any, cellValue: any, isForKeep: any) => void;
|
|
22
|
+
accepts: (value: any, userParams: any, outerParams: any) => any;
|
|
23
|
+
}>;
|
|
24
|
+
export function getHelper(column: any): Readonly<{
|
|
25
|
+
debugName: "noOp";
|
|
26
|
+
maintainsStats: false;
|
|
27
|
+
initStat: () => undefined;
|
|
28
|
+
updateStat: (colStat: any, value: any) => void;
|
|
29
|
+
accepts: (value: any, userParams: any, outerParams: any) => true;
|
|
30
|
+
}> | Readonly<{
|
|
31
|
+
debugName: "num";
|
|
32
|
+
maintainsStats: true;
|
|
33
|
+
initStat: () => {
|
|
34
|
+
imin: null;
|
|
35
|
+
imax: null;
|
|
36
|
+
};
|
|
37
|
+
updateStat: (colStat: any, value: any) => void;
|
|
38
|
+
accepts: (value: any, userParams: any, outerParams: any) => true;
|
|
39
|
+
}> | Readonly<{
|
|
40
|
+
debugName: "collectible";
|
|
41
|
+
maintainsStats: true;
|
|
42
|
+
initStat: () => {
|
|
43
|
+
seen: {};
|
|
44
|
+
kept: {};
|
|
45
|
+
};
|
|
46
|
+
updateStat: (colStat: any, cellValue: any, isForKeep: any) => void;
|
|
47
|
+
accepts: (value: any, userParams: any, outerParams: any) => any;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* A rows indexer for MuiVirtualizedTable to delegate to an instance of it
|
|
51
|
+
* for filtering, grouping and multi-column sorting via
|
|
52
|
+
* a view index to model index array.
|
|
53
|
+
*/
|
|
54
|
+
export class KeyedColumnsRowIndexer {
|
|
55
|
+
static get CHANGE_WAYS(): {
|
|
56
|
+
SIMPLE: string;
|
|
57
|
+
TAIL: string;
|
|
58
|
+
AMEND: string;
|
|
59
|
+
REMOVE: string;
|
|
60
|
+
};
|
|
61
|
+
constructor(isThreeState?: boolean, singleColumnByDefault?: boolean, delegatorCallback?: null, versionSetter?: null);
|
|
62
|
+
_versionSetter: any;
|
|
63
|
+
version: number;
|
|
64
|
+
filterVersion: number;
|
|
65
|
+
delegatorCallback: any;
|
|
66
|
+
indirectionStatus: string | null;
|
|
67
|
+
isThreeState: boolean;
|
|
68
|
+
singleColumnByDefault: boolean;
|
|
69
|
+
lastUsedRank: number;
|
|
70
|
+
sortingState: any;
|
|
71
|
+
groupingCount: number;
|
|
72
|
+
byColFilter: {} | null;
|
|
73
|
+
byRowFilter: any;
|
|
74
|
+
hasVersionSetter: () => boolean;
|
|
75
|
+
getVersion: () => number;
|
|
76
|
+
_bumpVersion: (isFilter?: boolean) => void;
|
|
77
|
+
updatePreferences: (preferences: any) => false | undefined;
|
|
78
|
+
preFilterRowMapping: (columns: any, rows: any, rowFilter: any) => {
|
|
79
|
+
rowAndOrigIndex: any[][];
|
|
80
|
+
colsStats: {};
|
|
81
|
+
rowsCount: any;
|
|
82
|
+
} | null;
|
|
83
|
+
makeGroupAndSortIndirector: (preFilteredRowPairs: any, columns: any) => any;
|
|
84
|
+
getSortingAsKeyAndCodedRank: () => any;
|
|
85
|
+
updateSortingFromUser: (colKey: any, change_way: any) => boolean;
|
|
86
|
+
codedRankByColumnIndex: (columns: any) => number[] | null;
|
|
87
|
+
columnSortingSignedRank: (colKey: any) => number;
|
|
88
|
+
highestCodedColumn: (columns: any) => number;
|
|
89
|
+
_getColFilterParams: (colKey: any, isForUser: any) => any;
|
|
90
|
+
_setColFilterParams: (colKey: any, params: any, isForUser: any) => boolean;
|
|
91
|
+
getColFilterOuterParams: (colKey: any) => any;
|
|
92
|
+
setColFilterOuterParams: (colKey: any, outerParams: any) => boolean;
|
|
93
|
+
getColFilterUserParams: (colKey: any) => any;
|
|
94
|
+
setColFilterUserParams: (colKey: any, params: any) => boolean;
|
|
95
|
+
getUserFiltering: () => {};
|
|
96
|
+
updateRowFiltering: (rowFilterFunc: any) => void;
|
|
97
|
+
}
|
|
98
|
+
export namespace forTesting {
|
|
99
|
+
export { codedColumnsFromKeyAndDirection };
|
|
100
|
+
export { makeCompositeComparatorFromCodedColumns };
|
|
101
|
+
}
|
|
102
|
+
declare function codedColumnsFromKeyAndDirection(keyAndDirections: any, columns: any): number[] | null;
|
|
103
|
+
declare function makeCompositeComparatorFromCodedColumns(codedColumns: any, columns: any, rowExtractor: any): (row_a_i: any, row_b_i: any) => number;
|
|
104
|
+
export {};
|