@redsift/table 7.0.2 → 7.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.d.ts +59 -11
  2. package/index.js +73 -28
  3. package/index.js.map +1 -1
  4. package/package.json +10 -10
package/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
2
- import { GridFilterItem, GridCellParams, GridFilterInputMultipleValue, GridFilterOperator, DataGridProProps, GridColumns } from '@mui/x-data-grid-pro';
2
+ import { GridFilterItem, GridCellParams, GridFilterInputMultipleValue, GridFilterOperator, DataGridProProps, GridColumns, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
3
3
  export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, getGridBooleanOperators, getGridDateOperators, getGridNumericOperators, getGridSingleSelectOperators, getGridStringOperators } from '@mui/x-data-grid-pro';
4
4
  import { Comp as Comp$1, ShieldVariant } from '@redsift/design-system';
5
- import { Ref, ReactElement, ComponentProps, ReactNode } from 'react';
5
+ import { JSXElementConstructor, RefObject, Ref, ReactElement, ComponentProps, ReactNode } from 'react';
6
6
 
7
7
  declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any, any, any>;
8
8
 
@@ -32,22 +32,70 @@ declare const STARTS_WITH_ANY_OF: {
32
32
  declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
33
33
 
34
34
  interface DataGridProps extends DataGridProProps {
35
- hideToolbar?: boolean;
36
- license: string;
37
- $height?: string;
35
+ /** License key for MUI Datagrid Pro. */
36
+ license?: string;
37
+ /** Height. A default one is set to prevent rendering all rows. */
38
+ height?: string;
39
+ /** Columns. */
38
40
  column?: GridColumns;
41
+ /** Toolbar. A default one is provided but every button from this default Toolbar can be customized and the entire Toolbar can be replaced. */
42
+ toolbar?: JSXElementConstructor<any>;
43
+ /** Whether the Toolbar is displayed or not. */
44
+ hideToolbar?: boolean;
39
45
  }
40
46
 
41
- declare type StyledDataGridProps = {
47
+ type StyledDataGridProps = {
42
48
  $height?: string;
43
49
  };
44
50
 
45
51
  declare const DataGrid: Comp$1<DataGridProps, HTMLDivElement>;
46
52
 
47
- declare const Toolbar: () => JSX.Element;
53
+ type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
54
+ type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
55
+ interface ToolbarProps {
56
+ /** Props to forward to the column button. */
57
+ columnsButtonProps?: GridToolbarColumnsProps;
58
+ /** Column button ref. */
59
+ columnsButtonRef?: RefObject<HTMLButtonElement>;
60
+ /** Props to forward to the density button. */
61
+ densityButtonProps?: GridToolbarDensityProps;
62
+ /** Density button ref. */
63
+ densityButtonRef?: RefObject<HTMLButtonElement>;
64
+ /** Props to forward to the export button. */
65
+ exportButtonProps?: GridToolbarExportProps;
66
+ /** Export button ref. */
67
+ exportButtonRef?: RefObject<HTMLButtonElement>;
68
+ /** Props to forward to the filter button. */
69
+ filterButtonProps?: GridToolbarFilterButtonProps;
70
+ /** Filter button ref. */
71
+ filterButtonRef?: RefObject<HTMLButtonElement>;
72
+ /** Whether the columns button is displayed or not. */
73
+ hasColumnsButton?: boolean;
74
+ /** Whether the density button is displayed or not. */
75
+ hasDensityButton?: boolean;
76
+ /** Whether the export button is displayed or not. */
77
+ hasExportButton?: boolean;
78
+ /** Whether the filter button is displayed or not. */
79
+ hasFilterButton?: boolean;
80
+ }
81
+
82
+ /**
83
+ * Temporary workaround for a type mismatch between react 17 and 18
84
+ * https://github.com/mui/material-ui/issues/35287#issuecomment-1337250566
85
+ */
86
+ declare global {
87
+ namespace React {
88
+ interface DOMAttributes<T> {
89
+ onResize?: React.ReactEventHandler<T> | undefined;
90
+ onResizeCapture?: React.ReactEventHandler<T> | undefined;
91
+ nonce?: string | undefined;
92
+ }
93
+ }
94
+ }
95
+ declare const Toolbar: Comp$1<ToolbarProps, HTMLDivElement>;
48
96
 
49
97
  /** Component Type. */
50
- declare type Comp<P, T = HTMLElement> = {
98
+ type Comp<P, T = HTMLElement> = {
51
99
  (props: P & {
52
100
  ref?: Ref<T>;
53
101
  }): ReactElement | null;
@@ -61,7 +109,7 @@ declare type Comp<P, T = HTMLElement> = {
61
109
  className?: string;
62
110
  };
63
111
  /** Get types of the values of a record. */
64
- declare type ValueOf<T extends Record<any, any>> = T[keyof T];
112
+ type ValueOf<T extends Record<any, any>> = T[keyof T];
65
113
  /**
66
114
  * Color palette.
67
115
  */
@@ -74,7 +122,7 @@ declare const ColorPalette: {
74
122
  readonly question: "question";
75
123
  readonly 'no-data': "no-data";
76
124
  };
77
- declare type ColorPalette = ValueOf<typeof ColorPalette>;
125
+ type ColorPalette = ValueOf<typeof ColorPalette>;
78
126
  declare const ProductColorPalette: {
79
127
  readonly website: "website";
80
128
  readonly ondmarc: "ondmarc";
@@ -83,7 +131,7 @@ declare const ProductColorPalette: {
83
131
  readonly hardenize: "hardenize";
84
132
  readonly tools: "tools";
85
133
  };
86
- declare type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
134
+ type ProductColorPalette = ValueOf<typeof ProductColorPalette>;
87
135
 
88
136
  interface TextCellProps extends ComponentProps<'div'> {
89
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
@@ -361,20 +380,40 @@ const GridToolbarWrapper = styled.div`
361
380
  }
362
381
  `;
363
382
 
364
- const Toolbar = () => {
365
- return /*#__PURE__*/React.createElement(GridToolbarWrapper, null, /*#__PURE__*/React.createElement(GridToolbarContainer, null, /*#__PURE__*/React.createElement(GridToolbarFilterButton, {
366
- nonce: undefined,
367
- onResize: undefined,
368
- onResizeCapture: undefined
369
- }), /*#__PURE__*/React.createElement(GridToolbarColumnsButton, {
370
- nonce: undefined,
371
- onResize: undefined,
372
- onResizeCapture: undefined
373
- }), /*#__PURE__*/React.createElement(GridToolbarDensitySelector, {
374
- nonce: undefined,
375
- onResize: undefined,
376
- onResizeCapture: undefined
377
- }), /*#__PURE__*/React.createElement(GridToolbarExport, {
383
+ /** ------ */
384
+
385
+ const COMPONENT_NAME$2 = 'RedSiftToolbar';
386
+ const CLASSNAME$2 = 'redsift-data-grid';
387
+ const DEFAULT_PROPS$1 = {
388
+ hasExportButton: true,
389
+ hasFilterButton: true,
390
+ hasColumnsButton: true,
391
+ hasDensityButton: true
392
+ };
393
+ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
394
+ const {
395
+ hasExportButton,
396
+ exportButtonProps,
397
+ exportButtonRef,
398
+ hasFilterButton,
399
+ filterButtonProps,
400
+ filterButtonRef,
401
+ hasColumnsButton,
402
+ columnsButtonProps,
403
+ columnsButtonRef,
404
+ hasDensityButton,
405
+ densityButtonProps,
406
+ densityButtonRef
407
+ } = props;
408
+ return /*#__PURE__*/React.createElement(GridToolbarWrapper, {
409
+ ref: ref
410
+ }, /*#__PURE__*/React.createElement(GridToolbarContainer, null, hasFilterButton ? /*#__PURE__*/React.createElement(GridToolbarFilterButton, _extends({}, filterButtonProps, {
411
+ ref: filterButtonRef
412
+ })) : null, hasColumnsButton ? /*#__PURE__*/React.createElement(GridToolbarColumnsButton, _extends({}, columnsButtonProps, {
413
+ ref: columnsButtonRef
414
+ })) : null, hasDensityButton ? /*#__PURE__*/React.createElement(GridToolbarDensitySelector, _extends({}, densityButtonProps, {
415
+ ref: densityButtonRef
416
+ })) : null, hasExportButton ? /*#__PURE__*/React.createElement(GridToolbarExport, _extends({
378
417
  csvOptions: {
379
418
  allColumns: true,
380
419
  fileName: 'csv',
@@ -388,50 +427,56 @@ const Toolbar = () => {
388
427
  printOptions: {
389
428
  disableToolbarButton: true
390
429
  }
391
- })));
392
- };
430
+ }, exportButtonProps, {
431
+ ref: exportButtonRef
432
+ })) : null));
433
+ });
434
+ Toolbar.className = CLASSNAME$2;
435
+ Toolbar.defaultProps = DEFAULT_PROPS$1;
436
+ Toolbar.displayName = COMPONENT_NAME$2;
393
437
 
394
- const _excluded$1 = ["className", "hideToolbar", "license", "$height"];
438
+ const _excluded$1 = ["className", "height", "hideToolbar", "license", "toolbar"];
395
439
  const COMPONENT_NAME$1 = 'RedSiftDataGrid';
396
440
  const CLASSNAME$1 = 'redsift-data-grid';
397
441
  const DEFAULT_PROPS = {
398
442
  license: process.env.MUI_LICENSE_KEY,
399
- $height: '500px'
443
+ height: '500px'
400
444
  };
401
445
  const ColumnSortedAscendingIcon = () => /*#__PURE__*/React.createElement(Icon, {
402
446
  icon: mdiChevronUp,
403
- size: 'small'
447
+ size: "small"
404
448
  });
405
449
  const ColumnSortedDescendingIcon = () => /*#__PURE__*/React.createElement(Icon, {
406
450
  icon: mdiChevronDown,
407
- size: 'small'
451
+ size: "small"
408
452
  });
409
453
  const DetailPanelExpandIcon = () => /*#__PURE__*/React.createElement(Icon, {
410
454
  icon: mdiChevronRight,
411
- size: 'small'
455
+ size: "small"
412
456
  });
413
457
  const DetailPanelCollapseIcon = () => /*#__PURE__*/React.createElement(Icon, {
414
458
  icon: mdiChevronDown,
415
- size: 'small'
459
+ size: "small"
416
460
  });
417
461
  const ColumnFilteredIcon = () => /*#__PURE__*/React.createElement(Icon, {
418
462
  icon: mdiFilterVariant,
419
- size: 'small'
463
+ size: "small"
420
464
  });
421
465
  const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
422
466
  const datagridRef = ref || useRef();
423
467
  const {
424
468
  className,
469
+ height,
425
470
  hideToolbar,
426
471
  license,
427
- $height
472
+ toolbar = Toolbar
428
473
  } = props,
429
474
  forwardedProps = _objectWithoutProperties(props, _excluded$1);
430
475
  LicenseInfo.setLicenseKey(license);
431
476
  return /*#__PURE__*/React.createElement(StyledDataGrid, {
432
477
  ref: datagridRef,
433
478
  className: classNames(DataGrid.className, className),
434
- $height: $height
479
+ $height: height
435
480
  }, /*#__PURE__*/React.createElement(DataGridPro, _extends({}, forwardedProps, {
436
481
  components: _objectSpread2(_objectSpread2({
437
482
  ColumnFilteredIcon,
@@ -441,7 +486,7 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
441
486
  DetailPanelCollapseIcon,
442
487
  OpenFilterButtonIcon: ColumnFilteredIcon
443
488
  }, props.components), !hideToolbar && {
444
- Toolbar
489
+ Toolbar: toolbar
445
490
  })
446
491
  })));
447
492
  });
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 from 'react';\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';\n\nexport const Toolbar = () => {\n return (\n <GridToolbarWrapper>\n <GridToolbarContainer>\n <GridToolbarFilterButton\n nonce={undefined}\n onResize={undefined}\n onResizeCapture={undefined}\n />\n <GridToolbarColumnsButton\n nonce={undefined}\n onResize={undefined}\n onResizeCapture={undefined}\n />\n <GridToolbarDensitySelector\n nonce={undefined}\n onResize={undefined}\n onResizeCapture={undefined}\n />\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 />\n </GridToolbarContainer>\n </GridToolbarWrapper>\n );\n};\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 = () => (\n <Icon icon={mdiFilterVariant} size={'small'} />\n);\n\nexport const DataGrid: Comp<DataGridProps, HTMLDivElement> = forwardRef(\n (props, ref) => {\n const datagridRef = ref || useRef<HTMLDivElement>();\n\n const { className, hideToolbar, license, $height, ...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 }),\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","Toolbar","undefined","allColumns","fileName","getRowsToExport","apiRef","gridVisibleSortedRowIdsSelector","disableToolbarButton","COMPONENT_NAME","CLASSNAME","DEFAULT_PROPS","license","process","env","MUI_LICENSE_KEY","ColumnSortedAscendingIcon","mdiChevronUp","ColumnSortedDescendingIcon","mdiChevronDown","DetailPanelExpandIcon","mdiChevronRight","DetailPanelCollapseIcon","ColumnFilteredIcon","mdiFilterVariant","DataGrid","forwardRef","props","ref","datagridRef","useRef","className","hideToolbar","forwardedProps","_excluded","LicenseInfo","setLicenseKey","classNames","_objectSpread","OpenFilterButtonIcon","components","defaultProps","displayName","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,CA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,CAAC;AAC5C,GAAG;AACH;AACA,EAAE,OAAO,aAAa,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;;ACzBM,MAAMI,OAAO,GAAG,MAAM;AAC3B,EAAA,oBACE,oBAAC,kBAAkB,EAAA,IAAA,eACjB,oBAAC,oBAAoB,EAAA,IAAA,eACnB,oBAAC,uBAAuB,EAAA;AACtB,IAAA,KAAK,EAAEC,SAAU;AACjB,IAAA,QAAQ,EAAEA,SAAU;AACpB,IAAA,eAAe,EAAEA,SAAAA;GACjB,CAAA,eACF,oBAAC,wBAAwB,EAA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MAAM,EAAA;AAAC,IAAA,OAAO,EAAEA,aAAAA;AAAc,GAAA,CAAG,GAAG,IAAI,EACzDJ,QAAQ,gBACP,oBAAC,IAAI,EAAA;AACH,IAAA,IAAI,EAAEA,QAAS;AACf,IAAA,aAAA,EAAY,MAAM;AAClB,IAAA,IAAI,EAAC,OAAO;AACZ,IAAA,KAAK,EAAEC,aAAAA;AAAc,GAAA,CACrB,GACA,IAAI,eACR,oBAAC,kBAAkB,EAAA,IAAA,EAAEF,QAAQ,CAAsB,EAClDD,KAAK,GAAGA,KAAK,GAAG,IAAI,EACpBI,SAAS,gBACR,oBAAC,IAAI,EAAA;AACH,IAAA,IAAI,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,CAACd,SAAS,GAAGrB,SAAS,CAAA;AAC9BmC,QAAQ,CAACH,WAAW,GAAGjC,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":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AA,GAAG,EAAEiC,WAAAA;AAAyC,GAAA,CAAA,eAE9C,KACGO,CAAAA,aAAAA,CAAAA,KAAAA,CAAAA,QAAAA,EAAAA,IAAAA,EAAAA,aAAa,gBAAG,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA;AAAC,IAAA,OAAO,EAAEA,aAAAA;AAAc,GAAA,CAAG,GAAG,IAAI,EACzDJ,QAAQ,gBACP,oBAAC,IAAI,EAAA;AACH,IAAA,IAAI,EAAEA,QAAS;AACf,IAAA,aAAA,EAAY,MAAM;AAClB,IAAA,IAAI,EAAC,OAAO;AACZ,IAAA,KAAK,EAAEC,aAAAA;AAAc,GAAA,CACrB,GACA,IAAI,eACR,oBAAC,kBAAkB,EAAA,IAAA,EAAEF,QAAQ,CAAsB,EAClDD,KAAK,GAAGA,KAAK,GAAG,IAAI,EACpBI,SAAS,gBACR,oBAAC,IAAI,EAAA;AACH,IAAA,IAAI,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.0.2",
31
+ "version": "7.1.1-alpha.0",
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.0.2",
38
- "@redsift/icons": "^7.0.2"
34
+ "@mui/styled-engine-sc": "^5.11.0",
35
+ "@redsift/design-system": "^7.1.1-alpha.0",
36
+ "@redsift/icons": "^7.1.1-alpha.0"
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": "f21afcda9d042319625b5cbb6990a06944b8ec5a"
94
+ "gitHead": "6f44db897a68b5788957a3328f21ebc0fc62bfdd"
95
95
  }