@redsift/table 10.3.0-alpha.6 → 10.3.0-alpha.7
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 +2 -5
- package/index.js +356 -496
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF, getGridNumericOperators as getGridNumericOperators$1, GridFilterInputMultipleValue, getGridStringOperators as getGridStringOperators$1, GridToolbarContainer, GridToolbarFilterButton, GridToolbarColumnsButton, GridToolbarDensitySelector, GridToolbarExport, gridExpandedSortedRowIdsSelector, gridPaginatedVisibleSortedGridRowEntriesSelector, gridPaginatedVisibleSortedGridRowIdsSelector, gridFilteredSortedRowEntriesSelector, gridFilteredSortedRowIdsSelector
|
|
1
|
+
import { GRID_DETAIL_PANEL_TOGGLE_COL_DEF, getGridNumericOperators as getGridNumericOperators$1, GridFilterInputMultipleValue, getGridStringOperators as getGridStringOperators$1, GridToolbarContainer, GridToolbarFilterButton, GridToolbarColumnsButton, GridToolbarDensitySelector, GridToolbarExport, gridExpandedSortedRowIdsSelector, useGridApiRef, DataGridPro, gridPaginatedVisibleSortedGridRowEntriesSelector, gridPaginatedVisibleSortedGridRowIdsSelector, gridFilteredSortedRowEntriesSelector, gridFilteredSortedRowIdsSelector } from '@mui/x-data-grid-pro';
|
|
2
2
|
export * from '@mui/x-data-grid-pro';
|
|
3
3
|
export { getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { Children, isValidElement, cloneElement, useLayoutEffect, useEffect, useRef, forwardRef, useContext, useState, useCallback, createElement, useMemo } from 'react';
|
|
6
|
-
import { Icon, baseContainer, Theme, AppContainerContext, useTheme as useTheme$4, useId as useId$2,
|
|
6
|
+
import { Icon, baseContainer, Theme, AppContainerContext, useTheme as useTheme$4, useId as useId$2, partitionComponents, isComponent, Flexbox, TextField as TextField$2, Button, Switch, Text, ButtonsColorPalette, IconButton as IconButton$2, Checkbox, ThemeProvider as ThemeProvider$4, LinkButton, RedsiftColorBlueN, RedsiftColorNeutralXDarkGrey, RedsiftColorNeutralWhite, Shield } from '@redsift/design-system';
|
|
7
7
|
import { mdiSync, mdiFilterVariant, mdiViewColumn, mdiChevronUp, mdiChevronDown, mdiViewHeadline, mdiViewSequential, mdiViewStream, mdiChevronRight, mdiTrayArrowDown } from '@redsift/icons';
|
|
8
8
|
import emStyled from '@emotion/styled';
|
|
9
9
|
import { Global, ThemeContext as ThemeContext$3, keyframes } from '@emotion/react';
|
|
@@ -3625,7 +3625,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
3625
3625
|
return target;
|
|
3626
3626
|
}
|
|
3627
3627
|
|
|
3628
|
-
const _excluded$
|
|
3628
|
+
const _excluded$Q = ["values", "unit", "step"];
|
|
3629
3629
|
const sortBreakpointsValues = values => {
|
|
3630
3630
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
3631
3631
|
key,
|
|
@@ -3660,7 +3660,7 @@ function createBreakpoints(breakpoints) {
|
|
|
3660
3660
|
unit = 'px',
|
|
3661
3661
|
step = 5
|
|
3662
3662
|
} = breakpoints,
|
|
3663
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
3663
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$Q);
|
|
3664
3664
|
const sortedValues = sortBreakpointsValues(values);
|
|
3665
3665
|
const keys = Object.keys(sortedValues);
|
|
3666
3666
|
function up(key) {
|
|
@@ -4689,7 +4689,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
|
4689
4689
|
styleFunctionSx.filterProps = ['sx'];
|
|
4690
4690
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
4691
4691
|
|
|
4692
|
-
const _excluded$
|
|
4692
|
+
const _excluded$P = ["breakpoints", "palette", "spacing", "shape"];
|
|
4693
4693
|
function createTheme$1(options = {}, ...args) {
|
|
4694
4694
|
const {
|
|
4695
4695
|
breakpoints: breakpointsInput = {},
|
|
@@ -4697,7 +4697,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
4697
4697
|
spacing: spacingInput,
|
|
4698
4698
|
shape: shapeInput = {}
|
|
4699
4699
|
} = options,
|
|
4700
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
4700
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$P);
|
|
4701
4701
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
4702
4702
|
const spacing = createSpacing(spacingInput);
|
|
4703
4703
|
let muiTheme = deepmerge({
|
|
@@ -4765,7 +4765,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$1.propTypes /* remove-propt
|
|
|
4765
4765
|
themeId: PropTypes.string
|
|
4766
4766
|
} : void 0;
|
|
4767
4767
|
|
|
4768
|
-
const _excluded$
|
|
4768
|
+
const _excluded$O = ["sx"];
|
|
4769
4769
|
const splitProps = props => {
|
|
4770
4770
|
var _props$theme$unstable, _props$theme;
|
|
4771
4771
|
const result = {
|
|
@@ -4786,7 +4786,7 @@ function extendSxProp(props) {
|
|
|
4786
4786
|
const {
|
|
4787
4787
|
sx: inSx
|
|
4788
4788
|
} = props,
|
|
4789
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
4789
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$O);
|
|
4790
4790
|
const {
|
|
4791
4791
|
systemProps,
|
|
4792
4792
|
otherProps
|
|
@@ -4812,7 +4812,7 @@ function extendSxProp(props) {
|
|
|
4812
4812
|
|
|
4813
4813
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
4814
4814
|
|
|
4815
|
-
const _excluded$
|
|
4815
|
+
const _excluded$N = ["className", "component"];
|
|
4816
4816
|
function createBox(options = {}) {
|
|
4817
4817
|
const {
|
|
4818
4818
|
themeId,
|
|
@@ -4830,7 +4830,7 @@ function createBox(options = {}) {
|
|
|
4830
4830
|
className,
|
|
4831
4831
|
component = 'div'
|
|
4832
4832
|
} = _extendSxProp,
|
|
4833
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
4833
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$N);
|
|
4834
4834
|
return /*#__PURE__*/jsxRuntimeExports.jsx(BoxRoot, _extends$1({
|
|
4835
4835
|
as: component,
|
|
4836
4836
|
ref: ref,
|
|
@@ -4841,7 +4841,7 @@ function createBox(options = {}) {
|
|
|
4841
4841
|
return Box;
|
|
4842
4842
|
}
|
|
4843
4843
|
|
|
4844
|
-
const _excluded$
|
|
4844
|
+
const _excluded$M = ["variant"];
|
|
4845
4845
|
function isEmpty$3(string) {
|
|
4846
4846
|
return string.length === 0;
|
|
4847
4847
|
}
|
|
@@ -4855,7 +4855,7 @@ function propsToClassKey(props) {
|
|
|
4855
4855
|
const {
|
|
4856
4856
|
variant
|
|
4857
4857
|
} = props,
|
|
4858
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
4858
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$M);
|
|
4859
4859
|
let classKey = variant || '';
|
|
4860
4860
|
Object.keys(other).sort().forEach(key => {
|
|
4861
4861
|
if (key === 'color') {
|
|
@@ -4867,7 +4867,7 @@ function propsToClassKey(props) {
|
|
|
4867
4867
|
return classKey;
|
|
4868
4868
|
}
|
|
4869
4869
|
|
|
4870
|
-
const _excluded$
|
|
4870
|
+
const _excluded$L = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
4871
4871
|
function isEmpty$2(obj) {
|
|
4872
4872
|
return Object.keys(obj).length === 0;
|
|
4873
4873
|
}
|
|
@@ -4962,7 +4962,7 @@ function createStyled(input = {}) {
|
|
|
4962
4962
|
skipSx: inputSkipSx,
|
|
4963
4963
|
overridesResolver
|
|
4964
4964
|
} = inputOptions,
|
|
4965
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
4965
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$L);
|
|
4966
4966
|
|
|
4967
4967
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
4968
4968
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -5639,7 +5639,7 @@ const green = {
|
|
|
5639
5639
|
};
|
|
5640
5640
|
var green$1 = green;
|
|
5641
5641
|
|
|
5642
|
-
const _excluded$
|
|
5642
|
+
const _excluded$K = ["mode", "contrastThreshold", "tonalOffset"];
|
|
5643
5643
|
const light = {
|
|
5644
5644
|
// The colors used to style the text.
|
|
5645
5645
|
text: {
|
|
@@ -5808,7 +5808,7 @@ function createPalette(palette) {
|
|
|
5808
5808
|
contrastThreshold = 3,
|
|
5809
5809
|
tonalOffset = 0.2
|
|
5810
5810
|
} = palette,
|
|
5811
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
5811
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$K);
|
|
5812
5812
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
5813
5813
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
5814
5814
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -5932,7 +5932,7 @@ const theme2 = createTheme({ palette: {
|
|
|
5932
5932
|
return paletteOutput;
|
|
5933
5933
|
}
|
|
5934
5934
|
|
|
5935
|
-
const _excluded$
|
|
5935
|
+
const _excluded$J = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
5936
5936
|
function round$2(value) {
|
|
5937
5937
|
return Math.round(value * 1e5) / 1e5;
|
|
5938
5938
|
}
|
|
@@ -5963,7 +5963,7 @@ function createTypography(palette, typography) {
|
|
|
5963
5963
|
allVariants,
|
|
5964
5964
|
pxToRem: pxToRem2
|
|
5965
5965
|
} = _ref,
|
|
5966
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5966
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
5967
5967
|
if (process.env.NODE_ENV !== 'production') {
|
|
5968
5968
|
if (typeof fontSize !== 'number') {
|
|
5969
5969
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -6030,7 +6030,7 @@ function createShadow(...px) {
|
|
|
6030
6030
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
6031
6031
|
var shadows$1 = shadows;
|
|
6032
6032
|
|
|
6033
|
-
const _excluded$
|
|
6033
|
+
const _excluded$I = ["duration", "easing", "delay"];
|
|
6034
6034
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
6035
6035
|
// to learn the context in which each easing should be used.
|
|
6036
6036
|
const easing = {
|
|
@@ -6081,7 +6081,7 @@ function createTransitions(inputTransitions) {
|
|
|
6081
6081
|
easing: easingOption = mergedEasing.easeInOut,
|
|
6082
6082
|
delay = 0
|
|
6083
6083
|
} = options,
|
|
6084
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6084
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$I);
|
|
6085
6085
|
if (process.env.NODE_ENV !== 'production') {
|
|
6086
6086
|
const isString = value => typeof value === 'string';
|
|
6087
6087
|
// IE11 support, replace with Number.isNaN
|
|
@@ -6128,7 +6128,7 @@ const zIndex = {
|
|
|
6128
6128
|
};
|
|
6129
6129
|
var zIndex$1 = zIndex;
|
|
6130
6130
|
|
|
6131
|
-
const _excluded$
|
|
6131
|
+
const _excluded$H = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
6132
6132
|
function createTheme(options = {}, ...args) {
|
|
6133
6133
|
const {
|
|
6134
6134
|
mixins: mixinsInput = {},
|
|
@@ -6136,7 +6136,7 @@ function createTheme(options = {}, ...args) {
|
|
|
6136
6136
|
transitions: transitionsInput = {},
|
|
6137
6137
|
typography: typographyInput = {}
|
|
6138
6138
|
} = options,
|
|
6139
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6139
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$H);
|
|
6140
6140
|
if (options.vars) {
|
|
6141
6141
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
6142
6142
|
Please use another name.` : formatMuiErrorMessage(18));
|
|
@@ -6227,12 +6227,12 @@ const styled = createStyled({
|
|
|
6227
6227
|
});
|
|
6228
6228
|
var styled$1 = styled;
|
|
6229
6229
|
|
|
6230
|
-
const _excluded$
|
|
6230
|
+
const _excluded$G = ["theme"];
|
|
6231
6231
|
function ThemeProvider$1(_ref) {
|
|
6232
6232
|
let {
|
|
6233
6233
|
theme: themeInput
|
|
6234
6234
|
} = _ref,
|
|
6235
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6235
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
6236
6236
|
const scopedTheme = themeInput[THEME_ID];
|
|
6237
6237
|
return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$2, _extends$1({}, props, {
|
|
6238
6238
|
themeId: scopedTheme ? THEME_ID : undefined,
|
|
@@ -6456,7 +6456,7 @@ function mergeSlotProps(parameters) {
|
|
|
6456
6456
|
};
|
|
6457
6457
|
}
|
|
6458
6458
|
|
|
6459
|
-
const _excluded$
|
|
6459
|
+
const _excluded$F = ["elementType", "externalSlotProps", "ownerState"];
|
|
6460
6460
|
/**
|
|
6461
6461
|
* @ignore - do not document.
|
|
6462
6462
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -6472,7 +6472,7 @@ function useSlotProps(parameters) {
|
|
|
6472
6472
|
externalSlotProps,
|
|
6473
6473
|
ownerState
|
|
6474
6474
|
} = parameters,
|
|
6475
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
6475
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$F);
|
|
6476
6476
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
6477
6477
|
const {
|
|
6478
6478
|
props: mergedProps,
|
|
@@ -8688,7 +8688,7 @@ function getPopperUtilityClass(slot) {
|
|
|
8688
8688
|
}
|
|
8689
8689
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
8690
8690
|
|
|
8691
|
-
const _excluded$
|
|
8691
|
+
const _excluded$E = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
|
|
8692
8692
|
_excluded2$3 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
8693
8693
|
function flipPlacement(placement, direction) {
|
|
8694
8694
|
if (direction === 'ltr') {
|
|
@@ -8741,7 +8741,7 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
|
|
|
8741
8741
|
// @ts-ignore internal logic
|
|
8742
8742
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
8743
8743
|
} = props,
|
|
8744
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8744
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$E);
|
|
8745
8745
|
const tooltipRef = React.useRef(null);
|
|
8746
8746
|
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
8747
8747
|
const popperRef = React.useRef(null);
|
|
@@ -9268,7 +9268,7 @@ function getModalUtilityClass(slot) {
|
|
|
9268
9268
|
}
|
|
9269
9269
|
generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
9270
9270
|
|
|
9271
|
-
const _excluded$
|
|
9271
|
+
const _excluded$D = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
9272
9272
|
const useUtilityClasses$o = ownerState => {
|
|
9273
9273
|
const {
|
|
9274
9274
|
open,
|
|
@@ -9337,7 +9337,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9337
9337
|
slotProps = {},
|
|
9338
9338
|
slots = {}
|
|
9339
9339
|
} = props,
|
|
9340
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9340
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$D);
|
|
9341
9341
|
// TODO: `modal`` must change its type in this file to match the type of methods
|
|
9342
9342
|
// provided by `ModalManager`
|
|
9343
9343
|
const manager = managerProp;
|
|
@@ -9627,7 +9627,7 @@ process.env.NODE_ENV !== "production" ? Modal$2.propTypes /* remove-proptypes */
|
|
|
9627
9627
|
} : void 0;
|
|
9628
9628
|
var ModalUnstyled = Modal$2;
|
|
9629
9629
|
|
|
9630
|
-
const _excluded$
|
|
9630
|
+
const _excluded$C = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
9631
9631
|
function getStyleValue(value) {
|
|
9632
9632
|
return parseInt(value, 10) || 0;
|
|
9633
9633
|
}
|
|
@@ -9669,7 +9669,7 @@ const TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize
|
|
|
9669
9669
|
style,
|
|
9670
9670
|
value
|
|
9671
9671
|
} = props,
|
|
9672
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9672
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$C);
|
|
9673
9673
|
const {
|
|
9674
9674
|
current: isControlled
|
|
9675
9675
|
} = React.useRef(value != null);
|
|
@@ -9963,7 +9963,7 @@ function getInputBaseUtilityClass(slot) {
|
|
|
9963
9963
|
const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
9964
9964
|
var inputBaseClasses$1 = inputBaseClasses;
|
|
9965
9965
|
|
|
9966
|
-
const _excluded$
|
|
9966
|
+
const _excluded$B = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
|
|
9967
9967
|
const rootOverridesResolver = (props, styles) => {
|
|
9968
9968
|
const {
|
|
9969
9969
|
ownerState
|
|
@@ -10194,7 +10194,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
|
|
|
10194
10194
|
type = 'text',
|
|
10195
10195
|
value: valueProp
|
|
10196
10196
|
} = props,
|
|
10197
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10197
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$B);
|
|
10198
10198
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
10199
10199
|
const {
|
|
10200
10200
|
current: isControlled
|
|
@@ -10656,7 +10656,7 @@ function getInputUtilityClass(slot) {
|
|
|
10656
10656
|
const inputClasses = _extends$1({}, inputBaseClasses$1, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));
|
|
10657
10657
|
var inputClasses$1 = inputClasses;
|
|
10658
10658
|
|
|
10659
|
-
const _excluded$
|
|
10659
|
+
const _excluded$A = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
10660
10660
|
const useUtilityClasses$m = ownerState => {
|
|
10661
10661
|
const {
|
|
10662
10662
|
classes,
|
|
@@ -10769,7 +10769,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {
|
|
|
10769
10769
|
slots = {},
|
|
10770
10770
|
type = 'text'
|
|
10771
10771
|
} = props,
|
|
10772
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10772
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$A);
|
|
10773
10773
|
const classes = useUtilityClasses$m(props);
|
|
10774
10774
|
const ownerState = {
|
|
10775
10775
|
disableUnderline
|
|
@@ -10992,7 +10992,7 @@ function getFilledInputUtilityClass(slot) {
|
|
|
10992
10992
|
const filledInputClasses = _extends$1({}, inputBaseClasses$1, generateUtilityClasses('MuiFilledInput', ['root', 'underline', 'input']));
|
|
10993
10993
|
var filledInputClasses$1 = filledInputClasses;
|
|
10994
10994
|
|
|
10995
|
-
const _excluded$
|
|
10995
|
+
const _excluded$z = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
10996
10996
|
const useUtilityClasses$l = ownerState => {
|
|
10997
10997
|
const {
|
|
10998
10998
|
classes,
|
|
@@ -11176,7 +11176,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
11176
11176
|
slots = {},
|
|
11177
11177
|
type = 'text'
|
|
11178
11178
|
} = props,
|
|
11179
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
11179
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$z);
|
|
11180
11180
|
const ownerState = _extends$1({}, props, {
|
|
11181
11181
|
fullWidth,
|
|
11182
11182
|
inputComponent,
|
|
@@ -11407,7 +11407,7 @@ FilledInput.muiName = 'Input';
|
|
|
11407
11407
|
var FilledInput$1 = FilledInput;
|
|
11408
11408
|
|
|
11409
11409
|
var _span$2;
|
|
11410
|
-
const _excluded$
|
|
11410
|
+
const _excluded$y = ["children", "classes", "className", "label", "notched"];
|
|
11411
11411
|
const NotchedOutlineRoot$1 = styled$1('fieldset')({
|
|
11412
11412
|
textAlign: 'left',
|
|
11413
11413
|
position: 'absolute',
|
|
@@ -11480,7 +11480,7 @@ function NotchedOutline(props) {
|
|
|
11480
11480
|
label,
|
|
11481
11481
|
notched
|
|
11482
11482
|
} = props,
|
|
11483
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
11483
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$y);
|
|
11484
11484
|
const withLabel = label != null && label !== '';
|
|
11485
11485
|
const ownerState = _extends$1({}, props, {
|
|
11486
11486
|
notched,
|
|
@@ -11537,7 +11537,7 @@ function getOutlinedInputUtilityClass(slot) {
|
|
|
11537
11537
|
const outlinedInputClasses = _extends$1({}, inputBaseClasses$1, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
|
|
11538
11538
|
var outlinedInputClasses$1 = outlinedInputClasses;
|
|
11539
11539
|
|
|
11540
|
-
const _excluded$
|
|
11540
|
+
const _excluded$x = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
11541
11541
|
const useUtilityClasses$k = ownerState => {
|
|
11542
11542
|
const {
|
|
11543
11543
|
classes
|
|
@@ -11656,7 +11656,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
11656
11656
|
slots = {},
|
|
11657
11657
|
type = 'text'
|
|
11658
11658
|
} = props,
|
|
11659
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
11659
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
11660
11660
|
const classes = useUtilityClasses$k(props);
|
|
11661
11661
|
const muiFormControl = useFormControl();
|
|
11662
11662
|
const fcs = formControlState({
|
|
@@ -11877,7 +11877,7 @@ function getFormLabelUtilityClasses(slot) {
|
|
|
11877
11877
|
const formLabelClasses = generateUtilityClasses('MuiFormLabel', ['root', 'colorSecondary', 'focused', 'disabled', 'error', 'filled', 'required', 'asterisk']);
|
|
11878
11878
|
var formLabelClasses$1 = formLabelClasses;
|
|
11879
11879
|
|
|
11880
|
-
const _excluded$
|
|
11880
|
+
const _excluded$w = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
|
|
11881
11881
|
const useUtilityClasses$j = ownerState => {
|
|
11882
11882
|
const {
|
|
11883
11883
|
classes,
|
|
@@ -11942,7 +11942,7 @@ const FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref)
|
|
|
11942
11942
|
className,
|
|
11943
11943
|
component = 'label'
|
|
11944
11944
|
} = props,
|
|
11945
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
11945
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$w);
|
|
11946
11946
|
const muiFormControl = useFormControl();
|
|
11947
11947
|
const fcs = formControlState({
|
|
11948
11948
|
props,
|
|
@@ -12033,7 +12033,7 @@ function getInputLabelUtilityClasses(slot) {
|
|
|
12033
12033
|
}
|
|
12034
12034
|
generateUtilityClasses('MuiInputLabel', ['root', 'focused', 'disabled', 'error', 'required', 'asterisk', 'formControl', 'sizeSmall', 'shrink', 'animated', 'standard', 'filled', 'outlined']);
|
|
12035
12035
|
|
|
12036
|
-
const _excluded$
|
|
12036
|
+
const _excluded$v = ["disableAnimation", "margin", "shrink", "variant", "className"];
|
|
12037
12037
|
const useUtilityClasses$i = ownerState => {
|
|
12038
12038
|
const {
|
|
12039
12039
|
classes,
|
|
@@ -12135,7 +12135,7 @@ const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, re
|
|
|
12135
12135
|
shrink: shrinkProp,
|
|
12136
12136
|
className
|
|
12137
12137
|
} = props,
|
|
12138
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12138
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$v);
|
|
12139
12139
|
const muiFormControl = useFormControl();
|
|
12140
12140
|
let shrink = shrinkProp;
|
|
12141
12141
|
if (typeof shrink === 'undefined' && muiFormControl) {
|
|
@@ -12238,7 +12238,7 @@ function getFormControlUtilityClasses(slot) {
|
|
|
12238
12238
|
}
|
|
12239
12239
|
generateUtilityClasses('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
|
|
12240
12240
|
|
|
12241
|
-
const _excluded$
|
|
12241
|
+
const _excluded$u = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
|
|
12242
12242
|
const useUtilityClasses$h = ownerState => {
|
|
12243
12243
|
const {
|
|
12244
12244
|
classes,
|
|
@@ -12324,7 +12324,7 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
|
|
|
12324
12324
|
size = 'medium',
|
|
12325
12325
|
variant = 'outlined'
|
|
12326
12326
|
} = props,
|
|
12327
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12327
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$u);
|
|
12328
12328
|
const ownerState = _extends$1({}, props, {
|
|
12329
12329
|
color,
|
|
12330
12330
|
component,
|
|
@@ -12520,7 +12520,7 @@ const formHelperTextClasses = generateUtilityClasses('MuiFormHelperText', ['root
|
|
|
12520
12520
|
var formHelperTextClasses$1 = formHelperTextClasses;
|
|
12521
12521
|
|
|
12522
12522
|
var _span$1;
|
|
12523
|
-
const _excluded$
|
|
12523
|
+
const _excluded$t = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
|
|
12524
12524
|
const useUtilityClasses$g = ownerState => {
|
|
12525
12525
|
const {
|
|
12526
12526
|
classes,
|
|
@@ -12579,7 +12579,7 @@ const FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inP
|
|
|
12579
12579
|
className,
|
|
12580
12580
|
component = 'p'
|
|
12581
12581
|
} = props,
|
|
12582
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12582
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
12583
12583
|
const muiFormControl = useFormControl();
|
|
12584
12584
|
const fcs = formControlState({
|
|
12585
12585
|
props,
|
|
@@ -12685,7 +12685,7 @@ function getListUtilityClass(slot) {
|
|
|
12685
12685
|
}
|
|
12686
12686
|
generateUtilityClasses('MuiList', ['root', 'padding', 'dense', 'subheader']);
|
|
12687
12687
|
|
|
12688
|
-
const _excluded$
|
|
12688
|
+
const _excluded$s = ["children", "className", "component", "dense", "disablePadding", "subheader"];
|
|
12689
12689
|
const useUtilityClasses$f = ownerState => {
|
|
12690
12690
|
const {
|
|
12691
12691
|
classes,
|
|
@@ -12733,7 +12733,7 @@ const List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {
|
|
|
12733
12733
|
disablePadding = false,
|
|
12734
12734
|
subheader
|
|
12735
12735
|
} = props,
|
|
12736
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12736
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$s);
|
|
12737
12737
|
const context = React.useMemo(() => ({
|
|
12738
12738
|
dense
|
|
12739
12739
|
}), [dense]);
|
|
@@ -12800,7 +12800,7 @@ process.env.NODE_ENV !== "production" ? List.propTypes /* remove-proptypes */ =
|
|
|
12800
12800
|
} : void 0;
|
|
12801
12801
|
var List$1 = List;
|
|
12802
12802
|
|
|
12803
|
-
const _excluded$
|
|
12803
|
+
const _excluded$r = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
12804
12804
|
function nextItem(list, item, disableListWrap) {
|
|
12805
12805
|
if (list === item) {
|
|
12806
12806
|
return list.firstChild;
|
|
@@ -12882,7 +12882,7 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
12882
12882
|
onKeyDown,
|
|
12883
12883
|
variant = 'selectedMenu'
|
|
12884
12884
|
} = props,
|
|
12885
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12885
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$r);
|
|
12886
12886
|
const listRef = React.useRef(null);
|
|
12887
12887
|
const textCriteriaRef = React.useRef({
|
|
12888
12888
|
keys: [],
|
|
@@ -14072,7 +14072,7 @@ function getTransitionProps(props, options) {
|
|
|
14072
14072
|
};
|
|
14073
14073
|
}
|
|
14074
14074
|
|
|
14075
|
-
const _excluded$
|
|
14075
|
+
const _excluded$q = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
14076
14076
|
function getScale$1(value) {
|
|
14077
14077
|
return `scale(${value}, ${value ** 2})`;
|
|
14078
14078
|
}
|
|
@@ -14116,7 +14116,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
|
14116
14116
|
// eslint-disable-next-line react/prop-types
|
|
14117
14117
|
TransitionComponent = Transition$1
|
|
14118
14118
|
} = props,
|
|
14119
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14119
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
14120
14120
|
const timer = React.useRef();
|
|
14121
14121
|
const autoTimeout = React.useRef();
|
|
14122
14122
|
const theme = useTheme();
|
|
@@ -14320,7 +14320,7 @@ process.env.NODE_ENV !== "production" ? Grow.propTypes /* remove-proptypes */ =
|
|
|
14320
14320
|
Grow.muiSupportAuto = true;
|
|
14321
14321
|
var Grow$1 = Grow;
|
|
14322
14322
|
|
|
14323
|
-
const _excluded$
|
|
14323
|
+
const _excluded$p = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
14324
14324
|
const styles = {
|
|
14325
14325
|
entering: {
|
|
14326
14326
|
opacity: 1
|
|
@@ -14357,7 +14357,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
14357
14357
|
// eslint-disable-next-line react/prop-types
|
|
14358
14358
|
TransitionComponent = Transition$1
|
|
14359
14359
|
} = props,
|
|
14360
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14360
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$p);
|
|
14361
14361
|
const nodeRef = React.useRef(null);
|
|
14362
14362
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
14363
14363
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -14518,7 +14518,7 @@ function getBackdropUtilityClass(slot) {
|
|
|
14518
14518
|
}
|
|
14519
14519
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
14520
14520
|
|
|
14521
|
-
const _excluded$
|
|
14521
|
+
const _excluded$o = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
14522
14522
|
const useUtilityClasses$e = ownerState => {
|
|
14523
14523
|
const {
|
|
14524
14524
|
classes,
|
|
@@ -14573,7 +14573,7 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
14573
14573
|
TransitionComponent = Fade$1,
|
|
14574
14574
|
transitionDuration
|
|
14575
14575
|
} = props,
|
|
14576
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14576
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$o);
|
|
14577
14577
|
const ownerState = _extends$1({}, props, {
|
|
14578
14578
|
component,
|
|
14579
14579
|
invisible
|
|
@@ -14694,7 +14694,7 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
14694
14694
|
} : void 0;
|
|
14695
14695
|
var Backdrop$1 = Backdrop;
|
|
14696
14696
|
|
|
14697
|
-
const _excluded$
|
|
14697
|
+
const _excluded$n = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
|
|
14698
14698
|
const ModalRoot = styled$1('div', {
|
|
14699
14699
|
name: 'MuiModal',
|
|
14700
14700
|
slot: 'Root',
|
|
@@ -14773,7 +14773,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
14773
14773
|
// eslint-disable-next-line react/prop-types
|
|
14774
14774
|
theme
|
|
14775
14775
|
} = props,
|
|
14776
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14776
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
14777
14777
|
const [exited, setExited] = React.useState(true);
|
|
14778
14778
|
const commonProps = {
|
|
14779
14779
|
container,
|
|
@@ -14997,7 +14997,7 @@ function getPaperUtilityClass(slot) {
|
|
|
14997
14997
|
}
|
|
14998
14998
|
generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
|
14999
14999
|
|
|
15000
|
-
const _excluded$
|
|
15000
|
+
const _excluded$m = ["className", "component", "elevation", "square", "variant"];
|
|
15001
15001
|
const useUtilityClasses$d = ownerState => {
|
|
15002
15002
|
const {
|
|
15003
15003
|
square,
|
|
@@ -15052,7 +15052,7 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
15052
15052
|
square = false,
|
|
15053
15053
|
variant = 'elevation'
|
|
15054
15054
|
} = props,
|
|
15055
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15055
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$m);
|
|
15056
15056
|
const ownerState = _extends$1({}, props, {
|
|
15057
15057
|
component,
|
|
15058
15058
|
elevation,
|
|
@@ -15133,7 +15133,7 @@ function getPopoverUtilityClass(slot) {
|
|
|
15133
15133
|
}
|
|
15134
15134
|
generateUtilityClasses('MuiPopover', ['root', 'paper']);
|
|
15135
15135
|
|
|
15136
|
-
const _excluded$
|
|
15136
|
+
const _excluded$l = ["onEntering"],
|
|
15137
15137
|
_excluded2$2 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"],
|
|
15138
15138
|
_excluded3 = ["slotProps"];
|
|
15139
15139
|
function getOffsetTop(rect, vertical) {
|
|
@@ -15230,7 +15230,7 @@ const Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
|
|
|
15230
15230
|
onEntering
|
|
15231
15231
|
} = {}
|
|
15232
15232
|
} = props,
|
|
15233
|
-
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$
|
|
15233
|
+
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$l),
|
|
15234
15234
|
other = _objectWithoutPropertiesLoose(props, _excluded2$2);
|
|
15235
15235
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
15236
15236
|
const paperRef = React.useRef();
|
|
@@ -15636,7 +15636,7 @@ function getMenuUtilityClass(slot) {
|
|
|
15636
15636
|
}
|
|
15637
15637
|
generateUtilityClasses('MuiMenu', ['root', 'paper', 'list']);
|
|
15638
15638
|
|
|
15639
|
-
const _excluded$
|
|
15639
|
+
const _excluded$k = ["onEntering"],
|
|
15640
15640
|
_excluded2$1 = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"];
|
|
15641
15641
|
const RTL_ORIGIN = {
|
|
15642
15642
|
vertical: 'top',
|
|
@@ -15703,7 +15703,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
|
|
|
15703
15703
|
} = {},
|
|
15704
15704
|
variant = 'selectedMenu'
|
|
15705
15705
|
} = props,
|
|
15706
|
-
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$
|
|
15706
|
+
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$k),
|
|
15707
15707
|
other = _objectWithoutPropertiesLoose(props, _excluded2$1);
|
|
15708
15708
|
const theme = useTheme();
|
|
15709
15709
|
const isRtl = theme.direction === 'rtl';
|
|
@@ -15893,7 +15893,7 @@ function getNativeSelectUtilityClasses(slot) {
|
|
|
15893
15893
|
const nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
|
|
15894
15894
|
var nativeSelectClasses$1 = nativeSelectClasses;
|
|
15895
15895
|
|
|
15896
|
-
const _excluded$
|
|
15896
|
+
const _excluded$j = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
|
|
15897
15897
|
const useUtilityClasses$a = ownerState => {
|
|
15898
15898
|
const {
|
|
15899
15899
|
classes,
|
|
@@ -16022,7 +16022,7 @@ const NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInp
|
|
|
16022
16022
|
inputRef,
|
|
16023
16023
|
variant = 'standard'
|
|
16024
16024
|
} = props,
|
|
16025
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16025
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$j);
|
|
16026
16026
|
const ownerState = _extends$1({}, props, {
|
|
16027
16027
|
disabled,
|
|
16028
16028
|
variant,
|
|
@@ -16107,7 +16107,7 @@ const selectClasses = generateUtilityClasses('MuiSelect', ['select', 'multiple',
|
|
|
16107
16107
|
var selectClasses$1 = selectClasses;
|
|
16108
16108
|
|
|
16109
16109
|
var _span;
|
|
16110
|
-
const _excluded$
|
|
16110
|
+
const _excluded$i = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
|
|
16111
16111
|
const SelectSelect = styled$1('div', {
|
|
16112
16112
|
name: 'MuiSelect',
|
|
16113
16113
|
slot: 'Select',
|
|
@@ -16229,7 +16229,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
16229
16229
|
value: valueProp,
|
|
16230
16230
|
variant = 'standard'
|
|
16231
16231
|
} = props,
|
|
16232
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16232
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$i);
|
|
16233
16233
|
const [value, setValueState] = useControlled({
|
|
16234
16234
|
controlled: valueProp,
|
|
16235
16235
|
default: defaultValue,
|
|
@@ -16740,7 +16740,7 @@ function getSvgIconUtilityClass(slot) {
|
|
|
16740
16740
|
}
|
|
16741
16741
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
16742
16742
|
|
|
16743
|
-
const _excluded$
|
|
16743
|
+
const _excluded$h = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
16744
16744
|
const useUtilityClasses$8 = ownerState => {
|
|
16745
16745
|
const {
|
|
16746
16746
|
color,
|
|
@@ -16806,7 +16806,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
16806
16806
|
titleAccess,
|
|
16807
16807
|
viewBox = '0 0 24 24'
|
|
16808
16808
|
} = props,
|
|
16809
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16809
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$h);
|
|
16810
16810
|
const ownerState = _extends$1({}, props, {
|
|
16811
16811
|
color,
|
|
16812
16812
|
component,
|
|
@@ -16932,7 +16932,7 @@ var ArrowDropDownIcon = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path"
|
|
|
16932
16932
|
d: "M7 10l5 5 5-5z"
|
|
16933
16933
|
}), 'ArrowDropDown');
|
|
16934
16934
|
|
|
16935
|
-
const _excluded$
|
|
16935
|
+
const _excluded$g = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
|
|
16936
16936
|
const useUtilityClasses$7 = ownerState => {
|
|
16937
16937
|
const {
|
|
16938
16938
|
classes
|
|
@@ -16976,7 +16976,7 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
16976
16976
|
SelectDisplayProps,
|
|
16977
16977
|
variant: variantProp = 'outlined'
|
|
16978
16978
|
} = props,
|
|
16979
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16979
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$g);
|
|
16980
16980
|
const inputComponent = native ? NativeSelectInput$1 : SelectInput$1;
|
|
16981
16981
|
const muiFormControl = useFormControl();
|
|
16982
16982
|
const fcs = formControlState({
|
|
@@ -17199,7 +17199,7 @@ function getTextFieldUtilityClass(slot) {
|
|
|
17199
17199
|
}
|
|
17200
17200
|
generateUtilityClasses('MuiTextField', ['root']);
|
|
17201
17201
|
|
|
17202
|
-
const _excluded$
|
|
17202
|
+
const _excluded$f = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
|
|
17203
17203
|
const variantComponent = {
|
|
17204
17204
|
standard: Input$1,
|
|
17205
17205
|
filled: FilledInput$1,
|
|
@@ -17292,7 +17292,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
|
|
|
17292
17292
|
value,
|
|
17293
17293
|
variant = 'outlined'
|
|
17294
17294
|
} = props,
|
|
17295
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
17295
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
17296
17296
|
const ownerState = _extends$1({}, props, {
|
|
17297
17297
|
autoFocus,
|
|
17298
17298
|
color,
|
|
@@ -17871,6 +17871,76 @@ class LicenseInfo {
|
|
|
17871
17871
|
}
|
|
17872
17872
|
}
|
|
17873
17873
|
|
|
17874
|
+
/**
|
|
17875
|
+
* Component style.
|
|
17876
|
+
*/
|
|
17877
|
+
const StyledDataGrid = styled$3.div`
|
|
17878
|
+
${_ref => {
|
|
17879
|
+
let {
|
|
17880
|
+
$height
|
|
17881
|
+
} = _ref;
|
|
17882
|
+
return $height ? css`
|
|
17883
|
+
height: ${$height};
|
|
17884
|
+
` : '';
|
|
17885
|
+
}}
|
|
17886
|
+
|
|
17887
|
+
width: 100%;
|
|
17888
|
+
|
|
17889
|
+
.MuiDataGrid-root {
|
|
17890
|
+
font-family: var(--redsift-typography-datagrid-header-font-family);
|
|
17891
|
+
border: none;
|
|
17892
|
+
}
|
|
17893
|
+
|
|
17894
|
+
.MuiDataGrid-row {
|
|
17895
|
+
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
17896
|
+
font-size: var(--redsift-typography-datagrid-cell-font-size);
|
|
17897
|
+
font-weight: var(--redsift-typography-datagrid-cell-font-weight);
|
|
17898
|
+
}
|
|
17899
|
+
|
|
17900
|
+
.MuiDataGrid-columnHeaderTitle {
|
|
17901
|
+
font-family: var(--redsift-typography-datagrid-header-font-family);
|
|
17902
|
+
font-size: var(--redsift-typography-datagrid-header-font-size);
|
|
17903
|
+
font-weight: var(--redsift-typography-datagrid-header-font-weight);
|
|
17904
|
+
}
|
|
17905
|
+
|
|
17906
|
+
.MuiDataGrid-columnHeaders {
|
|
17907
|
+
border-bottom-color: var(--redsift-color-primary-n);
|
|
17908
|
+
}
|
|
17909
|
+
|
|
17910
|
+
.MuiDataGrid-columnSeparator {
|
|
17911
|
+
display: none;
|
|
17912
|
+
}
|
|
17913
|
+
|
|
17914
|
+
.MuiTablePagination-root {
|
|
17915
|
+
.MuiTablePagination-selectLabel {
|
|
17916
|
+
font-family: var(--redsift-typography-datagrid-header-font-family);
|
|
17917
|
+
}
|
|
17918
|
+
.MuiTablePagination-displayedRows {
|
|
17919
|
+
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
17920
|
+
}
|
|
17921
|
+
|
|
17922
|
+
.MuiInputBase-root {
|
|
17923
|
+
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
17924
|
+
}
|
|
17925
|
+
}
|
|
17926
|
+
|
|
17927
|
+
.Mui-checked {
|
|
17928
|
+
color: var(--redsift-color-primary-n);
|
|
17929
|
+
}
|
|
17930
|
+
|
|
17931
|
+
.MuiDataGrid-rowCount {
|
|
17932
|
+
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
17933
|
+
}
|
|
17934
|
+
|
|
17935
|
+
.MuiTablePagination-displayedRows {
|
|
17936
|
+
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
17937
|
+
}
|
|
17938
|
+
|
|
17939
|
+
.MuiBadge-standard {
|
|
17940
|
+
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
17941
|
+
}
|
|
17942
|
+
`;
|
|
17943
|
+
|
|
17874
17944
|
/**
|
|
17875
17945
|
* Component style.
|
|
17876
17946
|
*/
|
|
@@ -21452,34 +21522,6 @@ const useInteractions = function (propsList) {
|
|
|
21452
21522
|
}), [getReferenceProps, getFloatingProps, getItemProps]);
|
|
21453
21523
|
};
|
|
21454
21524
|
|
|
21455
|
-
const TooltipContext = /*#__PURE__*/React__default.createContext(null);
|
|
21456
|
-
|
|
21457
|
-
/**
|
|
21458
|
-
* Context props.
|
|
21459
|
-
*/
|
|
21460
|
-
|
|
21461
|
-
/**
|
|
21462
|
-
* Component variant.
|
|
21463
|
-
*/
|
|
21464
|
-
const TooltipPlacement = {
|
|
21465
|
-
top: 'top',
|
|
21466
|
-
right: 'right',
|
|
21467
|
-
bottom: 'bottom',
|
|
21468
|
-
left: 'left',
|
|
21469
|
-
'top-start': 'top-start',
|
|
21470
|
-
'top-end': 'top-end',
|
|
21471
|
-
'right-start': 'right-start',
|
|
21472
|
-
'right-end': 'right-end',
|
|
21473
|
-
'bottom-start': 'bottom-start',
|
|
21474
|
-
'bottom-end': 'bottom-end',
|
|
21475
|
-
'left-start': 'left-start',
|
|
21476
|
-
'left-end': 'left-end'
|
|
21477
|
-
};
|
|
21478
|
-
|
|
21479
|
-
/**
|
|
21480
|
-
* Component props.
|
|
21481
|
-
*/
|
|
21482
|
-
|
|
21483
21525
|
/**
|
|
21484
21526
|
* Component style.
|
|
21485
21527
|
*/
|
|
@@ -21709,6 +21751,34 @@ const TooltipTrigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
21709
21751
|
TooltipTrigger.className = CLASSNAME$4;
|
|
21710
21752
|
TooltipTrigger.displayName = COMPONENT_NAME$4;
|
|
21711
21753
|
|
|
21754
|
+
const TooltipContext = /*#__PURE__*/React__default.createContext(null);
|
|
21755
|
+
|
|
21756
|
+
/**
|
|
21757
|
+
* Context props.
|
|
21758
|
+
*/
|
|
21759
|
+
|
|
21760
|
+
/**
|
|
21761
|
+
* Component variant.
|
|
21762
|
+
*/
|
|
21763
|
+
const TooltipPlacement = {
|
|
21764
|
+
top: 'top',
|
|
21765
|
+
right: 'right',
|
|
21766
|
+
bottom: 'bottom',
|
|
21767
|
+
left: 'left',
|
|
21768
|
+
'top-start': 'top-start',
|
|
21769
|
+
'top-end': 'top-end',
|
|
21770
|
+
'right-start': 'right-start',
|
|
21771
|
+
'right-end': 'right-end',
|
|
21772
|
+
'bottom-start': 'bottom-start',
|
|
21773
|
+
'bottom-end': 'bottom-end',
|
|
21774
|
+
'left-start': 'left-start',
|
|
21775
|
+
'left-end': 'left-end'
|
|
21776
|
+
};
|
|
21777
|
+
|
|
21778
|
+
/**
|
|
21779
|
+
* Component props.
|
|
21780
|
+
*/
|
|
21781
|
+
|
|
21712
21782
|
function useTooltip(_ref) {
|
|
21713
21783
|
let {
|
|
21714
21784
|
color,
|
|
@@ -21777,42 +21847,6 @@ function useTooltip(_ref) {
|
|
|
21777
21847
|
const ThemeContext = /*#__PURE__*/React__default.createContext(null);
|
|
21778
21848
|
const ThemeProvider = ThemeContext.Provider;
|
|
21779
21849
|
|
|
21780
|
-
const _excluded$g = ["tooltip", "tooltipProps", "tooltipTriggerProps", "tooltipContentProps"];
|
|
21781
|
-
const IconButtonWithTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
21782
|
-
let {
|
|
21783
|
-
tooltip,
|
|
21784
|
-
tooltipProps,
|
|
21785
|
-
tooltipTriggerProps,
|
|
21786
|
-
tooltipContentProps
|
|
21787
|
-
} = _ref,
|
|
21788
|
-
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
21789
|
-
return /*#__PURE__*/React__default.createElement(Tooltip, tooltipProps, /*#__PURE__*/React__default.createElement(Tooltip.Trigger, tooltipTriggerProps, /*#__PURE__*/React__default.createElement(IconButton$2, _extends$2({
|
|
21790
|
-
"aria-label": tooltip
|
|
21791
|
-
}, props, {
|
|
21792
|
-
"aria-describedby": undefined,
|
|
21793
|
-
ref: ref
|
|
21794
|
-
}))), /*#__PURE__*/React__default.createElement(Tooltip.Content, tooltipContentProps, tooltip));
|
|
21795
|
-
});
|
|
21796
|
-
IconButtonWithTooltip.displayName = 'IconButton';
|
|
21797
|
-
|
|
21798
|
-
const _excluded$f = ["tooltip", "tooltipProps", "tooltipTriggerProps", "tooltipContentProps"];
|
|
21799
|
-
const ButtonWithTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
21800
|
-
let {
|
|
21801
|
-
tooltip,
|
|
21802
|
-
tooltipProps,
|
|
21803
|
-
tooltipTriggerProps,
|
|
21804
|
-
tooltipContentProps
|
|
21805
|
-
} = _ref,
|
|
21806
|
-
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
21807
|
-
return /*#__PURE__*/React__default.createElement(Tooltip, tooltipProps, /*#__PURE__*/React__default.createElement(Tooltip.Trigger, tooltipTriggerProps, /*#__PURE__*/React__default.createElement(Button, _extends$2({
|
|
21808
|
-
"aria-label": tooltip
|
|
21809
|
-
}, props, {
|
|
21810
|
-
"aria-describedby": undefined,
|
|
21811
|
-
ref: ref
|
|
21812
|
-
}))), /*#__PURE__*/React__default.createElement(Tooltip.Content, tooltipContentProps, tooltip));
|
|
21813
|
-
});
|
|
21814
|
-
ButtonWithTooltip.displayName = 'Button';
|
|
21815
|
-
|
|
21816
21850
|
const COMPONENT_NAME$3 = 'Tooltip';
|
|
21817
21851
|
const CLASSNAME$3 = 'redsift-tooltip';
|
|
21818
21852
|
|
|
@@ -21857,10 +21891,7 @@ BaseTooltip.className = CLASSNAME$3;
|
|
|
21857
21891
|
BaseTooltip.displayName = COMPONENT_NAME$3;
|
|
21858
21892
|
const Tooltip = Object.assign(BaseTooltip, {
|
|
21859
21893
|
Trigger: TooltipTrigger,
|
|
21860
|
-
Content: TooltipContent
|
|
21861
|
-
Button: ButtonWithTooltip,
|
|
21862
|
-
IconButton: IconButtonWithTooltip,
|
|
21863
|
-
IconButtonLink: IconButtonWithTooltip
|
|
21894
|
+
Content: TooltipContent
|
|
21864
21895
|
});
|
|
21865
21896
|
|
|
21866
21897
|
const useTooltipContext = () => {
|
|
@@ -21887,7 +21918,7 @@ const StyledGridToolbarFilterSemanticField = styled$3.form`
|
|
|
21887
21918
|
}
|
|
21888
21919
|
`;
|
|
21889
21920
|
|
|
21890
|
-
const _excluded$e = ["className", "
|
|
21921
|
+
const _excluded$e = ["className", "nlpFilterConfig", "onFilterModelChange", "dateFormat", "defaultModel", "defaultFilter", "disablePower", "localeText"];
|
|
21891
21922
|
const COMPONENT_NAME$2 = 'GridToolbarFilterSemanticField';
|
|
21892
21923
|
const CLASSNAME$2 = 'redsift-datagrid-toolbar-nlp-filter-field';
|
|
21893
21924
|
const DEFAULT_OPERATORS = {
|
|
@@ -21961,16 +21992,16 @@ const GridToolbarFilterSemanticField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
21961
21992
|
const fieldRef = ref || useRef();
|
|
21962
21993
|
const {
|
|
21963
21994
|
className,
|
|
21995
|
+
nlpFilterConfig,
|
|
21996
|
+
onFilterModelChange,
|
|
21964
21997
|
dateFormat = 'yyyy-mm-dd',
|
|
21998
|
+
defaultModel = 'gpt-4-1106-preview',
|
|
21965
21999
|
defaultFilter = {
|
|
21966
22000
|
items: [],
|
|
21967
|
-
|
|
22001
|
+
logicOperator: 'and'
|
|
21968
22002
|
},
|
|
21969
|
-
defaultModel = 'gpt-4-1106-preview',
|
|
21970
22003
|
disablePower = false,
|
|
21971
|
-
localeText
|
|
21972
|
-
nlpFilterConfig,
|
|
21973
|
-
onFilterModelChange
|
|
22004
|
+
localeText
|
|
21974
22005
|
} = props,
|
|
21975
22006
|
forwardedProps = _objectWithoutProperties(props, _excluded$e);
|
|
21976
22007
|
const {
|
|
@@ -22120,7 +22151,33 @@ const Toolbar$3 = props => {
|
|
|
22120
22151
|
}, semanticFilterProps ? /*#__PURE__*/React__default.createElement(GridToolbarFilterSemanticField, semanticFilterProps) : null)));
|
|
22121
22152
|
};
|
|
22122
22153
|
|
|
22123
|
-
const _excluded$d = ["
|
|
22154
|
+
const _excluded$d = ["displayName"];
|
|
22155
|
+
const muiIconToDSIcon = {
|
|
22156
|
+
ColumnFilteredIcon: mdiFilterVariant,
|
|
22157
|
+
ColumnSelectorIcon: mdiViewColumn,
|
|
22158
|
+
ColumnSortedAscendingIcon: mdiChevronUp,
|
|
22159
|
+
ColumnSortedDescendingIcon: mdiChevronDown,
|
|
22160
|
+
DensityCompactIcon: mdiViewHeadline,
|
|
22161
|
+
DensityStandardIcon: mdiViewSequential,
|
|
22162
|
+
DensityComfortableIcon: mdiViewStream,
|
|
22163
|
+
DetailPanelCollapseIcon: mdiChevronDown,
|
|
22164
|
+
DetailPanelExpandIcon: mdiChevronRight,
|
|
22165
|
+
ExportIcon: mdiTrayArrowDown,
|
|
22166
|
+
OpenFilterButtonIcon: mdiFilterVariant
|
|
22167
|
+
};
|
|
22168
|
+
const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
22169
|
+
const {
|
|
22170
|
+
displayName
|
|
22171
|
+
} = props,
|
|
22172
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$d);
|
|
22173
|
+
return /*#__PURE__*/React__default.createElement(Icon, _extends$2({}, forwardedProps, forwardedProps.inputProps, {
|
|
22174
|
+
ref: ref,
|
|
22175
|
+
size: forwardedProps.fontSize,
|
|
22176
|
+
icon: muiIconToDSIcon[displayName]
|
|
22177
|
+
}));
|
|
22178
|
+
});
|
|
22179
|
+
|
|
22180
|
+
const _excluded$c = ["children", "color", "onClick", "startIcon"];
|
|
22124
22181
|
const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
22125
22182
|
var _props$className;
|
|
22126
22183
|
const {
|
|
@@ -22129,7 +22186,7 @@ const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22129
22186
|
onClick,
|
|
22130
22187
|
startIcon
|
|
22131
22188
|
} = props,
|
|
22132
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
22189
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
22133
22190
|
const color = Object.keys(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
22134
22191
|
if ((_props$className = props.className) !== null && _props$className !== void 0 && _props$className.includes('redsift-condensed')) {
|
|
22135
22192
|
return /*#__PURE__*/React__default.createElement(IconButton$2, _extends$2({}, forwardedProps, {
|
|
@@ -22155,7 +22212,7 @@ const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22155
22212
|
}), children);
|
|
22156
22213
|
});
|
|
22157
22214
|
|
|
22158
|
-
const _excluded$
|
|
22215
|
+
const _excluded$b = ["checked", "indeterminate", "disabled", "onChange"];
|
|
22159
22216
|
const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
22160
22217
|
const {
|
|
22161
22218
|
checked,
|
|
@@ -22163,7 +22220,7 @@ const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22163
22220
|
disabled,
|
|
22164
22221
|
onChange
|
|
22165
22222
|
} = props,
|
|
22166
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
22223
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
22167
22224
|
return /*#__PURE__*/React__default.createElement(Checkbox, _extends$2({}, forwardedProps, forwardedProps.inputProps, {
|
|
22168
22225
|
isSelected: checked && !indeterminate,
|
|
22169
22226
|
isDisabled: disabled,
|
|
@@ -22173,32 +22230,6 @@ const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22173
22230
|
}));
|
|
22174
22231
|
});
|
|
22175
22232
|
|
|
22176
|
-
const _excluded$b = ["displayName"];
|
|
22177
|
-
const muiIconToDSIcon = {
|
|
22178
|
-
ColumnFilteredIcon: mdiFilterVariant,
|
|
22179
|
-
ColumnSelectorIcon: mdiViewColumn,
|
|
22180
|
-
ColumnSortedAscendingIcon: mdiChevronUp,
|
|
22181
|
-
ColumnSortedDescendingIcon: mdiChevronDown,
|
|
22182
|
-
DensityCompactIcon: mdiViewHeadline,
|
|
22183
|
-
DensityStandardIcon: mdiViewSequential,
|
|
22184
|
-
DensityComfortableIcon: mdiViewStream,
|
|
22185
|
-
DetailPanelCollapseIcon: mdiChevronDown,
|
|
22186
|
-
DetailPanelExpandIcon: mdiChevronRight,
|
|
22187
|
-
ExportIcon: mdiTrayArrowDown,
|
|
22188
|
-
OpenFilterButtonIcon: mdiFilterVariant
|
|
22189
|
-
};
|
|
22190
|
-
const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
22191
|
-
const {
|
|
22192
|
-
displayName
|
|
22193
|
-
} = props,
|
|
22194
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
22195
|
-
return /*#__PURE__*/React__default.createElement(Icon, _extends$2({}, forwardedProps, forwardedProps.inputProps, {
|
|
22196
|
-
ref: ref,
|
|
22197
|
-
size: forwardedProps.fontSize,
|
|
22198
|
-
icon: muiIconToDSIcon[displayName]
|
|
22199
|
-
}));
|
|
22200
|
-
});
|
|
22201
|
-
|
|
22202
22233
|
const _excluded$a = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
|
|
22203
22234
|
const PopperRoot = styled$1(BasePopper$1, {
|
|
22204
22235
|
name: 'MuiPopper',
|
|
@@ -22400,86 +22431,6 @@ const BasePopper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
22400
22431
|
}));
|
|
22401
22432
|
});
|
|
22402
22433
|
|
|
22403
|
-
const defaultSxStyle = {
|
|
22404
|
-
'.MuiDataGrid-columnHeaders': {
|
|
22405
|
-
flexDirection: 'column',
|
|
22406
|
-
alignItems: 'normal'
|
|
22407
|
-
},
|
|
22408
|
-
'.MuiDataGrid-selectedRowCount': {
|
|
22409
|
-
margin: 'none'
|
|
22410
|
-
}
|
|
22411
|
-
};
|
|
22412
|
-
|
|
22413
|
-
/**
|
|
22414
|
-
* Component style.
|
|
22415
|
-
*/
|
|
22416
|
-
const StyledDataGrid = styled$3.div`
|
|
22417
|
-
${_ref => {
|
|
22418
|
-
let {
|
|
22419
|
-
$height
|
|
22420
|
-
} = _ref;
|
|
22421
|
-
return $height ? css`
|
|
22422
|
-
height: ${$height};
|
|
22423
|
-
` : '';
|
|
22424
|
-
}}
|
|
22425
|
-
|
|
22426
|
-
width: 100%;
|
|
22427
|
-
|
|
22428
|
-
.MuiDataGrid-root {
|
|
22429
|
-
font-family: var(--redsift-typography-datagrid-header-font-family);
|
|
22430
|
-
border: none;
|
|
22431
|
-
}
|
|
22432
|
-
|
|
22433
|
-
.MuiDataGrid-row {
|
|
22434
|
-
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
22435
|
-
font-size: var(--redsift-typography-datagrid-cell-font-size);
|
|
22436
|
-
font-weight: var(--redsift-typography-datagrid-cell-font-weight);
|
|
22437
|
-
}
|
|
22438
|
-
|
|
22439
|
-
.MuiDataGrid-columnHeaderTitle {
|
|
22440
|
-
font-family: var(--redsift-typography-datagrid-header-font-family);
|
|
22441
|
-
font-size: var(--redsift-typography-datagrid-header-font-size);
|
|
22442
|
-
font-weight: var(--redsift-typography-datagrid-header-font-weight);
|
|
22443
|
-
}
|
|
22444
|
-
|
|
22445
|
-
.MuiDataGrid-columnHeaders {
|
|
22446
|
-
border-bottom-color: var(--redsift-color-primary-n);
|
|
22447
|
-
}
|
|
22448
|
-
|
|
22449
|
-
.MuiDataGrid-columnSeparator {
|
|
22450
|
-
display: none;
|
|
22451
|
-
}
|
|
22452
|
-
|
|
22453
|
-
.MuiTablePagination-root {
|
|
22454
|
-
.MuiTablePagination-selectLabel {
|
|
22455
|
-
font-family: var(--redsift-typography-datagrid-header-font-family);
|
|
22456
|
-
}
|
|
22457
|
-
.MuiTablePagination-displayedRows {
|
|
22458
|
-
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
22459
|
-
}
|
|
22460
|
-
|
|
22461
|
-
.MuiInputBase-root {
|
|
22462
|
-
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
22463
|
-
}
|
|
22464
|
-
}
|
|
22465
|
-
|
|
22466
|
-
.Mui-checked {
|
|
22467
|
-
color: var(--redsift-color-primary-n);
|
|
22468
|
-
}
|
|
22469
|
-
|
|
22470
|
-
.MuiDataGrid-rowCount {
|
|
22471
|
-
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
22472
|
-
}
|
|
22473
|
-
|
|
22474
|
-
.MuiTablePagination-displayedRows {
|
|
22475
|
-
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
22476
|
-
}
|
|
22477
|
-
|
|
22478
|
-
.MuiBadge-standard {
|
|
22479
|
-
font-family: var(--redsift-typography-datagrid-cell-font-family);
|
|
22480
|
-
}
|
|
22481
|
-
`;
|
|
22482
|
-
|
|
22483
22434
|
function Ripple(props) {
|
|
22484
22435
|
const {
|
|
22485
22436
|
className,
|
|
@@ -24638,163 +24589,10 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
24638
24589
|
} : void 0;
|
|
24639
24590
|
var TablePagination$1 = TablePagination;
|
|
24640
24591
|
|
|
24641
|
-
const
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
setSelectionStatusType,
|
|
24646
|
-
selectionStatusType,
|
|
24647
|
-
displaySelection,
|
|
24648
|
-
displayPagination,
|
|
24649
|
-
paginationModel,
|
|
24650
|
-
onPaginationModelChange,
|
|
24651
|
-
pageSizeOptions,
|
|
24652
|
-
displayRowsPerPage,
|
|
24653
|
-
paginationProps,
|
|
24654
|
-
rowCount
|
|
24655
|
-
} = _ref;
|
|
24656
|
-
const totalNumberOfRowsInTable = rowCount;
|
|
24657
|
-
const totalRowsLabel = `${selectionStatus.numberOfSelectedRows} row${selectionStatus.numberOfSelectedRows > 1 ? 's' : ''} selected`;
|
|
24658
|
-
const pageRowsLabel = `All ${selectionStatus.numberOfSelectedRowsInPage} selectable rows on this page are selected${selectionStatus.numberOfSelectedRows != selectionStatus.numberOfSelectedRowsInPage ? ` (${selectionStatus.numberOfSelectedRows} row${selectionStatus.numberOfSelectedRows > 1 ? 's' : ''} selected in total)` : ''}.`;
|
|
24659
|
-
return /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
24660
|
-
flexDirection: "row",
|
|
24661
|
-
alignItems: "center",
|
|
24662
|
-
justifyContent: "space-between",
|
|
24663
|
-
marginBottom: "7px"
|
|
24664
|
-
}, displaySelection ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, selectionStatusType === 'table' ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24665
|
-
fontSize: "14px"
|
|
24666
|
-
}, "All selectable rows in the table are selected.", ' ', /*#__PURE__*/React__default.createElement(LinkButton, {
|
|
24667
|
-
onClick: () => {
|
|
24668
|
-
setSelectionStatusType('none');
|
|
24669
|
-
apiRef.current.selectRows([], false, true);
|
|
24670
|
-
}
|
|
24671
|
-
}, "Clear selection.")) : selectionStatus.type === 'page' && selectionStatus.numberOfSelectedRowsInPage != 0 ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24672
|
-
fontSize: "14px"
|
|
24673
|
-
}, pageRowsLabel, ' ', /*#__PURE__*/React__default.createElement(LinkButton, {
|
|
24674
|
-
onClick: () => {
|
|
24675
|
-
setSelectionStatusType('table');
|
|
24676
|
-
}
|
|
24677
|
-
}, "Select all selectable rows in the table.")) : selectionStatus.type === 'other' ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24678
|
-
fontSize: "14px"
|
|
24679
|
-
}, totalRowsLabel) : /*#__PURE__*/React__default.createElement(Text, null)) : null, displayPagination ? /*#__PURE__*/React__default.createElement(TablePagination$1, _extends$2({
|
|
24680
|
-
component: "div",
|
|
24681
|
-
count: totalNumberOfRowsInTable,
|
|
24682
|
-
page: paginationModel.page,
|
|
24683
|
-
onPageChange: (event, page) => onPaginationModelChange({
|
|
24684
|
-
page,
|
|
24685
|
-
pageSize: paginationModel.pageSize
|
|
24686
|
-
}),
|
|
24687
|
-
rowsPerPage: paginationModel.pageSize,
|
|
24688
|
-
onRowsPerPageChange: event => onPaginationModelChange({
|
|
24689
|
-
page: paginationModel.page,
|
|
24690
|
-
pageSize: parseInt(event.target.value, 10)
|
|
24691
|
-
}),
|
|
24692
|
-
rowsPerPageOptions: displayRowsPerPage ? pageSizeOptions : []
|
|
24693
|
-
}, paginationProps)) : null);
|
|
24694
|
-
};
|
|
24695
|
-
|
|
24696
|
-
const onServerSideSelectionStatusChange = _ref => {
|
|
24697
|
-
let {
|
|
24698
|
-
newSelectionModel,
|
|
24699
|
-
apiRef,
|
|
24700
|
-
selectionStatus,
|
|
24701
|
-
selectionStatusType,
|
|
24702
|
-
setSelectionStatusType,
|
|
24703
|
-
isRowSelectable,
|
|
24704
|
-
page,
|
|
24705
|
-
pageSize
|
|
24706
|
-
} = _ref;
|
|
24707
|
-
const selectableRowsInPage = isRowSelectable ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(_ref2 => {
|
|
24708
|
-
let {
|
|
24709
|
-
model
|
|
24710
|
-
} = _ref2;
|
|
24711
|
-
return isRowSelectable({
|
|
24712
|
-
row: model
|
|
24713
|
-
});
|
|
24714
|
-
}).map(_ref3 => {
|
|
24715
|
-
let {
|
|
24716
|
-
id
|
|
24717
|
-
} = _ref3;
|
|
24718
|
-
return id;
|
|
24719
|
-
}) : gridPaginatedVisibleSortedGridRowIdsSelector(apiRef);
|
|
24720
|
-
const numberOfSelectableRowsInPage = selectableRowsInPage.length;
|
|
24721
|
-
const numberOfSelectedRows = newSelectionModel.length;
|
|
24722
|
-
const selectedRowsInPage = selectableRowsInPage.filter(rowId => newSelectionModel.includes(rowId));
|
|
24723
|
-
const numberOfSelectedRowsInPage = selectedRowsInPage.length;
|
|
24724
|
-
const isSamePage = (selectionStatus === null || selectionStatus === void 0 ? void 0 : selectionStatus.current.page) == page;
|
|
24725
|
-
const isSamePageSize = (selectionStatus === null || selectionStatus === void 0 ? void 0 : selectionStatus.current.pageSize) == pageSize;
|
|
24726
|
-
if (selectionStatusType === 'table') {
|
|
24727
|
-
// if we just move across page or pageSize
|
|
24728
|
-
if (!isSamePage || !isSamePageSize) {
|
|
24729
|
-
selectionStatus.current = {
|
|
24730
|
-
type: 'table',
|
|
24731
|
-
numberOfSelectedRows,
|
|
24732
|
-
numberOfSelectedRowsInPage,
|
|
24733
|
-
page,
|
|
24734
|
-
pageSize
|
|
24735
|
-
};
|
|
24736
|
-
}
|
|
24737
|
-
// if we selected all selectable rows (as effect of the previous if condition)
|
|
24738
|
-
else if (numberOfSelectedRows > 0) {
|
|
24739
|
-
setSelectionStatusType('none');
|
|
24740
|
-
selectionStatus.current = {
|
|
24741
|
-
type: 'none',
|
|
24742
|
-
numberOfSelectedRows,
|
|
24743
|
-
numberOfSelectedRowsInPage,
|
|
24744
|
-
page,
|
|
24745
|
-
pageSize
|
|
24746
|
-
};
|
|
24747
|
-
apiRef.current.selectRows([], false, true);
|
|
24748
|
-
}
|
|
24749
|
-
return;
|
|
24750
|
-
}
|
|
24751
|
-
if (selectionStatusType === 'page' && isSamePage && isSamePageSize && numberOfSelectedRowsInPage === numberOfSelectableRowsInPage) {
|
|
24752
|
-
setSelectionStatusType('none');
|
|
24753
|
-
selectionStatus.current = {
|
|
24754
|
-
type: 'none',
|
|
24755
|
-
numberOfSelectedRows,
|
|
24756
|
-
numberOfSelectedRowsInPage,
|
|
24757
|
-
page,
|
|
24758
|
-
pageSize
|
|
24759
|
-
};
|
|
24760
|
-
setTimeout(() => {
|
|
24761
|
-
apiRef.current.selectRows(selectedRowsInPage, false, false);
|
|
24762
|
-
}, 0);
|
|
24763
|
-
return;
|
|
24764
|
-
}
|
|
24765
|
-
if (numberOfSelectedRowsInPage === numberOfSelectableRowsInPage && numberOfSelectableRowsInPage != 0) {
|
|
24766
|
-
setSelectionStatusType('page');
|
|
24767
|
-
selectionStatus.current = {
|
|
24768
|
-
type: 'page',
|
|
24769
|
-
numberOfSelectedRows,
|
|
24770
|
-
numberOfSelectedRowsInPage,
|
|
24771
|
-
page,
|
|
24772
|
-
pageSize
|
|
24773
|
-
};
|
|
24774
|
-
return;
|
|
24775
|
-
}
|
|
24776
|
-
if (numberOfSelectedRows > 0) {
|
|
24777
|
-
setSelectionStatusType('other');
|
|
24778
|
-
selectionStatus.current = {
|
|
24779
|
-
type: 'other',
|
|
24780
|
-
numberOfSelectedRows,
|
|
24781
|
-
numberOfSelectedRowsInPage,
|
|
24782
|
-
page,
|
|
24783
|
-
pageSize
|
|
24784
|
-
};
|
|
24785
|
-
return;
|
|
24786
|
-
}
|
|
24787
|
-
setSelectionStatusType('none');
|
|
24788
|
-
selectionStatus.current = {
|
|
24789
|
-
type: 'none',
|
|
24790
|
-
numberOfSelectedRows,
|
|
24791
|
-
numberOfSelectedRowsInPage,
|
|
24792
|
-
page,
|
|
24793
|
-
pageSize
|
|
24794
|
-
};
|
|
24795
|
-
return;
|
|
24796
|
-
};
|
|
24797
|
-
|
|
24592
|
+
const _excluded$1 = ["hideToolbar", "RenderedToolbar", "filterModel", "onFilterModelChange", "pagination", "ControlledPagination", "paginationPlacement", "selectionStatus", "apiRef", "isRowSelectable", "paginationModel", "onPaginationModelChange", "pageSizeOptions", "paginationProps", "paginationMode", "rowCount"],
|
|
24593
|
+
_excluded2 = ["apiRef", "autoHeight", "className", "slots", "slotProps", "filterModel", "height", "hideToolbar", "initialState", "isRowSelectable", "license", "onFilterModelChange", "rowSelectionModel", "paginationModel", "onPaginationModelChange", "onRowSelectionModelChange", "pagination", "paginationPlacement", "paginationProps", "rows", "pageSizeOptions", "sx", "theme", "paginationMode", "rowCount"];
|
|
24594
|
+
const COMPONENT_NAME$1 = 'DataGrid';
|
|
24595
|
+
const CLASSNAME$1 = 'redsift-datagrid';
|
|
24798
24596
|
const getSelectableRowsInTable = (apiRef, isRowSelectable) => {
|
|
24799
24597
|
return isRowSelectable && typeof isRowSelectable === 'function' ? gridFilteredSortedRowEntriesSelector(apiRef).filter(_ref => {
|
|
24800
24598
|
let {
|
|
@@ -24810,8 +24608,7 @@ const getSelectableRowsInTable = (apiRef, isRowSelectable) => {
|
|
|
24810
24608
|
return id;
|
|
24811
24609
|
}) : gridFilteredSortedRowIdsSelector(apiRef);
|
|
24812
24610
|
};
|
|
24813
|
-
|
|
24814
|
-
const ControlledPagination = _ref => {
|
|
24611
|
+
const ControlledPagination = _ref3 => {
|
|
24815
24612
|
let {
|
|
24816
24613
|
displaySelection = false,
|
|
24817
24614
|
displayRowsPerPage = false,
|
|
@@ -24823,7 +24620,7 @@ const ControlledPagination = _ref => {
|
|
|
24823
24620
|
pageSizeOptions,
|
|
24824
24621
|
isRowSelectable,
|
|
24825
24622
|
paginationProps
|
|
24826
|
-
} =
|
|
24623
|
+
} = _ref3;
|
|
24827
24624
|
const filteredRowsInTable = getSelectableRowsInTable(apiRef);
|
|
24828
24625
|
const selectableRowsInTable = getSelectableRowsInTable(apiRef, isRowSelectable);
|
|
24829
24626
|
const numberOfFilteredRowsInTable = filteredRowsInTable.length;
|
|
@@ -24863,22 +24660,56 @@ const ControlledPagination = _ref => {
|
|
|
24863
24660
|
rowsPerPageOptions: displayRowsPerPage ? pageSizeOptions : []
|
|
24864
24661
|
}, paginationProps)) : null);
|
|
24865
24662
|
};
|
|
24866
|
-
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
|
|
24870
|
-
|
|
24871
|
-
|
|
24663
|
+
const ServerSideControlledPagination = _ref4 => {
|
|
24664
|
+
let {
|
|
24665
|
+
selectionStatus,
|
|
24666
|
+
displaySelection,
|
|
24667
|
+
displayPagination,
|
|
24668
|
+
paginationModel,
|
|
24669
|
+
onPaginationModelChange,
|
|
24670
|
+
pageSizeOptions,
|
|
24671
|
+
displayRowsPerPage,
|
|
24672
|
+
paginationProps,
|
|
24673
|
+
rowCount
|
|
24674
|
+
} = _ref4;
|
|
24675
|
+
const totalNumberOfRowsInTable = rowCount;
|
|
24676
|
+
const totalRowsLabel = `${selectionStatus.numberOfSelectedRows} row${selectionStatus.numberOfSelectedRows > 1 ? 's' : ''} selected`;
|
|
24677
|
+
const pageRowsLabel = `All ${selectionStatus.numberOfSelectedRowsInPage} selectable rows on this page are selected${selectionStatus.numberOfSelectedRows != selectionStatus.numberOfSelectedRowsInPage ? ` (${selectionStatus.numberOfSelectedRows} row${selectionStatus.numberOfSelectedRows > 1 ? 's' : ''} selected in total)` : ''}.`;
|
|
24678
|
+
return /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
24679
|
+
flexDirection: "row",
|
|
24680
|
+
alignItems: "center",
|
|
24681
|
+
justifyContent: "space-between",
|
|
24682
|
+
marginBottom: "7px"
|
|
24683
|
+
}, displaySelection ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, selectionStatus.type === 'page' && selectionStatus.numberOfSelectedRowsInPage != 0 ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24684
|
+
fontSize: "14px"
|
|
24685
|
+
}, pageRowsLabel) : selectionStatus.type === 'other' ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24686
|
+
fontSize: "14px"
|
|
24687
|
+
}, totalRowsLabel) : /*#__PURE__*/React__default.createElement(Text, null)) : null, displayPagination ? /*#__PURE__*/React__default.createElement(TablePagination$1, _extends$2({
|
|
24688
|
+
component: "div",
|
|
24689
|
+
count: totalNumberOfRowsInTable,
|
|
24690
|
+
page: paginationModel.page,
|
|
24691
|
+
onPageChange: (event, page) => onPaginationModelChange({
|
|
24692
|
+
page,
|
|
24693
|
+
pageSize: paginationModel.pageSize
|
|
24694
|
+
}),
|
|
24695
|
+
rowsPerPage: paginationModel.pageSize,
|
|
24696
|
+
onRowsPerPageChange: event => onPaginationModelChange({
|
|
24697
|
+
page: paginationModel.page,
|
|
24698
|
+
pageSize: parseInt(event.target.value, 10)
|
|
24699
|
+
}),
|
|
24700
|
+
rowsPerPageOptions: displayRowsPerPage ? pageSizeOptions : []
|
|
24701
|
+
}, paginationProps)) : null);
|
|
24702
|
+
};
|
|
24703
|
+
const Toolbar = _ref5 => {
|
|
24872
24704
|
let {
|
|
24873
24705
|
hideToolbar,
|
|
24874
24706
|
RenderedToolbar,
|
|
24875
24707
|
filterModel,
|
|
24876
24708
|
onFilterModelChange,
|
|
24877
24709
|
pagination,
|
|
24710
|
+
ControlledPagination,
|
|
24878
24711
|
paginationPlacement,
|
|
24879
24712
|
selectionStatus,
|
|
24880
|
-
selectionStatusType,
|
|
24881
|
-
setSelectionStatusType,
|
|
24882
24713
|
apiRef,
|
|
24883
24714
|
isRowSelectable,
|
|
24884
24715
|
paginationModel,
|
|
@@ -24887,19 +24718,16 @@ const Toolbar = _ref => {
|
|
|
24887
24718
|
paginationProps,
|
|
24888
24719
|
paginationMode = 'client',
|
|
24889
24720
|
rowCount
|
|
24890
|
-
} =
|
|
24891
|
-
forwardedProps = _objectWithoutProperties(
|
|
24721
|
+
} = _ref5,
|
|
24722
|
+
forwardedProps = _objectWithoutProperties(_ref5, _excluded$1);
|
|
24892
24723
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !hideToolbar ? /*#__PURE__*/React__default.createElement(RenderedToolbar, _extends$2({}, forwardedProps, {
|
|
24893
24724
|
filterModel: filterModel,
|
|
24894
24725
|
onFilterModelChange: onFilterModelChange
|
|
24895
|
-
})) : null, pagination ? paginationMode
|
|
24896
|
-
apiRef: apiRef,
|
|
24726
|
+
})) : null, pagination ? paginationMode == 'server' ? /*#__PURE__*/React__default.createElement(ServerSideControlledPagination, {
|
|
24897
24727
|
displaySelection: true,
|
|
24898
24728
|
displayRowsPerPage: false,
|
|
24899
24729
|
displayPagination: ['top', 'both'].includes(paginationPlacement),
|
|
24900
24730
|
selectionStatus: selectionStatus.current,
|
|
24901
|
-
setSelectionStatusType: setSelectionStatusType,
|
|
24902
|
-
selectionStatusType: selectionStatusType,
|
|
24903
24731
|
paginationModel: paginationModel,
|
|
24904
24732
|
onPaginationModelChange: onPaginationModelChange,
|
|
24905
24733
|
pageSizeOptions: pageSizeOptions,
|
|
@@ -24918,8 +24746,63 @@ const Toolbar = _ref => {
|
|
|
24918
24746
|
paginationProps: paginationProps
|
|
24919
24747
|
}) : null);
|
|
24920
24748
|
};
|
|
24749
|
+
const onServerSideSelectionStatusChange = (newSelectionModel, apiRef, selectionStatus, isRowSelectable, page, pageSize) => {
|
|
24750
|
+
const selectableRowsInPage = isRowSelectable ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(_ref6 => {
|
|
24751
|
+
let {
|
|
24752
|
+
model
|
|
24753
|
+
} = _ref6;
|
|
24754
|
+
return isRowSelectable({
|
|
24755
|
+
row: model
|
|
24756
|
+
});
|
|
24757
|
+
}).map(_ref7 => {
|
|
24758
|
+
let {
|
|
24759
|
+
id
|
|
24760
|
+
} = _ref7;
|
|
24761
|
+
return id;
|
|
24762
|
+
}) : gridPaginatedVisibleSortedGridRowIdsSelector(apiRef);
|
|
24763
|
+
const numberOfSelectableRowsInPage = selectableRowsInPage.length;
|
|
24764
|
+
const numberOfSelectedRows = newSelectionModel.length;
|
|
24765
|
+
const selectedRowsInPage = selectableRowsInPage.filter(rowId => newSelectionModel.includes(rowId));
|
|
24766
|
+
const numberOfSelectedRowsInPage = selectedRowsInPage.length;
|
|
24767
|
+
const isSamePage = (selectionStatus === null || selectionStatus === void 0 ? void 0 : selectionStatus.current.page) == page;
|
|
24768
|
+
const isSamePageSize = (selectionStatus === null || selectionStatus === void 0 ? void 0 : selectionStatus.current.pageSize) == pageSize;
|
|
24769
|
+
|
|
24770
|
+
// if previous status is `page`,
|
|
24771
|
+
// if page and pageSize didn't change
|
|
24772
|
+
// and all the rows are selected, deselect all row
|
|
24773
|
+
if (selectionStatus.current.type === 'page' && isSamePage && isSamePageSize && numberOfSelectedRowsInPage === numberOfSelectableRowsInPage) {
|
|
24774
|
+
setTimeout(() => {
|
|
24775
|
+
apiRef.current.selectRows(selectedRowsInPage, false, false);
|
|
24776
|
+
}, 0);
|
|
24777
|
+
}
|
|
24778
|
+
if (numberOfSelectedRowsInPage === numberOfSelectableRowsInPage && numberOfSelectableRowsInPage != 0) {
|
|
24779
|
+
selectionStatus.current = {
|
|
24780
|
+
type: 'page',
|
|
24781
|
+
numberOfSelectedRows,
|
|
24782
|
+
numberOfSelectedRowsInPage,
|
|
24783
|
+
page,
|
|
24784
|
+
pageSize
|
|
24785
|
+
};
|
|
24786
|
+
} else if (numberOfSelectedRows > 0) {
|
|
24787
|
+
selectionStatus.current = {
|
|
24788
|
+
type: 'other',
|
|
24789
|
+
numberOfSelectedRows,
|
|
24790
|
+
numberOfSelectedRowsInPage,
|
|
24791
|
+
page,
|
|
24792
|
+
pageSize
|
|
24793
|
+
};
|
|
24794
|
+
} else {
|
|
24795
|
+
selectionStatus.current = {
|
|
24796
|
+
type: 'none',
|
|
24797
|
+
numberOfSelectedRows,
|
|
24798
|
+
numberOfSelectedRowsInPage,
|
|
24799
|
+
page,
|
|
24800
|
+
pageSize
|
|
24801
|
+
};
|
|
24802
|
+
}
|
|
24803
|
+
};
|
|
24921
24804
|
const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
24922
|
-
var
|
|
24805
|
+
var _ref8, _ref9, _initialState$paginat, _initialState$paginat2, _initialState$paginat3, _pageSizeOptions$, _ref10, _initialState$paginat4, _initialState$paginat5, _initialState$paginat6;
|
|
24923
24806
|
const datagridRef = ref || useRef();
|
|
24924
24807
|
const {
|
|
24925
24808
|
apiRef: propsApiRef,
|
|
@@ -24931,24 +24814,22 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24931
24814
|
height: propsHeight,
|
|
24932
24815
|
hideToolbar,
|
|
24933
24816
|
initialState,
|
|
24934
|
-
isPreviousData,
|
|
24935
24817
|
isRowSelectable,
|
|
24936
24818
|
license = process.env.MUI_LICENSE_KEY,
|
|
24937
24819
|
onFilterModelChange: propsOnFilterModelChange,
|
|
24820
|
+
rowSelectionModel: propsSelectionModel,
|
|
24938
24821
|
paginationModel: propsPaginationModel,
|
|
24939
24822
|
onPaginationModelChange: propsOnPaginationModelChange,
|
|
24940
|
-
pageSizeOptions,
|
|
24941
|
-
rowSelectionModel: propsRowSelectionModel,
|
|
24942
24823
|
onRowSelectionModelChange,
|
|
24943
|
-
onSelectionStatusChange: propsOnSelectionStatusChange,
|
|
24944
24824
|
pagination,
|
|
24945
|
-
paginationMode = 'client',
|
|
24946
24825
|
paginationPlacement = 'both',
|
|
24947
24826
|
paginationProps,
|
|
24948
|
-
rowCount,
|
|
24949
24827
|
rows,
|
|
24828
|
+
pageSizeOptions,
|
|
24950
24829
|
sx,
|
|
24951
|
-
theme: propsTheme
|
|
24830
|
+
theme: propsTheme,
|
|
24831
|
+
paginationMode = 'client',
|
|
24832
|
+
rowCount
|
|
24952
24833
|
} = props,
|
|
24953
24834
|
forwardedProps = _objectWithoutProperties(props, _excluded2);
|
|
24954
24835
|
const theme = useTheme$4(propsTheme);
|
|
@@ -24968,13 +24849,13 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24968
24849
|
setFilterModel(model);
|
|
24969
24850
|
}
|
|
24970
24851
|
};
|
|
24971
|
-
const [rowSelectionModel, setRowSelectionModel] = useState(
|
|
24852
|
+
const [rowSelectionModel, setRowSelectionModel] = useState(propsSelectionModel !== null && propsSelectionModel !== void 0 ? propsSelectionModel : []);
|
|
24972
24853
|
useEffect(() => {
|
|
24973
|
-
setRowSelectionModel(
|
|
24974
|
-
}, [
|
|
24854
|
+
setRowSelectionModel(propsSelectionModel !== null && propsSelectionModel !== void 0 ? propsSelectionModel : []);
|
|
24855
|
+
}, [propsSelectionModel]);
|
|
24975
24856
|
const [paginationModel, setPaginationModel] = useState({
|
|
24976
|
-
pageSize: (
|
|
24977
|
-
page: (
|
|
24857
|
+
pageSize: (_ref8 = (_ref9 = (_initialState$paginat = initialState === null || initialState === void 0 ? void 0 : (_initialState$paginat2 = initialState.pagination) === null || _initialState$paginat2 === void 0 ? void 0 : (_initialState$paginat3 = _initialState$paginat2.paginationModel) === null || _initialState$paginat3 === void 0 ? void 0 : _initialState$paginat3.pageSize) !== null && _initialState$paginat !== void 0 ? _initialState$paginat : propsPaginationModel === null || propsPaginationModel === void 0 ? void 0 : propsPaginationModel.pageSize) !== null && _ref9 !== void 0 ? _ref9 : typeof (pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions[0]) === 'number' ? pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions[0] : pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : (_pageSizeOptions$ = pageSizeOptions[0]) === null || _pageSizeOptions$ === void 0 ? void 0 : _pageSizeOptions$.value) !== null && _ref8 !== void 0 ? _ref8 : 100,
|
|
24858
|
+
page: (_ref10 = (_initialState$paginat4 = initialState === null || initialState === void 0 ? void 0 : (_initialState$paginat5 = initialState.pagination) === null || _initialState$paginat5 === void 0 ? void 0 : (_initialState$paginat6 = _initialState$paginat5.paginationModel) === null || _initialState$paginat6 === void 0 ? void 0 : _initialState$paginat6.page) !== null && _initialState$paginat4 !== void 0 ? _initialState$paginat4 : propsPaginationModel === null || propsPaginationModel === void 0 ? void 0 : propsPaginationModel.page) !== null && _ref10 !== void 0 ? _ref10 : 0
|
|
24978
24859
|
});
|
|
24979
24860
|
const onPaginationModelChange = model => {
|
|
24980
24861
|
if (propsOnPaginationModelChange) {
|
|
@@ -24988,48 +24869,24 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
24988
24869
|
setPaginationModel(propsPaginationModel);
|
|
24989
24870
|
}
|
|
24990
24871
|
}, [propsPaginationModel]);
|
|
24991
|
-
const [selectionStatusType, setSelectionStatusType] = useState('none');
|
|
24992
24872
|
const selectionStatus = useRef({
|
|
24993
|
-
type:
|
|
24873
|
+
type: 'none',
|
|
24994
24874
|
numberOfSelectedRows: 0,
|
|
24995
24875
|
numberOfSelectedRowsInPage: 0,
|
|
24996
24876
|
page: paginationModel.page,
|
|
24997
24877
|
pageSize: paginationModel.pageSize
|
|
24998
24878
|
});
|
|
24999
|
-
useEffect(() => {
|
|
25000
|
-
if (propsOnSelectionStatusChange) {
|
|
25001
|
-
propsOnSelectionStatusChange(selectionStatusType);
|
|
25002
|
-
}
|
|
25003
|
-
}, [selectionStatusType]);
|
|
25004
24879
|
|
|
25005
24880
|
// in server-side pagination we want to update the selection status
|
|
25006
24881
|
// every time we navigate between pages, resize our page or select something
|
|
25007
24882
|
useEffect(() => {
|
|
25008
|
-
if (paginationMode
|
|
25009
|
-
onServerSideSelectionStatusChange(
|
|
25010
|
-
newSelectionModel: Array.isArray(rowSelectionModel) ? rowSelectionModel : [rowSelectionModel],
|
|
25011
|
-
apiRef,
|
|
25012
|
-
selectionStatus,
|
|
25013
|
-
selectionStatusType,
|
|
25014
|
-
setSelectionStatusType,
|
|
25015
|
-
isRowSelectable,
|
|
25016
|
-
page: paginationModel.page,
|
|
25017
|
-
pageSize: paginationModel.pageSize
|
|
25018
|
-
});
|
|
24883
|
+
if (paginationMode == 'server') {
|
|
24884
|
+
onServerSideSelectionStatusChange(Array.isArray(rowSelectionModel) ? rowSelectionModel : [rowSelectionModel], apiRef, selectionStatus, isRowSelectable, paginationModel.page, paginationModel.pageSize);
|
|
25019
24885
|
}
|
|
25020
24886
|
}, [rowSelectionModel, paginationModel.page, paginationModel.pageSize]);
|
|
25021
|
-
useEffect(() => {
|
|
25022
|
-
if (paginationMode === 'server' && selectionStatusType === 'table' && !isPreviousData) {
|
|
25023
|
-
const selectableRowsInPage = getSelectableRowsInTable(apiRef, isRowSelectable);
|
|
25024
|
-
setTimeout(() => {
|
|
25025
|
-
apiRef.current.selectRows(selectableRowsInPage, false, true);
|
|
25026
|
-
}, 0);
|
|
25027
|
-
}
|
|
25028
|
-
}, [isPreviousData]);
|
|
25029
24887
|
if (!Array.isArray(rows)) {
|
|
25030
24888
|
return null;
|
|
25031
24889
|
}
|
|
25032
|
-
const isServerTableSelection = paginationMode === 'server' && selectionStatusType === 'table';
|
|
25033
24890
|
const muiTheme = useMemo(() => createTheme({
|
|
25034
24891
|
palette: {
|
|
25035
24892
|
mode: theme,
|
|
@@ -25096,7 +24953,7 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25096
24953
|
}, props))
|
|
25097
24954
|
}, slots), {}, {
|
|
25098
24955
|
toolbar: Toolbar,
|
|
25099
|
-
pagination: props => pagination ? paginationMode
|
|
24956
|
+
pagination: props => pagination ? paginationMode == 'server' ? /*#__PURE__*/React__default.createElement(ServerSideControlledPagination, _extends$2({}, props, {
|
|
25100
24957
|
displaySelection: false,
|
|
25101
24958
|
displayRowsPerPage: ['bottom', 'both'].includes(paginationPlacement),
|
|
25102
24959
|
displayPagination: ['bottom', 'both'].includes(paginationPlacement),
|
|
@@ -25129,10 +24986,9 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25129
24986
|
filterModel,
|
|
25130
24987
|
onFilterModelChange,
|
|
25131
24988
|
pagination,
|
|
24989
|
+
ControlledPagination: paginationMode == 'server' ? ServerSideControlledPagination : ControlledPagination,
|
|
25132
24990
|
paginationPlacement,
|
|
25133
24991
|
selectionStatus,
|
|
25134
|
-
selectionStatusType,
|
|
25135
|
-
setSelectionStatusType,
|
|
25136
24992
|
apiRef,
|
|
25137
24993
|
isRowSelectable,
|
|
25138
24994
|
paginationModel,
|
|
@@ -25145,43 +25001,43 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25145
25001
|
}),
|
|
25146
25002
|
filterModel: filterModel,
|
|
25147
25003
|
initialState: initialState,
|
|
25148
|
-
isRowSelectable:
|
|
25004
|
+
isRowSelectable: isRowSelectable,
|
|
25149
25005
|
onFilterModelChange: onFilterModelChange,
|
|
25150
25006
|
pagination: pagination,
|
|
25151
25007
|
paginationMode: paginationMode,
|
|
25152
|
-
keepNonExistentRowsSelected: paginationMode
|
|
25008
|
+
keepNonExistentRowsSelected: paginationMode == 'server',
|
|
25153
25009
|
rows: rows,
|
|
25010
|
+
pageSizeOptions: pageSizeOptions,
|
|
25154
25011
|
paginationModel: paginationModel,
|
|
25155
25012
|
onPaginationModelChange: onPaginationModelChange,
|
|
25156
|
-
|
|
25157
|
-
rowSelectionModel: isServerTableSelection ? getSelectableRowsInTable(apiRef, isRowSelectable) : rowSelectionModel,
|
|
25013
|
+
rowSelectionModel: rowSelectionModel,
|
|
25158
25014
|
onRowSelectionModelChange: (newSelectionModel, details) => {
|
|
25159
25015
|
if (pagination && paginationMode != 'server') {
|
|
25160
|
-
const selectableRowsInPage = isRowSelectable ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(
|
|
25016
|
+
const selectableRowsInPage = isRowSelectable ? gridPaginatedVisibleSortedGridRowEntriesSelector(apiRef).filter(_ref11 => {
|
|
25161
25017
|
let {
|
|
25162
25018
|
model
|
|
25163
|
-
} =
|
|
25019
|
+
} = _ref11;
|
|
25164
25020
|
return isRowSelectable({
|
|
25165
25021
|
row: model
|
|
25166
25022
|
});
|
|
25167
|
-
}).map(
|
|
25023
|
+
}).map(_ref12 => {
|
|
25168
25024
|
let {
|
|
25169
25025
|
id
|
|
25170
|
-
} =
|
|
25026
|
+
} = _ref12;
|
|
25171
25027
|
return id;
|
|
25172
25028
|
}) : gridPaginatedVisibleSortedGridRowIdsSelector(apiRef);
|
|
25173
25029
|
const numberOfSelectableRowsInPage = selectableRowsInPage.length;
|
|
25174
|
-
const selectableRowsInTable = isRowSelectable ? gridFilteredSortedRowEntriesSelector(apiRef).filter(
|
|
25030
|
+
const selectableRowsInTable = isRowSelectable ? gridFilteredSortedRowEntriesSelector(apiRef).filter(_ref13 => {
|
|
25175
25031
|
let {
|
|
25176
25032
|
model
|
|
25177
|
-
} =
|
|
25033
|
+
} = _ref13;
|
|
25178
25034
|
return isRowSelectable({
|
|
25179
25035
|
row: model
|
|
25180
25036
|
});
|
|
25181
|
-
}).map(
|
|
25037
|
+
}).map(_ref14 => {
|
|
25182
25038
|
let {
|
|
25183
25039
|
id
|
|
25184
|
-
} =
|
|
25040
|
+
} = _ref14;
|
|
25185
25041
|
return id;
|
|
25186
25042
|
}) : gridFilteredSortedRowIdsSelector(apiRef);
|
|
25187
25043
|
const numberOfSelectableRowsInTable = selectableRowsInTable.length;
|
|
@@ -25192,25 +25048,21 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25192
25048
|
}, 0);
|
|
25193
25049
|
}
|
|
25194
25050
|
if (numberOfSelectedRows === numberOfSelectableRowsInPage && numberOfSelectableRowsInPage < numberOfSelectableRowsInTable) {
|
|
25195
|
-
setSelectionStatusType('page');
|
|
25196
25051
|
selectionStatus.current = {
|
|
25197
25052
|
type: 'page',
|
|
25198
25053
|
numberOfSelectedRows
|
|
25199
25054
|
};
|
|
25200
25055
|
} else if (numberOfSelectedRows === numberOfSelectableRowsInTable && numberOfSelectableRowsInPage < numberOfSelectableRowsInTable) {
|
|
25201
|
-
setSelectionStatusType('table');
|
|
25202
25056
|
selectionStatus.current = {
|
|
25203
25057
|
type: 'table',
|
|
25204
25058
|
numberOfSelectedRows
|
|
25205
25059
|
};
|
|
25206
25060
|
} else if (numberOfSelectedRows > 0) {
|
|
25207
|
-
setSelectionStatusType('other');
|
|
25208
25061
|
selectionStatus.current = {
|
|
25209
25062
|
type: 'other',
|
|
25210
25063
|
numberOfSelectedRows
|
|
25211
25064
|
};
|
|
25212
25065
|
} else {
|
|
25213
|
-
setSelectionStatusType('none');
|
|
25214
25066
|
selectionStatus.current = {
|
|
25215
25067
|
type: 'none',
|
|
25216
25068
|
numberOfSelectedRows
|
|
@@ -25219,7 +25071,15 @@ const DataGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
25219
25071
|
}
|
|
25220
25072
|
onRowSelectionModelChange === null || onRowSelectionModelChange === void 0 ? void 0 : onRowSelectionModelChange(newSelectionModel, details);
|
|
25221
25073
|
},
|
|
25222
|
-
sx: _objectSpread2(_objectSpread2({}, sx),
|
|
25074
|
+
sx: _objectSpread2(_objectSpread2({}, sx), {}, {
|
|
25075
|
+
'.MuiDataGrid-columnHeaders': {
|
|
25076
|
+
flexDirection: 'column',
|
|
25077
|
+
alignItems: 'normal'
|
|
25078
|
+
},
|
|
25079
|
+
'.MuiDataGrid-selectedRowCount': {
|
|
25080
|
+
margin: 'none'
|
|
25081
|
+
}
|
|
25082
|
+
})
|
|
25223
25083
|
})))));
|
|
25224
25084
|
});
|
|
25225
25085
|
DataGrid.className = CLASSNAME$1;
|