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