@monolith-forensics/monolith-ui 1.8.1-dev.4 → 1.9.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/Button/Button.js +58 -9
- package/dist/Calendar/Calendar.d.ts +2 -7
- package/dist/Calendar/Calendar.js +49 -226
- package/dist/Calendar/CalendarStyles.d.ts +2 -6
- package/dist/Calendar/CalendarStyles.js +33 -153
- package/dist/Calendar/calendarHelpers.d.ts +2 -6
- package/dist/Calendar/calendarHelpers.js +5 -13
- package/dist/CheckBox/CheckBox.js +19 -36
- package/dist/DateInput/DateInput.js +143 -198
- package/dist/DropDownMenu/DropDownMenu.js +15 -25
- package/dist/DropDownMenu/components/MenuComponent.js +2 -8
- package/dist/DropDownMenu/components/MenuItem.d.ts +0 -2
- package/dist/DropDownMenu/components/MenuItem.js +21 -25
- package/dist/DropDownMenu/components/MenuItemList.d.ts +0 -3
- package/dist/DropDownMenu/components/MenuItemList.js +86 -192
- package/dist/DropDownMenu/components/StyledContent.js +2 -1
- package/dist/DropDownMenu/components/StyledFloatContainer.js +1 -1
- package/dist/DropDownMenu/types.d.ts +0 -3
- package/dist/FieldLabel/FieldLabel.js +12 -4
- package/dist/FileInputField/FileInputField.js +23 -4
- package/dist/FileViewer/viewers/ImageViewer.js +18 -75
- package/dist/FormSection/FormSection.js +25 -5
- package/dist/IconButton/IconButton.js +16 -2
- package/dist/Input/Input.js +56 -7
- package/dist/MonolithUIProvider/MonolithUIProvider.d.ts +0 -1
- package/dist/Pill/Pill.js +79 -8
- package/dist/Popover/Popover.context.d.ts +1 -2
- package/dist/Popover/Popover.js +2 -5
- package/dist/Popover/Popover.styles.d.ts +6 -1
- package/dist/Popover/Popover.styles.js +28 -11
- package/dist/Popover/Popover.transitions.d.ts +2 -4
- package/dist/Popover/Popover.transitions.js +49 -23
- package/dist/Popover/PopoverDropdown.js +8 -6
- package/dist/Popover/PopoverTarget.js +3 -6
- package/dist/QueryFilter/DefaultOperators.d.ts +76 -0
- package/dist/QueryFilter/DefaultOperators.js +21 -0
- package/dist/QueryFilter/QueryFilter.d.ts +1 -1
- package/dist/QueryFilter/QueryFilter.js +303 -3
- package/dist/QueryFilter/index.d.ts +2 -3
- package/dist/QueryFilter/index.js +2 -3
- package/dist/QueryFilter/{QueryFilter.types.d.ts → types.d.ts} +2 -11
- package/dist/QueryFilter/useQueryFilter.d.ts +1 -1
- package/dist/QueryFilter/useQueryFilter.js +19 -23
- package/dist/RichTextEditor/Extensions/getTiptapExtensions.js +15 -5
- package/dist/RichTextEditor/Plugins/UploadImagesPlugin.d.ts +0 -15
- package/dist/RichTextEditor/Plugins/UploadImagesPlugin.js +51 -115
- package/dist/RichTextEditor/Plugins/index.d.ts +0 -1
- package/dist/RichTextEditor/Plugins/index.js +0 -1
- package/dist/RichTextEditor/RichTextEditor.d.ts +2 -3
- package/dist/RichTextEditor/RichTextEditor.js +35 -309
- package/dist/RichTextEditor/Toolbar/Toolbar.js +2 -14
- package/dist/SegmentedControl/SegmentedControl.utils.d.ts +2 -2
- package/dist/SegmentedControl/SegmentedControl.utils.js +30 -3
- package/dist/SelectBox/SelectBox.js +5 -5
- package/dist/SelectBox/select-box.styled-components.d.ts +1 -4
- package/dist/SelectBox/select-box.styled-components.js +48 -11
- package/dist/SelectBox/types.d.ts +0 -1
- package/dist/Switch/Switch.d.ts +2 -2
- package/dist/Switch/Switch.js +83 -18
- package/dist/Table/ColumnResizer.d.ts +9 -6
- package/dist/Table/ColumnResizer.js +10 -30
- package/dist/Table/StateStorage.d.ts +0 -4
- package/dist/Table/StateStorage.js +0 -13
- package/dist/Table/Table.js +12 -160
- package/dist/Table/TableComponents.d.ts +0 -10
- package/dist/Table/TableComponents.js +10 -71
- package/dist/Table/TableDefaults.d.ts +0 -7
- package/dist/Table/TableDefaults.js +0 -7
- package/dist/Table/TableHeader.js +16 -31
- package/dist/Table/TableMenu/TableMenu.js +1 -1
- package/dist/Table/TableProvider.js +75 -354
- package/dist/Table/TableRow.js +16 -28
- package/dist/Table/Utils/index.d.ts +1 -0
- package/dist/Table/Utils/index.js +1 -0
- package/dist/Table/Utils/resizeHandler.d.ts +3 -0
- package/dist/Table/Utils/resizeHandler.js +84 -0
- package/dist/Table/types.d.ts +19 -70
- package/dist/Tabs/Tab.js +0 -8
- package/dist/TagBox/TagBox.d.ts +1 -1
- package/dist/TagBox/TagBox.js +208 -50
- package/dist/TagBox/types.d.ts +13 -1
- package/dist/TextArea/TextArea.js +23 -9
- package/dist/TextInput/TextInput.js +6 -12
- package/dist/Utilities/parseTimestamp.js +6 -11
- package/dist/core/ArrowButton.d.ts +0 -2
- package/dist/core/ArrowButton.js +3 -7
- package/dist/core/ClearButton.d.ts +0 -2
- package/dist/core/ClearButton.js +3 -7
- package/dist/core/controlSizes.d.ts +0 -26
- package/dist/core/controlSizes.js +0 -156
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -2
- package/dist/theme/variants.js +0 -2
- package/package.json +18 -26
- package/dist/Charts/BarChart/BarChart.d.ts +0 -5
- package/dist/Charts/BarChart/BarChart.js +0 -549
- package/dist/Charts/BarChart/BarChart.lib.d.ts +0 -31
- package/dist/Charts/BarChart/BarChart.lib.js +0 -136
- package/dist/Charts/BarChart/BarChart.styled.d.ts +0 -51
- package/dist/Charts/BarChart/BarChart.styled.js +0 -115
- package/dist/Charts/BarChart/BarChart.types.d.ts +0 -171
- package/dist/Charts/BarChart/index.d.ts +0 -3
- package/dist/Charts/BarChart/index.js +0 -2
- package/dist/Charts/ChartPrimitives/ChartExportControl.d.ts +0 -11
- package/dist/Charts/ChartPrimitives/ChartExportControl.js +0 -29
- package/dist/Charts/ChartPrimitives/chartActions.styled.d.ts +0 -1
- package/dist/Charts/ChartPrimitives/chartActions.styled.js +0 -8
- package/dist/Charts/ChartPrimitives/chartLegend.styled.d.ts +0 -12
- package/dist/Charts/ChartPrimitives/chartLegend.styled.js +0 -52
- package/dist/Charts/ChartPrimitives/chartTooltip.styled.d.ts +0 -19
- package/dist/Charts/ChartPrimitives/chartTooltip.styled.js +0 -61
- package/dist/Charts/ChartPrimitives/index.d.ts +0 -4
- package/dist/Charts/ChartPrimitives/index.js +0 -4
- package/dist/Charts/ChartUtils/chartColors.d.ts +0 -8
- package/dist/Charts/ChartUtils/chartColors.js +0 -65
- package/dist/Charts/ChartUtils/chartExport.d.ts +0 -47
- package/dist/Charts/ChartUtils/chartExport.js +0 -311
- package/dist/Charts/ChartUtils/chartMath.d.ts +0 -3
- package/dist/Charts/ChartUtils/chartMath.js +0 -3
- package/dist/Charts/ChartUtils/index.d.ts +0 -3
- package/dist/Charts/ChartUtils/index.js +0 -3
- package/dist/Charts/HeatMap/HeatMap.d.ts +0 -5
- package/dist/Charts/HeatMap/HeatMap.js +0 -212
- package/dist/Charts/HeatMap/HeatMap.lib.d.ts +0 -30
- package/dist/Charts/HeatMap/HeatMap.lib.js +0 -115
- package/dist/Charts/HeatMap/HeatMap.styled.d.ts +0 -37
- package/dist/Charts/HeatMap/HeatMap.styled.js +0 -91
- package/dist/Charts/HeatMap/HeatMap.types.d.ts +0 -80
- package/dist/Charts/HeatMap/HeatMap.types.js +0 -1
- package/dist/Charts/HeatMap/index.d.ts +0 -3
- package/dist/Charts/HeatMap/index.js +0 -2
- package/dist/Charts/LineChart/LineChart.d.ts +0 -5
- package/dist/Charts/LineChart/LineChart.js +0 -529
- package/dist/Charts/LineChart/LineChart.lib.d.ts +0 -24
- package/dist/Charts/LineChart/LineChart.lib.js +0 -132
- package/dist/Charts/LineChart/LineChart.styled.d.ts +0 -59
- package/dist/Charts/LineChart/LineChart.styled.js +0 -147
- package/dist/Charts/LineChart/LineChart.types.d.ts +0 -193
- package/dist/Charts/LineChart/LineChart.types.js +0 -1
- package/dist/Charts/LineChart/index.d.ts +0 -3
- package/dist/Charts/LineChart/index.js +0 -2
- package/dist/Charts/PieChart/PieChart.d.ts +0 -4
- package/dist/Charts/PieChart/PieChart.js +0 -199
- package/dist/Charts/PieChart/PieChart.lib.d.ts +0 -5
- package/dist/Charts/PieChart/PieChart.lib.js +0 -19
- package/dist/Charts/PieChart/PieChart.styled.d.ts +0 -51
- package/dist/Charts/PieChart/PieChart.styled.js +0 -163
- package/dist/Charts/PieChart/PieChart.types.d.ts +0 -100
- package/dist/Charts/PieChart/PieChart.types.js +0 -1
- package/dist/Charts/PieChart/index.d.ts +0 -2
- package/dist/Charts/PieChart/index.js +0 -1
- package/dist/Charts/index.d.ts +0 -5
- package/dist/Charts/index.js +0 -4
- package/dist/QueryFilter/QueryFilter.constants.d.ts +0 -134
- package/dist/QueryFilter/QueryFilter.constants.js +0 -39
- package/dist/QueryFilter/QueryFilter.lib.d.ts +0 -14
- package/dist/QueryFilter/QueryFilter.lib.js +0 -84
- package/dist/QueryFilter/QueryFilter.styled.d.ts +0 -89
- package/dist/QueryFilter/QueryFilter.styled.js +0 -184
- package/dist/QueryFilter/QueryFilter.types.js +0 -1
- package/dist/QueryFilter/components/MultiSelectEditor.d.ts +0 -7
- package/dist/QueryFilter/components/MultiSelectEditor.js +0 -44
- package/dist/QueryFilter/components/RuleChip.d.ts +0 -8
- package/dist/QueryFilter/components/RuleChip.js +0 -37
- package/dist/QueryFilter/components/Rules.d.ts +0 -11
- package/dist/QueryFilter/components/Rules.js +0 -41
- package/dist/QueryFilter/components/UnavailableRuleChip.d.ts +0 -5
- package/dist/QueryFilter/components/UnavailableRuleChip.js +0 -7
- package/dist/QueryFilter/components/ValueEditor.d.ts +0 -7
- package/dist/QueryFilter/components/ValueEditor.js +0 -45
- package/dist/QueryFilter/components/ValueSelector.d.ts +0 -7
- package/dist/QueryFilter/components/ValueSelector.js +0 -34
- package/dist/QueryFilter/components/index.d.ts +0 -6
- package/dist/QueryFilter/components/index.js +0 -6
- package/dist/RichTextEditor/Plugins/ImageActionsPlugin.d.ts +0 -3
- package/dist/RichTextEditor/Plugins/ImageActionsPlugin.js +0 -241
- package/dist/SuperDatePicker/SuperDatePicker.constants.d.ts +0 -24
- package/dist/SuperDatePicker/SuperDatePicker.constants.js +0 -30
- package/dist/SuperDatePicker/SuperDatePicker.d.ts +0 -3
- package/dist/SuperDatePicker/SuperDatePicker.js +0 -31
- package/dist/SuperDatePicker/SuperDatePicker.lib.d.ts +0 -17
- package/dist/SuperDatePicker/SuperDatePicker.lib.js +0 -206
- package/dist/SuperDatePicker/SuperDatePicker.styled.d.ts +0 -60
- package/dist/SuperDatePicker/SuperDatePicker.styled.js +0 -256
- package/dist/SuperDatePicker/SuperDatePicker.types.d.ts +0 -48
- package/dist/SuperDatePicker/SuperDatePicker.types.js +0 -1
- package/dist/SuperDatePicker/components/CommonPresetGroups.d.ts +0 -7
- package/dist/SuperDatePicker/components/CommonPresetGroups.js +0 -6
- package/dist/SuperDatePicker/components/EndpointCalendarDropdown.d.ts +0 -10
- package/dist/SuperDatePicker/components/EndpointCalendarDropdown.js +0 -9
- package/dist/SuperDatePicker/components/EndpointDateInput.d.ts +0 -16
- package/dist/SuperDatePicker/components/EndpointDateInput.js +0 -26
- package/dist/SuperDatePicker/components/EndpointPopover.d.ts +0 -18
- package/dist/SuperDatePicker/components/EndpointPopover.js +0 -11
- package/dist/SuperDatePicker/components/QuickRangeDropdown.d.ts +0 -14
- package/dist/SuperDatePicker/components/QuickRangeDropdown.js +0 -19
- package/dist/SuperDatePicker/components/QuickRangePopover.d.ts +0 -18
- package/dist/SuperDatePicker/components/QuickRangePopover.js +0 -12
- package/dist/SuperDatePicker/components/index.d.ts +0 -6
- package/dist/SuperDatePicker/components/index.js +0 -6
- package/dist/SuperDatePicker/index.d.ts +0 -3
- package/dist/SuperDatePicker/index.js +0 -3
- package/dist/SuperDatePicker/useSuperDatePicker.d.ts +0 -32
- package/dist/SuperDatePicker/useSuperDatePicker.js +0 -125
- /package/dist/{Charts/BarChart/BarChart.types.js → QueryFilter/types.js} +0 -0
|
@@ -23,11 +23,7 @@ export const Toolbar = styled(({ className, editor, toolbarOptions }) => {
|
|
|
23
23
|
return (_jsx(Button, Object.assign({}, item.options, { children: (_a = item === null || item === void 0 ? void 0 : item.options) === null || _a === void 0 ? void 0 : _a.label }), index));
|
|
24
24
|
}
|
|
25
25
|
else if (item.type === "menu") {
|
|
26
|
-
return (_jsx(DropDownMenu, Object.assign({
|
|
27
|
-
style: {
|
|
28
|
-
width: 135,
|
|
29
|
-
},
|
|
30
|
-
} }, item.options, { children: (_b = item === null || item === void 0 ? void 0 : item.options) === null || _b === void 0 ? void 0 : _b.label }), index));
|
|
26
|
+
return (_jsx(DropDownMenu, Object.assign({}, item.options, { children: (_b = item === null || item === void 0 ? void 0 : item.options) === null || _b === void 0 ? void 0 : _b.label }), index));
|
|
31
27
|
}
|
|
32
28
|
}), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.FONT)) && (_jsx(DropDownMenu, { data: Object.values(Fonts).map((font) => ({
|
|
33
29
|
label: font,
|
|
@@ -35,11 +31,7 @@ export const Toolbar = styled(({ className, editor, toolbarOptions }) => {
|
|
|
35
31
|
onClick: () => {
|
|
36
32
|
setFont(font);
|
|
37
33
|
},
|
|
38
|
-
})), size: "xxs", variant: "outlined", arrow: true,
|
|
39
|
-
style: {
|
|
40
|
-
width: 135,
|
|
41
|
-
},
|
|
42
|
-
}, buttonProps: {
|
|
34
|
+
})), size: "xxs", variant: "outlined", arrow: true, buttonProps: {
|
|
43
35
|
title: "Select Font",
|
|
44
36
|
}, children: (font || Fonts.DEFAULT) })), _jsxs(ControlsGroup, { children: [(controls === null || controls === void 0 ? void 0 : controls.includes(Controls.UNDO)) && _jsx(UndoControl, { editor: editor }), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.REDO)) && _jsx(RedoControl, { editor: editor })] }), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.COLOR)) && (_jsx(DropDownMenu, { data: [
|
|
45
37
|
{
|
|
@@ -68,10 +60,6 @@ export const Toolbar = styled(({ className, editor, toolbarOptions }) => {
|
|
|
68
60
|
borderRadius: "3px",
|
|
69
61
|
} }), item.label] })), size: "xxs", variant: "outlined", arrow: true, buttonProps: {
|
|
70
62
|
title: "Select Color",
|
|
71
|
-
}, dropDownProps: {
|
|
72
|
-
style: {
|
|
73
|
-
width: 100,
|
|
74
|
-
},
|
|
75
63
|
}, children: "Color" })), _jsxs(ControlsGroup, { children: [(controls === null || controls === void 0 ? void 0 : controls.includes(Controls.BOLD)) && _jsx(BoldControl, { editor: editor }), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.ITALIC)) && (_jsx(ItalicControl, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.UNDERLINE)) && (_jsx(UnderlineControl, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.STRIKE)) && (_jsx(StrikeThroughControl, { editor: editor }))] }), _jsxs(ControlsGroup, { children: [(controls === null || controls === void 0 ? void 0 : controls.includes(Controls.HEADING_1)) && (_jsx(Heading1Control, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.HEADING_2)) && (_jsx(Heading2Control, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.HEADING_3)) && (_jsx(Heading3Control, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.HEADING_4)) && (_jsx(Heading4Control, { editor: editor }))] }), _jsxs(ControlsGroup, { children: [(controls === null || controls === void 0 ? void 0 : controls.includes(Controls.BULLET_LIST)) && (_jsx(BulletListControl, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.ORDERED_LIST)) && (_jsx(OrderedListControl, { editor: editor }))] }), _jsxs(ControlsGroup, { children: [(controls === null || controls === void 0 ? void 0 : controls.includes(Controls.TEXT_ALIGN_LEFT)) && (_jsx(AlignLeftControl, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.TEXT_ALIGN_CENTER)) && (_jsx(AlignCenterControl, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.TEXT_ALIGN_RIGHT)) && (_jsx(AlignRightControl, { editor: editor })), (controls === null || controls === void 0 ? void 0 : controls.includes(Controls.TEXT_ALIGN_JUSTIFIED)) && (_jsx(AlignJustifiedControl, { editor: editor }))] })] }));
|
|
76
64
|
}) `
|
|
77
65
|
display: flex;
|
|
@@ -4,8 +4,8 @@ export declare const resolveActiveColor: (theme: any, activeColor?: string) => {
|
|
|
4
4
|
main: any;
|
|
5
5
|
contrastText: any;
|
|
6
6
|
};
|
|
7
|
-
export declare const getSegmentHeight: (size?: Size) =>
|
|
8
|
-
export declare const getSegmentFontSize: (size?: Size) =>
|
|
7
|
+
export declare const getSegmentHeight: (size?: Size) => 32 | 38 | 22 | 26 | 46 | 56;
|
|
8
|
+
export declare const getSegmentFontSize: (size?: Size) => "11px" | "12px" | "14px" | "16px" | "18px" | "20px";
|
|
9
9
|
export declare const normalizeSegmentedData: (data: SegmentedControlDataItem[]) => NormalizedSegmentedItem[];
|
|
10
10
|
export declare const getFirstEnabledIndex: (data: NormalizedSegmentedItem[]) => number;
|
|
11
11
|
export declare const getNextEnabledIndex: (data: NormalizedSegmentedItem[], startIndex: number, direction: 1 | -1) => number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getControlSizeTokens } from "../core";
|
|
2
1
|
export const resolveActiveColor = (theme, activeColor) => {
|
|
3
2
|
var _a;
|
|
4
3
|
const fallback = {
|
|
@@ -22,10 +21,38 @@ export const resolveActiveColor = (theme, activeColor) => {
|
|
|
22
21
|
};
|
|
23
22
|
};
|
|
24
23
|
export const getSegmentHeight = (size) => {
|
|
25
|
-
|
|
24
|
+
switch (size) {
|
|
25
|
+
case "xxs":
|
|
26
|
+
return 22;
|
|
27
|
+
case "xs":
|
|
28
|
+
return 26;
|
|
29
|
+
case "md":
|
|
30
|
+
return 38;
|
|
31
|
+
case "lg":
|
|
32
|
+
return 46;
|
|
33
|
+
case "xl":
|
|
34
|
+
return 56;
|
|
35
|
+
case "sm":
|
|
36
|
+
default:
|
|
37
|
+
return 32;
|
|
38
|
+
}
|
|
26
39
|
};
|
|
27
40
|
export const getSegmentFontSize = (size) => {
|
|
28
|
-
|
|
41
|
+
switch (size) {
|
|
42
|
+
case "xxs":
|
|
43
|
+
return "11px";
|
|
44
|
+
case "xs":
|
|
45
|
+
return "12px";
|
|
46
|
+
case "md":
|
|
47
|
+
return "16px";
|
|
48
|
+
case "lg":
|
|
49
|
+
return "18px";
|
|
50
|
+
case "xl":
|
|
51
|
+
return "20px";
|
|
52
|
+
case "sm":
|
|
53
|
+
default:
|
|
54
|
+
return "14px";
|
|
55
|
+
}
|
|
29
56
|
};
|
|
30
57
|
export const normalizeSegmentedData = (data) => data.map((item) => {
|
|
31
58
|
var _a;
|
|
@@ -10,7 +10,7 @@ import { StyledInputContainer, StyledInnerItemContainer, EmptyComponent, GroupTi
|
|
|
10
10
|
// Re-export for backward compatibility
|
|
11
11
|
export { StyledInputContainer };
|
|
12
12
|
export const SelectBox = ({ className, data = [], placeholder = "Select...", arrow = true, onChange, onSearch, searchFn, onScroll, loading, defaultValue, value, size = "sm", variant = "outlined", width = "100%", allowCustomValue = false, searchable = false, clearable = false, label, description, required = false, error, openOnFocus = true, renderOption, actionComponent, focused, grouped, OptionTooltip, // Custom tooltip component for search menu items
|
|
13
|
-
DropDownProps = {}, debounceTime = 175, sort = false, disabled = false,
|
|
13
|
+
DropDownProps = {}, debounceTime = 175, sort = false, disabled = false,
|
|
14
14
|
// Enhanced focus control props
|
|
15
15
|
triggerFocus = false, triggerOpen = false, onFocused, onOpened, }) => {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -276,16 +276,16 @@ triggerFocus = false, triggerOpen = false, onFocused, onOpened, }) => {
|
|
|
276
276
|
// ============================================================================
|
|
277
277
|
// Render Helper Functions
|
|
278
278
|
// ============================================================================
|
|
279
|
-
const renderOptionItem = (item, index) => (_jsx(Tooltip, { content: OptionTooltip ? _jsx(OptionTooltip, { data: item.data }) : null, side: "left", children: _jsx(StyledItem, { className: "mfFloatingItem", onClick: (e) => handleItemClick(e, item), "data-selected": (_value === null || _value === void 0 ? void 0 : _value.value) === item.value, "data-disabled": item.disabled,
|
|
279
|
+
const renderOptionItem = (item, index) => (_jsx(Tooltip, { content: OptionTooltip ? _jsx(OptionTooltip, { data: item.data }) : null, side: "left", children: _jsx(StyledItem, { className: "mfFloatingItem", onClick: (e) => handleItemClick(e, item), "data-selected": (_value === null || _value === void 0 ? void 0 : _value.value) === item.value, "data-disabled": item.disabled, size: size, children: (renderOption === null || renderOption === void 0 ? void 0 : renderOption(item)) || _jsx(_Fragment, { children: item === null || item === void 0 ? void 0 : item.label }) }, index) }, index));
|
|
280
280
|
const renderActionButton = () => {
|
|
281
281
|
if (clearable && (_value || !!inputValue)) {
|
|
282
|
-
return (_jsx(ClearButton, {
|
|
282
|
+
return (_jsx(ClearButton, { className: "input-btn", onClick: handleClear, onMouseDown: (e) => {
|
|
283
283
|
e.preventDefault();
|
|
284
284
|
e.stopPropagation();
|
|
285
285
|
} }));
|
|
286
286
|
}
|
|
287
287
|
if (arrow) {
|
|
288
|
-
return (_jsx(ArrowButton, {
|
|
288
|
+
return (_jsx(ArrowButton, { onClick: (e) => {
|
|
289
289
|
e.preventDefault();
|
|
290
290
|
}, onMouseDown: (e) => {
|
|
291
291
|
e.preventDefault();
|
|
@@ -393,7 +393,7 @@ triggerFocus = false, triggerOpen = false, onFocused, onOpened, }) => {
|
|
|
393
393
|
: "",
|
|
394
394
|
}, variant: variant, "data-empty": filteredItems.length === 0 }, DropDownProps, { children: [loading && _jsx(Loader, {}), !loading && actionComponent && (_jsx(ActionMenu, { onClick: () => {
|
|
395
395
|
setIsOpen(false);
|
|
396
|
-
}, children: actionComponent })), !loading && filteredItems.length === 0 && (_jsx(EmptyComponent, {
|
|
396
|
+
}, children: actionComponent })), !loading && filteredItems.length === 0 && (_jsx(EmptyComponent, { children: getEmptyMessage(allowCustomValue, searchValue) })), !loading && (_jsx(StyledInnerItemContainer, { ref: scrollContainerRef, "data-scroll-active": scrollActive, onScroll: onScroll, children: grouped
|
|
397
397
|
? groups.map((group, index) => (_jsxs("div", { children: [_jsx(GroupTitle, { size: size, children: group.label }), group.items.map((item, index) => renderOptionItem(item, index))] }, group.label)))
|
|
398
398
|
: filteredItems.map((item, index) => renderOptionItem(item, index)) }))] })) }) }))] }));
|
|
399
399
|
};
|
|
@@ -4,9 +4,7 @@ export declare const StyledInputContainer: import("styled-components/dist/types"
|
|
|
4
4
|
width?: string | number | null;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const StyledInnerItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
-
export declare const EmptyComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
8
|
-
size?: Size;
|
|
9
|
-
}>> & string;
|
|
7
|
+
export declare const EmptyComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
8
|
interface GroupTitleProps {
|
|
11
9
|
className?: string;
|
|
12
10
|
children?: ReactNode;
|
|
@@ -16,7 +14,6 @@ export declare const GroupTitle: import("styled-components/dist/types").IStyledC
|
|
|
16
14
|
export declare const ActionMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
15
|
export declare const StyledItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
16
|
size: Size;
|
|
19
|
-
$dynamicHeight?: boolean;
|
|
20
17
|
}>> & string;
|
|
21
18
|
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
22
19
|
export {};
|
|
@@ -11,7 +11,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import styled from "styled-components";
|
|
14
|
-
import { getControlSizeTokens } from "../core";
|
|
15
14
|
export const StyledInputContainer = styled.div `
|
|
16
15
|
font-family: ${({ theme }) => theme.typography.fontFamily};
|
|
17
16
|
|
|
@@ -59,7 +58,7 @@ export const EmptyComponent = styled.div `
|
|
|
59
58
|
align-items: center;
|
|
60
59
|
justify-content: center;
|
|
61
60
|
padding: 5px;
|
|
62
|
-
font-size:
|
|
61
|
+
font-size: 12px;
|
|
63
62
|
font-weight: 500;
|
|
64
63
|
color: ${(props) => props.theme.palette.text.secondary};
|
|
65
64
|
`;
|
|
@@ -75,8 +74,17 @@ export const GroupTitle = styled((_a) => {
|
|
|
75
74
|
|
|
76
75
|
color: ${(props) => props.theme.palette.text.secondary};
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
padding: ${({ size }) => size === "xs"
|
|
78
|
+
? "2px 8px"
|
|
79
|
+
: size === "sm"
|
|
80
|
+
? "4px 10px"
|
|
81
|
+
: size === "md"
|
|
82
|
+
? "4px 12px"
|
|
83
|
+
: size === "lg"
|
|
84
|
+
? "5px 14px"
|
|
85
|
+
: size === "xl"
|
|
86
|
+
? "6px 16px"
|
|
87
|
+
: "2px 8px"};
|
|
80
88
|
|
|
81
89
|
.group-label {
|
|
82
90
|
white-space: nowrap;
|
|
@@ -87,7 +95,17 @@ export const GroupTitle = styled((_a) => {
|
|
|
87
95
|
|
|
88
96
|
font-weight: 500;
|
|
89
97
|
|
|
90
|
-
font-size: ${({ size
|
|
98
|
+
font-size: ${({ size }) => size === "xs"
|
|
99
|
+
? "11px"
|
|
100
|
+
: size === "sm"
|
|
101
|
+
? "13px"
|
|
102
|
+
: size === "md"
|
|
103
|
+
? "15px"
|
|
104
|
+
: size === "lg"
|
|
105
|
+
? "17px"
|
|
106
|
+
: size === "xl"
|
|
107
|
+
? "19px"
|
|
108
|
+
: "11px"};
|
|
91
109
|
}
|
|
92
110
|
|
|
93
111
|
.group-line {
|
|
@@ -99,11 +117,10 @@ export const ActionMenu = styled.div ``;
|
|
|
99
117
|
export const StyledItem = styled.div `
|
|
100
118
|
color: ${(props) => props.theme.palette.text.primary};
|
|
101
119
|
border-radius: 3px;
|
|
102
|
-
box-sizing: border-box;
|
|
103
120
|
display: flex;
|
|
104
121
|
align-items: center;
|
|
105
|
-
min-height:
|
|
106
|
-
|
|
122
|
+
min-height: 25px;
|
|
123
|
+
padding: 7px 10px;
|
|
107
124
|
position: relative;
|
|
108
125
|
user-select: none;
|
|
109
126
|
outline: none;
|
|
@@ -112,9 +129,29 @@ export const StyledItem = styled.div `
|
|
|
112
129
|
|
|
113
130
|
font-family: ${({ theme }) => theme.typography.fontFamily};
|
|
114
131
|
|
|
115
|
-
font-size: ${({ size }) =>
|
|
116
|
-
|
|
117
|
-
|
|
132
|
+
font-size: ${({ size }) => size === "xs"
|
|
133
|
+
? "11px"
|
|
134
|
+
: size === "sm"
|
|
135
|
+
? "13px"
|
|
136
|
+
: size === "md"
|
|
137
|
+
? "15px"
|
|
138
|
+
: size === "lg"
|
|
139
|
+
? "17px"
|
|
140
|
+
: size === "xl"
|
|
141
|
+
? "19px"
|
|
142
|
+
: "11px"};
|
|
143
|
+
|
|
144
|
+
padding: ${({ size }) => size === "xs"
|
|
145
|
+
? "2px 8px"
|
|
146
|
+
: size === "sm"
|
|
147
|
+
? "4px 10px"
|
|
148
|
+
: size === "md"
|
|
149
|
+
? "4px 12px"
|
|
150
|
+
: size === "lg"
|
|
151
|
+
? "5px 14px"
|
|
152
|
+
: size === "xl"
|
|
153
|
+
? "6px 16px"
|
|
154
|
+
: "2px 8px"};
|
|
118
155
|
|
|
119
156
|
&:hover {
|
|
120
157
|
background-color: ${(props) => props.theme.palette.action.hover};
|
package/dist/Switch/Switch.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { CSSProperties, ReactNode } from "react";
|
|
|
2
2
|
import { Size } from "../core";
|
|
3
3
|
export type SwitchProps = {
|
|
4
4
|
className?: string;
|
|
5
|
-
onChange: (
|
|
6
|
-
size?: Size
|
|
5
|
+
onChange: (e: any) => void;
|
|
6
|
+
size?: Exclude<Size, "xxs">;
|
|
7
7
|
label?: string;
|
|
8
8
|
labelPosition?: "left" | "right";
|
|
9
9
|
description?: ReactNode;
|
package/dist/Switch/Switch.js
CHANGED
|
@@ -13,22 +13,46 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import styled from "styled-components";
|
|
14
14
|
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
15
15
|
import { FieldLabel } from "..";
|
|
16
|
-
import { DEFAULT_CONTROL_SIZE, getControlSizeTokens } from "../core";
|
|
17
16
|
import { Themes } from "../theme";
|
|
18
|
-
const getThumbTranslation = (size = DEFAULT_CONTROL_SIZE) => {
|
|
19
|
-
const { switchTrackWidth, switchThumbSize, switchPadding } = getControlSizeTokens(size);
|
|
20
|
-
return `${switchTrackWidth - switchThumbSize - switchPadding * 2}px`;
|
|
21
|
-
};
|
|
22
17
|
const StyledRoot = styled(RadixSwitch.Root) `
|
|
23
18
|
all: unset;
|
|
24
19
|
cursor: pointer;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
|
|
21
|
+
height: ${({ size }) => size === "xs"
|
|
22
|
+
? "10px"
|
|
23
|
+
: size === "sm"
|
|
24
|
+
? "16px"
|
|
25
|
+
: size === "md"
|
|
26
|
+
? "22px"
|
|
27
|
+
: size === "lg"
|
|
28
|
+
? "28px"
|
|
29
|
+
: size === "xl"
|
|
30
|
+
? "32px"
|
|
31
|
+
: "16px"};
|
|
32
|
+
|
|
33
|
+
min-width: ${({ size }) => size === "xs"
|
|
34
|
+
? "26px"
|
|
35
|
+
: size === "sm"
|
|
36
|
+
? "35px"
|
|
37
|
+
: size === "md"
|
|
38
|
+
? "41px"
|
|
39
|
+
: size === "lg"
|
|
40
|
+
? "53px"
|
|
41
|
+
: size === "xl"
|
|
42
|
+
? "70px"
|
|
43
|
+
: "26px"};
|
|
44
|
+
|
|
45
|
+
width: ${({ size }) => size === "xs"
|
|
46
|
+
? "26px"
|
|
47
|
+
: size === "sm"
|
|
48
|
+
? "35px"
|
|
49
|
+
: size === "md"
|
|
50
|
+
? "41px"
|
|
51
|
+
: size === "lg"
|
|
52
|
+
? "53px"
|
|
53
|
+
: size === "xl"
|
|
54
|
+
? "70px"
|
|
55
|
+
: "26px"};
|
|
32
56
|
|
|
33
57
|
background-color: ${({ theme }) => theme.name === Themes.DARK ? "#383838" : "#e3e3e3"};
|
|
34
58
|
transition: background-color 100ms;
|
|
@@ -36,7 +60,17 @@ const StyledRoot = styled(RadixSwitch.Root) `
|
|
|
36
60
|
border: 1px solid
|
|
37
61
|
${({ theme }) => theme.name === Themes.DARK ? theme.palette.input.border : "#e3e3e3"};
|
|
38
62
|
position: relative;
|
|
39
|
-
padding: ${({ size
|
|
63
|
+
padding: ${({ size }) => size === "xs"
|
|
64
|
+
? "2px"
|
|
65
|
+
: size === "sm"
|
|
66
|
+
? "2px"
|
|
67
|
+
: size === "md"
|
|
68
|
+
? "2px 9px 2px 3px"
|
|
69
|
+
: size === "lg"
|
|
70
|
+
? "2px 9px 2px 3px"
|
|
71
|
+
: size === "xl"
|
|
72
|
+
? "2px 4px"
|
|
73
|
+
: "2px"};
|
|
40
74
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
41
75
|
|
|
42
76
|
&[data-state="checked"] {
|
|
@@ -51,8 +85,29 @@ const StyledRoot = styled(RadixSwitch.Root) `
|
|
|
51
85
|
`;
|
|
52
86
|
const StyledThumb = styled(RadixSwitch.Thumb) `
|
|
53
87
|
display: block;
|
|
54
|
-
width: ${({ size
|
|
55
|
-
|
|
88
|
+
width: ${({ size }) => size === "xs"
|
|
89
|
+
? "9px"
|
|
90
|
+
: size === "sm"
|
|
91
|
+
? "14px"
|
|
92
|
+
: size === "md"
|
|
93
|
+
? "22px"
|
|
94
|
+
: size === "lg"
|
|
95
|
+
? "28px"
|
|
96
|
+
: size === "xl"
|
|
97
|
+
? "28px"
|
|
98
|
+
: "14px"};
|
|
99
|
+
|
|
100
|
+
height: ${({ size }) => size === "xs"
|
|
101
|
+
? "9px"
|
|
102
|
+
: size === "sm"
|
|
103
|
+
? "14px"
|
|
104
|
+
: size === "md"
|
|
105
|
+
? "22px"
|
|
106
|
+
: size === "lg"
|
|
107
|
+
? "28px"
|
|
108
|
+
: size === "xl"
|
|
109
|
+
? "28px"
|
|
110
|
+
: "14px"};
|
|
56
111
|
|
|
57
112
|
background-color: white;
|
|
58
113
|
border: none;
|
|
@@ -62,15 +117,25 @@ const StyledThumb = styled(RadixSwitch.Thumb) `
|
|
|
62
117
|
will-change: transform;
|
|
63
118
|
|
|
64
119
|
&[data-state="checked"] {
|
|
65
|
-
transform: ${({ size
|
|
120
|
+
transform: ${({ size }) => size === "xs"
|
|
121
|
+
? "translateX(17px)"
|
|
122
|
+
: size === "sm"
|
|
123
|
+
? "translateX(20px)"
|
|
124
|
+
: size === "md"
|
|
125
|
+
? "translateX(26px)"
|
|
126
|
+
: size === "lg"
|
|
127
|
+
? "translateX(32px)"
|
|
128
|
+
: size === "xl"
|
|
129
|
+
? "translateX(42px)"
|
|
130
|
+
: "translateX(17px)"};
|
|
66
131
|
}
|
|
67
132
|
`;
|
|
68
133
|
export const Switch = styled((_a) => {
|
|
69
|
-
var { className, onChange, size =
|
|
134
|
+
var { className, onChange, size = "xs", label, labelPosition = "right", description, error, required, disabled = false, defaultValue, value, style = {} } = _a, other = __rest(_a, ["className", "onChange", "size", "label", "labelPosition", "description", "error", "required", "disabled", "defaultValue", "value", "style"]);
|
|
70
135
|
return (_jsxs("div", { className: className, children: [label && labelPosition === "left" && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, style: { margin: 0 }, children: label })), _jsx(StyledRoot, Object.assign({ size: size, className: "SwitchRoot", onCheckedChange: onChange, defaultChecked: defaultValue, checked: value, disabled: disabled, style: style }, other, { children: _jsx(StyledThumb, { size: size, className: "SwitchThumb" }) })), label && labelPosition === "right" && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, style: { margin: 0 }, children: label }))] }));
|
|
71
136
|
}) `
|
|
72
137
|
display: flex;
|
|
73
138
|
flex-direction: row;
|
|
74
139
|
align-items: center;
|
|
75
|
-
gap:
|
|
140
|
+
gap: 10px;
|
|
76
141
|
`;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ColumnState } from "./types";
|
|
2
|
-
declare const ColumnResizer: ({
|
|
1
|
+
import { ColumnState, onResizeFinishedProps } from "./types";
|
|
2
|
+
declare const ColumnResizer: ({ onResize, onResizeFinished, column, showOnHover, }: {
|
|
3
3
|
className?: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
onResize?: (e: {
|
|
5
|
+
columns: {
|
|
6
|
+
dataField: string;
|
|
7
|
+
width: number;
|
|
8
|
+
}[];
|
|
9
|
+
}) => void;
|
|
10
|
+
onResizeFinished?: (e: onResizeFinishedProps) => void;
|
|
7
11
|
column: ColumnState;
|
|
8
|
-
currentWidth: number;
|
|
9
12
|
showOnHover?: boolean;
|
|
10
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export default ColumnResizer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import styled from "styled-components";
|
|
3
|
+
import { resizeHandler } from "./Utils";
|
|
3
4
|
const StyledContainer = styled.div `
|
|
4
5
|
position: absolute;
|
|
5
6
|
right: 0px;
|
|
@@ -23,43 +24,22 @@ const StyledContainer = styled.div `
|
|
|
23
24
|
background: ${(props) => props.theme.palette.primary.main};
|
|
24
25
|
}
|
|
25
26
|
`;
|
|
26
|
-
const ColumnResizer = ({
|
|
27
|
-
const getConstrainedWidth = (width) => {
|
|
28
|
-
const minWidth = column.minWidth;
|
|
29
|
-
const maxWidth = column.maxWidth;
|
|
30
|
-
if (typeof maxWidth === "number") {
|
|
31
|
-
return Math.min(Math.max(width, minWidth), maxWidth);
|
|
32
|
-
}
|
|
33
|
-
return Math.max(width, minWidth);
|
|
34
|
-
};
|
|
27
|
+
const ColumnResizer = ({ onResize = () => { }, onResizeFinished, column, showOnHover = false, }) => {
|
|
35
28
|
return (_jsx(StyledContainer, { className: `resizer col-${column.columnId}`, "data-show-on-hover": showOnHover, onClick: (e) => {
|
|
36
29
|
e.stopPropagation();
|
|
37
30
|
e.nativeEvent.stopImmediatePropagation();
|
|
38
31
|
e.preventDefault();
|
|
39
|
-
},
|
|
32
|
+
}, onMouseDown: (e) => {
|
|
40
33
|
e.stopPropagation();
|
|
41
34
|
e.nativeEvent.stopImmediatePropagation();
|
|
42
35
|
e.preventDefault();
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
const handlePointerUp = (event) => {
|
|
51
|
-
const nextWidth = getConstrainedWidth(startWidth + event.clientX - startX);
|
|
52
|
-
target.classList.remove("isResizing");
|
|
53
|
-
document.removeEventListener("pointermove", handlePointerMove);
|
|
54
|
-
document.removeEventListener("pointerup", handlePointerUp);
|
|
55
|
-
document.removeEventListener("pointercancel", handlePointerUp);
|
|
56
|
-
onResizeEnd === null || onResizeEnd === void 0 ? void 0 : onResizeEnd(nextWidth);
|
|
57
|
-
};
|
|
58
|
-
target.classList.add("isResizing");
|
|
59
|
-
onResizeStart === null || onResizeStart === void 0 ? void 0 : onResizeStart();
|
|
60
|
-
document.addEventListener("pointermove", handlePointerMove);
|
|
61
|
-
document.addEventListener("pointerup", handlePointerUp);
|
|
62
|
-
document.addEventListener("pointercancel", handlePointerUp);
|
|
36
|
+
resizeHandler({
|
|
37
|
+
event: e,
|
|
38
|
+
columnId: column.columnId,
|
|
39
|
+
columnProps: column,
|
|
40
|
+
onResize: onResize,
|
|
41
|
+
onResizeFinished: onResizeFinished,
|
|
42
|
+
});
|
|
63
43
|
} }));
|
|
64
44
|
};
|
|
65
45
|
export default ColumnResizer;
|
|
@@ -11,8 +11,6 @@ type GetSearchStateFn = (key: string) => string;
|
|
|
11
11
|
type SetSearchStateFn = (key: string, value: string) => void;
|
|
12
12
|
type GetFilterStateFn = (key: string) => Query | undefined;
|
|
13
13
|
type SetFilterStateFn = (key: string, value?: Query | null) => void;
|
|
14
|
-
type GetExpandedKeysFn = (key: string) => string[] | undefined;
|
|
15
|
-
type SetExpandedKeysFn = (key: string, value: string[]) => void;
|
|
16
14
|
declare const StateStorage: {
|
|
17
15
|
getTableState: GetTableStateFn;
|
|
18
16
|
getColumnState: GetColumnStateFn;
|
|
@@ -25,7 +23,5 @@ declare const StateStorage: {
|
|
|
25
23
|
setSearchState: SetSearchStateFn;
|
|
26
24
|
getFilterState: GetFilterStateFn;
|
|
27
25
|
setFilterState: SetFilterStateFn;
|
|
28
|
-
getExpandedKeys: GetExpandedKeysFn;
|
|
29
|
-
setExpandedKeys: SetExpandedKeysFn;
|
|
30
26
|
};
|
|
31
27
|
export default StateStorage;
|
|
@@ -82,17 +82,6 @@ const setFilterState = (key, value) => {
|
|
|
82
82
|
const newState = Object.assign(Object.assign({}, previousState), { filterState: value });
|
|
83
83
|
set(key, newState);
|
|
84
84
|
};
|
|
85
|
-
const getExpandedKeys = (key) => {
|
|
86
|
-
const data = getTableState(key);
|
|
87
|
-
return data.expandedKeys;
|
|
88
|
-
};
|
|
89
|
-
const setExpandedKeys = (key, value) => {
|
|
90
|
-
// get previous state
|
|
91
|
-
const previousState = getTableState(key);
|
|
92
|
-
// merge previous state with new state
|
|
93
|
-
const newState = Object.assign(Object.assign({}, previousState), { expandedKeys: value });
|
|
94
|
-
set(key, newState);
|
|
95
|
-
};
|
|
96
85
|
const StateStorage = {
|
|
97
86
|
getTableState,
|
|
98
87
|
getColumnState,
|
|
@@ -105,7 +94,5 @@ const StateStorage = {
|
|
|
105
94
|
setSearchState,
|
|
106
95
|
getFilterState,
|
|
107
96
|
setFilterState,
|
|
108
|
-
getExpandedKeys,
|
|
109
|
-
setExpandedKeys,
|
|
110
97
|
};
|
|
111
98
|
export default StateStorage;
|