@redsift/table 7.1.0 → 7.1.1

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/index.d.ts CHANGED
@@ -44,14 +44,14 @@ interface DataGridProps extends DataGridProProps {
44
44
  hideToolbar?: boolean;
45
45
  }
46
46
 
47
- declare type StyledDataGridProps = {
47
+ type StyledDataGridProps = {
48
48
  $height?: string;
49
49
  };
50
50
 
51
51
  declare const DataGrid: Comp$1<DataGridProps, HTMLDivElement>;
52
52
 
53
- declare type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
54
- declare type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
53
+ type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
54
+ type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
55
55
  interface ToolbarProps {
56
56
  /** Props to forward to the column button. */
57
57
  columnsButtonProps?: GridToolbarColumnsProps;
@@ -95,7 +95,7 @@ declare global {
95
95
  declare const Toolbar: Comp$1<ToolbarProps, HTMLDivElement>;
96
96
 
97
97
  /** Component Type. */
98
- declare type Comp<P, T = HTMLElement> = {
98
+ type Comp<P, T = HTMLElement> = {
99
99
  (props: P & {
100
100
  ref?: Ref<T>;
101
101
  }): ReactElement | null;
@@ -109,7 +109,7 @@ declare type Comp<P, T = HTMLElement> = {
109
109
  className?: string;
110
110
  };
111
111
  /** Get types of the values of a record. */
112
- declare type ValueOf<T extends Record<any, any>> = T[keyof T];
112
+ type ValueOf<T extends Record<any, any>> = T[keyof T];
113
113
  /**
114
114
  * Color palette.
115
115
  */
@@ -122,7 +122,7 @@ declare const ColorPalette: {
122
122
  readonly question: "question";
123
123
  readonly 'no-data': "no-data";
124
124
  };
125
- declare type ColorPalette = ValueOf<typeof ColorPalette>;
125
+ type ColorPalette = ValueOf<typeof ColorPalette>;
126
126
  declare const ProductColorPalette: {
127
127
  readonly website: "website";
128
128
  readonly ondmarc: "ondmarc";
@@ -131,7 +131,7 @@ declare const ProductColorPalette: {
131
131
  readonly hardenize: "hardenize";
132
132
  readonly tools: "tools";
133
133
  };
134
- declare type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
134
+ type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
135
135
 
136
136
  interface TextCellProps extends ComponentProps<'div'> {
137
137
  /** Including Badge Component. */
package/index.js CHANGED
@@ -114,6 +114,7 @@ function _objectSpread2(target) {
114
114
  return target;
115
115
  }
116
116
  function _defineProperty(obj, key, value) {
117
+ key = _toPropertyKey(key);
117
118
  if (key in obj) {
118
119
  Object.defineProperty(obj, key, {
119
120
  value: value,
@@ -167,8 +168,26 @@ function _objectWithoutProperties(source, excluded) {
167
168
  }
168
169
  return target;
169
170
  }
171
+ function _toPrimitive(input, hint) {
172
+ if (typeof input !== "object" || input === null) return input;
173
+ var prim = input[Symbol.toPrimitive];
174
+ if (prim !== undefined) {
175
+ var res = prim.call(input, hint || "default");
176
+ if (typeof res !== "object") return res;
177
+ throw new TypeError("@@toPrimitive must return a primitive value.");
178
+ }
179
+ return (hint === "string" ? String : Number)(input);
180
+ }
181
+ function _toPropertyKey(arg) {
182
+ var key = _toPrimitive(arg, "string");
183
+ return typeof key === "symbol" ? key : String(key);
184
+ }
170
185
 
171
- var classnames = {exports: {}};
186
+ var classnamesExports = {};
187
+ var classnames = {
188
+ get exports(){ return classnamesExports; },
189
+ set exports(v){ classnamesExports = v; },
190
+ };
172
191
 
173
192
  /*!
174
193
  Copyright (c) 2018 Jed Watson.
@@ -226,7 +245,7 @@ var classnames = {exports: {}};
226
245
  }());
227
246
  } (classnames));
228
247
 
229
- var classNames = classnames.exports;
248
+ var classNames = classnamesExports;
230
249
 
231
250
  /* eslint-disable */
232
251
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/utils/columns/detailPanelToggleColDef.ts","../src/utils/operators/containsAnyOf.tsx","../src/utils/operators/endsWithAnyOf.tsx","../src/utils/operators/isAnyOf.tsx","../src/utils/operators/startsWithAnyOf.tsx","../src/utils/operators/getGridStringArrayOperators.ts","../../../node_modules/classnames/index.js","../../../node_modules/@mui/x-license-pro/node_modules/@mui/utils/esm/ponyfillGlobal.js","../../../node_modules/@mui/x-license-pro/utils/licenseInfo.js","../src/components/DataGrid/styles.ts","../src/components/Toolbar/styles.ts","../src/components/Toolbar/Toolbar.tsx","../src/components/DataGrid/DataGrid.tsx","../src/components/TextCell/styles.ts","../src/components/TextCell/TextCell.tsx"],"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","import {\n GridCellParams,\n GridFilterInputMultipleValue,\n GridFilterItem,\n} from '@mui/x-data-grid-pro';\n\nconst containsAnyOfOperator = {\n label: 'contains any of',\n value: 'containsAnyOf',\n getApplyFilterFn: (filterItem: GridFilterItem) => {\n if (\n !filterItem.columnField ||\n !filterItem.value ||\n !filterItem.operatorValue\n ) {\n return null;\n }\n\n return (params: GridCellParams): boolean => {\n if (filterItem.value.length === 0) {\n return true;\n }\n\n let match = false;\n filterItem.value.forEach((filteredValue: string) => {\n if (params.value.indexOf(filteredValue) !== -1) {\n match = true;\n }\n });\n return match;\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n};\n\nexport const CONTAINS_ANY_OF = containsAnyOfOperator;\n","import {\n GridCellParams,\n GridFilterInputMultipleValue,\n GridFilterItem,\n} from '@mui/x-data-grid-pro';\n\nconst endsWithAnyOfOperator = {\n label: 'ends with any of',\n value: 'endsWithAnyOf',\n getApplyFilterFn: (filterItem: GridFilterItem) => {\n if (\n !filterItem.columnField ||\n !filterItem.value ||\n !filterItem.operatorValue\n ) {\n return null;\n }\n\n return (params: GridCellParams): boolean => {\n if (filterItem.value.length === 0) {\n return true;\n }\n const paramValues = Array.isArray(params.value)\n ? params.value\n : [params.value];\n\n let match = false;\n filterItem.value.forEach((filteredValue: string) => {\n paramValues.forEach((paramValue: string) => {\n if (paramValue.endsWith(filteredValue)) {\n match = true;\n }\n });\n });\n return match;\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n};\n\nexport const ENDS_WITH_ANY_OF = endsWithAnyOfOperator;\n","import { getGridStringOperators } from '@mui/x-data-grid-pro';\n\nconst isAnyOfOperator = getGridStringOperators().filter(\n (operator) => operator.value === 'isAnyOf'\n)[0];\n\nexport const IS_ANY_OF = isAnyOfOperator;\n","import {\n GridCellParams,\n GridFilterInputMultipleValue,\n GridFilterItem,\n} from '@mui/x-data-grid-pro';\n\nconst startsWithAnyOfOperator = {\n label: 'starts with any of',\n value: 'startsWithAnyOf',\n getApplyFilterFn: (filterItem: GridFilterItem) => {\n if (\n !filterItem.columnField ||\n !filterItem.value ||\n !filterItem.operatorValue\n ) {\n return null;\n }\n\n return (params: GridCellParams): boolean => {\n if (filterItem.value.length === 0) {\n return true;\n }\n const paramValues = Array.isArray(params.value)\n ? params.value\n : [params.value];\n\n let match = false;\n filterItem.value.forEach((filteredValue: string) => {\n paramValues.forEach((paramValue: string) => {\n if (paramValue.startsWith(filteredValue)) {\n match = true;\n }\n });\n });\n return match;\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n};\n\nexport const STARTS_WITH_ANY_OF = startsWithAnyOfOperator;\n","import { GridFilterOperator } from '@mui/x-data-grid-pro';\nimport { CONTAINS_ANY_OF } from './containsAnyOf';\nimport { ENDS_WITH_ANY_OF } from './endsWithAnyOf';\nimport { IS_ANY_OF } from './isAnyOf';\nimport { STARTS_WITH_ANY_OF } from './startsWithAnyOf';\n\nexport const getGridStringArrayOperators: () => GridFilterOperator<\n any,\n number | string | null,\n any\n>[] = () => [CONTAINS_ANY_OF, ENDS_WITH_ANY_OF, IS_ANY_OF, STARTS_WITH_ANY_OF];\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/* eslint-disable */\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nexport default typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();","import { ponyfillGlobal } from '@mui/utils';\n// Store the license information in a global, so it can be shared\n// when module duplication occurs. The duplication of the modules can happen\n// if using multiple version of MUI X at the same time of the bundler\n// decide to duplicate to improve the size of the chunks.\n// eslint-disable-next-line no-underscore-dangle\nponyfillGlobal.__MUI_LICENSE_INFO__ = ponyfillGlobal.__MUI_LICENSE_INFO__ || {\n key: undefined\n};\nexport class LicenseInfo {\n static getLicenseInfo() {\n // eslint-disable-next-line no-underscore-dangle\n return ponyfillGlobal.__MUI_LICENSE_INFO__;\n }\n\n static getLicenseKey() {\n return LicenseInfo.getLicenseInfo().key;\n }\n\n static setLicenseKey(key) {\n const licenseInfo = LicenseInfo.getLicenseInfo();\n licenseInfo.key = key;\n }\n\n}","import styled, { css } from 'styled-components';\nimport { StyledDataGridProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledDataGrid = styled.div<StyledDataGridProps>`\n ${({ $height }) =>\n css`\n height: ${$height};\n `}\n\n width: 100%;\n\n .MuiDataGrid-root {\n font-family: var(--redsift-typography-datagrid-font-family);\n border: none;\n }\n\n .MuiDataGrid-row {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n font-size: var(--redsift-typography-datagrid-row-font-size);\n font-weight: var(--redsift-typography-datagrid-row-font-weight);\n }\n\n .MuiDataGrid-columnHeaderTitle {\n font-family: var(--redsift-typography-datagrid-header-font-family);\n font-size: var(--redsift-typography-datagrid-header-font-size);\n font-weight: var(--redsift-typography-datagrid-header-font-weight);\n }\n\n .MuiDataGrid-columnHeaders {\n border-bottom-color: var(--redsift-color-default-primary);\n }\n\n .MuiDataGrid-columnSeparator {\n display: none;\n }\n\n .MuiTablePagination-root {\n .MuiTablePagination-selectLabel {\n font-family: var(--redsift-typography-datagrid-font-family);\n }\n .MuiTablePagination-displayedRows {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n\n .MuiInputBase-root {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n }\n\n .Mui-checked {\n color: var(--redsift-color-default-primary);\n }\n\n .MuiDataGrid-rowCount {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n\n .MuiTablePagination-displayedRows {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n`;\n","import styled from 'styled-components';\n\n/**\n * Component style.\n */\nexport const GridToolbarWrapper = styled.div`\n .MuiButtonBase-root-JobBs.MuiButton-root {\n svg {\n path {\n fill: var(--redsift-color-default-primary);\n }\n }\n }\n\n .MuiDataGrid-toolbarContainer {\n font-family: var(--redsift-typography-datagrid-font-family);\n\n button {\n font-family: var(--redsift-typography-datagrid-font-family);\n font-size: var(--redsift-typography-button-large-font-size);\n line-height: var(--redsift-typography-button-large-line-height);\n color: var(--redsift-color-default-primary);\n border-radius: 0px;\n padding: 6px 8px;\n\n .MuiButton-startIcon {\n margin-left: 0px;\n\n svg {\n color: var(--redsift-color-default-primary);\n }\n }\n }\n\n button:hover {\n background: var(--redsift-color-primary-outlined-hover);\n }\n }\n`;\n","import React, { forwardRef, RefObject } from 'react';\n\nimport { Comp } from '@redsift/design-system';\nimport {\n GridToolbarContainer,\n GridToolbarColumnsButton,\n GridToolbarDensitySelector,\n GridToolbarFilterButton,\n GridToolbarExport,\n gridVisibleSortedRowIdsSelector,\n GridCsvGetRowsToExportParams,\n} from '@mui/x-data-grid-pro';\n\nimport { GridToolbarWrapper } from './styles';\nimport { ToolbarProps } from './types';\n\n/**\n * Temporary workaround for a type mismatch between react 17 and 18\n * https://github.com/mui/material-ui/issues/35287#issuecomment-1337250566\n */\ndeclare global {\n namespace React {\n interface DOMAttributes<T> {\n onResize?: React.ReactEventHandler<T> | undefined;\n onResizeCapture?: React.ReactEventHandler<T> | undefined;\n nonce?: string | undefined;\n }\n }\n}\n/** ------ */\n\nconst COMPONENT_NAME = 'RedSiftToolbar';\nconst CLASSNAME = 'redsift-data-grid';\nconst DEFAULT_PROPS: Partial<ToolbarProps> = {\n hasExportButton: true,\n hasFilterButton: true,\n hasColumnsButton: true,\n hasDensityButton: true,\n};\n\nexport const Toolbar: Comp<ToolbarProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const {\n hasExportButton,\n exportButtonProps,\n exportButtonRef,\n hasFilterButton,\n filterButtonProps,\n filterButtonRef,\n hasColumnsButton,\n columnsButtonProps,\n columnsButtonRef,\n hasDensityButton,\n densityButtonProps,\n densityButtonRef,\n } = props;\n\n return (\n <GridToolbarWrapper ref={ref as RefObject<HTMLDivElement>}>\n <GridToolbarContainer>\n {hasFilterButton ? (\n <GridToolbarFilterButton\n {...filterButtonProps}\n ref={filterButtonRef}\n />\n ) : null}\n {hasColumnsButton ? (\n <GridToolbarColumnsButton\n {...columnsButtonProps}\n ref={columnsButtonRef}\n />\n ) : null}\n {hasDensityButton ? (\n <GridToolbarDensitySelector\n {...densityButtonProps}\n ref={densityButtonRef}\n />\n ) : null}\n {hasExportButton ? (\n <GridToolbarExport\n csvOptions={{\n allColumns: true,\n fileName: 'csv',\n getRowsToExport: ({ apiRef }: GridCsvGetRowsToExportParams) =>\n gridVisibleSortedRowIdsSelector(apiRef),\n }}\n printOptions={{\n disableToolbarButton: true,\n }}\n {...exportButtonProps}\n ref={exportButtonRef}\n />\n ) : null}\n </GridToolbarContainer>\n </GridToolbarWrapper>\n );\n }\n);\nToolbar.className = CLASSNAME;\nToolbar.defaultProps = DEFAULT_PROPS;\nToolbar.displayName = COMPONENT_NAME;\n","import React, { forwardRef, RefObject, useRef } from 'react';\nimport classNames from 'classnames';\nimport { LicenseInfo } from '@mui/x-license-pro';\nimport { Comp, Icon } from '@redsift/design-system';\nimport { DataGridPro } from '@mui/x-data-grid-pro';\nimport {\n mdiChevronDown,\n mdiChevronUp,\n mdiChevronRight,\n mdiFilterVariant,\n} from '@redsift/icons';\n\nimport { StyledDataGrid } from './styles';\nimport { DataGridProps } from './types';\nimport { Toolbar } from '../Toolbar';\n\nconst COMPONENT_NAME = 'RedSiftDataGrid';\nconst CLASSNAME = 'redsift-data-grid';\nconst DEFAULT_PROPS: Partial<DataGridProps> = {\n license: process.env.MUI_LICENSE_KEY,\n height: '500px',\n};\n\nconst ColumnSortedAscendingIcon = () => (\n <Icon icon={mdiChevronUp} size=\"small\" />\n);\nconst ColumnSortedDescendingIcon = () => (\n <Icon icon={mdiChevronDown} size=\"small\" />\n);\nconst DetailPanelExpandIcon = () => (\n <Icon icon={mdiChevronRight} size=\"small\" />\n);\nconst DetailPanelCollapseIcon = () => (\n <Icon icon={mdiChevronDown} size=\"small\" />\n);\nconst ColumnFilteredIcon = () => <Icon icon={mdiFilterVariant} size=\"small\" />;\n\nexport const DataGrid: Comp<DataGridProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const datagridRef = ref || useRef<HTMLDivElement>();\n\n const {\n className,\n height,\n hideToolbar,\n license,\n toolbar = Toolbar,\n ...forwardedProps\n } = props;\n\n LicenseInfo.setLicenseKey(license!);\n\n return (\n <StyledDataGrid\n ref={datagridRef as RefObject<HTMLDivElement>}\n className={classNames(DataGrid.className, className)}\n $height={height}\n >\n <DataGridPro\n {...forwardedProps}\n components={{\n ColumnFilteredIcon,\n ColumnSortedAscendingIcon,\n ColumnSortedDescendingIcon,\n DetailPanelExpandIcon,\n DetailPanelCollapseIcon,\n OpenFilterButtonIcon: ColumnFilteredIcon,\n ...props.components,\n ...(!hideToolbar && { Toolbar: toolbar }),\n }}\n />\n </StyledDataGrid>\n );\n }\n);\nDataGrid.className = CLASSNAME;\nDataGrid.defaultProps = DEFAULT_PROPS;\nDataGrid.displayName = COMPONENT_NAME;\n","import styled from 'styled-components';\n\nexport const StyledTextCell = styled.div`\n align-items: center;\n box-sizing: border-box;\n display: flex;\n gap: 8px;\n justify-content: flex-start;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n\nexport const StyledTextCellText = styled.div`\n box-sizing: border-box;\n line-height: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n","import React, { forwardRef, RefObject, useRef } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '~/types';\nimport { Icon, Shield } from '@redsift/design-system';\n\nimport { StyledTextCell, StyledTextCellText } from './styles';\nimport { TextCellProps } from './types';\n\nconst COMPONENT_NAME = 'RedSiftDataGridCell';\nconst CLASSNAME = 'redsift-datagrid-cell';\n\n/**\n * The Cell component.\n */\nexport const TextCell: Comp<TextCellProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const textCellRef = ref || useRef<HTMLDivElement>();\n const {\n badge,\n children,\n className,\n leftIcon,\n leftIconColor,\n rightIcon,\n rightIconColor,\n shieldVariant,\n ...forwardedProps\n } = props;\n\n return (\n <StyledTextCell\n {...forwardedProps}\n className={classNames(TextCell.className, className)}\n ref={textCellRef as RefObject<HTMLDivElement>}\n >\n <>\n {shieldVariant ? <Shield variant={shieldVariant} /> : null}\n {leftIcon ? (\n <Icon\n icon={leftIcon}\n aria-hidden=\"true\"\n size=\"small\"\n color={leftIconColor}\n />\n ) : null}\n <StyledTextCellText>{children}</StyledTextCellText>\n {badge ? badge : null}\n {rightIcon ? (\n <Icon\n icon={rightIcon}\n aria-hidden=\"true\"\n size=\"small\"\n color={rightIconColor}\n />\n ) : null}\n </>\n </StyledTextCell>\n );\n }\n);\n\nTextCell.className = CLASSNAME;\nTextCell.displayName = COMPONENT_NAME;\n"],"names":["DETAIL_PANEL_TOGGLE_COL_DEF","GRID_DETAIL_PANEL_TOGGLE_COL_DEF","type","containsAnyOfOperator","label","value","getApplyFilterFn","filterItem","columnField","operatorValue","params","length","match","forEach","filteredValue","indexOf","InputComponent","GridFilterInputMultipleValue","CONTAINS_ANY_OF","endsWithAnyOfOperator","paramValues","Array","isArray","paramValue","endsWith","ENDS_WITH_ANY_OF","isAnyOfOperator","getGridStringOperators","filter","operator","IS_ANY_OF","startsWithAnyOfOperator","startsWith","STARTS_WITH_ANY_OF","getGridStringArrayOperators","StyledDataGrid","styled","div","$height","css","GridToolbarWrapper","COMPONENT_NAME","CLASSNAME","DEFAULT_PROPS","hasExportButton","hasFilterButton","hasColumnsButton","hasDensityButton","Toolbar","forwardRef","props","ref","exportButtonProps","exportButtonRef","filterButtonProps","filterButtonRef","columnsButtonProps","columnsButtonRef","densityButtonProps","densityButtonRef","allColumns","fileName","getRowsToExport","apiRef","gridVisibleSortedRowIdsSelector","disableToolbarButton","className","defaultProps","displayName","license","process","env","MUI_LICENSE_KEY","height","ColumnSortedAscendingIcon","mdiChevronUp","ColumnSortedDescendingIcon","mdiChevronDown","DetailPanelExpandIcon","mdiChevronRight","DetailPanelCollapseIcon","ColumnFilteredIcon","mdiFilterVariant","DataGrid","datagridRef","useRef","hideToolbar","toolbar","forwardedProps","_excluded","LicenseInfo","setLicenseKey","classNames","_objectSpread","OpenFilterButtonIcon","components","StyledTextCell","StyledTextCellText","TextCell","textCellRef","badge","children","leftIcon","leftIconColor","rightIcon","rightIconColor","shieldVariant"],"mappings":";;;;;;;AAEA;AACMA,MAAAA,2BAA2B,GAAGC,iCAAgC;AACpED,2BAA2B,CAACE,IAAI,GAAG,SAAS;;ACE5C,MAAMC,qBAAqB,GAAG;AAC5BC,EAAAA,KAAK,EAAE,iBAAiB;AACxBC,EAAAA,KAAK,EAAE,eAAe;EACtBC,gBAAgB,EAAGC,UAA0B,IAAK;AAChD,IAAA,IACE,CAACA,UAAU,CAACC,WAAW,IACvB,CAACD,UAAU,CAACF,KAAK,IACjB,CAACE,UAAU,CAACE,aAAa,EACzB;AACA,MAAA,OAAO,IAAI,CAAA;AACb,KAAA;AAEA,IAAA,OAAQC,MAAsB,IAAc;AAC1C,MAAA,IAAIH,UAAU,CAACF,KAAK,CAACM,MAAM,KAAK,CAAC,EAAE;AACjC,QAAA,OAAO,IAAI,CAAA;AACb,OAAA;MAEA,IAAIC,KAAK,GAAG,KAAK,CAAA;AACjBL,MAAAA,UAAU,CAACF,KAAK,CAACQ,OAAO,CAAEC,aAAqB,IAAK;QAClD,IAAIJ,MAAM,CAACL,KAAK,CAACU,OAAO,CAACD,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE;AAC9CF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AACA;AACO,MAAME,cAAc,GAAGC,MAAM,CAACC,GAAyB,CAAA;AAC9D,EAAI,EAAA,IAAA,IAAA;EAAA,IAAC;AAAEC,IAAAA,OAAAA;GAAS,GAAA,IAAA,CAAA;AAAA,EAAA,OACZC,GAAI,CAAA;AACR,cAAA,EAAgBD,OAAQ,CAAA;AACxB,IAAK,CAAA,CAAA;AAAA,CAAC,CAAA;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AC7DD;AACA;AACA;AACO,MAAME,kBAAkB,GAAGJ,MAAM,CAACC,GAAI,CAAA;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;ACTD;;AAEA,MAAMI,gBAAc,GAAG,gBAAgB,CAAA;AACvC,MAAMC,WAAS,GAAG,mBAAmB,CAAA;AACrC,MAAMC,eAAoC,GAAG;AAC3CC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,gBAAgB,EAAE,IAAI;AACtBC,EAAAA,gBAAgB,EAAE,IAAA;AACpB,CAAC,CAAA;AAEM,MAAMC,OAA2C,gBAAGC,UAAU,CACnE,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,MAAM;IACJP,eAAe;IACfQ,iBAAiB;IACjBC,eAAe;IACfR,eAAe;IACfS,iBAAiB;IACjBC,eAAe;IACfT,gBAAgB;IAChBU,kBAAkB;IAClBC,gBAAgB;IAChBV,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AAEDP,QAAQ,CAAChC,SAAS,GAAGxB,SAAS,CAAA;AAC9BwD,QAAQ,CAAC9B,WAAW,GAAG3B,cAAc;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/utils/columns/detailPanelToggleColDef.ts","../src/utils/operators/containsAnyOf.tsx","../src/utils/operators/endsWithAnyOf.tsx","../src/utils/operators/isAnyOf.tsx","../src/utils/operators/startsWithAnyOf.tsx","../src/utils/operators/getGridStringArrayOperators.ts","../../../node_modules/classnames/index.js","../../../node_modules/@mui/utils/esm/ponyfillGlobal.js","../../../node_modules/@mui/x-license-pro/utils/licenseInfo.js","../src/components/DataGrid/styles.ts","../src/components/Toolbar/styles.ts","../src/components/Toolbar/Toolbar.tsx","../src/components/DataGrid/DataGrid.tsx","../src/components/TextCell/styles.ts","../src/components/TextCell/TextCell.tsx"],"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","import {\n GridCellParams,\n GridFilterInputMultipleValue,\n GridFilterItem,\n} from '@mui/x-data-grid-pro';\n\nconst containsAnyOfOperator = {\n label: 'contains any of',\n value: 'containsAnyOf',\n getApplyFilterFn: (filterItem: GridFilterItem) => {\n if (\n !filterItem.columnField ||\n !filterItem.value ||\n !filterItem.operatorValue\n ) {\n return null;\n }\n\n return (params: GridCellParams): boolean => {\n if (filterItem.value.length === 0) {\n return true;\n }\n\n let match = false;\n filterItem.value.forEach((filteredValue: string) => {\n if (params.value.indexOf(filteredValue) !== -1) {\n match = true;\n }\n });\n return match;\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n};\n\nexport const CONTAINS_ANY_OF = containsAnyOfOperator;\n","import {\n GridCellParams,\n GridFilterInputMultipleValue,\n GridFilterItem,\n} from '@mui/x-data-grid-pro';\n\nconst endsWithAnyOfOperator = {\n label: 'ends with any of',\n value: 'endsWithAnyOf',\n getApplyFilterFn: (filterItem: GridFilterItem) => {\n if (\n !filterItem.columnField ||\n !filterItem.value ||\n !filterItem.operatorValue\n ) {\n return null;\n }\n\n return (params: GridCellParams): boolean => {\n if (filterItem.value.length === 0) {\n return true;\n }\n const paramValues = Array.isArray(params.value)\n ? params.value\n : [params.value];\n\n let match = false;\n filterItem.value.forEach((filteredValue: string) => {\n paramValues.forEach((paramValue: string) => {\n if (paramValue.endsWith(filteredValue)) {\n match = true;\n }\n });\n });\n return match;\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n};\n\nexport const ENDS_WITH_ANY_OF = endsWithAnyOfOperator;\n","import { getGridStringOperators } from '@mui/x-data-grid-pro';\n\nconst isAnyOfOperator = getGridStringOperators().filter(\n (operator) => operator.value === 'isAnyOf'\n)[0];\n\nexport const IS_ANY_OF = isAnyOfOperator;\n","import {\n GridCellParams,\n GridFilterInputMultipleValue,\n GridFilterItem,\n} from '@mui/x-data-grid-pro';\n\nconst startsWithAnyOfOperator = {\n label: 'starts with any of',\n value: 'startsWithAnyOf',\n getApplyFilterFn: (filterItem: GridFilterItem) => {\n if (\n !filterItem.columnField ||\n !filterItem.value ||\n !filterItem.operatorValue\n ) {\n return null;\n }\n\n return (params: GridCellParams): boolean => {\n if (filterItem.value.length === 0) {\n return true;\n }\n const paramValues = Array.isArray(params.value)\n ? params.value\n : [params.value];\n\n let match = false;\n filterItem.value.forEach((filteredValue: string) => {\n paramValues.forEach((paramValue: string) => {\n if (paramValue.startsWith(filteredValue)) {\n match = true;\n }\n });\n });\n return match;\n };\n },\n InputComponent: GridFilterInputMultipleValue,\n};\n\nexport const STARTS_WITH_ANY_OF = startsWithAnyOfOperator;\n","import { GridFilterOperator } from '@mui/x-data-grid-pro';\nimport { CONTAINS_ANY_OF } from './containsAnyOf';\nimport { ENDS_WITH_ANY_OF } from './endsWithAnyOf';\nimport { IS_ANY_OF } from './isAnyOf';\nimport { STARTS_WITH_ANY_OF } from './startsWithAnyOf';\n\nexport const getGridStringArrayOperators: () => GridFilterOperator<\n any,\n number | string | null,\n any\n>[] = () => [CONTAINS_ANY_OF, ENDS_WITH_ANY_OF, IS_ANY_OF, STARTS_WITH_ANY_OF];\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/* eslint-disable */\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nexport default typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();","import { ponyfillGlobal } from '@mui/utils';\n// Store the license information in a global, so it can be shared\n// when module duplication occurs. The duplication of the modules can happen\n// if using multiple version of MUI X at the same time of the bundler\n// decide to duplicate to improve the size of the chunks.\n// eslint-disable-next-line no-underscore-dangle\nponyfillGlobal.__MUI_LICENSE_INFO__ = ponyfillGlobal.__MUI_LICENSE_INFO__ || {\n key: undefined\n};\nexport class LicenseInfo {\n static getLicenseInfo() {\n // eslint-disable-next-line no-underscore-dangle\n return ponyfillGlobal.__MUI_LICENSE_INFO__;\n }\n\n static getLicenseKey() {\n return LicenseInfo.getLicenseInfo().key;\n }\n\n static setLicenseKey(key) {\n const licenseInfo = LicenseInfo.getLicenseInfo();\n licenseInfo.key = key;\n }\n\n}","import styled, { css } from 'styled-components';\nimport { StyledDataGridProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledDataGrid = styled.div<StyledDataGridProps>`\n ${({ $height }) =>\n css`\n height: ${$height};\n `}\n\n width: 100%;\n\n .MuiDataGrid-root {\n font-family: var(--redsift-typography-datagrid-font-family);\n border: none;\n }\n\n .MuiDataGrid-row {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n font-size: var(--redsift-typography-datagrid-row-font-size);\n font-weight: var(--redsift-typography-datagrid-row-font-weight);\n }\n\n .MuiDataGrid-columnHeaderTitle {\n font-family: var(--redsift-typography-datagrid-header-font-family);\n font-size: var(--redsift-typography-datagrid-header-font-size);\n font-weight: var(--redsift-typography-datagrid-header-font-weight);\n }\n\n .MuiDataGrid-columnHeaders {\n border-bottom-color: var(--redsift-color-default-primary);\n }\n\n .MuiDataGrid-columnSeparator {\n display: none;\n }\n\n .MuiTablePagination-root {\n .MuiTablePagination-selectLabel {\n font-family: var(--redsift-typography-datagrid-font-family);\n }\n .MuiTablePagination-displayedRows {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n\n .MuiInputBase-root {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n }\n\n .Mui-checked {\n color: var(--redsift-color-default-primary);\n }\n\n .MuiDataGrid-rowCount {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n\n .MuiTablePagination-displayedRows {\n font-family: var(--redsift-typography-datagrid-row-font-family);\n }\n`;\n","import styled from 'styled-components';\n\n/**\n * Component style.\n */\nexport const GridToolbarWrapper = styled.div`\n .MuiButtonBase-root-JobBs.MuiButton-root {\n svg {\n path {\n fill: var(--redsift-color-default-primary);\n }\n }\n }\n\n .MuiDataGrid-toolbarContainer {\n font-family: var(--redsift-typography-datagrid-font-family);\n\n button {\n font-family: var(--redsift-typography-datagrid-font-family);\n font-size: var(--redsift-typography-button-large-font-size);\n line-height: var(--redsift-typography-button-large-line-height);\n color: var(--redsift-color-default-primary);\n border-radius: 0px;\n padding: 6px 8px;\n\n .MuiButton-startIcon {\n margin-left: 0px;\n\n svg {\n color: var(--redsift-color-default-primary);\n }\n }\n }\n\n button:hover {\n background: var(--redsift-color-primary-outlined-hover);\n }\n }\n`;\n","import React, { forwardRef, RefObject } from 'react';\n\nimport { Comp } from '@redsift/design-system';\nimport {\n GridToolbarContainer,\n GridToolbarColumnsButton,\n GridToolbarDensitySelector,\n GridToolbarFilterButton,\n GridToolbarExport,\n gridVisibleSortedRowIdsSelector,\n GridCsvGetRowsToExportParams,\n} from '@mui/x-data-grid-pro';\n\nimport { GridToolbarWrapper } from './styles';\nimport { ToolbarProps } from './types';\n\n/**\n * Temporary workaround for a type mismatch between react 17 and 18\n * https://github.com/mui/material-ui/issues/35287#issuecomment-1337250566\n */\ndeclare global {\n namespace React {\n interface DOMAttributes<T> {\n onResize?: React.ReactEventHandler<T> | undefined;\n onResizeCapture?: React.ReactEventHandler<T> | undefined;\n nonce?: string | undefined;\n }\n }\n}\n/** ------ */\n\nconst COMPONENT_NAME = 'RedSiftToolbar';\nconst CLASSNAME = 'redsift-data-grid';\nconst DEFAULT_PROPS: Partial<ToolbarProps> = {\n hasExportButton: true,\n hasFilterButton: true,\n hasColumnsButton: true,\n hasDensityButton: true,\n};\n\nexport const Toolbar: Comp<ToolbarProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const {\n hasExportButton,\n exportButtonProps,\n exportButtonRef,\n hasFilterButton,\n filterButtonProps,\n filterButtonRef,\n hasColumnsButton,\n columnsButtonProps,\n columnsButtonRef,\n hasDensityButton,\n densityButtonProps,\n densityButtonRef,\n } = props;\n\n return (\n <GridToolbarWrapper ref={ref as RefObject<HTMLDivElement>}>\n <GridToolbarContainer>\n {hasFilterButton ? (\n <GridToolbarFilterButton\n {...filterButtonProps}\n ref={filterButtonRef}\n />\n ) : null}\n {hasColumnsButton ? (\n <GridToolbarColumnsButton\n {...columnsButtonProps}\n ref={columnsButtonRef}\n />\n ) : null}\n {hasDensityButton ? (\n <GridToolbarDensitySelector\n {...densityButtonProps}\n ref={densityButtonRef}\n />\n ) : null}\n {hasExportButton ? (\n <GridToolbarExport\n csvOptions={{\n allColumns: true,\n fileName: 'csv',\n getRowsToExport: ({ apiRef }: GridCsvGetRowsToExportParams) =>\n gridVisibleSortedRowIdsSelector(apiRef),\n }}\n printOptions={{\n disableToolbarButton: true,\n }}\n {...exportButtonProps}\n ref={exportButtonRef}\n />\n ) : null}\n </GridToolbarContainer>\n </GridToolbarWrapper>\n );\n }\n);\nToolbar.className = CLASSNAME;\nToolbar.defaultProps = DEFAULT_PROPS;\nToolbar.displayName = COMPONENT_NAME;\n","import React, { forwardRef, RefObject, useRef } from 'react';\nimport classNames from 'classnames';\nimport { LicenseInfo } from '@mui/x-license-pro';\nimport { Comp, Icon } from '@redsift/design-system';\nimport { DataGridPro } from '@mui/x-data-grid-pro';\nimport {\n mdiChevronDown,\n mdiChevronUp,\n mdiChevronRight,\n mdiFilterVariant,\n} from '@redsift/icons';\n\nimport { StyledDataGrid } from './styles';\nimport { DataGridProps } from './types';\nimport { Toolbar } from '../Toolbar';\n\nconst COMPONENT_NAME = 'RedSiftDataGrid';\nconst CLASSNAME = 'redsift-data-grid';\nconst DEFAULT_PROPS: Partial<DataGridProps> = {\n license: process.env.MUI_LICENSE_KEY,\n height: '500px',\n};\n\nconst ColumnSortedAscendingIcon = () => (\n <Icon icon={mdiChevronUp} size=\"small\" />\n);\nconst ColumnSortedDescendingIcon = () => (\n <Icon icon={mdiChevronDown} size=\"small\" />\n);\nconst DetailPanelExpandIcon = () => (\n <Icon icon={mdiChevronRight} size=\"small\" />\n);\nconst DetailPanelCollapseIcon = () => (\n <Icon icon={mdiChevronDown} size=\"small\" />\n);\nconst ColumnFilteredIcon = () => <Icon icon={mdiFilterVariant} size=\"small\" />;\n\nexport const DataGrid: Comp<DataGridProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const datagridRef = ref || useRef<HTMLDivElement>();\n\n const {\n className,\n height,\n hideToolbar,\n license,\n toolbar = Toolbar,\n ...forwardedProps\n } = props;\n\n LicenseInfo.setLicenseKey(license!);\n\n return (\n <StyledDataGrid\n ref={datagridRef as RefObject<HTMLDivElement>}\n className={classNames(DataGrid.className, className)}\n $height={height}\n >\n <DataGridPro\n {...forwardedProps}\n components={{\n ColumnFilteredIcon,\n ColumnSortedAscendingIcon,\n ColumnSortedDescendingIcon,\n DetailPanelExpandIcon,\n DetailPanelCollapseIcon,\n OpenFilterButtonIcon: ColumnFilteredIcon,\n ...props.components,\n ...(!hideToolbar && { Toolbar: toolbar }),\n }}\n />\n </StyledDataGrid>\n );\n }\n);\nDataGrid.className = CLASSNAME;\nDataGrid.defaultProps = DEFAULT_PROPS;\nDataGrid.displayName = COMPONENT_NAME;\n","import styled from 'styled-components';\n\nexport const StyledTextCell = styled.div`\n align-items: center;\n box-sizing: border-box;\n display: flex;\n gap: 8px;\n justify-content: flex-start;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n\nexport const StyledTextCellText = styled.div`\n box-sizing: border-box;\n line-height: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n","import React, { forwardRef, RefObject, useRef } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '~/types';\nimport { Icon, Shield } from '@redsift/design-system';\n\nimport { StyledTextCell, StyledTextCellText } from './styles';\nimport { TextCellProps } from './types';\n\nconst COMPONENT_NAME = 'RedSiftDataGridCell';\nconst CLASSNAME = 'redsift-datagrid-cell';\n\n/**\n * The Cell component.\n */\nexport const TextCell: Comp<TextCellProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const textCellRef = ref || useRef<HTMLDivElement>();\n const {\n badge,\n children,\n className,\n leftIcon,\n leftIconColor,\n rightIcon,\n rightIconColor,\n shieldVariant,\n ...forwardedProps\n } = props;\n\n return (\n <StyledTextCell\n {...forwardedProps}\n className={classNames(TextCell.className, className)}\n ref={textCellRef as RefObject<HTMLDivElement>}\n >\n <>\n {shieldVariant ? <Shield variant={shieldVariant} /> : null}\n {leftIcon ? (\n <Icon\n icon={leftIcon}\n aria-hidden=\"true\"\n size=\"small\"\n color={leftIconColor}\n />\n ) : null}\n <StyledTextCellText>{children}</StyledTextCellText>\n {badge ? badge : null}\n {rightIcon ? (\n <Icon\n icon={rightIcon}\n aria-hidden=\"true\"\n size=\"small\"\n color={rightIconColor}\n />\n ) : null}\n </>\n </StyledTextCell>\n );\n }\n);\n\nTextCell.className = CLASSNAME;\nTextCell.displayName = COMPONENT_NAME;\n"],"names":["DETAIL_PANEL_TOGGLE_COL_DEF","GRID_DETAIL_PANEL_TOGGLE_COL_DEF","type","containsAnyOfOperator","label","value","getApplyFilterFn","filterItem","columnField","operatorValue","params","length","match","forEach","filteredValue","indexOf","InputComponent","GridFilterInputMultipleValue","CONTAINS_ANY_OF","endsWithAnyOfOperator","paramValues","Array","isArray","paramValue","endsWith","ENDS_WITH_ANY_OF","isAnyOfOperator","getGridStringOperators","filter","operator","IS_ANY_OF","startsWithAnyOfOperator","startsWith","STARTS_WITH_ANY_OF","getGridStringArrayOperators","StyledDataGrid","styled","div","$height","css","GridToolbarWrapper","COMPONENT_NAME","CLASSNAME","DEFAULT_PROPS","hasExportButton","hasFilterButton","hasColumnsButton","hasDensityButton","Toolbar","forwardRef","props","ref","exportButtonProps","exportButtonRef","filterButtonProps","filterButtonRef","columnsButtonProps","columnsButtonRef","densityButtonProps","densityButtonRef","allColumns","fileName","getRowsToExport","apiRef","gridVisibleSortedRowIdsSelector","disableToolbarButton","className","defaultProps","displayName","license","process","env","MUI_LICENSE_KEY","height","ColumnSortedAscendingIcon","mdiChevronUp","ColumnSortedDescendingIcon","mdiChevronDown","DetailPanelExpandIcon","mdiChevronRight","DetailPanelCollapseIcon","ColumnFilteredIcon","mdiFilterVariant","DataGrid","datagridRef","useRef","hideToolbar","toolbar","forwardedProps","_excluded","LicenseInfo","setLicenseKey","classNames","_objectSpread","OpenFilterButtonIcon","components","StyledTextCell","StyledTextCellText","TextCell","textCellRef","badge","children","leftIcon","leftIconColor","rightIcon","rightIconColor","shieldVariant"],"mappings":";;;;;;;AAEA;AACMA,MAAAA,2BAA2B,GAAGC,iCAAgC;AACpED,2BAA2B,CAACE,IAAI,GAAG,SAAS;;ACE5C,MAAMC,qBAAqB,GAAG;AAC5BC,EAAAA,KAAK,EAAE,iBAAiB;AACxBC,EAAAA,KAAK,EAAE,eAAe;EACtBC,gBAAgB,EAAGC,UAA0B,IAAK;AAChD,IAAA,IACE,CAACA,UAAU,CAACC,WAAW,IACvB,CAACD,UAAU,CAACF,KAAK,IACjB,CAACE,UAAU,CAACE,aAAa,EACzB;AACA,MAAA,OAAO,IAAI,CAAA;AACb,KAAA;AAEA,IAAA,OAAQC,MAAsB,IAAc;AAC1C,MAAA,IAAIH,UAAU,CAACF,KAAK,CAACM,MAAM,KAAK,CAAC,EAAE;AACjC,QAAA,OAAO,IAAI,CAAA;AACb,OAAA;MAEA,IAAIC,KAAK,GAAG,KAAK,CAAA;AACjBL,MAAAA,UAAU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CAAC,GAAG,EAAE;AAC5B,IAAI,MAAM,WAAW,GAAG,WAAW,CAAC,cAAc,EAAE,CAAC;AACrD,IAAI,WAAW,CAAC,GAAG,GAAG,GAAG,CAAC;AAC1B,GAAG;AACH;AACA;;ACrBA;AACA;AACA;AACO,MAAME,cAAc,GAAGC,MAAM,CAACC,GAAyB,CAAA;AAC9D,EAAI,EAAA,IAAA,IAAA;EAAA,IAAC;AAAEC,IAAAA,OAAAA;GAAS,GAAA,IAAA,CAAA;AAAA,EAAA,OACZC,GAAI,CAAA;AACR,cAAA,EAAgBD,OAAQ,CAAA;AACxB,IAAK,CAAA,CAAA;AAAA,CAAC,CAAA;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AC7DD;AACA;AACA;AACO,MAAME,kBAAkB,GAAGJ,MAAM,CAACC,GAAI,CAAA;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;ACTD;;AAEA,MAAMI,gBAAc,GAAG,gBAAgB,CAAA;AACvC,MAAMC,WAAS,GAAG,mBAAmB,CAAA;AACrC,MAAMC,eAAoC,GAAG;AAC3CC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,eAAe,EAAE,IAAI;AACrBC,EAAAA,gBAAgB,EAAE,IAAI;AACtBC,EAAAA,gBAAgB,EAAE,IAAA;AACpB,CAAC,CAAA;AAEM,MAAMC,OAA2C,gBAAGC,UAAU,CACnE,CAACC,KAAK,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AI,EAAEA,SAAU;AAChB,IAAA,aAAA,EAAY,MAAM;AAClB,IAAA,IAAI,EAAC,OAAO;AACZ,IAAA,KAAK,EAAEC,cAAAA;GACP,CAAA,GACA,IAAI,CACP,CACY,CAAA;AAErB,CAAC,EACF;AAEDP,QAAQ,CAAChC,SAAS,GAAGxB,SAAS,CAAA;AAC9BwD,QAAQ,CAAC9B,WAAW,GAAG3B,cAAc;;;;"}
package/package.json CHANGED
@@ -28,14 +28,12 @@
28
28
  "test": "cp -f ../../.env ./ && NODE_ENV=test jest --verbose"
29
29
  },
30
30
  "types": "types.d.ts",
31
- "version": "7.1.0",
31
+ "version": "7.1.1",
32
32
  "dependencies": {
33
33
  "@mui/material": "^5.11.0",
34
- "@mui/styled-engine-sc": "^5.7.0",
35
- "@mui/x-data-grid": "^5.17.14",
36
- "@mui/x-data-grid-pro": "^5.17.14",
37
- "@redsift/design-system": "^7.1.0",
38
- "@redsift/icons": "^7.1.0"
34
+ "@mui/styled-engine-sc": "^5.11.0",
35
+ "@redsift/design-system": "^7.1.1",
36
+ "@redsift/icons": "^7.1.1"
39
37
  },
40
38
  "devDependencies": {
41
39
  "@babel/core": "^7.8.3",
@@ -49,8 +47,9 @@
49
47
  "@babel/preset-env": "^7.17.10",
50
48
  "@babel/preset-react": "^7.17.12",
51
49
  "@babel/preset-typescript": "^7.16.7",
50
+ "@mui/x-data-grid-pro": "^5.17.17",
52
51
  "@rollup/plugin-babel": "^6.0.2",
53
- "@rollup/plugin-commonjs": "^22.0.0",
52
+ "@rollup/plugin-commonjs": "^24.0.0",
54
53
  "@rollup/plugin-node-resolve": "^13.3.0",
55
54
  "@storybook/addon-a11y": "^6.5.6",
56
55
  "@storybook/addon-essentials": "^6.5.3",
@@ -59,13 +58,13 @@
59
58
  "@storybook/addon-storyshots": "^6.5.8",
60
59
  "@storybook/react": "^6.5.14",
61
60
  "@testing-library/jest-dom": "^5.16.4",
62
- "@testing-library/react": "^13.3.0",
61
+ "@testing-library/react": "^13.4.0",
63
62
  "@testing-library/user-event": "^14.2.1",
64
63
  "@types/jest": "^27.5.1",
65
64
  "@types/react": "18.0.12",
66
65
  "@types/react-dom": "18.0.5",
67
66
  "@types/styled-components": "^5.1.25",
68
- "@typescript-eslint/eslint-plugin": "^5.28.0",
67
+ "@typescript-eslint/eslint-plugin": "^5.48.0",
69
68
  "@typescript-eslint/parser": "^5.26.0",
70
69
  "identity-obj-proxy": "^3.0.0",
71
70
  "install-peers-cli": "^2.2.0",
@@ -87,9 +86,10 @@
87
86
  "ts-jest": "^28.0.3"
88
87
  },
89
88
  "peerDependencies": {
89
+ "@mui/x-data-grid-pro": ">=5.9.0",
90
90
  "react": "17 || 18",
91
91
  "react-dom": "17 || 18",
92
92
  "styled-components": "^5.3.3"
93
93
  },
94
- "gitHead": "10caf7ca44783296ecce2088d30594e888479a90"
94
+ "gitHead": "05f428ffac7ef70f822508f711de47a3f3daef77"
95
95
  }