@redsift/table 11.5.0 → 11.6.0-muiv5-alpha.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/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/_commonjsHelpers.js.map +1 -0
- package/_virtual/_rollupPluginBabelHelpers.js +93 -0
- package/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index.js.map +1 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index2.js.map +1 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/index3.js.map +1 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/jsx-runtime.js.map +1 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development.js.map +1 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.development2.js.map +1 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min.js.map +1 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-is.production.min2.js.map +1 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/_virtual/react-jsx-runtime.production.min.js +4 -0
- package/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/components/BaseComponents/BaseButton.d.ts +5 -0
- package/components/BaseComponents/BaseButton.js +41 -0
- package/components/BaseComponents/BaseButton.js.map +1 -0
- package/components/BaseComponents/BaseCheckbox.d.ts +5 -0
- package/components/BaseComponents/BaseCheckbox.js +24 -0
- package/components/BaseComponents/BaseCheckbox.js.map +1 -0
- package/components/BaseComponents/BaseIcon.d.ts +7 -0
- package/components/BaseComponents/BaseIcon.js +33 -0
- package/components/BaseComponents/BaseIcon.js.map +1 -0
- package/components/BaseComponents/BasePopper.d.ts +5 -0
- package/components/BaseComponents/BasePopper.js +13 -0
- package/components/BaseComponents/BasePopper.js.map +1 -0
- package/components/BaseComponents/BaseTextField.d.ts +5 -0
- package/components/BaseComponents/BaseTextField.js +26 -0
- package/components/BaseComponents/BaseTextField.js.map +1 -0
- package/components/DataGrid/DataGrid.d.ts +6 -0
- package/components/DataGrid/DataGrid.js +340 -0
- package/components/DataGrid/DataGrid.js.map +1 -0
- package/components/DataGrid/styles.js +74 -0
- package/components/DataGrid/styles.js.map +1 -0
- package/components/DataGrid/types.d.ts +36 -0
- package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.d.ts +15 -0
- package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js +183 -0
- package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js.map +1 -0
- package/components/GridToolbarFilterSemanticField/styles.js +20 -0
- package/components/GridToolbarFilterSemanticField/styles.js.map +1 -0
- package/components/GridToolbarFilterSemanticField/types.d.ts +39 -0
- package/components/Pagination/ControlledPagination.d.ts +21 -0
- package/components/Pagination/ControlledPagination.js +74 -0
- package/components/Pagination/ControlledPagination.js.map +1 -0
- package/components/Pagination/ServerSideControlledPagination.d.ts +23 -0
- package/components/Pagination/ServerSideControlledPagination.js +102 -0
- package/components/Pagination/ServerSideControlledPagination.js.map +1 -0
- package/components/StatefulDataGrid/StatefulDataGrid.d.ts +6 -0
- package/components/StatefulDataGrid/StatefulDataGrid.js +373 -0
- package/components/StatefulDataGrid/StatefulDataGrid.js.map +1 -0
- package/components/StatefulDataGrid/types.d.ts +16 -0
- package/components/TextCell/TextCell.d.ts +9 -0
- package/components/TextCell/TextCell.js +48 -0
- package/components/TextCell/TextCell.js.map +1 -0
- package/components/TextCell/styles.js +22 -0
- package/components/TextCell/styles.js.map +1 -0
- package/components/TextCell/types.d.ts +25 -0
- package/components/Toolbar/Toolbar.d.ts +20 -0
- package/components/Toolbar/Toolbar.js +72 -0
- package/components/Toolbar/Toolbar.js.map +1 -0
- package/components/Toolbar/styles.js +17 -0
- package/components/Toolbar/styles.js.map +1 -0
- package/components/Toolbar/types.d.ts +40 -0
- package/components/ToolbarWrapper/ToolbarWrapper.d.ts +25 -0
- package/components/ToolbarWrapper/ToolbarWrapper.js +60 -0
- package/components/ToolbarWrapper/ToolbarWrapper.js.map +1 -0
- package/hooks/useControlledDatagridState.js +109 -0
- package/hooks/useControlledDatagridState.js.map +1 -0
- package/hooks/useFetchState.js +34 -0
- package/hooks/useFetchState.js.map +1 -0
- package/hooks/useStatefulTable.d.ts +12 -0
- package/hooks/useStatefulTable.js +182 -0
- package/hooks/useStatefulTable.js.map +1 -0
- package/hooks/useTableStates.js +52 -0
- package/hooks/useTableStates.js.map +1 -0
- package/index.d.ts +40 -629
- package/index.js +36 -28267
- package/index.js.map +1 -1
- package/package.json +6 -6
- package/packages/design-system/src/components/theme/context.js +7 -0
- package/packages/design-system/src/components/theme/context.js.map +1 -0
- package/packages/popovers/src/components/tooltip/Tooltip.js +60 -0
- package/packages/popovers/src/components/tooltip/Tooltip.js.map +1 -0
- package/packages/popovers/src/components/tooltip/context.js +6 -0
- package/packages/popovers/src/components/tooltip/context.js.map +1 -0
- package/packages/popovers/src/components/tooltip/types.js +28 -0
- package/packages/popovers/src/components/tooltip/types.js.map +1 -0
- package/packages/popovers/src/components/tooltip/useTooltip.js +78 -0
- package/packages/popovers/src/components/tooltip/useTooltip.js.map +1 -0
- package/packages/popovers/src/components/tooltip/useTooltipContext.js +13 -0
- package/packages/popovers/src/components/tooltip/useTooltipContext.js.map +1 -0
- package/packages/popovers/src/components/tooltip-content/TooltipContent.js +79 -0
- package/packages/popovers/src/components/tooltip-content/TooltipContent.js.map +1 -0
- package/packages/popovers/src/components/tooltip-content/styles.js +127 -0
- package/packages/popovers/src/components/tooltip-content/styles.js.map +1 -0
- package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js +47 -0
- package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js.map +1 -0
- package/utils/columnTypes/index.d.ts +78 -0
- package/utils/columnTypes/index.js +49 -0
- package/utils/columnTypes/index.js.map +1 -0
- package/utils/columns/detailPanelToggleColDef.d.ts +5 -0
- package/utils/columns/detailPanelToggleColDef.js +8 -0
- package/utils/columns/detailPanelToggleColDef.js.map +1 -0
- package/utils/fields/InputNumberInterval.js +85 -0
- package/utils/fields/InputNumberInterval.js.map +1 -0
- package/utils/gpt.d.ts +3 -0
- package/utils/gpt.js +33 -0
- package/utils/gpt.js.map +1 -0
- package/utils/localStorage.d.ts +17 -0
- package/utils/localStorage.js +59 -0
- package/utils/localStorage.js.map +1 -0
- package/utils/operators/index.d.ts +68 -0
- package/utils/operators/index.js +52 -0
- package/utils/operators/index.js.map +1 -0
- package/utils/operators/numeric/getGridNumericOperators.d.ts +5 -0
- package/utils/operators/numeric/getGridNumericOperators.js +7 -0
- package/utils/operators/numeric/getGridNumericOperators.js.map +1 -0
- package/utils/operators/numeric/isBetween.d.ts +10 -0
- package/utils/operators/numeric/isBetween.js +28 -0
- package/utils/operators/numeric/isBetween.js.map +1 -0
- package/utils/operators/string/doesNotContain.d.ts +10 -0
- package/utils/operators/string/doesNotContain.js +25 -0
- package/utils/operators/string/doesNotContain.js.map +1 -0
- package/utils/operators/string/doesNotEqual.d.ts +10 -0
- package/utils/operators/string/doesNotEqual.js +25 -0
- package/utils/operators/string/doesNotEqual.js.map +1 -0
- package/utils/operators/string/doesNotHave.d.ts +16 -0
- package/utils/operators/string/doesNotHave.js +24 -0
- package/utils/operators/string/doesNotHave.js.map +1 -0
- package/utils/operators/string/getGridStringOperators.d.ts +5 -0
- package/utils/operators/string/getGridStringOperators.js +9 -0
- package/utils/operators/string/getGridStringOperators.js.map +1 -0
- package/utils/operators/string/has.d.ts +16 -0
- package/utils/operators/string/has.js +24 -0
- package/utils/operators/string/has.js.map +1 -0
- package/utils/operators/string/hasOnly.d.ts +16 -0
- package/utils/operators/string/hasOnly.js +24 -0
- package/utils/operators/string/hasOnly.js.map +1 -0
- package/utils/operators/string/is.d.ts +16 -0
- package/utils/operators/string/is.js +26 -0
- package/utils/operators/string/is.js.map +1 -0
- package/utils/operators/string/isNot.d.ts +16 -0
- package/utils/operators/string/isNot.js +26 -0
- package/utils/operators/string/isNot.js.map +1 -0
- package/utils/operators/string-array/containsAnyOf.d.ts +16 -0
- package/utils/operators/string-array/containsAnyOf.js +56 -0
- package/utils/operators/string-array/containsAnyOf.js.map +1 -0
- package/utils/operators/string-array/doesNotHaveAnyOf.js +26 -0
- package/utils/operators/string-array/doesNotHaveAnyOf.js.map +1 -0
- package/utils/operators/string-array/endsWithAnyOf.d.ts +10 -0
- package/utils/operators/string-array/endsWithAnyOf.js +31 -0
- package/utils/operators/string-array/endsWithAnyOf.js.map +1 -0
- package/utils/operators/string-array/getGridStringArrayOperators.d.ts +7 -0
- package/utils/operators/string-array/getGridStringArrayOperators.js +19 -0
- package/utils/operators/string-array/getGridStringArrayOperators.js.map +1 -0
- package/utils/operators/string-array/hasAnyOf.d.ts +16 -0
- package/utils/operators/string-array/hasAnyOf.js +28 -0
- package/utils/operators/string-array/hasAnyOf.js.map +1 -0
- package/utils/operators/string-array/isAnyOf.d.ts +16 -0
- package/utils/operators/string-array/isAnyOf.js +32 -0
- package/utils/operators/string-array/isAnyOf.js.map +1 -0
- package/utils/operators/string-array/isNotAnyOf.d.ts +10 -0
- package/utils/operators/string-array/isNotAnyOf.js +28 -0
- package/utils/operators/string-array/isNotAnyOf.js.map +1 -0
- package/utils/operators/string-array/startsWithAnyOf.d.ts +10 -0
- package/utils/operators/string-array/startsWithAnyOf.js +31 -0
- package/utils/operators/string-array/startsWithAnyOf.js.map +1 -0
- package/utils/urlLocalStorageSync.d.ts +73 -0
- package/utils/urlLocalStorageSync.js +756 -0
- package/utils/urlLocalStorageSync.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -1,629 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
|
|
43
|
-
type: string;
|
|
44
|
-
filterOperators: ({
|
|
45
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
46
|
-
label: string;
|
|
47
|
-
value: string;
|
|
48
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
49
|
-
} | {
|
|
50
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
51
|
-
label: string;
|
|
52
|
-
value: string;
|
|
53
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
54
|
-
})[];
|
|
55
|
-
};
|
|
56
|
-
declare const getRsMultipleSelectColumnType: () => {
|
|
57
|
-
type: string;
|
|
58
|
-
filterOperators: ({
|
|
59
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
60
|
-
label: string;
|
|
61
|
-
value: string;
|
|
62
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
63
|
-
} | {
|
|
64
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
65
|
-
label: string;
|
|
66
|
-
value: string;
|
|
67
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
68
|
-
})[];
|
|
69
|
-
};
|
|
70
|
-
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
|
|
71
|
-
type: string;
|
|
72
|
-
filterOperators: ({
|
|
73
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
74
|
-
label: string;
|
|
75
|
-
value: string;
|
|
76
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
77
|
-
} | {
|
|
78
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
79
|
-
label: string;
|
|
80
|
-
value: string;
|
|
81
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
82
|
-
})[];
|
|
83
|
-
};
|
|
84
|
-
declare const customColumnTypes: Partial<GridColumnTypesRecord>;
|
|
85
|
-
|
|
86
|
-
declare const IS_BETWEEN: {
|
|
87
|
-
label: string;
|
|
88
|
-
value: string;
|
|
89
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams<any, any>) => boolean) | null;
|
|
90
|
-
InputComponent: (props: any) => JSX.Element;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
94
|
-
|
|
95
|
-
declare const DOES_NOT_CONTAIN: {
|
|
96
|
-
label: string;
|
|
97
|
-
value: string;
|
|
98
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
99
|
-
InputComponent: typeof GridFilterInputValue;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
declare const DOES_NOT_EQUAL: {
|
|
103
|
-
label: string;
|
|
104
|
-
value: string;
|
|
105
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
106
|
-
InputComponent: typeof GridFilterInputValue;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
declare const DOES_NOT_HAVE: {
|
|
110
|
-
label: string;
|
|
111
|
-
value: string;
|
|
112
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
113
|
-
InputComponent: typeof GridFilterInputValue;
|
|
114
|
-
};
|
|
115
|
-
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
116
|
-
InputComponent: typeof GridFilterInputSingleSelect;
|
|
117
|
-
label: string;
|
|
118
|
-
value: string;
|
|
119
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
declare const HAS: {
|
|
123
|
-
label: string;
|
|
124
|
-
value: string;
|
|
125
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
126
|
-
InputComponent: typeof GridFilterInputValue;
|
|
127
|
-
};
|
|
128
|
-
declare const HAS_WITH_SELECT: {
|
|
129
|
-
InputComponent: typeof GridFilterInputSingleSelect;
|
|
130
|
-
label: string;
|
|
131
|
-
value: string;
|
|
132
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
declare const HAS_ONLY: {
|
|
136
|
-
label: string;
|
|
137
|
-
value: string;
|
|
138
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
139
|
-
InputComponent: typeof GridFilterInputValue;
|
|
140
|
-
};
|
|
141
|
-
declare const HAS_ONLY_WITH_SELECT: {
|
|
142
|
-
InputComponent: typeof GridFilterInputSingleSelect;
|
|
143
|
-
label: string;
|
|
144
|
-
value: string;
|
|
145
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
declare const IS: {
|
|
149
|
-
label: string;
|
|
150
|
-
value: string;
|
|
151
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
152
|
-
InputComponent: typeof GridFilterInputValue;
|
|
153
|
-
};
|
|
154
|
-
declare const IS_WITH_SELECT: {
|
|
155
|
-
InputComponent: typeof GridFilterInputSingleSelect;
|
|
156
|
-
label: string;
|
|
157
|
-
value: string;
|
|
158
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
declare const IS_NOT: {
|
|
162
|
-
label: string;
|
|
163
|
-
value: string;
|
|
164
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
165
|
-
InputComponent: typeof GridFilterInputValue;
|
|
166
|
-
};
|
|
167
|
-
declare const IS_NOT_WITH_SELECT: {
|
|
168
|
-
InputComponent: typeof GridFilterInputSingleSelect;
|
|
169
|
-
label: string;
|
|
170
|
-
value: string;
|
|
171
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
175
|
-
|
|
176
|
-
declare const CONTAINS_ANY_OF: {
|
|
177
|
-
label: string;
|
|
178
|
-
value: string;
|
|
179
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
180
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
181
|
-
};
|
|
182
|
-
declare const CONTAINS_ANY_OF_I: {
|
|
183
|
-
label: string;
|
|
184
|
-
value: string;
|
|
185
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
186
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
declare const ENDS_WITH_ANY_OF: {
|
|
190
|
-
label: string;
|
|
191
|
-
value: string;
|
|
192
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
193
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
declare const IS_ANY_OF: {
|
|
197
|
-
label: string;
|
|
198
|
-
value: string;
|
|
199
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
200
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
201
|
-
};
|
|
202
|
-
declare const IS_ANY_OF_WITH_SELECT: {
|
|
203
|
-
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
204
|
-
label: string;
|
|
205
|
-
value: string;
|
|
206
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
declare const HAS_ANY_OF: {
|
|
210
|
-
label: string;
|
|
211
|
-
value: string;
|
|
212
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
213
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
214
|
-
};
|
|
215
|
-
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
216
|
-
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
217
|
-
label: string;
|
|
218
|
-
value: string;
|
|
219
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
declare const IS_NOT_ANY_OF: {
|
|
223
|
-
label: string;
|
|
224
|
-
value: string;
|
|
225
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
226
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
227
|
-
};
|
|
228
|
-
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
229
|
-
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
230
|
-
label: string;
|
|
231
|
-
value: string;
|
|
232
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
declare const STARTS_WITH_ANY_OF: {
|
|
236
|
-
label: string;
|
|
237
|
-
value: string;
|
|
238
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
239
|
-
InputComponent: typeof GridFilterInputMultipleValue;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
243
|
-
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
|
|
244
|
-
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
|
|
245
|
-
|
|
246
|
-
declare const operatorList: {
|
|
247
|
-
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
248
|
-
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
249
|
-
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
250
|
-
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
251
|
-
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any>[];
|
|
252
|
-
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
253
|
-
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
254
|
-
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
255
|
-
rsSingleSelect: ({
|
|
256
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
257
|
-
label: string;
|
|
258
|
-
value: string;
|
|
259
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
260
|
-
} | {
|
|
261
|
-
label: string;
|
|
262
|
-
value: string;
|
|
263
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
264
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
|
|
265
|
-
} | {
|
|
266
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
267
|
-
label: string;
|
|
268
|
-
value: string;
|
|
269
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
270
|
-
})[];
|
|
271
|
-
rsSingleSelectWithShortOperatorList: ({
|
|
272
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
273
|
-
label: string;
|
|
274
|
-
value: string;
|
|
275
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
276
|
-
} | {
|
|
277
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
278
|
-
label: string;
|
|
279
|
-
value: string;
|
|
280
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
281
|
-
})[];
|
|
282
|
-
rsMultipleSelect: ({
|
|
283
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
284
|
-
label: string;
|
|
285
|
-
value: string;
|
|
286
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
287
|
-
} | {
|
|
288
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
289
|
-
label: string;
|
|
290
|
-
value: string;
|
|
291
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
292
|
-
})[];
|
|
293
|
-
rsMultipleSelectWithShortOperatorList: ({
|
|
294
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
295
|
-
label: string;
|
|
296
|
-
value: string;
|
|
297
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
298
|
-
} | {
|
|
299
|
-
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
300
|
-
label: string;
|
|
301
|
-
value: string;
|
|
302
|
-
getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, unknown, unknown, _mui_x_data_grid_pro.GridTreeNode>) => boolean) | null;
|
|
303
|
-
})[];
|
|
304
|
-
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
308
|
-
|
|
309
|
-
declare const PAGINATION_MODEL_KEY = "paginationModel";
|
|
310
|
-
declare const FILTER_MODEL_KEY = "filterModel";
|
|
311
|
-
declare const SORT_MODEL_KEY = "sortModel";
|
|
312
|
-
declare const VISIBILITY_MODEL_KEY = "visibilityModel";
|
|
313
|
-
declare const PINNED_COLUMNS = "pinnedColumns";
|
|
314
|
-
declare const DIMENSION_MODEL_KEY = "dimension";
|
|
315
|
-
declare const FILTER_SEARCH_KEY = "searchModel";
|
|
316
|
-
declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns"];
|
|
317
|
-
type Category = (typeof CATEGORIES)[number];
|
|
318
|
-
declare const buildStorageKey: ({ id, version, category }: {
|
|
319
|
-
id: string;
|
|
320
|
-
version: number;
|
|
321
|
-
category: Category;
|
|
322
|
-
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
|
|
323
|
-
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
324
|
-
|
|
325
|
-
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
326
|
-
/** License key for MUI Datagrid Pro. */
|
|
327
|
-
license?: string;
|
|
328
|
-
/** Height. A default one is set to prevent rendering all rows. */
|
|
329
|
-
height?: string;
|
|
330
|
-
/** Toolbar. A default one is provided but every button from this default Toolbar can be customized and the entire Toolbar can be replaced. */
|
|
331
|
-
toolbar?: ReactNode;
|
|
332
|
-
/** Whether the Toolbar is displayed or not. */
|
|
333
|
-
hideToolbar?: boolean;
|
|
334
|
-
/** Indicates how to display pagination. */
|
|
335
|
-
paginationPlacement?: 'top' | 'bottom' | 'both' | 'none';
|
|
336
|
-
/** Props to forward to the pagination component. */
|
|
337
|
-
paginationProps?: Omit<TablePaginationProps, 'component' | 'count' | 'page' | 'onPageChange' | 'rowsPerPage' | 'onRowsPerPageChange' | 'rowsPerPageOptions' | 'paginationMode'>;
|
|
338
|
-
/** Theme. */
|
|
339
|
-
theme?: Theme;
|
|
340
|
-
}
|
|
341
|
-
type SelectionStatus = {
|
|
342
|
-
type: 'page' | 'table' | 'other' | 'none';
|
|
343
|
-
numberOfSelectedRows: number;
|
|
344
|
-
numberOfSelectedRowsInPage?: number;
|
|
345
|
-
page?: number;
|
|
346
|
-
pageSize?: number;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
type StyledDataGridProps = {
|
|
350
|
-
$height?: string;
|
|
351
|
-
$theme?: DataGridProps['theme'];
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
declare const DataGrid: Comp<DataGridProps, HTMLDivElement>;
|
|
355
|
-
|
|
356
|
-
interface StatefulDataGridProps extends DataGridProps {
|
|
357
|
-
/** Hook returning pathname, search params and a method to update query params. */
|
|
358
|
-
useRouter: () => {
|
|
359
|
-
pathname: string;
|
|
360
|
-
search: string;
|
|
361
|
-
historyReplace: (newSearch: string) => void;
|
|
362
|
-
};
|
|
363
|
-
/** Local Storage version, to upgrade when we want to force a clean out. */
|
|
364
|
-
localStorageVersion?: number;
|
|
365
|
-
/** Previous Local Storage versions to clean out when a new one is released. */
|
|
366
|
-
previousLocalStorageVersions?: number[];
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
declare const StatefulDataGrid: Comp<StatefulDataGridProps, HTMLDivElement>;
|
|
370
|
-
|
|
371
|
-
interface ExtendedGridFilterModel extends GridFilterModel {
|
|
372
|
-
quickFilterValues?: string[];
|
|
373
|
-
}
|
|
374
|
-
interface ExtendedGridPaginationModel extends GridPaginationModel {
|
|
375
|
-
direction?: 'next' | 'back';
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
type OperatorValue = string | string[];
|
|
379
|
-
declare const decodeValue: (value: string) => OperatorValue;
|
|
380
|
-
declare const encodeValue: (value: string | undefined) => string;
|
|
381
|
-
declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
|
|
382
|
-
declare const numberOperatorEncoder: Record<string, string>;
|
|
383
|
-
declare const numberOperatorDecoder: Record<string, string>;
|
|
384
|
-
declare const isOperatorValueValid: (field: string, operator: OperatorValue, columns: DataGridProps['columns']) => boolean;
|
|
385
|
-
declare const isValueValid: (value: OperatorValue, field: string, columns: DataGridProps['columns'], operator: OperatorValue) => boolean;
|
|
386
|
-
/** FILTERS */
|
|
387
|
-
declare const getFilterModelFromString: (searchString: string, columns: DataGridProps['columns']) => ExtendedGridFilterModel | 'invalid';
|
|
388
|
-
declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
|
|
389
|
-
/** SORT */
|
|
390
|
-
declare const getSortingFromString: (searchString: string, columns: DataGridProps['columns']) => GridSortModel | 'invalid';
|
|
391
|
-
declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
|
|
392
|
-
/** PAGINATION */
|
|
393
|
-
declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
|
|
394
|
-
declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
|
|
395
|
-
/** COLUMN VISIBILITY */
|
|
396
|
-
declare const getColumnVisibilityFromString: (searchString: string, columns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
|
|
397
|
-
declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
|
|
398
|
-
declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
|
|
399
|
-
declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
|
|
400
|
-
declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
|
|
401
|
-
type FinalSearchInput = {
|
|
402
|
-
localStorageVersion: number;
|
|
403
|
-
filterModel: GridFilterModel;
|
|
404
|
-
sortModel: GridSortModel;
|
|
405
|
-
paginationModel: ExtendedGridPaginationModel;
|
|
406
|
-
columnsVisibilityModel: GridColumnVisibilityModel;
|
|
407
|
-
pinnedColumnsModel: GridPinnedColumns;
|
|
408
|
-
search: string;
|
|
409
|
-
columns: DataGridProps['columns'];
|
|
410
|
-
};
|
|
411
|
-
declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, columns, }: FinalSearchInput) => URLSearchParams;
|
|
412
|
-
type PinnedColumns = {
|
|
413
|
-
left: string[];
|
|
414
|
-
right: string[];
|
|
415
|
-
};
|
|
416
|
-
type ModelsLocalStorage = {
|
|
417
|
-
localStorageFilters: string;
|
|
418
|
-
setLocalStorageFilters: (search: string) => void;
|
|
419
|
-
localStorageSorting: string;
|
|
420
|
-
setLocalStorageSorting: (search: string) => void;
|
|
421
|
-
localStoragePagination: string;
|
|
422
|
-
setLocalStoragePagination: (search: string) => void;
|
|
423
|
-
localStorageColumnsVisibility: string;
|
|
424
|
-
setLocalStorageColumnsVisibility: (search: string) => void;
|
|
425
|
-
localStoragePinnedColumns: string;
|
|
426
|
-
setLocalStoragePinnedColumns: (search: string) => void;
|
|
427
|
-
};
|
|
428
|
-
type ModelsTable = {
|
|
429
|
-
filterModel: GridFilterModel;
|
|
430
|
-
sortModel: GridSortModel;
|
|
431
|
-
paginationModel: ExtendedGridPaginationModel;
|
|
432
|
-
columnVisibilityModel: GridColumnVisibilityModel;
|
|
433
|
-
pinnedColumnsModel: PinnedColumns;
|
|
434
|
-
};
|
|
435
|
-
/** Return the state of the table given the URL and the local storage state */
|
|
436
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
437
|
-
type DataGridModel = {
|
|
438
|
-
filterModel: GridFilterModel;
|
|
439
|
-
sortModel: GridSortModel;
|
|
440
|
-
paginationModel: ExtendedGridPaginationModel;
|
|
441
|
-
columnsModel: GridColumnVisibilityModel;
|
|
442
|
-
pinnedColumnsModel: GridPinnedColumns;
|
|
443
|
-
};
|
|
444
|
-
declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps['columns']) => void;
|
|
445
|
-
declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
|
|
446
|
-
|
|
447
|
-
declare const BaseButton: React.JSXElementConstructor<any>;
|
|
448
|
-
|
|
449
|
-
declare const BaseCheckbox: React.JSXElementConstructor<any>;
|
|
450
|
-
|
|
451
|
-
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
452
|
-
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
453
|
-
|
|
454
|
-
declare const BasePopper: React.JSXElementConstructor<any>;
|
|
455
|
-
|
|
456
|
-
declare const BaseTextField: React.JSXElementConstructor<any>;
|
|
457
|
-
|
|
458
|
-
interface CompletionResponseItem {
|
|
459
|
-
field: string;
|
|
460
|
-
operator: string;
|
|
461
|
-
value?: string;
|
|
462
|
-
}
|
|
463
|
-
type CompletionResponse = {
|
|
464
|
-
logicOperator: 'and' | 'or';
|
|
465
|
-
items: CompletionResponseItem[];
|
|
466
|
-
};
|
|
467
|
-
interface LocaleText {
|
|
468
|
-
textLabel?: string;
|
|
469
|
-
textPlaceholder?: string;
|
|
470
|
-
buttonAriaLabel?: string;
|
|
471
|
-
buttonText?: string;
|
|
472
|
-
powerText?: string;
|
|
473
|
-
powerTooltipContent?: string;
|
|
474
|
-
errorText?: string;
|
|
475
|
-
}
|
|
476
|
-
interface FilterConfig {
|
|
477
|
-
columns: object[];
|
|
478
|
-
typeOperators: object;
|
|
479
|
-
notes: string;
|
|
480
|
-
openaiApiKey?: string;
|
|
481
|
-
completionFunc?: (nlpFilterConfig: FilterConfig, prompt: string, model: string) => Promise<CompletionResponse>;
|
|
482
|
-
}
|
|
483
|
-
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
484
|
-
nlpFilterConfig: FilterConfig;
|
|
485
|
-
onFilterModelChange: (filterModel: GridFilterModel) => void;
|
|
486
|
-
dateFormat?: string;
|
|
487
|
-
defaultModel?: string;
|
|
488
|
-
defaultFilter?: CompletionResponse;
|
|
489
|
-
disablePower?: boolean;
|
|
490
|
-
localeText?: LocaleText;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
declare const DEFAULT_OPERATORS: {
|
|
494
|
-
string: string[];
|
|
495
|
-
number: string[];
|
|
496
|
-
boolean: string[];
|
|
497
|
-
date: string[];
|
|
498
|
-
};
|
|
499
|
-
/**
|
|
500
|
-
* The GridToolbarFilterSemanticField component.
|
|
501
|
-
*/
|
|
502
|
-
declare const GridToolbarFilterSemanticField: Comp<GridToolbarFilterSemanticFieldProps, HTMLFormElement>;
|
|
503
|
-
|
|
504
|
-
type ControlledPaginationProps = {
|
|
505
|
-
displaySelection?: boolean;
|
|
506
|
-
displayRowsPerPage?: boolean;
|
|
507
|
-
displayPagination?: boolean;
|
|
508
|
-
selectionStatus: SelectionStatus;
|
|
509
|
-
apiRef: MutableRefObject<GridApiPro>;
|
|
510
|
-
paginationModel: GridPaginationModel;
|
|
511
|
-
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
512
|
-
pageSizeOptions?: number[];
|
|
513
|
-
isRowSelectable?: DataGridProps['isRowSelectable'];
|
|
514
|
-
paginationProps?: DataGridProps['paginationProps'];
|
|
515
|
-
};
|
|
516
|
-
declare const ControlledPagination: React.FC<ControlledPaginationProps>;
|
|
517
|
-
|
|
518
|
-
type ServerSideControlledPaginationProps = {
|
|
519
|
-
displaySelection?: boolean;
|
|
520
|
-
displayRowsPerPage?: boolean;
|
|
521
|
-
displayPagination?: boolean;
|
|
522
|
-
selectionStatus: SelectionStatus;
|
|
523
|
-
paginationModel: GridPaginationModel;
|
|
524
|
-
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
525
|
-
pageSizeOptions?: number[];
|
|
526
|
-
paginationProps?: DataGridProps['paginationProps'];
|
|
527
|
-
rowCount: number;
|
|
528
|
-
loading?: boolean;
|
|
529
|
-
};
|
|
530
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React.MutableRefObject<GridApiPro$1>, selectionStatus: React.MutableRefObject<SelectionStatus>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
531
|
-
declare const ServerSideControlledPagination: React.FC<ServerSideControlledPaginationProps>;
|
|
532
|
-
|
|
533
|
-
interface TextCellProps extends ComponentProps<'div'> {
|
|
534
|
-
/** Including Badge Component. */
|
|
535
|
-
badge?: ReactNode;
|
|
536
|
-
/**
|
|
537
|
-
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
538
|
-
* Can also be a ReactElement.
|
|
539
|
-
*/
|
|
540
|
-
leftIcon?: IconProps['icon'];
|
|
541
|
-
/** Left Icon Color variant. */
|
|
542
|
-
leftIconColor?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
543
|
-
/**
|
|
544
|
-
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
545
|
-
* Can also be a ReactElement.
|
|
546
|
-
*/
|
|
547
|
-
rightIcon?: IconProps['icon'];
|
|
548
|
-
/** Right Icon Color variant. */
|
|
549
|
-
rightIconColor?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
550
|
-
/** Shield variant. */
|
|
551
|
-
shieldVariant?: ShieldVariant;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* The Cell component.
|
|
556
|
-
*/
|
|
557
|
-
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
558
|
-
|
|
559
|
-
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
560
|
-
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
561
|
-
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
562
|
-
interface ToolbarProps {
|
|
563
|
-
/** Props to forward to the column button. */
|
|
564
|
-
columnsButtonProps?: GridToolbarColumnsProps;
|
|
565
|
-
/** Column button ref. */
|
|
566
|
-
columnsButtonRef?: RefObject<HTMLButtonElement>;
|
|
567
|
-
/** Props to forward to the density button. */
|
|
568
|
-
densityButtonProps?: GridToolbarDensityProps;
|
|
569
|
-
/** Density button ref. */
|
|
570
|
-
densityButtonRef?: RefObject<HTMLButtonElement>;
|
|
571
|
-
/** Props to forward to the export button. */
|
|
572
|
-
exportButtonProps?: GridToolbarExportProps;
|
|
573
|
-
/** Export button ref. */
|
|
574
|
-
exportButtonRef?: RefObject<HTMLButtonElement>;
|
|
575
|
-
/** Props to forward to the filter button. */
|
|
576
|
-
filterButtonProps?: GridToolbarFilterButtonProps;
|
|
577
|
-
/** Filter button ref. */
|
|
578
|
-
filterButtonRef?: RefObject<HTMLButtonElement>;
|
|
579
|
-
/** Whether the columns button is displayed or not. */
|
|
580
|
-
hasColumnsButton?: boolean;
|
|
581
|
-
/** Whether the density button is displayed or not. */
|
|
582
|
-
hasDensityButton?: boolean;
|
|
583
|
-
/** Whether the export button is displayed or not. */
|
|
584
|
-
hasExportButton?: boolean;
|
|
585
|
-
/** Whether the filter button is displayed or not. */
|
|
586
|
-
hasFilterButton?: boolean;
|
|
587
|
-
/** Configuration object for NLP filter. undefined if disabled. */
|
|
588
|
-
onFilterModelChange?: (filterModel: GridFilterModel) => void;
|
|
589
|
-
semanticFilterProps?: GridToolbarFilterSemanticProps;
|
|
590
|
-
/** Whether you want to show the quick filter or not. */
|
|
591
|
-
showQuickFilter?: boolean;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* Temporary workaround for a type mismatch between react 17 and 18
|
|
596
|
-
* https://github.com/mui/material-ui/issues/35287#issuecomment-1337250566
|
|
597
|
-
*/
|
|
598
|
-
declare global {
|
|
599
|
-
namespace React {
|
|
600
|
-
interface DOMAttributes<T> {
|
|
601
|
-
onResize?: React.ReactEventHandler<T> | undefined;
|
|
602
|
-
onResizeCapture?: React.ReactEventHandler<T> | undefined;
|
|
603
|
-
nonce?: string | undefined;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
/** ------ */
|
|
608
|
-
declare const Toolbar: React.FC<ToolbarProps>;
|
|
609
|
-
|
|
610
|
-
type ToolbarWrapperProps = {
|
|
611
|
-
hideToolbar: DataGridProps['hideToolbar'];
|
|
612
|
-
RenderedToolbar: React.JSXElementConstructor<any>;
|
|
613
|
-
filterModel: DataGridProps['filterModel'];
|
|
614
|
-
onFilterModelChange: DataGridProps['onFilterModelChange'];
|
|
615
|
-
pagination: DataGridProps['pagination'];
|
|
616
|
-
paginationPlacement: DataGridProps['paginationPlacement'];
|
|
617
|
-
selectionStatus: React.MutableRefObject<SelectionStatus>;
|
|
618
|
-
apiRef: DataGridProps['apiRef'];
|
|
619
|
-
isRowSelectable: DataGridProps['isRowSelectable'];
|
|
620
|
-
paginationModel: DataGridProps['paginationModel'];
|
|
621
|
-
onPaginationModelChange: DataGridProps['onPaginationModelChange'];
|
|
622
|
-
pageSizeOptions: DataGridProps['pageSizeOptions'];
|
|
623
|
-
paginationProps: DataGridProps['paginationProps'];
|
|
624
|
-
paginationMode?: DataGridProps['paginationMode'];
|
|
625
|
-
rowCount?: DataGridProps['rowCount'];
|
|
626
|
-
};
|
|
627
|
-
declare const ToolbarWrapper: React.FC<ToolbarWrapperProps>;
|
|
628
|
-
|
|
629
|
-
export { BaseButton, BaseCheckbox, BaseIcon, BasePopper, BaseTextField, CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, CompletionResponse, ControlledPagination, ControlledPaginationProps, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, HAS, HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT, HAS_ONLY, HAS_ONLY_WITH_SELECT, HAS_WITH_SELECT, IS, IS_ANY_OF, IS_ANY_OF_WITH_SELECT, IS_BETWEEN, IS_NOT, IS_NOT_ANY_OF, IS_NOT_ANY_OF_WITH_SELECT, IS_NOT_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, SelectionStatus, ServerSideControlledPagination, ServerSideControlledPaginationProps, StatefulDataGrid, StatefulDataGridProps, StyledDataGridProps, TextCell, Toolbar, ToolbarWrapper, ToolbarWrapperProps, VISIBILITY_MODEL_KEY, areFilterModelsEquivalent, buildStorageKey, clearPreviousVersionStorage, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, isOperatorValueValid, isValueValid, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
|
1
|
+
export { customColumnTypes, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType } from './utils/columnTypes/index.js';
|
|
2
|
+
export { operatorList } from './utils/operators/index.js';
|
|
3
|
+
export { getCompletion } from './utils/gpt.js';
|
|
4
|
+
export { CATEGORIES, Category, DIMENSION_MODEL_KEY, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, PAGINATION_MODEL_KEY, PINNED_COLUMNS, SORT_MODEL_KEY, VISIBILITY_MODEL_KEY, buildStorageKey, clearPreviousVersionStorage } from './utils/localStorage.js';
|
|
5
|
+
export { DataGridModel, PinnedColumns, areFilterModelsEquivalent, decodeValue, encodeValue, getColumnVisibilityFromString, getFilterModelFromString, getFinalSearch, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSortingFromString, numberOperatorDecoder, numberOperatorEncoder, updateUrl, urlSearchParamsToString } from './utils/urlLocalStorageSync.js';
|
|
6
|
+
export { DETAIL_PANEL_TOGGLE_COL_DEF } from './utils/columns/detailPanelToggleColDef.js';
|
|
7
|
+
export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
8
|
+
export { IS_BETWEEN } from './utils/operators/numeric/isBetween.js';
|
|
9
|
+
export { getGridNumericOperators } from './utils/operators/numeric/getGridNumericOperators.js';
|
|
10
|
+
export { DOES_NOT_CONTAIN } from './utils/operators/string/doesNotContain.js';
|
|
11
|
+
export { DOES_NOT_EQUAL } from './utils/operators/string/doesNotEqual.js';
|
|
12
|
+
export { DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT } from './utils/operators/string/doesNotHave.js';
|
|
13
|
+
export { HAS, HAS_WITH_SELECT } from './utils/operators/string/has.js';
|
|
14
|
+
export { HAS_ONLY, HAS_ONLY_WITH_SELECT } from './utils/operators/string/hasOnly.js';
|
|
15
|
+
export { IS, IS_WITH_SELECT } from './utils/operators/string/is.js';
|
|
16
|
+
export { IS_NOT, IS_NOT_WITH_SELECT } from './utils/operators/string/isNot.js';
|
|
17
|
+
export { getGridStringOperators } from './utils/operators/string/getGridStringOperators.js';
|
|
18
|
+
export { CONTAINS_ANY_OF, CONTAINS_ANY_OF_I } from './utils/operators/string-array/containsAnyOf.js';
|
|
19
|
+
export { ENDS_WITH_ANY_OF } from './utils/operators/string-array/endsWithAnyOf.js';
|
|
20
|
+
export { IS_ANY_OF, IS_ANY_OF_WITH_SELECT } from './utils/operators/string-array/isAnyOf.js';
|
|
21
|
+
export { HAS_ANY_OF, HAS_ANY_OF_WITH_SELECT } from './utils/operators/string-array/hasAnyOf.js';
|
|
22
|
+
export { IS_NOT_ANY_OF } from './utils/operators/string-array/isNotAnyOf.js';
|
|
23
|
+
export { STARTS_WITH_ANY_OF } from './utils/operators/string-array/startsWithAnyOf.js';
|
|
24
|
+
export { getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns } from './utils/operators/string-array/getGridStringArrayOperators.js';
|
|
25
|
+
export { BaseButton } from './components/BaseComponents/BaseButton.js';
|
|
26
|
+
export { BaseCheckbox } from './components/BaseComponents/BaseCheckbox.js';
|
|
27
|
+
export { BaseIcon, muiIconToDSIcon } from './components/BaseComponents/BaseIcon.js';
|
|
28
|
+
export { BasePopper } from './components/BaseComponents/BasePopper.js';
|
|
29
|
+
export { BaseTextField } from './components/BaseComponents/BaseTextField.js';
|
|
30
|
+
export { DataGrid } from './components/DataGrid/DataGrid.js';
|
|
31
|
+
export { DataGridProps, SelectionStatus, StyledDataGridProps } from './components/DataGrid/types.js';
|
|
32
|
+
export { DEFAULT_OPERATORS, GridToolbarFilterSemanticField } from './components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js';
|
|
33
|
+
export { CompletionResponse, FilterConfig, GridToolbarFilterSemanticFieldProps } from './components/GridToolbarFilterSemanticField/types.js';
|
|
34
|
+
export { ControlledPagination, ControlledPaginationProps } from './components/Pagination/ControlledPagination.js';
|
|
35
|
+
export { ServerSideControlledPagination, ServerSideControlledPaginationProps, onServerSideSelectionStatusChange } from './components/Pagination/ServerSideControlledPagination.js';
|
|
36
|
+
export { StatefulDataGrid } from './components/StatefulDataGrid/StatefulDataGrid.js';
|
|
37
|
+
export { StatefulDataGridProps } from './components/StatefulDataGrid/types.js';
|
|
38
|
+
export { TextCell } from './components/TextCell/TextCell.js';
|
|
39
|
+
export { Toolbar } from './components/Toolbar/Toolbar.js';
|
|
40
|
+
export { ToolbarWrapper, ToolbarWrapperProps } from './components/ToolbarWrapper/ToolbarWrapper.js';
|