@telicent-oss/ds 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ds.js +29 -25
- package/dist/ds.js.map +1 -1
- package/dist/ds.umd.cjs +28 -24
- package/dist/ds.umd.cjs.map +1 -1
- package/dist/export.d.ts +6 -0
- package/dist/llms.txt +2 -2
- package/package.json +1 -1
package/dist/ds.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { SvgIcon as SvgIcon$1, useTheme as useTheme$1, ThemeProvider, CircularProgress, Dialog as Dialog$1, Button as Button$1, ButtonBase, DialogContent, DialogActions, TextField as TextField$1, Typography as Typography$1, Box as Box$1, InputLabel, Select as Select$2, MenuItem as MenuItem$1, Divider as Divider$1, FormHelperText as FormHelperText$1, FormControl as FormControl$1, Autocomplete as Autocomplete$1, Switch as Switch$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, tooltipClasses, Tooltip as Tooltip$1, Radio as Radio$1, Toolbar as Toolbar$1, alpha as alpha$1, toggleButtonGroupClasses, Avatar, IconButton as IconButton$1, Paper as Paper$1 } from "@mui/material";
|
|
5
5
|
import { DialogActions as DialogActions2, DialogContent as DialogContent2, DialogTitle } from "@mui/material";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
|
-
import React__default, { useState, useEffect, forwardRef, useContext, useCallback, useId as useId$1, createContext, memo,
|
|
7
|
+
import React__default, { useState, useEffect, forwardRef, useContext, useMemo, useCallback, useId as useId$1, createContext, memo, PureComponent, createElement as createElement$1, useRef, useImperativeHandle } from "react";
|
|
8
8
|
import { useTheme, useThemeProps, styled, alpha, createTheme as createTheme$1 } from "@mui/material/styles";
|
|
9
9
|
import { alpha as alpha2 } from "@mui/material/styles";
|
|
10
10
|
import MUISvgIcon from "@mui/material/SvgIcon";
|
|
@@ -26445,31 +26445,35 @@ const DataGrid = ({
|
|
|
26445
26445
|
onRowClick,
|
|
26446
26446
|
sx,
|
|
26447
26447
|
...rest
|
|
26448
|
-
}) =>
|
|
26449
|
-
|
|
26450
|
-
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
|
|
26455
|
-
|
|
26456
|
-
|
|
26457
|
-
|
|
26458
|
-
sortModel: initialSort
|
|
26459
|
-
} : void 0
|
|
26460
|
-
}, onRowClick, ...rest, sx: [(theme) => ({
|
|
26461
|
-
"& .MuiDataGrid-overlay": {
|
|
26462
|
-
inset: 0
|
|
26463
|
-
},
|
|
26464
|
-
...onRowClick ? {
|
|
26465
|
-
"& .MuiDataGrid-row": {
|
|
26466
|
-
cursor: "pointer",
|
|
26467
|
-
"&:hover": {
|
|
26468
|
-
backgroundColor: theme.palette.action.hover
|
|
26448
|
+
}) => {
|
|
26449
|
+
const outerTheme = useTheme();
|
|
26450
|
+
const scopedTheme = useMemo(() => createTheme$1(outerTheme, buildDataGridTheme(outerTheme)), [outerTheme]);
|
|
26451
|
+
return /* @__PURE__ */ jsx(ThemeProvider, { theme: scopedTheme, children: /* @__PURE__ */ jsx(MUIBox, { sx: {
|
|
26452
|
+
width: "100%"
|
|
26453
|
+
}, children: /* @__PURE__ */ jsx(DataGrid$1, { autoHeight: true, disableColumnResize: true, disableRowSelectionOnClick: true, disableColumnMenu: true, pagination: true, pageSizeOptions: [10, 25, 50], initialState: {
|
|
26454
|
+
pagination: {
|
|
26455
|
+
paginationModel: {
|
|
26456
|
+
pageSize: 10,
|
|
26457
|
+
page: 0
|
|
26469
26458
|
}
|
|
26470
|
-
}
|
|
26471
|
-
|
|
26472
|
-
|
|
26459
|
+
},
|
|
26460
|
+
sorting: initialSort ? {
|
|
26461
|
+
sortModel: initialSort
|
|
26462
|
+
} : void 0
|
|
26463
|
+
}, onRowClick, ...rest, sx: [(theme) => ({
|
|
26464
|
+
"& .MuiDataGrid-overlay": {
|
|
26465
|
+
inset: 0
|
|
26466
|
+
},
|
|
26467
|
+
...onRowClick ? {
|
|
26468
|
+
"& .MuiDataGrid-row": {
|
|
26469
|
+
cursor: "pointer",
|
|
26470
|
+
"&:hover": {
|
|
26471
|
+
backgroundColor: theme.palette.action.hover
|
|
26472
|
+
}
|
|
26473
|
+
}
|
|
26474
|
+
} : {}
|
|
26475
|
+
}), ...Array.isArray(sx) ? sx : sx ? [sx] : []] }) }) });
|
|
26476
|
+
};
|
|
26473
26477
|
const LinearProgress = ({
|
|
26474
26478
|
// isActive,
|
|
26475
26479
|
// transition = 500,
|