@redsift/table 11.11.0-muiv7 → 11.11.0-muiv8-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/_internal/BaseComponents.js +1 -1
- package/_internal/BaseIconButton.js +117 -0
- package/_internal/BaseIconButton.js.map +1 -0
- package/_internal/DataGrid2.js +48 -32
- package/_internal/DataGrid2.js.map +1 -1
- package/_internal/Pagination.js +1 -1
- package/_internal/{ControlledPagination.js → ServerSideControlledPagination.js} +7533 -740
- package/_internal/ServerSideControlledPagination.js.map +1 -0
- package/_internal/StatefulDataGrid2.js +103 -47
- package/_internal/StatefulDataGrid2.js.map +1 -1
- package/_internal/ToolbarWrapper2.js +1 -1
- package/_internal/useControlledDatagridState.js +76 -115
- package/_internal/useControlledDatagridState.js.map +1 -1
- package/index.d.ts +284 -80
- package/index.js +2 -2
- package/package.json +7 -7
- package/_internal/BasePopper.js +0 -2452
- package/_internal/BasePopper.js.map +0 -1
- package/_internal/ControlledPagination.js.map +0 -1
- package/_internal/Portal.js +0 -6563
- package/_internal/Portal.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,190 +1,189 @@
|
|
|
1
1
|
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
-
import { GridColTypeDef, GridColType, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields,
|
|
2
|
+
import { GridColTypeDef, GridColType, GridFilterOperator, GridFilterInputSingleSelect, GridFilterInputMultipleSingleSelect, GridRowSelectionModel, GridRowId, DataGridProProps, GridFilterModel, GridPaginationModel, GridSortModel, GridColumnVisibilityModel, GridPinnedColumnFields, GridInitialState, GridSlotsComponent, GridApiPro, GridCallbackDetails, GridRowParams, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
3
3
|
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
4
|
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
|
|
5
5
|
import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
|
|
6
|
-
import {
|
|
7
|
-
import React$1, { ReactNode, ComponentProps, MutableRefObject, RefObject } from 'react';
|
|
6
|
+
import React$1, { Ref, ReactElement, ComponentProps, ReactNode, MutableRefObject, RefObject } from 'react';
|
|
8
7
|
import { TablePaginationProps } from '@mui/material';
|
|
9
|
-
import { Theme, Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
|
|
10
|
-
import { GridApiPro } from '@mui/x-data-grid-pro/models/gridApiPro';
|
|
11
8
|
|
|
12
|
-
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef
|
|
9
|
+
declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef;
|
|
13
10
|
|
|
14
|
-
declare const getRsStringColumnType: () => GridColTypeDef
|
|
15
|
-
declare const getRsNumberColumnType: () => GridColTypeDef
|
|
16
|
-
declare const getRsSingleSelectColumnType: () => GridColTypeDef
|
|
17
|
-
declare const getRsSingleSelectWithShortOperatorListColumnType: () => GridColTypeDef
|
|
18
|
-
declare const getRsMultipleSelectColumnType: () => GridColTypeDef
|
|
19
|
-
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => GridColTypeDef
|
|
11
|
+
declare const getRsStringColumnType: () => GridColTypeDef;
|
|
12
|
+
declare const getRsNumberColumnType: () => GridColTypeDef;
|
|
13
|
+
declare const getRsSingleSelectColumnType: () => GridColTypeDef;
|
|
14
|
+
declare const getRsSingleSelectWithShortOperatorListColumnType: () => GridColTypeDef;
|
|
15
|
+
declare const getRsMultipleSelectColumnType: () => GridColTypeDef;
|
|
16
|
+
declare const getRsMultipleSelectWithShortOperatorListColumnType: () => GridColTypeDef;
|
|
20
17
|
declare const customColumnTypes: Record<GridColType | string, GridColTypeDef>;
|
|
21
18
|
|
|
22
|
-
declare const IS_BETWEEN: GridFilterOperator<any, number, any>;
|
|
19
|
+
declare const IS_BETWEEN: GridFilterOperator<any, number, any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
23
20
|
|
|
24
21
|
declare const getGridNumericOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
25
22
|
|
|
26
|
-
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any>;
|
|
23
|
+
declare const DOES_NOT_CONTAIN: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
27
24
|
|
|
28
|
-
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any>;
|
|
25
|
+
declare const DOES_NOT_EQUAL: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
29
26
|
|
|
30
|
-
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any>;
|
|
27
|
+
declare const DOES_NOT_HAVE: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
31
28
|
declare const DOES_NOT_HAVE_WITH_SELECT: {
|
|
32
29
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
33
30
|
label?: string | undefined;
|
|
34
31
|
headerLabel?: string | undefined;
|
|
35
|
-
value: string;
|
|
32
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
36
33
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
37
|
-
InputComponentProps?:
|
|
34
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
38
35
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
39
36
|
requiresFilterValue?: boolean | undefined;
|
|
40
37
|
};
|
|
41
38
|
|
|
42
|
-
declare const HAS: GridFilterOperator<any, string | string[], any>;
|
|
39
|
+
declare const HAS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
43
40
|
declare const HAS_WITH_SELECT: {
|
|
44
41
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
45
42
|
label?: string | undefined;
|
|
46
43
|
headerLabel?: string | undefined;
|
|
47
|
-
value: string;
|
|
44
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
48
45
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
49
|
-
InputComponentProps?:
|
|
46
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
50
47
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
51
48
|
requiresFilterValue?: boolean | undefined;
|
|
52
49
|
};
|
|
53
50
|
|
|
54
|
-
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any>;
|
|
51
|
+
declare const HAS_ONLY: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
55
52
|
declare const HAS_ONLY_WITH_SELECT: {
|
|
56
53
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
57
54
|
label?: string | undefined;
|
|
58
55
|
headerLabel?: string | undefined;
|
|
59
|
-
value: string;
|
|
56
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
60
57
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
61
|
-
InputComponentProps?:
|
|
58
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
62
59
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
63
60
|
requiresFilterValue?: boolean | undefined;
|
|
64
61
|
};
|
|
65
62
|
|
|
66
|
-
declare const IS: GridFilterOperator<any, string | string[], any>;
|
|
63
|
+
declare const IS: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
67
64
|
declare const IS_WITH_SELECT: {
|
|
68
65
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
69
66
|
label?: string | undefined;
|
|
70
67
|
headerLabel?: string | undefined;
|
|
71
|
-
value: string;
|
|
68
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
72
69
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
73
|
-
InputComponentProps?:
|
|
70
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
74
71
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
75
72
|
requiresFilterValue?: boolean | undefined;
|
|
76
73
|
};
|
|
77
74
|
|
|
78
|
-
declare const IS_NOT: GridFilterOperator<any, string | string[], any>;
|
|
75
|
+
declare const IS_NOT: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
79
76
|
declare const IS_NOT_WITH_SELECT: {
|
|
80
77
|
InputComponent: typeof GridFilterInputSingleSelect;
|
|
81
78
|
label?: string | undefined;
|
|
82
79
|
headerLabel?: string | undefined;
|
|
83
|
-
value: string;
|
|
80
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
84
81
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
85
|
-
InputComponentProps?:
|
|
82
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
86
83
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
87
84
|
requiresFilterValue?: boolean | undefined;
|
|
88
85
|
};
|
|
89
86
|
|
|
90
87
|
declare const getGridStringOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
91
88
|
|
|
92
|
-
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
93
|
-
declare const CONTAINS_ANY_OF_I: GridFilterOperator<any, string | string[], any>;
|
|
89
|
+
declare const CONTAINS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
90
|
+
declare const CONTAINS_ANY_OF_I: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
94
91
|
|
|
95
|
-
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
92
|
+
declare const DOES_NOT_HAVE_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
96
93
|
declare const DOES_NOT_HAVE_ANY_OF_WITH_SELECT: {
|
|
97
94
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
98
95
|
label?: string | undefined;
|
|
99
96
|
headerLabel?: string | undefined;
|
|
100
|
-
value: string;
|
|
97
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
101
98
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
102
|
-
InputComponentProps?:
|
|
99
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
103
100
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
104
101
|
requiresFilterValue?: boolean | undefined;
|
|
105
102
|
};
|
|
106
103
|
|
|
107
|
-
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
104
|
+
declare const ENDS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
108
105
|
|
|
109
|
-
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
106
|
+
declare const IS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
110
107
|
declare const IS_ANY_OF_WITH_SELECT: {
|
|
111
108
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
112
109
|
label?: string | undefined;
|
|
113
110
|
headerLabel?: string | undefined;
|
|
114
|
-
value: string;
|
|
111
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
115
112
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
116
|
-
InputComponentProps?:
|
|
113
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
117
114
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
118
115
|
requiresFilterValue?: boolean | undefined;
|
|
119
116
|
};
|
|
120
117
|
|
|
121
|
-
declare const IS_ANY_OF_I: GridFilterOperator<any, string | string[], any>;
|
|
118
|
+
declare const IS_ANY_OF_I: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
122
119
|
declare const IS_ANY_OF_I_WITH_SELECT: {
|
|
123
120
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
124
121
|
label?: string | undefined;
|
|
125
122
|
headerLabel?: string | undefined;
|
|
126
|
-
value: string;
|
|
123
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
127
124
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
128
|
-
InputComponentProps?:
|
|
125
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
129
126
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
130
127
|
requiresFilterValue?: boolean | undefined;
|
|
131
128
|
};
|
|
132
129
|
|
|
133
|
-
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
130
|
+
declare const HAS_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
134
131
|
declare const HAS_ANY_OF_WITH_SELECT: {
|
|
135
132
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
136
133
|
label?: string | undefined;
|
|
137
134
|
headerLabel?: string | undefined;
|
|
138
|
-
value: string;
|
|
135
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
139
136
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
140
|
-
InputComponentProps?:
|
|
137
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
141
138
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
142
139
|
requiresFilterValue?: boolean | undefined;
|
|
143
140
|
};
|
|
144
141
|
|
|
145
|
-
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
142
|
+
declare const IS_NOT_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
146
143
|
declare const IS_NOT_ANY_OF_WITH_SELECT: {
|
|
147
144
|
InputComponent: typeof GridFilterInputMultipleSingleSelect;
|
|
148
145
|
label?: string | undefined;
|
|
149
146
|
headerLabel?: string | undefined;
|
|
150
|
-
value: string;
|
|
147
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
151
148
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
152
|
-
InputComponentProps?:
|
|
149
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
153
150
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
154
151
|
requiresFilterValue?: boolean | undefined;
|
|
155
152
|
};
|
|
156
153
|
|
|
157
|
-
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any>;
|
|
154
|
+
declare const STARTS_WITH_ANY_OF: GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps>;
|
|
158
155
|
|
|
159
156
|
declare const getGridStringArrayOperators: () => GridFilterOperator<any, unknown, any>[];
|
|
160
157
|
declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, unknown, any>[];
|
|
161
158
|
declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, unknown, any>[];
|
|
162
159
|
|
|
163
160
|
declare const operatorList: {
|
|
164
|
-
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
165
|
-
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
161
|
+
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid_pro.GridFilterInputValueProps>[];
|
|
162
|
+
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any, _mui_x_data_grid_pro.GridFilterInputValueProps & {
|
|
163
|
+
type?: "number" | undefined;
|
|
164
|
+
}>[];
|
|
165
|
+
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any, _mui_x_data_grid_pro.GridFilterInputValueProps>[];
|
|
166
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any, _mui_x_data_grid_pro.GridFilterInputDateProps>[];
|
|
167
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, Date, any, _mui_x_data_grid_pro.GridFilterInputDateProps>[];
|
|
168
|
+
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any, _mui_x_data_grid_pro.GridFilterInputValueProps>[];
|
|
169
|
+
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any, _mui_x_data_grid_pro.GridFilterInputValueProps>[];
|
|
170
|
+
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any, _mui_x_data_grid_pro.GridFilterInputValueProps>[];
|
|
171
|
+
rsSingleSelect: (_mui_x_data_grid_pro.GridFilterOperator<any, string | string[], any, _mui_x_data_grid_pro.GridFilterInputValueProps> | {
|
|
173
172
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
174
173
|
label?: string | undefined;
|
|
175
174
|
headerLabel?: string | undefined;
|
|
176
|
-
value: string;
|
|
175
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
177
176
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
178
|
-
InputComponentProps?:
|
|
177
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
179
178
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
180
179
|
requiresFilterValue?: boolean | undefined;
|
|
181
180
|
} | {
|
|
182
181
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
183
182
|
label?: string | undefined;
|
|
184
183
|
headerLabel?: string | undefined;
|
|
185
|
-
value: string;
|
|
184
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
186
185
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
187
|
-
InputComponentProps?:
|
|
186
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
188
187
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
189
188
|
requiresFilterValue?: boolean | undefined;
|
|
190
189
|
})[];
|
|
@@ -192,18 +191,18 @@ declare const operatorList: {
|
|
|
192
191
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
193
192
|
label?: string | undefined;
|
|
194
193
|
headerLabel?: string | undefined;
|
|
195
|
-
value: string;
|
|
194
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
196
195
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
197
|
-
InputComponentProps?:
|
|
196
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
198
197
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
199
198
|
requiresFilterValue?: boolean | undefined;
|
|
200
199
|
} | {
|
|
201
200
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
202
201
|
label?: string | undefined;
|
|
203
202
|
headerLabel?: string | undefined;
|
|
204
|
-
value: string;
|
|
203
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
205
204
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
206
|
-
InputComponentProps?:
|
|
205
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
207
206
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
208
207
|
requiresFilterValue?: boolean | undefined;
|
|
209
208
|
})[];
|
|
@@ -211,18 +210,18 @@ declare const operatorList: {
|
|
|
211
210
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
212
211
|
label?: string | undefined;
|
|
213
212
|
headerLabel?: string | undefined;
|
|
214
|
-
value: string;
|
|
213
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
215
214
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
216
|
-
InputComponentProps?:
|
|
215
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
217
216
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
218
217
|
requiresFilterValue?: boolean | undefined;
|
|
219
218
|
} | {
|
|
220
219
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
221
220
|
label?: string | undefined;
|
|
222
221
|
headerLabel?: string | undefined;
|
|
223
|
-
value: string;
|
|
222
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
224
223
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
225
|
-
InputComponentProps?:
|
|
224
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
226
225
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
227
226
|
requiresFilterValue?: boolean | undefined;
|
|
228
227
|
})[];
|
|
@@ -230,22 +229,22 @@ declare const operatorList: {
|
|
|
230
229
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
|
|
231
230
|
label?: string | undefined;
|
|
232
231
|
headerLabel?: string | undefined;
|
|
233
|
-
value: string;
|
|
232
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
234
233
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
235
|
-
InputComponentProps?:
|
|
234
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
236
235
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
237
236
|
requiresFilterValue?: boolean | undefined;
|
|
238
237
|
} | {
|
|
239
238
|
InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
|
|
240
239
|
label?: string | undefined;
|
|
241
240
|
headerLabel?: string | undefined;
|
|
242
|
-
value: string;
|
|
241
|
+
value: "endsWith" | "startsWith" | (string & {}) | "=" | "is" | "after" | "contains" | "doesNotContain" | "equals" | "doesNotEqual" | "!=" | ">" | ">=" | "<" | "<=" | "not" | "onOrAfter" | "before" | "onOrBefore" | "isEmpty" | "isNotEmpty" | "isAnyOf";
|
|
243
242
|
getApplyFilterFn: _mui_x_data_grid_pro.GetApplyFilterFn<any, string | string[], any>;
|
|
244
|
-
InputComponentProps?:
|
|
243
|
+
InputComponentProps?: Partial<_mui_x_data_grid_pro.GridFilterInputValueProps> | undefined;
|
|
245
244
|
getValueAsString?: ((value: any) => string) | undefined;
|
|
246
245
|
requiresFilterValue?: boolean | undefined;
|
|
247
246
|
})[];
|
|
248
|
-
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any>[];
|
|
247
|
+
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, unknown, any, _mui_x_data_grid_pro.GridFilterInputValueProps>[];
|
|
249
248
|
};
|
|
250
249
|
|
|
251
250
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
@@ -266,6 +265,211 @@ declare const buildStorageKey: ({ id, version, category }: {
|
|
|
266
265
|
}) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
|
|
267
266
|
declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
|
|
268
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Default empty row selection model for MUI DataGrid v8+
|
|
270
|
+
* In v8, GridRowSelectionModel changed from GridRowId[] to { type: 'include' | 'exclude'; ids: Set<GridRowId> }
|
|
271
|
+
*/
|
|
272
|
+
declare const EMPTY_ROW_SELECTION_MODEL: GridRowSelectionModel;
|
|
273
|
+
/**
|
|
274
|
+
* Creates a new row selection model with the given ids
|
|
275
|
+
*/
|
|
276
|
+
declare const createRowSelectionModel: (ids: GridRowId[] | Set<GridRowId>) => GridRowSelectionModel;
|
|
277
|
+
/**
|
|
278
|
+
* Gets the size/count of selected rows from a selection model
|
|
279
|
+
*/
|
|
280
|
+
declare const getSelectionCount: (model: GridRowSelectionModel) => number;
|
|
281
|
+
/**
|
|
282
|
+
* Checks if a row is selected in the given selection model
|
|
283
|
+
*/
|
|
284
|
+
declare const isRowSelected: (model: GridRowSelectionModel, rowId: GridRowId) => boolean;
|
|
285
|
+
/**
|
|
286
|
+
* Converts a selection model to an array of selected row IDs
|
|
287
|
+
* Note: For 'exclude' type, this only returns the ids that are explicitly excluded,
|
|
288
|
+
* not the actual selected rows (which would require knowing all row ids)
|
|
289
|
+
*/
|
|
290
|
+
declare const getSelectedIds: (model: GridRowSelectionModel) => GridRowId[];
|
|
291
|
+
|
|
292
|
+
/** Component Type. */
|
|
293
|
+
type Comp<P, T = HTMLElement> = {
|
|
294
|
+
(props: P & {
|
|
295
|
+
ref?: Ref<T>;
|
|
296
|
+
}): ReactElement | null;
|
|
297
|
+
/** React component type. */
|
|
298
|
+
readonly $$typeof?: symbol;
|
|
299
|
+
/** Component name. */
|
|
300
|
+
displayName?: string;
|
|
301
|
+
/** Component base class name. */
|
|
302
|
+
className?: string;
|
|
303
|
+
};
|
|
304
|
+
/** Get types of the values of a record. */
|
|
305
|
+
type ValueOf<T extends Record<any, any>> = T[keyof T];
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Color palette.
|
|
309
|
+
*/
|
|
310
|
+
declare const Theme: {
|
|
311
|
+
readonly light: "light";
|
|
312
|
+
readonly dark: "dark";
|
|
313
|
+
};
|
|
314
|
+
type Theme = ValueOf<typeof Theme>;
|
|
315
|
+
declare const NotificationsColorPalette: {
|
|
316
|
+
readonly question: "question";
|
|
317
|
+
readonly 'no-data': "no-data";
|
|
318
|
+
readonly success: "success";
|
|
319
|
+
readonly warning: "warning";
|
|
320
|
+
readonly info: "info";
|
|
321
|
+
readonly primary: "primary";
|
|
322
|
+
readonly secondary: "secondary";
|
|
323
|
+
readonly error: "error";
|
|
324
|
+
};
|
|
325
|
+
type NotificationsColorPalette = ValueOf<typeof NotificationsColorPalette>;
|
|
326
|
+
declare const ProductColorPalette: {
|
|
327
|
+
readonly asm: "asm";
|
|
328
|
+
readonly 'brand-trust': "brand-trust";
|
|
329
|
+
readonly certificates: "certificates";
|
|
330
|
+
readonly ondmarc: "ondmarc";
|
|
331
|
+
readonly pulse: "pulse";
|
|
332
|
+
readonly radar: "radar";
|
|
333
|
+
readonly 'rojo-ds': "rojo-ds";
|
|
334
|
+
readonly 'vendor-secure': "vendor-secure";
|
|
335
|
+
readonly website: "website";
|
|
336
|
+
};
|
|
337
|
+
type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
|
|
338
|
+
|
|
339
|
+
declare const AlignSelf: {
|
|
340
|
+
readonly auto: "auto";
|
|
341
|
+
readonly normal: "normal";
|
|
342
|
+
readonly start: "start";
|
|
343
|
+
readonly end: "end";
|
|
344
|
+
readonly center: "center";
|
|
345
|
+
readonly 'flex-start': "flex-start";
|
|
346
|
+
readonly 'flex-end': "flex-end";
|
|
347
|
+
readonly 'self-start': "self-start";
|
|
348
|
+
readonly 'self-end': "self-end";
|
|
349
|
+
readonly baseline: "baseline";
|
|
350
|
+
readonly stretch: "stretch";
|
|
351
|
+
};
|
|
352
|
+
type AlignSelf = ValueOf<typeof AlignSelf>;
|
|
353
|
+
interface LayoutProps {
|
|
354
|
+
/** When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex">MDN</a>. */
|
|
355
|
+
flex?: string;
|
|
356
|
+
/** When used in a flex layout, specifies how the element will grow to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow">MDN</a>. */
|
|
357
|
+
flexGrow?: number;
|
|
358
|
+
/** When used in a flex layout, specifies how the element will shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink">MDN</a>. */
|
|
359
|
+
flexShrink?: number;
|
|
360
|
+
/** When used in a flex layout, specifies the initial main size of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex_basis">MDN</a>. */
|
|
361
|
+
flexBasis?: string;
|
|
362
|
+
/** Overrides the alignItems property of a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-self">MDN</a>. */
|
|
363
|
+
alignSelf?: AlignSelf;
|
|
364
|
+
/** Specifies how the element is justified inside a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self">MDN</a>. */
|
|
365
|
+
justifySelf?: string;
|
|
366
|
+
/** The layout order for the element within a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/order">MDN</a>. */
|
|
367
|
+
order?: number;
|
|
368
|
+
/** When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area">MDN</a>. */
|
|
369
|
+
gridArea?: string;
|
|
370
|
+
/** When used in a grid layout, specifies the column the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column">MDN</a>. */
|
|
371
|
+
gridColumn?: string;
|
|
372
|
+
/** When used in a grid layout, specifies the row the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row">MDN</a>. */
|
|
373
|
+
gridRow?: string;
|
|
374
|
+
/** When used in a grid layout, specifies the starting column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start">MDN</a>. */
|
|
375
|
+
gridColumnStart?: string;
|
|
376
|
+
/** When used in a grid layout, specifies the ending column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end">MDN</a>. */
|
|
377
|
+
gridColumnEnd?: string;
|
|
378
|
+
/** When used in a grid layout, specifies the starting row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start">MDN</a>. */
|
|
379
|
+
gridRowStart?: string;
|
|
380
|
+
/** When used in a grid layout, specifies the ending row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end">MDN</a>. */
|
|
381
|
+
gridRowEnd?: string;
|
|
382
|
+
}
|
|
383
|
+
interface SpacingProps {
|
|
384
|
+
/** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
|
|
385
|
+
margin?: string;
|
|
386
|
+
/** The margin for the bottom side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom">MDN</a>. */
|
|
387
|
+
marginBottom?: string;
|
|
388
|
+
/** The margin for the left side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left">MDN</a>. */
|
|
389
|
+
marginLeft?: string;
|
|
390
|
+
/** The margin for the right side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right">MDN</a>. */
|
|
391
|
+
marginRight?: string;
|
|
392
|
+
/** The margin for the top side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top">MDN</a>. */
|
|
393
|
+
marginTop?: string;
|
|
394
|
+
}
|
|
395
|
+
interface PositioningProps {
|
|
396
|
+
/** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
|
|
397
|
+
position?: string;
|
|
398
|
+
/** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
|
|
399
|
+
top?: string;
|
|
400
|
+
/** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
|
|
401
|
+
bottom?: string;
|
|
402
|
+
/** The left position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/left">MDN</a>. Consider using start instead for RTL support. */
|
|
403
|
+
left?: string;
|
|
404
|
+
/** The right position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/right">MDN</a>. Consider using start instead for RTL support. */
|
|
405
|
+
right?: string;
|
|
406
|
+
/** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
|
|
407
|
+
zIndex?: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Component size.
|
|
412
|
+
*/
|
|
413
|
+
declare const IconSize: {
|
|
414
|
+
readonly xsmall: "xsmall";
|
|
415
|
+
readonly small: "small";
|
|
416
|
+
readonly medium: "medium";
|
|
417
|
+
readonly large: "large";
|
|
418
|
+
readonly xlarge: "xlarge";
|
|
419
|
+
readonly xxlarge: "xxlarge";
|
|
420
|
+
};
|
|
421
|
+
type IconSize = ValueOf<typeof IconSize>;
|
|
422
|
+
type IconDimensions = {
|
|
423
|
+
width?: number;
|
|
424
|
+
height?: number;
|
|
425
|
+
fontSize?: number;
|
|
426
|
+
lineHeight?: number;
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* Component props.
|
|
430
|
+
*/
|
|
431
|
+
interface IconProps extends ComponentProps<'span'>, LayoutProps, SpacingProps, PositioningProps {
|
|
432
|
+
/** Indicates whether the element is exposed to an accessibility API. */
|
|
433
|
+
'aria-hidden'?: boolean | 'false' | 'true';
|
|
434
|
+
/** A screen reader only label for the Icon. */
|
|
435
|
+
'aria-label'?: string;
|
|
436
|
+
/** Color variant. Either from color palette or hex or rgb strings. */
|
|
437
|
+
color?: NotificationsColorPalette | ProductColorPalette | (string & {});
|
|
438
|
+
/** Whether the icon has a badge attached to it. */
|
|
439
|
+
badge?: ReactElement;
|
|
440
|
+
/**
|
|
441
|
+
* Can be a string or an array of strings containing `d` property of the `path` SVG element.<br />
|
|
442
|
+
* Can also be a ReactElement.
|
|
443
|
+
*/
|
|
444
|
+
icon: string | string[] | ReactElement;
|
|
445
|
+
/** Icon size. */
|
|
446
|
+
size?: IconSize | IconDimensions;
|
|
447
|
+
/** Additional properties to forward to the SVG tag. */
|
|
448
|
+
svgProps?: ComponentProps<'svg'>;
|
|
449
|
+
/** Theme. */
|
|
450
|
+
theme?: Theme;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Component variant.
|
|
455
|
+
*/
|
|
456
|
+
declare const ShieldVariant: {
|
|
457
|
+
readonly success: "success";
|
|
458
|
+
readonly successLocked: "successLocked";
|
|
459
|
+
readonly successUnlocked: "successUnlocked";
|
|
460
|
+
readonly fail: "fail";
|
|
461
|
+
readonly failLocked: "failLocked";
|
|
462
|
+
readonly failUnlocked: "failUnlocked";
|
|
463
|
+
readonly warning: "warning";
|
|
464
|
+
readonly warningLocked: "warningLocked";
|
|
465
|
+
readonly warningUnlocked: "warningUnlocked";
|
|
466
|
+
readonly ignored: "ignored";
|
|
467
|
+
readonly noData: "noData";
|
|
468
|
+
readonly question: "question";
|
|
469
|
+
readonly email: "email";
|
|
470
|
+
};
|
|
471
|
+
type ShieldVariant = ValueOf<typeof ShieldVariant>;
|
|
472
|
+
|
|
269
473
|
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
270
474
|
/** License key for MUI Datagrid Pro. */
|
|
271
475
|
license?: string;
|
|
@@ -414,7 +618,7 @@ type ModelsTable = {
|
|
|
414
618
|
pinnedColumnsModel: GridPinnedColumnFields;
|
|
415
619
|
};
|
|
416
620
|
/** Return the state of the table given the URL and the local storage state */
|
|
417
|
-
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState:
|
|
621
|
+
declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialState | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
|
|
418
622
|
type DataGridModel = {
|
|
419
623
|
filterModel: GridFilterModel;
|
|
420
624
|
sortModel: GridSortModel;
|
|
@@ -432,7 +636,7 @@ declare const BaseCheckbox: React$1.JSXElementConstructor<any>;
|
|
|
432
636
|
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
433
637
|
declare const BaseIcon: React$1.JSXElementConstructor<any>;
|
|
434
638
|
|
|
435
|
-
declare const
|
|
639
|
+
declare const BaseIconButton: React$1.JSXElementConstructor<any>;
|
|
436
640
|
|
|
437
641
|
declare const BaseTextField: React$1.JSXElementConstructor<any>;
|
|
438
642
|
|
|
@@ -487,7 +691,7 @@ type ControlledPaginationProps = {
|
|
|
487
691
|
displayRowsPerPage?: boolean;
|
|
488
692
|
displayPagination?: boolean;
|
|
489
693
|
selectionStatus: SelectionStatus;
|
|
490
|
-
apiRef: MutableRefObject<GridApiPro>;
|
|
694
|
+
apiRef: MutableRefObject<GridApiPro | null>;
|
|
491
695
|
paginationModel: GridPaginationModel;
|
|
492
696
|
onPaginationModelChange: (model: GridPaginationModel, details: GridCallbackDetails<'pagination'>) => void;
|
|
493
697
|
pageSizeOptions?: number[];
|
|
@@ -508,7 +712,7 @@ type ServerSideControlledPaginationProps = {
|
|
|
508
712
|
rowCount: number;
|
|
509
713
|
loading?: boolean;
|
|
510
714
|
};
|
|
511
|
-
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPro
|
|
715
|
+
declare const onServerSideSelectionStatusChange: (newSelectionModel: GridRowSelectionModel, apiRef: React$1.MutableRefObject<GridApiPro | null>, selectionStatus: React$1.MutableRefObject<SelectionStatus>, forceUpdate: React$1.Dispatch<React$1.SetStateAction<number>>, isRowSelectable: ((params: GridRowParams<any>) => boolean) | undefined, page: number, pageSize: number) => void;
|
|
512
716
|
declare const ServerSideControlledPagination: React$1.FC<ServerSideControlledPaginationProps>;
|
|
513
717
|
|
|
514
718
|
interface TextCellProps extends ComponentProps<'div'> {
|
|
@@ -607,4 +811,4 @@ type ToolbarWrapperProps = {
|
|
|
607
811
|
};
|
|
608
812
|
declare const ToolbarWrapper: React$1.FC<ToolbarWrapperProps>;
|
|
609
813
|
|
|
610
|
-
export { BaseButton, BaseCheckbox, BaseIcon,
|
|
814
|
+
export { BaseButton, BaseCheckbox, BaseIcon, BaseIconButton, 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_ANY_OF, DOES_NOT_HAVE_ANY_OF_WITH_SELECT, DOES_NOT_HAVE_WITH_SELECT, DataGrid, DataGridModel, DataGridProps, EMPTY_ROW_SELECTION_MODEL, 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_I, IS_ANY_OF_I_WITH_SELECT, 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, ModelsTable, 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, areSearchStringsEqual, buildQueryParamsString, buildStorageKey, clearPreviousVersionStorage, convertFromDisplayFormat, convertToDisplayFormat, createRowSelectionModel, customColumnTypes, decodeValue, encodeValue, getColumnVisibilityFromString, getCompletion, getDecodedSearchFromUrl, getFilterModelFromString, getFinalSearch, getGridNumericOperators, getGridStringArrayOperators, getGridStringArrayOperatorsWithSelect, getGridStringArrayOperatorsWithSelectOnStringArrayColumns, getGridStringOperators, getModelsParsedOrUpdateLocalStorage, getPaginationFromString, getPinnedColumnsFromString, getRsMultipleSelectColumnType, getRsMultipleSelectWithShortOperatorListColumnType, getRsNumberColumnType, getRsSingleSelectColumnType, getRsSingleSelectWithShortOperatorListColumnType, getRsStringColumnType, getSearchParamsFromColumnVisibility, getSearchParamsFromFilterModel, getSearchParamsFromPagination, getSearchParamsFromPinnedColumns, getSearchParamsFromSorting, getSearchParamsFromTab, getSelectedIds, getSelectionCount, getSortingFromString, isOperatorValueValid, isRowSelected, isValueValid, muiIconToDSIcon, numberOperatorDecoder, numberOperatorEncoder, onServerSideSelectionStatusChange, operatorList, updateUrl, urlSearchParamsToString };
|
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { o as operatorList } from './_internal/StatefulDataGrid2.js';
|
|
2
2
|
export { L as CATEGORIES, C as CONTAINS_ANY_OF, m as CONTAINS_ANY_OF_I, J as DIMENSION_MODEL_KEY, D as DOES_NOT_CONTAIN, a as DOES_NOT_EQUAL, b as DOES_NOT_HAVE, n as DOES_NOT_HAVE_ANY_OF, p as DOES_NOT_HAVE_ANY_OF_WITH_SELECT, c as DOES_NOT_HAVE_WITH_SELECT, E as ENDS_WITH_ANY_OF, F as FILTER_MODEL_KEY, K as FILTER_SEARCH_KEY, H as HAS, u as HAS_ANY_OF, v as HAS_ANY_OF_WITH_SELECT, e as HAS_ONLY, f as HAS_ONLY_WITH_SELECT, d as HAS_WITH_SELECT, h as IS, q as IS_ANY_OF, s as IS_ANY_OF_I, t as IS_ANY_OF_I_WITH_SELECT, r as IS_ANY_OF_WITH_SELECT, I as IS_BETWEEN, j as IS_NOT, w as IS_NOT_ANY_OF, x as IS_NOT_ANY_OF_WITH_SELECT, k as IS_NOT_WITH_SELECT, i as IS_WITH_SELECT, P as PAGINATION_MODEL_KEY, G as PINNED_COLUMNS, B as SORT_MODEL_KEY, S as STARTS_WITH_ANY_OF, ag as StatefulDataGrid, V as VISIBILITY_MODEL_KEY, af as areFilterModelsEquivalent, U as areSearchStringsEqual, T as buildQueryParamsString, M as buildStorageKey, N as clearPreviousVersionStorage, Q as convertFromDisplayFormat, O as convertToDisplayFormat, W as decodeValue, X as encodeValue, a7 as getColumnVisibilityFromString, R as getDecodedSearchFromUrl, a1 as getFilterModelFromString, ac as getFinalSearch, g as getGridNumericOperators, y as getGridStringArrayOperators, z as getGridStringArrayOperatorsWithSelect, A as getGridStringArrayOperatorsWithSelectOnStringArrayColumns, l as getGridStringOperators, ad as getModelsParsedOrUpdateLocalStorage, a5 as getPaginationFromString, a9 as getPinnedColumnsFromString, a8 as getSearchParamsFromColumnVisibility, a2 as getSearchParamsFromFilterModel, a6 as getSearchParamsFromPagination, aa as getSearchParamsFromPinnedColumns, a4 as getSearchParamsFromSorting, ab as getSearchParamsFromTab, a3 as getSortingFromString, $ as isOperatorValueValid, a0 as isValueValid, _ as numberOperatorDecoder, Z as numberOperatorEncoder, o as operatorList, ae as updateUrl, Y as urlSearchParamsToString } from './_internal/StatefulDataGrid2.js';
|
|
3
3
|
export { D as DEFAULT_OPERATORS, G as GridToolbarFilterSemanticField, g as getCompletion } from './_internal/GridToolbarFilterSemanticField2.js';
|
|
4
|
+
export { C as ControlledPagination, E as EMPTY_ROW_SELECTION_MODEL, S as ServerSideControlledPagination, c as createRowSelectionModel, a as getSelectedIds, g as getSelectionCount, i as isRowSelected, o as onServerSideSelectionStatusChange } from './_internal/ServerSideControlledPagination.js';
|
|
4
5
|
import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from '@mui/x-data-grid-pro';
|
|
5
6
|
export { getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
6
|
-
export { B as BaseButton, a as BaseCheckbox, b as BaseIcon, c as
|
|
7
|
+
export { B as BaseButton, a as BaseCheckbox, b as BaseIcon, c as BaseIconButton, m as muiIconToDSIcon } from './_internal/BaseIconButton.js';
|
|
7
8
|
export { B as BaseTextField } from './_internal/BaseTextField.js';
|
|
8
9
|
export { D as DataGrid } from './_internal/DataGrid2.js';
|
|
9
|
-
export { C as ControlledPagination, S as ServerSideControlledPagination, o as onServerSideSelectionStatusChange } from './_internal/ControlledPagination.js';
|
|
10
10
|
export { T as TextCell } from './_internal/TextCell2.js';
|
|
11
11
|
export { T as Toolbar } from './_internal/Toolbar2.js';
|
|
12
12
|
export { T as ToolbarWrapper } from './_internal/ToolbarWrapper2.js';
|