@redsift/table 11.6.0-muiv5-alpha.4 → 11.6.0-muiv5-alpha.5

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.
Files changed (214) hide show
  1. package/_internal/BaseComponents.js +3 -0
  2. package/_internal/BaseComponents.js.map +1 -0
  3. package/_internal/BasePopper.js +2448 -0
  4. package/_internal/BasePopper.js.map +1 -0
  5. package/_internal/BaseTextField.js +15 -0
  6. package/_internal/BaseTextField.js.map +1 -0
  7. package/_internal/ControlledPagination.js +10484 -0
  8. package/_internal/ControlledPagination.js.map +1 -0
  9. package/_internal/DataGrid.js +6 -0
  10. package/_internal/DataGrid.js.map +1 -0
  11. package/{components/DataGrid/DataGrid.d.ts → _internal/DataGrid2.js} +2 -2
  12. package/_internal/DataGrid2.js.map +1 -0
  13. package/_internal/GridToolbarFilterSemanticField.js +5 -0
  14. package/_internal/GridToolbarFilterSemanticField.js.map +1 -0
  15. package/{components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.d.ts → _internal/GridToolbarFilterSemanticField2.js} +2 -2
  16. package/_internal/GridToolbarFilterSemanticField2.js.map +1 -0
  17. package/_internal/Pagination.js +7 -0
  18. package/_internal/Pagination.js.map +1 -0
  19. package/_internal/Portal.js +4363 -0
  20. package/_internal/Portal.js.map +1 -0
  21. package/{components/Pagination/ServerSideControlledPagination.d.ts → _internal/ServerSideControlledPagination.js} +19 -3
  22. package/_internal/StatefulDataGrid.js +6 -0
  23. package/_internal/StatefulDataGrid.js.map +1 -0
  24. package/{components/StatefulDataGrid/types.d.ts → _internal/StatefulDataGrid2.js} +5 -2
  25. package/_internal/StatefulDataGrid2.js.map +1 -0
  26. package/_internal/TextCell.js +3 -0
  27. package/_internal/TextCell.js.map +1 -0
  28. package/{components/TextCell/types.d.ts → _internal/TextCell2.js} +7 -2
  29. package/_internal/TextCell2.js.map +1 -0
  30. package/_internal/Toolbar.js +4 -0
  31. package/_internal/Toolbar.js.map +1 -0
  32. package/{components/Toolbar/types.d.ts → _internal/Toolbar2.js} +19 -3
  33. package/_internal/Toolbar2.js.map +1 -0
  34. package/_internal/ToolbarWrapper.js +6 -0
  35. package/_internal/ToolbarWrapper.js.map +1 -0
  36. package/{components/ToolbarWrapper/ToolbarWrapper.d.ts → _internal/ToolbarWrapper2.js} +2 -2
  37. package/_internal/ToolbarWrapper2.js.map +1 -0
  38. package/{_virtual → _internal}/_rollupPluginBabelHelpers.js +1 -1
  39. package/_internal/jsx-runtime.js +1342 -0
  40. package/_internal/jsx-runtime.js.map +1 -0
  41. package/{components/DataGrid/types.d.ts → _internal/types.js} +1 -2
  42. package/{components/GridToolbarFilterSemanticField/types.d.ts → _internal/types2.js} +1 -1
  43. package/_internal/useControlledDatagridState.js +2175 -0
  44. package/_internal/useControlledDatagridState.js.map +1 -0
  45. package/index.js +406 -38
  46. package/index.js.map +1 -1
  47. package/package.json +2 -2
  48. package/_virtual/_commonjsHelpers.js +0 -6
  49. package/_virtual/_commonjsHelpers.js.map +0 -1
  50. package/_virtual/index.js +0 -4
  51. package/_virtual/index.js.map +0 -1
  52. package/_virtual/index2.js +0 -4
  53. package/_virtual/index2.js.map +0 -1
  54. package/_virtual/index3.js +0 -4
  55. package/_virtual/index3.js.map +0 -1
  56. package/_virtual/jsx-runtime.js +0 -4
  57. package/_virtual/jsx-runtime.js.map +0 -1
  58. package/_virtual/react-is.development.js +0 -4
  59. package/_virtual/react-is.development.js.map +0 -1
  60. package/_virtual/react-is.development2.js +0 -4
  61. package/_virtual/react-is.development2.js.map +0 -1
  62. package/_virtual/react-is.production.min.js +0 -4
  63. package/_virtual/react-is.production.min.js.map +0 -1
  64. package/_virtual/react-is.production.min2.js +0 -4
  65. package/_virtual/react-is.production.min2.js.map +0 -1
  66. package/_virtual/react-jsx-runtime.development.js +0 -4
  67. package/_virtual/react-jsx-runtime.development.js.map +0 -1
  68. package/_virtual/react-jsx-runtime.production.min.js +0 -4
  69. package/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  70. package/components/BaseComponents/BaseButton.d.ts +0 -5
  71. package/components/BaseComponents/BaseButton.js +0 -41
  72. package/components/BaseComponents/BaseButton.js.map +0 -1
  73. package/components/BaseComponents/BaseCheckbox.d.ts +0 -5
  74. package/components/BaseComponents/BaseCheckbox.js +0 -24
  75. package/components/BaseComponents/BaseCheckbox.js.map +0 -1
  76. package/components/BaseComponents/BaseIcon.d.ts +0 -7
  77. package/components/BaseComponents/BaseIcon.js +0 -33
  78. package/components/BaseComponents/BaseIcon.js.map +0 -1
  79. package/components/BaseComponents/BasePopper.d.ts +0 -5
  80. package/components/BaseComponents/BasePopper.js +0 -13
  81. package/components/BaseComponents/BasePopper.js.map +0 -1
  82. package/components/BaseComponents/BaseTextField.d.ts +0 -5
  83. package/components/BaseComponents/BaseTextField.js +0 -26
  84. package/components/BaseComponents/BaseTextField.js.map +0 -1
  85. package/components/DataGrid/DataGrid.js +0 -340
  86. package/components/DataGrid/DataGrid.js.map +0 -1
  87. package/components/DataGrid/styles.js +0 -74
  88. package/components/DataGrid/styles.js.map +0 -1
  89. package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js +0 -183
  90. package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js.map +0 -1
  91. package/components/GridToolbarFilterSemanticField/styles.js +0 -20
  92. package/components/GridToolbarFilterSemanticField/styles.js.map +0 -1
  93. package/components/Pagination/ControlledPagination.d.ts +0 -21
  94. package/components/Pagination/ControlledPagination.js +0 -74
  95. package/components/Pagination/ControlledPagination.js.map +0 -1
  96. package/components/Pagination/ServerSideControlledPagination.js +0 -102
  97. package/components/Pagination/ServerSideControlledPagination.js.map +0 -1
  98. package/components/StatefulDataGrid/StatefulDataGrid.d.ts +0 -6
  99. package/components/StatefulDataGrid/StatefulDataGrid.js +0 -373
  100. package/components/StatefulDataGrid/StatefulDataGrid.js.map +0 -1
  101. package/components/TextCell/TextCell.d.ts +0 -9
  102. package/components/TextCell/TextCell.js +0 -48
  103. package/components/TextCell/TextCell.js.map +0 -1
  104. package/components/TextCell/styles.js +0 -22
  105. package/components/TextCell/styles.js.map +0 -1
  106. package/components/Toolbar/Toolbar.d.ts +0 -20
  107. package/components/Toolbar/Toolbar.js +0 -72
  108. package/components/Toolbar/Toolbar.js.map +0 -1
  109. package/components/Toolbar/styles.js +0 -17
  110. package/components/Toolbar/styles.js.map +0 -1
  111. package/components/ToolbarWrapper/ToolbarWrapper.js +0 -60
  112. package/components/ToolbarWrapper/ToolbarWrapper.js.map +0 -1
  113. package/hooks/useControlledDatagridState.js +0 -109
  114. package/hooks/useControlledDatagridState.js.map +0 -1
  115. package/hooks/useFetchState.js +0 -34
  116. package/hooks/useFetchState.js.map +0 -1
  117. package/hooks/useStatefulTable.d.ts +0 -12
  118. package/hooks/useStatefulTable.js +0 -182
  119. package/hooks/useStatefulTable.js.map +0 -1
  120. package/hooks/useTableStates.js +0 -52
  121. package/hooks/useTableStates.js.map +0 -1
  122. package/index.d.ts +0 -40
  123. package/packages/design-system/src/components/theme/context.js +0 -7
  124. package/packages/design-system/src/components/theme/context.js.map +0 -1
  125. package/packages/popovers/src/components/tooltip/Tooltip.js +0 -60
  126. package/packages/popovers/src/components/tooltip/Tooltip.js.map +0 -1
  127. package/packages/popovers/src/components/tooltip/context.js +0 -6
  128. package/packages/popovers/src/components/tooltip/context.js.map +0 -1
  129. package/packages/popovers/src/components/tooltip/types.js +0 -28
  130. package/packages/popovers/src/components/tooltip/types.js.map +0 -1
  131. package/packages/popovers/src/components/tooltip/useTooltip.js +0 -78
  132. package/packages/popovers/src/components/tooltip/useTooltip.js.map +0 -1
  133. package/packages/popovers/src/components/tooltip/useTooltipContext.js +0 -13
  134. package/packages/popovers/src/components/tooltip/useTooltipContext.js.map +0 -1
  135. package/packages/popovers/src/components/tooltip-content/TooltipContent.js +0 -79
  136. package/packages/popovers/src/components/tooltip-content/TooltipContent.js.map +0 -1
  137. package/packages/popovers/src/components/tooltip-content/styles.js +0 -127
  138. package/packages/popovers/src/components/tooltip-content/styles.js.map +0 -1
  139. package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js +0 -47
  140. package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js.map +0 -1
  141. package/utils/columnTypes/index.d.ts +0 -78
  142. package/utils/columnTypes/index.js +0 -49
  143. package/utils/columnTypes/index.js.map +0 -1
  144. package/utils/columns/detailPanelToggleColDef.d.ts +0 -5
  145. package/utils/columns/detailPanelToggleColDef.js +0 -8
  146. package/utils/columns/detailPanelToggleColDef.js.map +0 -1
  147. package/utils/fields/InputNumberInterval.js +0 -85
  148. package/utils/fields/InputNumberInterval.js.map +0 -1
  149. package/utils/gpt.d.ts +0 -3
  150. package/utils/gpt.js +0 -33
  151. package/utils/gpt.js.map +0 -1
  152. package/utils/localStorage.d.ts +0 -17
  153. package/utils/localStorage.js +0 -59
  154. package/utils/localStorage.js.map +0 -1
  155. package/utils/operators/index.d.ts +0 -68
  156. package/utils/operators/index.js +0 -52
  157. package/utils/operators/index.js.map +0 -1
  158. package/utils/operators/numeric/getGridNumericOperators.d.ts +0 -5
  159. package/utils/operators/numeric/getGridNumericOperators.js +0 -7
  160. package/utils/operators/numeric/getGridNumericOperators.js.map +0 -1
  161. package/utils/operators/numeric/isBetween.d.ts +0 -10
  162. package/utils/operators/numeric/isBetween.js +0 -28
  163. package/utils/operators/numeric/isBetween.js.map +0 -1
  164. package/utils/operators/string/doesNotContain.d.ts +0 -10
  165. package/utils/operators/string/doesNotContain.js +0 -25
  166. package/utils/operators/string/doesNotContain.js.map +0 -1
  167. package/utils/operators/string/doesNotEqual.d.ts +0 -10
  168. package/utils/operators/string/doesNotEqual.js +0 -25
  169. package/utils/operators/string/doesNotEqual.js.map +0 -1
  170. package/utils/operators/string/doesNotHave.d.ts +0 -16
  171. package/utils/operators/string/doesNotHave.js +0 -24
  172. package/utils/operators/string/doesNotHave.js.map +0 -1
  173. package/utils/operators/string/getGridStringOperators.d.ts +0 -5
  174. package/utils/operators/string/getGridStringOperators.js +0 -9
  175. package/utils/operators/string/getGridStringOperators.js.map +0 -1
  176. package/utils/operators/string/has.d.ts +0 -16
  177. package/utils/operators/string/has.js +0 -24
  178. package/utils/operators/string/has.js.map +0 -1
  179. package/utils/operators/string/hasOnly.d.ts +0 -16
  180. package/utils/operators/string/hasOnly.js +0 -24
  181. package/utils/operators/string/hasOnly.js.map +0 -1
  182. package/utils/operators/string/is.d.ts +0 -16
  183. package/utils/operators/string/is.js +0 -26
  184. package/utils/operators/string/is.js.map +0 -1
  185. package/utils/operators/string/isNot.d.ts +0 -16
  186. package/utils/operators/string/isNot.js +0 -26
  187. package/utils/operators/string/isNot.js.map +0 -1
  188. package/utils/operators/string-array/containsAnyOf.d.ts +0 -16
  189. package/utils/operators/string-array/containsAnyOf.js +0 -56
  190. package/utils/operators/string-array/containsAnyOf.js.map +0 -1
  191. package/utils/operators/string-array/doesNotHaveAnyOf.js +0 -26
  192. package/utils/operators/string-array/doesNotHaveAnyOf.js.map +0 -1
  193. package/utils/operators/string-array/endsWithAnyOf.d.ts +0 -10
  194. package/utils/operators/string-array/endsWithAnyOf.js +0 -31
  195. package/utils/operators/string-array/endsWithAnyOf.js.map +0 -1
  196. package/utils/operators/string-array/getGridStringArrayOperators.d.ts +0 -7
  197. package/utils/operators/string-array/getGridStringArrayOperators.js +0 -19
  198. package/utils/operators/string-array/getGridStringArrayOperators.js.map +0 -1
  199. package/utils/operators/string-array/hasAnyOf.d.ts +0 -16
  200. package/utils/operators/string-array/hasAnyOf.js +0 -28
  201. package/utils/operators/string-array/hasAnyOf.js.map +0 -1
  202. package/utils/operators/string-array/isAnyOf.d.ts +0 -16
  203. package/utils/operators/string-array/isAnyOf.js +0 -32
  204. package/utils/operators/string-array/isAnyOf.js.map +0 -1
  205. package/utils/operators/string-array/isNotAnyOf.d.ts +0 -10
  206. package/utils/operators/string-array/isNotAnyOf.js +0 -28
  207. package/utils/operators/string-array/isNotAnyOf.js.map +0 -1
  208. package/utils/operators/string-array/startsWithAnyOf.d.ts +0 -10
  209. package/utils/operators/string-array/startsWithAnyOf.js +0 -31
  210. package/utils/operators/string-array/startsWithAnyOf.js.map +0 -1
  211. package/utils/urlLocalStorageSync.d.ts +0 -73
  212. package/utils/urlLocalStorageSync.js +0 -756
  213. package/utils/urlLocalStorageSync.js.map +0 -1
  214. /package/{_virtual → _internal}/_rollupPluginBabelHelpers.js.map +0 -0
package/index.js CHANGED
@@ -1,38 +1,406 @@
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, 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 { 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 { 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 { DEFAULT_OPERATORS, GridToolbarFilterSemanticField } from './components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js';
32
- export { ControlledPagination } from './components/Pagination/ControlledPagination.js';
33
- export { ServerSideControlledPagination, onServerSideSelectionStatusChange } from './components/Pagination/ServerSideControlledPagination.js';
34
- export { StatefulDataGrid } from './components/StatefulDataGrid/StatefulDataGrid.js';
35
- export { TextCell } from './components/TextCell/TextCell.js';
36
- export { Toolbar } from './components/Toolbar/Toolbar.js';
37
- export { ToolbarWrapper } from './components/ToolbarWrapper/ToolbarWrapper.js';
38
- //# sourceMappingURL=index.js.map
1
+ import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleSingleSelect';
2
+ import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputMultipleValue';
3
+ import * as _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect from '@mui/x-data-grid/components/panel/filterPanel/GridFilterInputSingleSelect';
4
+ import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
5
+ import { GridNativeColTypes, GridColumnTypesRecord, GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputSingleSelect, GridFilterInputMultipleValue, GridFilterInputMultipleSingleSelect, GridFilterModel, GridSortModel, GridSortItem, GridColumnVisibilityModel, GridPinnedColumns } from '@mui/x-data-grid-pro';
6
+ export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
7
+ import { D as DataGridProps } from './_internal/types.js';
8
+ export { D as DataGridProps, S as SelectionStatus, a as StyledDataGridProps } from './_internal/types.js';
9
+ import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
10
+ export { B as BaseButton, a as BaseCheckbox, b as BaseIcon, c as BasePopper, d as BaseTextField, m as muiIconToDSIcon } from './_internal/BaseTextField.js';
11
+ export { D as DataGrid } from './_internal/DataGrid2.js';
12
+ export { D as DEFAULT_OPERATORS, G as GridToolbarFilterSemanticField } from './_internal/GridToolbarFilterSemanticField2.js';
13
+ export { C as CompletionResponse, F as FilterConfig, G as GridToolbarFilterSemanticFieldProps } from './_internal/types2.js';
14
+ export { a as ControlledPagination, C as ControlledPaginationProps, b as ServerSideControlledPagination, S as ServerSideControlledPaginationProps, o as onServerSideSelectionStatusChange } from './_internal/ServerSideControlledPagination.js';
15
+ export { S as StatefulDataGrid, a as StatefulDataGridProps } from './_internal/StatefulDataGrid2.js';
16
+ export { T as TextCell } from './_internal/TextCell2.js';
17
+ export { T as Toolbar } from './_internal/Toolbar2.js';
18
+ export { a as ToolbarWrapper, T as ToolbarWrapperProps } from './_internal/ToolbarWrapper2.js';
19
+ import 'react';
20
+ import '@mui/material';
21
+ import '@redsift/design-system';
22
+ import '@mui/x-data-grid-pro/models/gridApiPro';
23
+
24
+ declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
25
+
26
+ declare const getRsStringColumnType: () => {
27
+ extendType: GridNativeColTypes;
28
+ filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
29
+ };
30
+ declare const getRsNumberColumnType: () => {
31
+ extendType: GridNativeColTypes;
32
+ filterOperators: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
33
+ };
34
+ declare const getRsSingleSelectColumnType: () => {
35
+ extendType: GridNativeColTypes;
36
+ filterOperators: ({
37
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
38
+ label: string;
39
+ value: string;
40
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
41
+ } | {
42
+ label: string;
43
+ value: string;
44
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
45
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
46
+ } | {
47
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
48
+ label: string;
49
+ value: string;
50
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
51
+ })[];
52
+ };
53
+ declare const getRsSingleSelectWithShortOperatorListColumnType: () => {
54
+ extendType: GridNativeColTypes;
55
+ filterOperators: ({
56
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
57
+ label: string;
58
+ value: string;
59
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
60
+ } | {
61
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
62
+ label: string;
63
+ value: string;
64
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
65
+ })[];
66
+ };
67
+ declare const getRsMultipleSelectColumnType: () => {
68
+ extendType: GridNativeColTypes;
69
+ filterOperators: ({
70
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
71
+ label: string;
72
+ value: string;
73
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
74
+ } | {
75
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
76
+ label: string;
77
+ value: string;
78
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
79
+ })[];
80
+ };
81
+ declare const getRsMultipleSelectWithShortOperatorListColumnType: () => {
82
+ extendType: GridNativeColTypes;
83
+ filterOperators: ({
84
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
85
+ label: string;
86
+ value: string;
87
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
88
+ } | {
89
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
90
+ label: string;
91
+ value: string;
92
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
93
+ })[];
94
+ };
95
+ declare const customColumnTypes: GridColumnTypesRecord;
96
+
97
+ declare const IS_BETWEEN: {
98
+ label: string;
99
+ value: string;
100
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
101
+ InputComponent: (props: any) => JSX.Element;
102
+ };
103
+
104
+ declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
105
+
106
+ declare const DOES_NOT_CONTAIN: {
107
+ label: string;
108
+ value: string;
109
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
110
+ InputComponent: typeof GridFilterInputValue;
111
+ };
112
+
113
+ declare const DOES_NOT_EQUAL: {
114
+ label: string;
115
+ value: string;
116
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
117
+ InputComponent: typeof GridFilterInputValue;
118
+ };
119
+
120
+ declare const DOES_NOT_HAVE: {
121
+ label: string;
122
+ value: string;
123
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
124
+ InputComponent: typeof GridFilterInputValue;
125
+ };
126
+ declare const DOES_NOT_HAVE_WITH_SELECT: {
127
+ InputComponent: typeof GridFilterInputSingleSelect;
128
+ label: string;
129
+ value: string;
130
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
131
+ };
132
+
133
+ declare const HAS: {
134
+ label: string;
135
+ value: string;
136
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
137
+ InputComponent: typeof GridFilterInputValue;
138
+ };
139
+ declare const HAS_WITH_SELECT: {
140
+ InputComponent: typeof GridFilterInputSingleSelect;
141
+ label: string;
142
+ value: string;
143
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
144
+ };
145
+
146
+ declare const HAS_ONLY: {
147
+ label: string;
148
+ value: string;
149
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
150
+ InputComponent: typeof GridFilterInputValue;
151
+ };
152
+ declare const HAS_ONLY_WITH_SELECT: {
153
+ InputComponent: typeof GridFilterInputSingleSelect;
154
+ label: string;
155
+ value: string;
156
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
157
+ };
158
+
159
+ declare const IS: {
160
+ label: string;
161
+ value: string;
162
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
163
+ InputComponent: typeof GridFilterInputValue;
164
+ };
165
+ declare const IS_WITH_SELECT: {
166
+ InputComponent: typeof GridFilterInputSingleSelect;
167
+ label: string;
168
+ value: string;
169
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
170
+ };
171
+
172
+ declare const IS_NOT: {
173
+ label: string;
174
+ value: string;
175
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
176
+ InputComponent: typeof GridFilterInputValue;
177
+ };
178
+ declare const IS_NOT_WITH_SELECT: {
179
+ InputComponent: typeof GridFilterInputSingleSelect;
180
+ label: string;
181
+ value: string;
182
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
183
+ };
184
+
185
+ declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
186
+
187
+ declare const CONTAINS_ANY_OF: {
188
+ label: string;
189
+ value: string;
190
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
191
+ InputComponent: typeof GridFilterInputMultipleValue;
192
+ };
193
+ declare const CONTAINS_ANY_OF_I: {
194
+ label: string;
195
+ value: string;
196
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
197
+ InputComponent: typeof GridFilterInputMultipleValue;
198
+ };
199
+
200
+ declare const ENDS_WITH_ANY_OF: {
201
+ label: string;
202
+ value: string;
203
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
204
+ InputComponent: typeof GridFilterInputMultipleValue;
205
+ };
206
+
207
+ declare const IS_ANY_OF: {
208
+ label: string;
209
+ value: string;
210
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
211
+ InputComponent: typeof GridFilterInputMultipleValue;
212
+ };
213
+ declare const IS_ANY_OF_WITH_SELECT: {
214
+ InputComponent: typeof GridFilterInputMultipleSingleSelect;
215
+ label: string;
216
+ value: string;
217
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
218
+ };
219
+
220
+ declare const HAS_ANY_OF: {
221
+ label: string;
222
+ value: string;
223
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
224
+ InputComponent: typeof GridFilterInputMultipleValue;
225
+ };
226
+ declare const HAS_ANY_OF_WITH_SELECT: {
227
+ InputComponent: typeof GridFilterInputMultipleSingleSelect;
228
+ label: string;
229
+ value: string;
230
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
231
+ };
232
+
233
+ declare const IS_NOT_ANY_OF: {
234
+ label: string;
235
+ value: string;
236
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
237
+ InputComponent: typeof GridFilterInputMultipleValue;
238
+ };
239
+
240
+ declare const STARTS_WITH_ANY_OF: {
241
+ label: string;
242
+ value: string;
243
+ getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
244
+ InputComponent: typeof GridFilterInputMultipleValue;
245
+ };
246
+
247
+ declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
248
+ declare const getGridStringArrayOperatorsWithSelect: () => GridFilterOperator<any, number | string | null, any>[];
249
+ declare const getGridStringArrayOperatorsWithSelectOnStringArrayColumns: () => GridFilterOperator<any, number | string | null, any>[];
250
+
251
+ declare const operatorList: {
252
+ string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
253
+ number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
254
+ boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
255
+ date: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
256
+ dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
257
+ singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
258
+ rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
259
+ rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
260
+ rsSingleSelect: ({
261
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
262
+ label: string;
263
+ value: string;
264
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
265
+ } | {
266
+ label: string;
267
+ value: string;
268
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
269
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleValue.GridFilterInputMultipleValue;
270
+ } | {
271
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
272
+ label: string;
273
+ value: string;
274
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
275
+ })[];
276
+ rsSingleSelectWithShortOperatorList: ({
277
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
278
+ label: string;
279
+ value: string;
280
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
281
+ } | {
282
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
283
+ label: string;
284
+ value: string;
285
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
286
+ })[];
287
+ rsMultipleSelect: ({
288
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
289
+ label: string;
290
+ value: string;
291
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
292
+ } | {
293
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
294
+ label: string;
295
+ value: string;
296
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
297
+ })[];
298
+ rsMultipleSelectWithShortOperatorList: ({
299
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputSingleSelect.GridFilterInputSingleSelect;
300
+ label: string;
301
+ value: string;
302
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
303
+ } | {
304
+ InputComponent: typeof _mui_x_data_grid_components_panel_filterPanel_GridFilterInputMultipleSingleSelect.GridFilterInputMultipleSingleSelect;
305
+ label: string;
306
+ value: string;
307
+ getApplyFilterFn: (filterItem: _mui_x_data_grid_pro.GridFilterItem) => ((params: _mui_x_data_grid_pro.GridCellParams<any, any, any>) => boolean) | null;
308
+ })[];
309
+ rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
310
+ };
311
+
312
+ declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
313
+
314
+ declare const PAGINATION_MODEL_KEY = "paginationModel";
315
+ declare const FILTER_MODEL_KEY = "filterModel";
316
+ declare const SORT_MODEL_KEY = "sortModel";
317
+ declare const VISIBILITY_MODEL_KEY = "visibilityModel";
318
+ declare const PINNED_COLUMNS = "pinnedColumns";
319
+ declare const DIMENSION_MODEL_KEY = "dimension";
320
+ declare const FILTER_SEARCH_KEY = "searchModel";
321
+ declare const CATEGORIES: readonly ["paginationModel", "filterModel", "sortModel", "visibilityModel", "dimension", "searchModel", "pinnedColumns"];
322
+ type Category = (typeof CATEGORIES)[number];
323
+ declare const buildStorageKey: ({ id, version, category }: {
324
+ id: string;
325
+ version: number;
326
+ category: Category;
327
+ }) => `${string}:${number}:paginationModel` | `${string}:${number}:filterModel` | `${string}:${number}:sortModel` | `${string}:${number}:visibilityModel` | `${string}:${number}:pinnedColumns` | `${string}:${number}:dimension` | `${string}:${number}:searchModel`;
328
+ declare const clearPreviousVersionStorage: (id: string, previousLocalStorageVersions: number[]) => void;
329
+
330
+ interface ExtendedGridFilterModel extends GridFilterModel {
331
+ quickFilterValues?: string[];
332
+ }
333
+ interface ExtendedGridPaginationModel {
334
+ page: number;
335
+ pageSize: number;
336
+ direction?: 'next' | 'back';
337
+ }
338
+
339
+ type OperatorValue = string | string[];
340
+ declare const decodeValue: (value: string) => OperatorValue;
341
+ declare const encodeValue: (value: string | undefined) => string;
342
+ declare const urlSearchParamsToString: (searchParams: URLSearchParams) => string;
343
+ declare const numberOperatorEncoder: Record<string, string>;
344
+ declare const numberOperatorDecoder: Record<string, string>;
345
+ /** FILTERS */
346
+ declare const getFilterModelFromString: (searchString: string, columns: DataGridProps['columns']) => ExtendedGridFilterModel | 'invalid';
347
+ declare const getSearchParamsFromFilterModel: (filterModel: ExtendedGridFilterModel) => URLSearchParams;
348
+ /** SORT */
349
+ declare const getSortingFromString: (searchString: string, columns: DataGridProps['columns']) => GridSortModel | 'invalid';
350
+ declare const getSearchParamsFromSorting: (sorting: GridSortItem[]) => URLSearchParams;
351
+ /** PAGINATION */
352
+ declare const getPaginationFromString: (searchString: string) => ExtendedGridPaginationModel | 'invalid';
353
+ declare const getSearchParamsFromPagination: (pagination: ExtendedGridPaginationModel) => URLSearchParams;
354
+ /** COLUMN VISIBILITY */
355
+ declare const getSearchParamsFromColumnVisibility: (columnVisibility: GridColumnVisibilityModel, columns: DataGridProps['columns']) => URLSearchParams;
356
+ declare const getColumnVisibilityFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => GridColumnVisibilityModel | 'invalid';
357
+ declare const getPinnedColumnsFromString: (notParsed: string, tableColumns: DataGridProps['columns']) => PinnedColumns | 'invalid';
358
+ declare const getSearchParamsFromPinnedColumns: (pinnedColumns: GridPinnedColumns) => URLSearchParams;
359
+ declare const getSearchParamsFromTab: (search: string) => URLSearchParams;
360
+ type FinalSearchInput = {
361
+ localStorageVersion: number;
362
+ filterModel: GridFilterModel;
363
+ sortModel: GridSortModel;
364
+ paginationModel: ExtendedGridPaginationModel;
365
+ columnsVisibilityModel: GridColumnVisibilityModel;
366
+ pinnedColumnsModel: GridPinnedColumns;
367
+ search: string;
368
+ columns: DataGridProps['columns'];
369
+ };
370
+ declare const getFinalSearch: ({ search, localStorageVersion, filterModel, sortModel, paginationModel, columnsVisibilityModel, pinnedColumnsModel, columns, }: FinalSearchInput) => URLSearchParams;
371
+ type PinnedColumns = {
372
+ left: string[];
373
+ right: string[];
374
+ };
375
+ type ModelsLocalStorage = {
376
+ localStorageFilters: string;
377
+ setLocalStorageFilters: (search: string) => void;
378
+ localStorageSorting: string;
379
+ setLocalStorageSorting: (search: string) => void;
380
+ localStoragePagination: string;
381
+ setLocalStoragePagination: (search: string) => void;
382
+ localStorageColumnsVisibility: string;
383
+ setLocalStorageColumnsVisibility: (search: string) => void;
384
+ localStoragePinnedColumns: string;
385
+ setLocalStoragePinnedColumns: (search: string) => void;
386
+ };
387
+ type ModelsTable = {
388
+ filterModel: GridFilterModel;
389
+ sortModel: GridSortModel;
390
+ paginationModel: ExtendedGridPaginationModel;
391
+ columnVisibilityModel: GridColumnVisibilityModel;
392
+ pinnedColumnsModel: PinnedColumns;
393
+ };
394
+ /** Return the state of the table given the URL and the local storage state */
395
+ declare const getModelsParsedOrUpdateLocalStorage: (search: string, localStorageVersion: number, columns: DataGridProps['columns'], historyReplace: (newSearch: string) => void, initialState: GridInitialStatePro | undefined, localStorage: ModelsLocalStorage) => ModelsTable;
396
+ type DataGridModel = {
397
+ filterModel: GridFilterModel;
398
+ sortModel: GridSortModel;
399
+ paginationModel: ExtendedGridPaginationModel;
400
+ columnsModel: GridColumnVisibilityModel;
401
+ pinnedColumnsModel: GridPinnedColumns;
402
+ };
403
+ declare const updateUrl: ({ filterModel, sortModel, paginationModel, columnsModel: columnsVisibilityModel, pinnedColumnsModel }: DataGridModel, search: string, localStorageVersion: number, historyReplace: (newSearch: string) => void, columns: DataGridProps['columns']) => void;
404
+ declare const areFilterModelsEquivalent: (filterModel: GridFilterModel, filterModelToMatch: GridFilterModel) => boolean;
405
+
406
+ export { CATEGORIES, CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, Category, DETAIL_PANEL_TOGGLE_COL_DEF, DIMENSION_MODEL_KEY, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_HAVE, DOES_NOT_HAVE_WITH_SELECT, DataGridModel, ENDS_WITH_ANY_OF, FILTER_MODEL_KEY, FILTER_SEARCH_KEY, 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_WITH_SELECT, IS_WITH_SELECT, PAGINATION_MODEL_KEY, PINNED_COLUMNS, PinnedColumns, SORT_MODEL_KEY, STARTS_WITH_ANY_OF, 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, numberOperatorDecoder, numberOperatorEncoder, operatorList, updateUrl, urlSearchParamsToString };
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/utils/columns/detailPanelToggleColDef.ts"],"sourcesContent":["import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from '@mui/x-data-grid-pro';\n\n// Don't use a spread operator there or it will break the build due to MUI internal components\nconst DETAIL_PANEL_TOGGLE_COL_DEF = GRID_DETAIL_PANEL_TOGGLE_COL_DEF;\nDETAIL_PANEL_TOGGLE_COL_DEF.type = 'actions';\n\nexport { DETAIL_PANEL_TOGGLE_COL_DEF };\n"],"names":["DETAIL_PANEL_TOGGLE_COL_DEF","GRID_DETAIL_PANEL_TOGGLE_COL_DEF","type"],"mappings":";;;;;;;;;;;;;AAEA;AACMA,MAAAA,2BAA2B,GAAGC,iCAAgC;AACpED,2BAA2B,CAACE,IAAI,GAAG,SAAS;;;;"}
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "test": "yarn test:unit && yarn test:storybook"
31
31
  },
32
32
  "types": "types.d.ts",
33
- "version": "11.6.0-muiv5-alpha.4",
33
+ "version": "11.6.0-muiv5-alpha.5",
34
34
  "dependencies": {
35
35
  "@emotion/react": "^11.11.0",
36
36
  "@emotion/styled": "^11.11.0",
@@ -92,5 +92,5 @@
92
92
  "react-dom": ">=17",
93
93
  "styled-components": "^5.3.5"
94
94
  },
95
- "gitHead": "2b1f551b817cdaaddcc7dabb1b1fbaa10e6467e5"
95
+ "gitHead": "7c58df723ed4fb187d6ff9f43b2cf502f630b3cb"
96
96
  }
@@ -1,6 +0,0 @@
1
- function getDefaultExportFromCjs (x) {
2
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
- }
4
-
5
- export { getDefaultExportFromCjs };
6
- //# sourceMappingURL=_commonjsHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/_virtual/index.js DELETED
@@ -1,4 +0,0 @@
1
- var propTypes = {exports: {}};
2
-
3
- export { propTypes as __module };
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs = {exports: {}};
2
-
3
- export { reactIs as __module };
4
- //# sourceMappingURL=index2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs = {exports: {}};
2
-
3
- export { reactIs as __module };
4
- //# sourceMappingURL=index3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var jsxRuntime = {exports: {}};
2
-
3
- export { jsxRuntime as __module };
4
- //# sourceMappingURL=jsx-runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs_development = {};
2
-
3
- export { reactIs_development as __exports };
4
- //# sourceMappingURL=react-is.development.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-is.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs_development = {};
2
-
3
- export { reactIs_development as __exports };
4
- //# sourceMappingURL=react-is.development2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-is.development2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs_production_min = {};
2
-
3
- export { reactIs_production_min as __exports };
4
- //# sourceMappingURL=react-is.production.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-is.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactIs_production_min = {};
2
-
3
- export { reactIs_production_min as __exports };
4
- //# sourceMappingURL=react-is.production.min2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-is.production.min2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactJsxRuntime_development = {};
2
-
3
- export { reactJsxRuntime_development as __exports };
4
- //# sourceMappingURL=react-jsx-runtime.development.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx-runtime.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,4 +0,0 @@
1
- var reactJsxRuntime_production_min = {};
2
-
3
- export { reactJsxRuntime_production_min as __exports };
4
- //# sourceMappingURL=react-jsx-runtime.production.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx-runtime.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- declare const BaseButton: React.JSXElementConstructor<any>;
4
-
5
- export { BaseButton };
@@ -1,41 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef } from 'react';
3
- import { ButtonsColorPalette, IconButton, Button } from '@redsift/design-system';
4
-
5
- const _excluded = ["children", "color", "onClick", "startIcon"];
6
- const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
7
- var _props$className;
8
- const {
9
- children,
10
- color: propsColor,
11
- onClick,
12
- startIcon
13
- } = props,
14
- forwardedProps = _objectWithoutProperties(props, _excluded);
15
- const color = Object.keys(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
16
- if ((_props$className = props.className) !== null && _props$className !== void 0 && _props$className.includes('redsift-condensed')) {
17
- return /*#__PURE__*/React__default.createElement(IconButton, _extends({}, forwardedProps, {
18
- color: color,
19
- onClick: onClick,
20
- ref: ref,
21
- variant: "unstyled",
22
- isActive: props['aria-expanded'] === 'true',
23
- icon: typeof startIcon !== 'string' ? /*#__PURE__*/React__default.cloneElement(startIcon, {
24
- fontSize: 'medium'
25
- }) : startIcon,
26
- "aria-label": children,
27
- size: "medium"
28
- }));
29
- }
30
- return /*#__PURE__*/React__default.createElement(Button, _extends({}, forwardedProps, {
31
- color: color,
32
- onClick: onClick,
33
- ref: ref,
34
- variant: "unstyled",
35
- isActive: props['aria-expanded'] === 'true',
36
- leftIcon: startIcon
37
- }), children);
38
- });
39
-
40
- export { BaseButton };
41
- //# sourceMappingURL=BaseButton.js.map