@digital-ai/dot-components 5.6.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1161 -866
- package/package.json +1 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.d.ts +3 -1
- package/src/lib/components/analytics/dashboard-dialog/DashboardDialog.d.ts +2 -2
- package/src/lib/components/analytics/metadata-api/openapi/core/ApiError.d.ts +3 -1
- package/src/lib/components/analytics/metadata-api/openapi/core/ApiRequestOptions.d.ts +2 -1
- package/src/lib/components/analytics/metadata-api/openapi/core/CancelablePromise.d.ts +20 -0
- package/src/lib/components/analytics/metadata-api/openapi/core/OpenAPI.d.ts +8 -7
- package/src/lib/components/analytics/metadata-api/openapi/core/request.d.ts +25 -4
- package/src/lib/components/analytics/metadata-api/openapi/index.d.ts +3 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardCreateBody.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPatchBody.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPutBody.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardView.d.ts +5 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentCreateBody.d.ts +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentPutBody.d.ts +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/X_Digitalai_Account_ID.d.ts +4 -0
- package/src/lib/components/analytics/metadata-api/openapi/services/BiService.d.ts +7 -6
- package/src/lib/components/analytics/metadata-api/openapi/services/CategoriesService.d.ts +3 -2
- package/src/lib/components/analytics/metadata-api/openapi/services/DashboardsService.d.ts +17 -16
- package/src/lib/components/analytics/metadata-api/openapi/services/DatalakeService.d.ts +2 -1
- package/src/lib/components/analytics/metadata-api/openapi/services/EntitiesService.d.ts +6 -5
- package/src/lib/components/analytics/metadata-api/openapi/services/EntityAttributesService.d.ts +7 -6
- package/src/lib/components/analytics/metadata-api/openapi/services/EntityClassService.d.ts +6 -5
- package/src/lib/components/analytics/metadata-api/openapi/services/HelpContentService.d.ts +8 -7
- package/src/lib/components/analytics/metadata-api/openapi/services/MrProxyService.d.ts +5 -4
- package/src/lib/components/analytics/metadata-api/openapi/services/OriginInstancesService.d.ts +6 -5
- package/src/lib/components/analytics/metadata-api/openapi/services/OriginsService.d.ts +6 -5
- package/src/lib/components/analytics/metadata-api/openapi/services/ProductsService.d.ts +11 -10
- package/src/lib/components/analytics/metadata-api/openapi/services/UtilityService.d.ts +7 -6
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/components/navigation-rail/NavigationRail.d.ts +5 -3
- package/src/lib/components/select/Select.d.ts +18 -0
- package/src/lib/components/select/Select.styles.d.ts +9 -0
- package/src/lib/components/select/index.d.ts +2 -0
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { useEffect, useState, useRef, createContext, useMemo, useContext, forwardRef, useCallback, createElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
4
|
-
import { Typography, Fade, StyledEngineProvider, Tooltip, InputAdornment, InputLabel, TextField, Icon, Accordion, AccordionSummary, AccordionDetails, AccordionActions, Toolbar, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Chip, Autocomplete, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, Snackbar, RadioGroup, Radio, Switch, Skeleton, ButtonGroup, Stepper, Step, StepLabel, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, Fab, LinearProgress, Slide, Stack } from '@mui/material';
|
|
4
|
+
import { Typography, Fade, StyledEngineProvider, Tooltip, InputAdornment, InputLabel, TextField, Icon, Accordion, AccordionSummary, AccordionDetails, AccordionActions, Toolbar, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Chip, Autocomplete, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, Snackbar, RadioGroup, Radio, Switch, Skeleton, ButtonGroup, Stepper, Step, StepLabel, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, Fab, LinearProgress, Slide, Stack, Select } from '@mui/material';
|
|
5
5
|
import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$1, keyframes } from 'styled-components';
|
|
6
6
|
import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
|
|
7
7
|
import '@digital-ai/dot-icons';
|
|
@@ -42,12 +42,12 @@ const checkIfOverflowPresentInElementTree = element => {
|
|
|
42
42
|
return false;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
const rootClassName$
|
|
45
|
+
const rootClassName$1t = 'dot-typography';
|
|
46
46
|
const StyledTypography = styled(Typography)`
|
|
47
47
|
${({
|
|
48
48
|
theme
|
|
49
49
|
}) => css`
|
|
50
|
-
&.${rootClassName$
|
|
50
|
+
&.${rootClassName$1t} {
|
|
51
51
|
&.dot-typography-ai {
|
|
52
52
|
background: ${theme.palette.figma.gradient.ai};
|
|
53
53
|
background-clip: text;
|
|
@@ -73,7 +73,7 @@ const DotTypography = ({
|
|
|
73
73
|
noWrap,
|
|
74
74
|
variant
|
|
75
75
|
}) => {
|
|
76
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
76
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1t, ai ? 'dot-typography-ai' : '', className);
|
|
77
77
|
useEffect(() => {
|
|
78
78
|
if (ariaRole === 'heading' && !ariaLevel) {
|
|
79
79
|
console.warn('please include ariaLevel when using ariaRole="heading"');
|
|
@@ -1409,7 +1409,7 @@ const readOnlyStyles = theme => css`
|
|
|
1409
1409
|
}
|
|
1410
1410
|
`;
|
|
1411
1411
|
|
|
1412
|
-
const rootClassName$
|
|
1412
|
+
const rootClassName$1s = 'dot-text-field';
|
|
1413
1413
|
const rootSelectClassName = 'dot-select-field';
|
|
1414
1414
|
const wrapperClassName$2 = 'dot-label-wrapper';
|
|
1415
1415
|
const labelClassName = 'dot-input-label';
|
|
@@ -1485,7 +1485,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1485
1485
|
$maxRows,
|
|
1486
1486
|
$minRows
|
|
1487
1487
|
}) => css`
|
|
1488
|
-
&.${rootClassName$
|
|
1488
|
+
&.${rootClassName$1s} {
|
|
1489
1489
|
.MuiInputBase-root {
|
|
1490
1490
|
margin-bottom: 0;
|
|
1491
1491
|
|
|
@@ -1574,7 +1574,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1574
1574
|
margin-right: ${theme.spacing(2)};
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
1577
|
+
&.${rootSelectClassName}, &.${rootClassName$1s} {
|
|
1578
1578
|
.${adornmentIconClassName} {
|
|
1579
1579
|
color: ${theme.palette.figma.icon.gray};
|
|
1580
1580
|
|
|
@@ -1669,13 +1669,13 @@ const StyledTextField = styled(TextField)`
|
|
|
1669
1669
|
`}
|
|
1670
1670
|
`;
|
|
1671
1671
|
|
|
1672
|
-
const rootClassName$
|
|
1672
|
+
const rootClassName$1r = 'dot-icon';
|
|
1673
1673
|
const aiIconClassName = 'dot-icon-ai';
|
|
1674
1674
|
const StyledIcon = styled(Icon)`
|
|
1675
1675
|
${({
|
|
1676
1676
|
theme
|
|
1677
1677
|
}) => css`
|
|
1678
|
-
&.${rootClassName$
|
|
1678
|
+
&.${rootClassName$1r} {
|
|
1679
1679
|
color: ${theme.palette.figma.icon.gray};
|
|
1680
1680
|
font-size: 20px;
|
|
1681
1681
|
|
|
@@ -1725,7 +1725,7 @@ const DotIcon = ({
|
|
|
1725
1725
|
tooltip,
|
|
1726
1726
|
ai = false
|
|
1727
1727
|
}) => {
|
|
1728
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1728
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1r, className, ai ? aiIconClassName : '');
|
|
1729
1729
|
return jsx(DotTooltip, {
|
|
1730
1730
|
disableInteractive: disableInteractive,
|
|
1731
1731
|
childrenDisplayStyle: "inline-block",
|
|
@@ -1749,7 +1749,7 @@ const DotIcon = ({
|
|
|
1749
1749
|
});
|
|
1750
1750
|
};
|
|
1751
1751
|
|
|
1752
|
-
const rootClassName$
|
|
1752
|
+
const rootClassName$1q = 'dot-accordion';
|
|
1753
1753
|
const summaryClassName = 'dot-accordion-summary';
|
|
1754
1754
|
const detailClassName = 'dot-accordion-details';
|
|
1755
1755
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -1760,7 +1760,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
1760
1760
|
background: ${theme.palette.figma.background.level1.white};
|
|
1761
1761
|
}
|
|
1762
1762
|
|
|
1763
|
-
&.${rootClassName$
|
|
1763
|
+
&.${rootClassName$1q} .${summaryClassName} {
|
|
1764
1764
|
align-items: center;
|
|
1765
1765
|
background: ${theme.palette.figma.background.level1.white};
|
|
1766
1766
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -1805,7 +1805,7 @@ const DotAccordion = ({
|
|
|
1805
1805
|
ariaLabel,
|
|
1806
1806
|
children,
|
|
1807
1807
|
className,
|
|
1808
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1808
|
+
'data-pendoid': dataPendoId = rootClassName$1q,
|
|
1809
1809
|
'data-testid': dataTestId = 'dot-accordion',
|
|
1810
1810
|
disabled = false,
|
|
1811
1811
|
expanded,
|
|
@@ -1816,7 +1816,7 @@ const DotAccordion = ({
|
|
|
1816
1816
|
summary,
|
|
1817
1817
|
noWrap = true
|
|
1818
1818
|
}) => {
|
|
1819
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1819
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1q, className);
|
|
1820
1820
|
const [elevation, setElevation] = useState();
|
|
1821
1821
|
useEffect(() => {
|
|
1822
1822
|
if (onChange && expanded === undefined) {
|
|
@@ -1867,15 +1867,15 @@ const DotAccordion = ({
|
|
|
1867
1867
|
});
|
|
1868
1868
|
};
|
|
1869
1869
|
|
|
1870
|
-
const rootClassName$
|
|
1870
|
+
const rootClassName$1p = 'dot-action-toolbar';
|
|
1871
1871
|
const StyledToolbar = styled(Toolbar)`
|
|
1872
1872
|
${({
|
|
1873
1873
|
theme
|
|
1874
1874
|
}) => css`
|
|
1875
|
-
&.${rootClassName$
|
|
1875
|
+
&.${rootClassName$1p} {
|
|
1876
1876
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
1877
1877
|
|
|
1878
|
-
.${rootClassName$
|
|
1878
|
+
.${rootClassName$1s} .MuiInputBase-root {
|
|
1879
1879
|
margin-bottom: 0;
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
@@ -1889,7 +1889,7 @@ const DotActionToolbar = ({
|
|
|
1889
1889
|
'data-testid': dataTestId,
|
|
1890
1890
|
variant = 'dense'
|
|
1891
1891
|
}) => {
|
|
1892
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1892
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1p, className);
|
|
1893
1893
|
return jsx(StyledToolbar, {
|
|
1894
1894
|
"aria-label": ariaLabel,
|
|
1895
1895
|
className: rootClasses,
|
|
@@ -1899,12 +1899,12 @@ const DotActionToolbar = ({
|
|
|
1899
1899
|
});
|
|
1900
1900
|
};
|
|
1901
1901
|
|
|
1902
|
-
const rootClassName$
|
|
1902
|
+
const rootClassName$1o = 'dot-alert-banner';
|
|
1903
1903
|
const StyledAlertBanner = styled(Alert)`
|
|
1904
1904
|
${({
|
|
1905
1905
|
theme
|
|
1906
1906
|
}) => css`
|
|
1907
|
-
&.${rootClassName$
|
|
1907
|
+
&.${rootClassName$1o} {
|
|
1908
1908
|
align-items: center;
|
|
1909
1909
|
box-sizing: border-box;
|
|
1910
1910
|
min-height: 48px;
|
|
@@ -1939,7 +1939,7 @@ const DotAlertBanner = ({
|
|
|
1939
1939
|
ariaLabel,
|
|
1940
1940
|
children,
|
|
1941
1941
|
className,
|
|
1942
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1942
|
+
'data-pendoid': dataPendoId = rootClassName$1o,
|
|
1943
1943
|
'data-testid': dataTestId,
|
|
1944
1944
|
onClose,
|
|
1945
1945
|
roundedCorners = true,
|
|
@@ -1947,7 +1947,7 @@ const DotAlertBanner = ({
|
|
|
1947
1947
|
textVariant = 'body1',
|
|
1948
1948
|
width
|
|
1949
1949
|
}) => {
|
|
1950
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1950
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1o, severity, className);
|
|
1951
1951
|
/* For simple string use default component, for everything else use 'div' */
|
|
1952
1952
|
const typographyComponent = isString$2(children) ? undefined : 'div';
|
|
1953
1953
|
return jsx(StyledAlertBanner, {
|
|
@@ -1990,12 +1990,12 @@ const DotAppLogo = ({
|
|
|
1990
1990
|
});
|
|
1991
1991
|
};
|
|
1992
1992
|
|
|
1993
|
-
const rootClassName$
|
|
1993
|
+
const rootClassName$1n = 'dot-annotation';
|
|
1994
1994
|
const StyledAnnotation = styled.kbd`
|
|
1995
1995
|
${({
|
|
1996
1996
|
theme
|
|
1997
1997
|
}) => css`
|
|
1998
|
-
&.${rootClassName$
|
|
1998
|
+
&.${rootClassName$1n} {
|
|
1999
1999
|
font-family: inherit;
|
|
2000
2000
|
background-color: ${theme.palette.figma.background.level0.bckgGray};
|
|
2001
2001
|
color: ${theme.palette.figma.typography.disabled};
|
|
@@ -2021,13 +2021,13 @@ const StyledAnnotation = styled.kbd`
|
|
|
2021
2021
|
|
|
2022
2022
|
const DotAnnotation = ({
|
|
2023
2023
|
ariaLabel,
|
|
2024
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2024
|
+
'data-pendoid': dataPendoId = rootClassName$1n,
|
|
2025
2025
|
'data-testid': dataTestId,
|
|
2026
2026
|
className,
|
|
2027
2027
|
content,
|
|
2028
2028
|
type = 'primary'
|
|
2029
2029
|
}) => {
|
|
2030
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2030
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1n, className, type === 'secondary' ? 'secondary' : '');
|
|
2031
2031
|
return jsx(StyledAnnotation, {
|
|
2032
2032
|
"aria-label": ariaLabel,
|
|
2033
2033
|
className: rootClasses,
|
|
@@ -2076,6 +2076,19 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
2080
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2081
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2082
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
2086
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2087
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2088
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2089
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2079
2092
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2080
2093
|
var e = new Error(message);
|
|
2081
2094
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
@@ -2260,7 +2273,7 @@ function getResponseBody$1(response) {
|
|
|
2260
2273
|
return null;
|
|
2261
2274
|
});
|
|
2262
2275
|
}
|
|
2263
|
-
function catchErrors
|
|
2276
|
+
function catchErrors(options, result) {
|
|
2264
2277
|
const errors = Object.assign({
|
|
2265
2278
|
400: 'Bad Request',
|
|
2266
2279
|
401: 'Unauthorized',
|
|
@@ -2297,7 +2310,7 @@ function request$1(options) {
|
|
|
2297
2310
|
statusText: response.statusText,
|
|
2298
2311
|
body: responseHeader || responseBody
|
|
2299
2312
|
};
|
|
2300
|
-
catchErrors
|
|
2313
|
+
catchErrors(options, result);
|
|
2301
2314
|
return result;
|
|
2302
2315
|
});
|
|
2303
2316
|
}
|
|
@@ -2664,7 +2677,7 @@ const useDotCoreApiContext = () => {
|
|
|
2664
2677
|
return useContext(DotCoreApiContext);
|
|
2665
2678
|
};
|
|
2666
2679
|
|
|
2667
|
-
const rootClassName$
|
|
2680
|
+
const rootClassName$1m = 'dot-avatar';
|
|
2668
2681
|
const avatarSpacing = {
|
|
2669
2682
|
small: 3,
|
|
2670
2683
|
medium: 5,
|
|
@@ -2674,7 +2687,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2674
2687
|
${({
|
|
2675
2688
|
theme
|
|
2676
2689
|
}) => css`
|
|
2677
|
-
&.${rootClassName$
|
|
2690
|
+
&.${rootClassName$1m} {
|
|
2678
2691
|
display: inline-flex;
|
|
2679
2692
|
background-color: ${({
|
|
2680
2693
|
color
|
|
@@ -2792,7 +2805,7 @@ const DotAvatar = ({
|
|
|
2792
2805
|
variant = 'circular',
|
|
2793
2806
|
style
|
|
2794
2807
|
}) => {
|
|
2795
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2808
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
|
|
2796
2809
|
const getAvatarColor = () => {
|
|
2797
2810
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2798
2811
|
if (color) return color;
|
|
@@ -2834,12 +2847,12 @@ const DotAvatar = ({
|
|
|
2834
2847
|
});
|
|
2835
2848
|
};
|
|
2836
2849
|
|
|
2837
|
-
const rootClassName$
|
|
2850
|
+
const rootClassName$1l = 'dot-button';
|
|
2838
2851
|
const StyledButton = styled(Button)`
|
|
2839
2852
|
${({
|
|
2840
2853
|
theme
|
|
2841
2854
|
}) => css`
|
|
2842
|
-
&.${rootClassName$
|
|
2855
|
+
&.${rootClassName$1l} {
|
|
2843
2856
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2844
2857
|
margin: ${theme.spacing(0.5)};
|
|
2845
2858
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2992,7 +3005,7 @@ const DotButton = forwardRef(({
|
|
|
2992
3005
|
autoFocus = false,
|
|
2993
3006
|
children,
|
|
2994
3007
|
className,
|
|
2995
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3008
|
+
'data-pendoid': dataPendoId = rootClassName$1l,
|
|
2996
3009
|
'data-testid': dataTestId,
|
|
2997
3010
|
disabled = false,
|
|
2998
3011
|
disableInteractive,
|
|
@@ -3010,7 +3023,7 @@ const DotButton = forwardRef(({
|
|
|
3010
3023
|
tooltipPlacement,
|
|
3011
3024
|
type = 'primary'
|
|
3012
3025
|
}, ref) => {
|
|
3013
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3026
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1l, className);
|
|
3014
3027
|
let color;
|
|
3015
3028
|
let variant;
|
|
3016
3029
|
switch (type) {
|
|
@@ -3041,7 +3054,7 @@ const DotButton = forwardRef(({
|
|
|
3041
3054
|
}
|
|
3042
3055
|
return jsx(DotTooltip, {
|
|
3043
3056
|
childrenDisplayStyle: "inline-block",
|
|
3044
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
3057
|
+
"data-testid": `${dataTestId || rootClassName$1l}-tooltip`,
|
|
3045
3058
|
disableInteractive: disableInteractive,
|
|
3046
3059
|
placement: tooltipPlacement,
|
|
3047
3060
|
title: tooltip,
|
|
@@ -3053,7 +3066,7 @@ const DotButton = forwardRef(({
|
|
|
3053
3066
|
},
|
|
3054
3067
|
color: color,
|
|
3055
3068
|
"data-pendoid": dataPendoId,
|
|
3056
|
-
"data-testid": dataTestId || rootClassName$
|
|
3069
|
+
"data-testid": dataTestId || rootClassName$1l,
|
|
3057
3070
|
disableRipple: disableRipple,
|
|
3058
3071
|
disabled: disabled,
|
|
3059
3072
|
endIcon: endIcon,
|
|
@@ -3073,10 +3086,10 @@ const DotButton = forwardRef(({
|
|
|
3073
3086
|
});
|
|
3074
3087
|
});
|
|
3075
3088
|
|
|
3076
|
-
const rootClassName$
|
|
3089
|
+
const rootClassName$1k = 'dot-link';
|
|
3077
3090
|
const StyledLink = styled(Link)`
|
|
3078
3091
|
${() => css`
|
|
3079
|
-
&.${rootClassName$
|
|
3092
|
+
&.${rootClassName$1k} {
|
|
3080
3093
|
cursor: pointer;
|
|
3081
3094
|
|
|
3082
3095
|
&:hover.MuiLink-underlineHover {
|
|
@@ -3092,7 +3105,7 @@ const DotLink = ({
|
|
|
3092
3105
|
children,
|
|
3093
3106
|
className,
|
|
3094
3107
|
color = 'primary',
|
|
3095
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3108
|
+
'data-pendoid': dataPendoId = rootClassName$1k,
|
|
3096
3109
|
'data-testid': dataTestId,
|
|
3097
3110
|
href,
|
|
3098
3111
|
onClick,
|
|
@@ -3105,7 +3118,7 @@ const DotLink = ({
|
|
|
3105
3118
|
underline = 'always',
|
|
3106
3119
|
variant = 'body1'
|
|
3107
3120
|
}) => {
|
|
3108
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3121
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1k, className);
|
|
3109
3122
|
useEffect(() => {
|
|
3110
3123
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
3111
3124
|
if (!isString$2(children) && !ariaLabel) {
|
|
@@ -3156,7 +3169,7 @@ const CreateUUID = () => {
|
|
|
3156
3169
|
});
|
|
3157
3170
|
};
|
|
3158
3171
|
|
|
3159
|
-
const rootClassName$
|
|
3172
|
+
const rootClassName$1j = 'dot-list';
|
|
3160
3173
|
const listItemRootClass = 'dot-list-item';
|
|
3161
3174
|
const nestedListClassName = 'dot-nested-list';
|
|
3162
3175
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -3164,7 +3177,7 @@ const StyledList = styled(List)`
|
|
|
3164
3177
|
${({
|
|
3165
3178
|
theme
|
|
3166
3179
|
}) => css`
|
|
3167
|
-
&.${rootClassName$
|
|
3180
|
+
&.${rootClassName$1j} {
|
|
3168
3181
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
3169
3182
|
|
|
3170
3183
|
.dot-icon {
|
|
@@ -3258,12 +3271,12 @@ const DotListDivider = ({
|
|
|
3258
3271
|
});
|
|
3259
3272
|
};
|
|
3260
3273
|
|
|
3261
|
-
const rootClassName$
|
|
3274
|
+
const rootClassName$1i = 'dot-progress';
|
|
3262
3275
|
const StyledProgress = styled.div`
|
|
3263
3276
|
${({
|
|
3264
3277
|
theme
|
|
3265
3278
|
}) => css`
|
|
3266
|
-
&.${rootClassName$
|
|
3279
|
+
&.${rootClassName$1i} {
|
|
3267
3280
|
line-height: 0;
|
|
3268
3281
|
|
|
3269
3282
|
.dot-progress-with-label-wrapper {
|
|
@@ -3314,7 +3327,7 @@ const DotProgress = ({
|
|
|
3314
3327
|
value,
|
|
3315
3328
|
variant = 'indeterminate'
|
|
3316
3329
|
}) => {
|
|
3317
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3330
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
|
|
3318
3331
|
useEffect(() => {
|
|
3319
3332
|
if (!ariaLabel) {
|
|
3320
3333
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -3380,13 +3393,13 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
3380
3393
|
levelTop: levelTop
|
|
3381
3394
|
});
|
|
3382
3395
|
|
|
3383
|
-
const rootClassName$
|
|
3396
|
+
const rootClassName$1h = 'dot-popper';
|
|
3384
3397
|
const arrowClassName = 'MuiPopper-arrow';
|
|
3385
3398
|
const StyledPopper$1 = styled(Popper)`
|
|
3386
3399
|
${({
|
|
3387
3400
|
theme
|
|
3388
3401
|
}) => css`
|
|
3389
|
-
&.${rootClassName$
|
|
3402
|
+
&.${rootClassName$1h} {
|
|
3390
3403
|
font-family: ${theme.typography.fontFamily};
|
|
3391
3404
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3392
3405
|
|
|
@@ -3445,7 +3458,7 @@ const StyledPopper$1 = styled(Popper)`
|
|
|
3445
3458
|
}
|
|
3446
3459
|
}
|
|
3447
3460
|
|
|
3448
|
-
&.${rootClassName$
|
|
3461
|
+
&.${rootClassName$1h}, &.${rootClassName$1h} > .dot-popper-paper {
|
|
3449
3462
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
3450
3463
|
}
|
|
3451
3464
|
`}
|
|
@@ -3475,12 +3488,12 @@ const StyledArrow = styled('span')`
|
|
|
3475
3488
|
`;
|
|
3476
3489
|
|
|
3477
3490
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
3478
|
-
const rootClassName$
|
|
3491
|
+
const rootClassName$1g = 'dot-menu';
|
|
3479
3492
|
const StyledPopper = styled(Popper)`
|
|
3480
3493
|
${({
|
|
3481
3494
|
theme
|
|
3482
3495
|
}) => css`
|
|
3483
|
-
&.${rootClassName$
|
|
3496
|
+
&.${rootClassName$1h} {
|
|
3484
3497
|
font-family: ${theme.typography.fontFamily};
|
|
3485
3498
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3486
3499
|
|
|
@@ -3490,7 +3503,7 @@ const StyledPopper = styled(Popper)`
|
|
|
3490
3503
|
}) => $zIndex === undefined ? `z-index: ${levelSecond};` : `z-index: ${$zIndex};`}
|
|
3491
3504
|
}
|
|
3492
3505
|
}
|
|
3493
|
-
&.${rootClassName$
|
|
3506
|
+
&.${rootClassName$1g}, &.${rootClassName$1h} {
|
|
3494
3507
|
.MuiPaper-root:not(:empty) {
|
|
3495
3508
|
border: 1px solid ${theme.palette.layer.n100};
|
|
3496
3509
|
}
|
|
@@ -3570,14 +3583,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
3570
3583
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3571
3584
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3572
3585
|
|
|
3573
|
-
const rootClassName$
|
|
3586
|
+
const rootClassName$1f = 'dot-ul';
|
|
3574
3587
|
const listItemClassName$1 = 'dot-li';
|
|
3575
3588
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3576
3589
|
const StyledMenuList = styled(MenuList)`
|
|
3577
3590
|
${({
|
|
3578
3591
|
theme
|
|
3579
3592
|
}) => css`
|
|
3580
|
-
&.${rootClassName$
|
|
3593
|
+
&.${rootClassName$1f} {
|
|
3581
3594
|
background: ${theme.palette.figma.background.level1.white};
|
|
3582
3595
|
|
|
3583
3596
|
.dot-li {
|
|
@@ -3679,7 +3692,7 @@ const DotMenuList = forwardRef(({
|
|
|
3679
3692
|
onSubMenuCreate,
|
|
3680
3693
|
selectedKey
|
|
3681
3694
|
}, ref) => {
|
|
3682
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3695
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
|
|
3683
3696
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3684
3697
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3685
3698
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3791,7 +3804,7 @@ const DotMenu = ({
|
|
|
3791
3804
|
open = false,
|
|
3792
3805
|
selectedKey
|
|
3793
3806
|
}) => {
|
|
3794
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3807
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1g, className, loading ? 'loading' : '');
|
|
3795
3808
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3796
3809
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3797
3810
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3879,12 +3892,12 @@ const DotMenu = ({
|
|
|
3879
3892
|
});
|
|
3880
3893
|
};
|
|
3881
3894
|
|
|
3882
|
-
const rootClassName$
|
|
3895
|
+
const rootClassName$1e = 'dot-drawer';
|
|
3883
3896
|
const StyledDrawer = styled(Drawer)`
|
|
3884
3897
|
${({
|
|
3885
3898
|
theme
|
|
3886
3899
|
}) => css`
|
|
3887
|
-
&.${rootClassName$
|
|
3900
|
+
&.${rootClassName$1e} .MuiBackdrop-root {
|
|
3888
3901
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3889
3902
|
}
|
|
3890
3903
|
|
|
@@ -3903,12 +3916,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3903
3916
|
`}
|
|
3904
3917
|
`;
|
|
3905
3918
|
|
|
3906
|
-
const rootClassName$
|
|
3919
|
+
const rootClassName$1d = 'dot-drawer-header';
|
|
3907
3920
|
const StyleDrawerHeader = styled.div`
|
|
3908
3921
|
${({
|
|
3909
3922
|
theme
|
|
3910
3923
|
}) => css`
|
|
3911
|
-
&.${rootClassName$
|
|
3924
|
+
&.${rootClassName$1d} {
|
|
3912
3925
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3913
3926
|
display: flex;
|
|
3914
3927
|
align-items: center;
|
|
@@ -3919,13 +3932,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3919
3932
|
`}
|
|
3920
3933
|
`;
|
|
3921
3934
|
|
|
3922
|
-
const rootClassName$
|
|
3935
|
+
const rootClassName$1c = 'dot-icon-btn';
|
|
3923
3936
|
const StyledIconButton = styled(IconButton)`
|
|
3924
3937
|
${({
|
|
3925
3938
|
theme,
|
|
3926
3939
|
color
|
|
3927
3940
|
}) => css`
|
|
3928
|
-
&.${rootClassName$
|
|
3941
|
+
&.${rootClassName$1c} {
|
|
3929
3942
|
${color === 'inherit' ? css`
|
|
3930
3943
|
color: inherit;
|
|
3931
3944
|
` : ''}
|
|
@@ -4011,7 +4024,7 @@ const DotIconButton = ({
|
|
|
4011
4024
|
ariaRole = 'button',
|
|
4012
4025
|
className,
|
|
4013
4026
|
color = 'inherit',
|
|
4014
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4027
|
+
'data-pendoid': dataPendoId = rootClassName$1c,
|
|
4015
4028
|
'data-testid': dataTestId,
|
|
4016
4029
|
disableInteractive,
|
|
4017
4030
|
disableRipple = false,
|
|
@@ -4025,7 +4038,7 @@ const DotIconButton = ({
|
|
|
4025
4038
|
tooltipPlacement
|
|
4026
4039
|
}) => {
|
|
4027
4040
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
4028
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4041
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1c, rippleClassName, `shape-${shape}`, className);
|
|
4029
4042
|
return jsx(DotTooltip, {
|
|
4030
4043
|
childrenDisplayStyle: "inline-block",
|
|
4031
4044
|
"data-testid": "icon-button-tooltip",
|
|
@@ -4062,7 +4075,7 @@ const DotDrawerHeader = ({
|
|
|
4062
4075
|
onClose,
|
|
4063
4076
|
variant
|
|
4064
4077
|
}) => {
|
|
4065
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4078
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
|
|
4066
4079
|
return jsxs(StyleDrawerHeader, {
|
|
4067
4080
|
"aria-label": ariaLabel,
|
|
4068
4081
|
"aria-level": 2,
|
|
@@ -4079,10 +4092,10 @@ const DotDrawerHeader = ({
|
|
|
4079
4092
|
});
|
|
4080
4093
|
};
|
|
4081
4094
|
|
|
4082
|
-
const rootClassName$
|
|
4095
|
+
const rootClassName$1b = 'dot-drawer-body';
|
|
4083
4096
|
const StyleDrawerBody = styled.div`
|
|
4084
4097
|
${() => css`
|
|
4085
|
-
&.${rootClassName$
|
|
4098
|
+
&.${rootClassName$1b} {
|
|
4086
4099
|
display: flex;
|
|
4087
4100
|
.dot-drawer-close-button {
|
|
4088
4101
|
align-self: self-start;
|
|
@@ -4103,7 +4116,7 @@ const DotDrawerBody = ({
|
|
|
4103
4116
|
onClose,
|
|
4104
4117
|
variant
|
|
4105
4118
|
}) => {
|
|
4106
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4119
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
|
|
4107
4120
|
return jsxs(StyleDrawerBody, {
|
|
4108
4121
|
"aria-label": ariaLabel,
|
|
4109
4122
|
className: rootClasses,
|
|
@@ -4118,12 +4131,12 @@ const DotDrawerBody = ({
|
|
|
4118
4131
|
});
|
|
4119
4132
|
};
|
|
4120
4133
|
|
|
4121
|
-
const rootClassName$
|
|
4134
|
+
const rootClassName$1a = 'dot-drawer-footer';
|
|
4122
4135
|
const StyleDrawerFooter = styled.div`
|
|
4123
4136
|
${({
|
|
4124
4137
|
theme
|
|
4125
4138
|
}) => css`
|
|
4126
|
-
&.${rootClassName$
|
|
4139
|
+
&.${rootClassName$1a} {
|
|
4127
4140
|
padding: ${theme.spacing(2, 0, 0)};
|
|
4128
4141
|
}
|
|
4129
4142
|
`}
|
|
@@ -4136,7 +4149,7 @@ const DotDrawerFooter = ({
|
|
|
4136
4149
|
className,
|
|
4137
4150
|
'data-testid': dataTestId
|
|
4138
4151
|
}) => {
|
|
4139
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4152
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
|
|
4140
4153
|
return jsx(StyleDrawerFooter, {
|
|
4141
4154
|
"aria-label": ariaLabel,
|
|
4142
4155
|
className: rootClasses,
|
|
@@ -4152,7 +4165,7 @@ const DotDrawer = ({
|
|
|
4152
4165
|
ariaRole = 'dialog',
|
|
4153
4166
|
className,
|
|
4154
4167
|
children,
|
|
4155
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4168
|
+
'data-pendoid': dataPendoId = rootClassName$1e,
|
|
4156
4169
|
'data-testid': dataTestId,
|
|
4157
4170
|
drawerBodyProps,
|
|
4158
4171
|
drawerFooterProps,
|
|
@@ -4175,7 +4188,7 @@ const DotDrawer = ({
|
|
|
4175
4188
|
onClose(event);
|
|
4176
4189
|
}
|
|
4177
4190
|
};
|
|
4178
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4191
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
|
|
4179
4192
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
4180
4193
|
const headerExists = !!drawerHeaderProps;
|
|
4181
4194
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -4650,7 +4663,7 @@ const DotList = ({
|
|
|
4650
4663
|
nestedListType = 'expandable',
|
|
4651
4664
|
width = 240
|
|
4652
4665
|
}) => {
|
|
4653
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4666
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
|
|
4654
4667
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
4655
4668
|
const listRef = useRef(undefined);
|
|
4656
4669
|
const disableCloseOnClickAway = !nestedListCloseOnClickAway && nestedListType === 'expandable';
|
|
@@ -4750,12 +4763,12 @@ const DotList = ({
|
|
|
4750
4763
|
});
|
|
4751
4764
|
};
|
|
4752
4765
|
|
|
4753
|
-
const rootClassName$
|
|
4766
|
+
const rootClassName$19 = 'dot-copy-button';
|
|
4754
4767
|
const StyledCopyButton = styled.span`
|
|
4755
4768
|
${({
|
|
4756
4769
|
theme
|
|
4757
4770
|
}) => css`
|
|
4758
|
-
&.${rootClassName$
|
|
4771
|
+
&.${rootClassName$19} .copied-to-clipboard {
|
|
4759
4772
|
color: ${theme.palette.figma.success.normal};
|
|
4760
4773
|
|
|
4761
4774
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4781,7 +4794,7 @@ const DotCopyButton = ({
|
|
|
4781
4794
|
color = 'inherit',
|
|
4782
4795
|
copiedTooltip = 'Copied!',
|
|
4783
4796
|
copyTooltip = 'Copy to clipboard',
|
|
4784
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4797
|
+
'data-pendoid': dataPendoId = rootClassName$19,
|
|
4785
4798
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4786
4799
|
disableInteractive,
|
|
4787
4800
|
disabled = false,
|
|
@@ -4830,7 +4843,7 @@ const DotCopyButton = ({
|
|
|
4830
4843
|
return false;
|
|
4831
4844
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4832
4845
|
return jsxs(StyledCopyButton, {
|
|
4833
|
-
className: rootClassName$
|
|
4846
|
+
className: rootClassName$19,
|
|
4834
4847
|
"data-testid": dataTestId,
|
|
4835
4848
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4836
4849
|
ariaLabel: ariaLabel,
|
|
@@ -4937,7 +4950,7 @@ const DotInputText = ({
|
|
|
4937
4950
|
autoFocus,
|
|
4938
4951
|
className,
|
|
4939
4952
|
defaultValue,
|
|
4940
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4953
|
+
'data-pendoid': dataPendoId = rootClassName$1s,
|
|
4941
4954
|
'data-testid': dataTestId,
|
|
4942
4955
|
disabled = false,
|
|
4943
4956
|
error = false,
|
|
@@ -4986,7 +4999,7 @@ const DotInputText = ({
|
|
|
4986
4999
|
const internalInputRef = useRef(null);
|
|
4987
5000
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4988
5001
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4989
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
5002
|
+
const rootStyles = useStylesWithRootClass(rootClassName$1s, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
|
|
4990
5003
|
useEffect(() => {
|
|
4991
5004
|
if (value !== inputTextState.inputValue) {
|
|
4992
5005
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -5129,10 +5142,10 @@ const DotInputText = ({
|
|
|
5129
5142
|
});
|
|
5130
5143
|
};
|
|
5131
5144
|
|
|
5132
|
-
const rootClassName$
|
|
5145
|
+
const rootClassName$18 = 'dot-search-input';
|
|
5133
5146
|
const StyledSearchInput = styled.span`
|
|
5134
5147
|
${() => css`
|
|
5135
|
-
&.${rootClassName$
|
|
5148
|
+
&.${rootClassName$18} {
|
|
5136
5149
|
}
|
|
5137
5150
|
`}
|
|
5138
5151
|
`;
|
|
@@ -5149,7 +5162,7 @@ function SearchInput({
|
|
|
5149
5162
|
tooltip = null,
|
|
5150
5163
|
value
|
|
5151
5164
|
}) {
|
|
5152
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5165
|
+
const rootClasses = useStylesWithRootClass(rootClassName$18, className);
|
|
5153
5166
|
const [searchText, setSearchText] = useState(value);
|
|
5154
5167
|
let previousSearchText = '';
|
|
5155
5168
|
const handleChange = useCallback(event => {
|
|
@@ -5405,12 +5418,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
5405
5418
|
};
|
|
5406
5419
|
};
|
|
5407
5420
|
|
|
5408
|
-
const rootClassName$
|
|
5421
|
+
const rootClassName$17 = 'dot-app-switcher';
|
|
5409
5422
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
5410
5423
|
${({
|
|
5411
5424
|
theme
|
|
5412
5425
|
}) => css`
|
|
5413
|
-
&.${rootClassName$
|
|
5426
|
+
&.${rootClassName$17} {
|
|
5414
5427
|
.dot-drawer-paper {
|
|
5415
5428
|
padding: 0;
|
|
5416
5429
|
width: 382px;
|
|
@@ -5520,7 +5533,7 @@ const DotAppSwitcherView = ({
|
|
|
5520
5533
|
if (dotCoreApiContext !== null) {
|
|
5521
5534
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
5522
5535
|
}
|
|
5523
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5536
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
5524
5537
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
5525
5538
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
5526
5539
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5898,12 +5911,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5898
5911
|
};
|
|
5899
5912
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5900
5913
|
|
|
5901
|
-
const rootClassName$
|
|
5914
|
+
const rootClassName$16 = 'dot-sidebar';
|
|
5902
5915
|
const StyledSidebar = styled.aside`
|
|
5903
5916
|
${({
|
|
5904
5917
|
theme
|
|
5905
5918
|
}) => css`
|
|
5906
|
-
&.${rootClassName$
|
|
5919
|
+
&.${rootClassName$16} {
|
|
5907
5920
|
align-items: stretch;
|
|
5908
5921
|
background: ${theme.palette.figma.background.level1.white};
|
|
5909
5922
|
border-width: 0 1px;
|
|
@@ -6197,10 +6210,10 @@ const StyledSidebar = styled.aside`
|
|
|
6197
6210
|
`}
|
|
6198
6211
|
`;
|
|
6199
6212
|
|
|
6200
|
-
const rootClassName$
|
|
6213
|
+
const rootClassName$15 = 'dot-truncate-with-tooltip';
|
|
6201
6214
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
6202
6215
|
${() => css`
|
|
6203
|
-
&.${rootClassName$
|
|
6216
|
+
&.${rootClassName$15} {
|
|
6204
6217
|
display: block;
|
|
6205
6218
|
overflow: hidden;
|
|
6206
6219
|
white-space: nowrap;
|
|
@@ -6231,7 +6244,7 @@ const DotTruncateWithTooltip = ({
|
|
|
6231
6244
|
label,
|
|
6232
6245
|
width
|
|
6233
6246
|
}) => {
|
|
6234
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6247
|
+
const rootClasses = useStylesWithRootClass(rootClassName$15, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
6235
6248
|
return jsx(StyledTruncateWithTooltip, {
|
|
6236
6249
|
"aria-label": ariaLabel,
|
|
6237
6250
|
arrow: arrow,
|
|
@@ -6345,7 +6358,7 @@ const DotSidebar = ({
|
|
|
6345
6358
|
keys: collapseKeys
|
|
6346
6359
|
}, toggleNavCollapseState, [isOpen, collapsable]);
|
|
6347
6360
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
6348
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6361
|
+
const rootClasses = useStylesWithRootClass(rootClassName$16, openClass, className);
|
|
6349
6362
|
return jsxs(StyledSidebar, {
|
|
6350
6363
|
"aria-label": ariaLabel,
|
|
6351
6364
|
className: rootClasses,
|
|
@@ -6421,12 +6434,12 @@ const DotSidebar = ({
|
|
|
6421
6434
|
});
|
|
6422
6435
|
};
|
|
6423
6436
|
|
|
6424
|
-
const rootClassName$
|
|
6437
|
+
const rootClassName$14 = 'dot-badge';
|
|
6425
6438
|
const StyledBadge = styled(Badge)`
|
|
6426
6439
|
${({
|
|
6427
6440
|
theme
|
|
6428
6441
|
}) => css`
|
|
6429
|
-
&.${rootClassName$
|
|
6442
|
+
&.${rootClassName$14} {
|
|
6430
6443
|
color: ${theme.palette.figma.typography.black};
|
|
6431
6444
|
word-break: normal;
|
|
6432
6445
|
|
|
@@ -6461,7 +6474,7 @@ const DotBadge = ({
|
|
|
6461
6474
|
overlap,
|
|
6462
6475
|
variant = 'dot'
|
|
6463
6476
|
}) => {
|
|
6464
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6477
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, className);
|
|
6465
6478
|
return jsx(StyledBadge, {
|
|
6466
6479
|
"$badgeColor": badgeColor,
|
|
6467
6480
|
anchorOrigin: {
|
|
@@ -6483,7 +6496,7 @@ const DotBadge = ({
|
|
|
6483
6496
|
});
|
|
6484
6497
|
};
|
|
6485
6498
|
|
|
6486
|
-
const rootClassName$
|
|
6499
|
+
const rootClassName$13 = 'dot-app-toolbar';
|
|
6487
6500
|
const denseClassName = 'dense';
|
|
6488
6501
|
const StyledMainMenu = styled(DotDrawer)`
|
|
6489
6502
|
${({
|
|
@@ -6523,7 +6536,7 @@ const StyledAppToolbar = styled.header`
|
|
|
6523
6536
|
${({
|
|
6524
6537
|
theme
|
|
6525
6538
|
}) => css`
|
|
6526
|
-
&.${rootClassName$
|
|
6539
|
+
&.${rootClassName$13} {
|
|
6527
6540
|
align-items: center;
|
|
6528
6541
|
background: ${theme.palette.figma.appToolbar.background};
|
|
6529
6542
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -6652,7 +6665,7 @@ const DotAppToolbar = ({
|
|
|
6652
6665
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
6653
6666
|
const mainMenuRef = useRef(null);
|
|
6654
6667
|
const denseClass = dense ? denseClassName : '';
|
|
6655
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6668
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
6656
6669
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
6657
6670
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
6658
6671
|
useEffect(() => {
|
|
@@ -6804,12 +6817,12 @@ const DotAppToolbar = ({
|
|
|
6804
6817
|
}) : appToolbar;
|
|
6805
6818
|
};
|
|
6806
6819
|
|
|
6807
|
-
const rootClassName$
|
|
6820
|
+
const rootClassName$12 = 'dot-chip';
|
|
6808
6821
|
const StyledChip = styled(Chip)`
|
|
6809
6822
|
${({
|
|
6810
6823
|
theme
|
|
6811
6824
|
}) => css`
|
|
6812
|
-
&.${rootClassName$
|
|
6825
|
+
&.${rootClassName$12} {
|
|
6813
6826
|
background: ${theme.palette.figma.neutral.normal};
|
|
6814
6827
|
border-color: ${theme.palette.figma.border.darker};
|
|
6815
6828
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6915,7 +6928,7 @@ const DotChip = ({
|
|
|
6915
6928
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6916
6929
|
children,
|
|
6917
6930
|
className,
|
|
6918
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6931
|
+
'data-pendoid': dataPendoId = rootClassName$12,
|
|
6919
6932
|
'data-testid': dataTestId,
|
|
6920
6933
|
disabled = false,
|
|
6921
6934
|
error = false,
|
|
@@ -6929,7 +6942,7 @@ const DotChip = ({
|
|
|
6929
6942
|
tooltipProps
|
|
6930
6943
|
}) => {
|
|
6931
6944
|
const errorClass = error ? 'Mui-error' : '';
|
|
6932
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6945
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className, errorClass);
|
|
6933
6946
|
const isTruncated = charactersLimit > 0 && children.length > charactersLimit;
|
|
6934
6947
|
const getChipLabelWithTooltip = label => jsx(DotTooltip, Object.assign({}, tooltipProps, {
|
|
6935
6948
|
hoverVisibility: "always",
|
|
@@ -6965,7 +6978,7 @@ const DotChip = ({
|
|
|
6965
6978
|
});
|
|
6966
6979
|
};
|
|
6967
6980
|
|
|
6968
|
-
const rootClassName$
|
|
6981
|
+
const rootClassName$11 = 'dot-autocomplete';
|
|
6969
6982
|
const inputRootClassName = 'dot-input-root';
|
|
6970
6983
|
const inputMediumClassName = 'dot-input-medium';
|
|
6971
6984
|
const inputAiClassName = 'dot-input-ai';
|
|
@@ -6973,7 +6986,7 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6973
6986
|
${({
|
|
6974
6987
|
theme
|
|
6975
6988
|
}) => css`
|
|
6976
|
-
&.${rootClassName$
|
|
6989
|
+
&.${rootClassName$11} {
|
|
6977
6990
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6978
6991
|
height: 56px;
|
|
6979
6992
|
padding-left: ${theme.spacing(2)};
|
|
@@ -7072,8 +7085,8 @@ const isEmptyValue = value => {
|
|
|
7072
7085
|
return !value;
|
|
7073
7086
|
}
|
|
7074
7087
|
};
|
|
7075
|
-
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$
|
|
7076
|
-
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$
|
|
7088
|
+
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$11, size === 'medium' && inputMediumClassName, className);
|
|
7089
|
+
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1s, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
7077
7090
|
const getInputRootClassNames = isDense => useStylesWithRootClass(inputRootClassName, !isDense && inputMediumClassName);
|
|
7078
7091
|
const getDefaultAutoCompleteValue = (hasMultiple, defaultValue) => hasMultiple && isString$2(defaultValue) ? [defaultValue] : defaultValue;
|
|
7079
7092
|
const getAutoCompleteGroupBy = group => group ? option => option.group : undefined;
|
|
@@ -7095,7 +7108,7 @@ const DotAutoComplete = ({
|
|
|
7095
7108
|
autoFocus,
|
|
7096
7109
|
autoHighlight,
|
|
7097
7110
|
className,
|
|
7098
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7111
|
+
'data-pendoid': dataPendoId = rootClassName$11,
|
|
7099
7112
|
'data-testid': dataTestId,
|
|
7100
7113
|
defaultValue,
|
|
7101
7114
|
dense = true,
|
|
@@ -7165,7 +7178,7 @@ const DotAutoComplete = ({
|
|
|
7165
7178
|
const rootClasses = useStylesWithRootClass(getRootClassNames(className, size), isAiEnabled ? inputAiClassName : '');
|
|
7166
7179
|
const textFieldRootClasses = getTextFieldRootClassNames(textFieldWarningClassName, readOnly);
|
|
7167
7180
|
const inputRootClasses = getInputRootClassNames(dense);
|
|
7168
|
-
const popperClasses = useStylesWithRootClass(rootClassName$
|
|
7181
|
+
const popperClasses = useStylesWithRootClass(rootClassName$1h, popperClassName);
|
|
7169
7182
|
let highlightedOption = null;
|
|
7170
7183
|
let textFieldInput;
|
|
7171
7184
|
const textFieldRef = element => {
|
|
@@ -7515,10 +7528,10 @@ const DotAutoComplete = ({
|
|
|
7515
7528
|
});
|
|
7516
7529
|
};
|
|
7517
7530
|
|
|
7518
|
-
const rootClassName
|
|
7531
|
+
const rootClassName$10 = 'dot-avatar-group';
|
|
7519
7532
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
7520
7533
|
${() => css`
|
|
7521
|
-
&.${rootClassName
|
|
7534
|
+
&.${rootClassName$10} {
|
|
7522
7535
|
justify-content: flex-end;
|
|
7523
7536
|
|
|
7524
7537
|
.MuiAvatar-root {
|
|
@@ -7537,7 +7550,7 @@ const DotAvatarGroup = ({
|
|
|
7537
7550
|
max = 3,
|
|
7538
7551
|
spacing = 'medium'
|
|
7539
7552
|
}) => {
|
|
7540
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
7553
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
7541
7554
|
return jsx(StyledAvatarGroup, {
|
|
7542
7555
|
"aria-label": ariaLabel,
|
|
7543
7556
|
classes: {
|
|
@@ -7552,14 +7565,14 @@ const DotAvatarGroup = ({
|
|
|
7552
7565
|
});
|
|
7553
7566
|
};
|
|
7554
7567
|
|
|
7555
|
-
const rootClassName
|
|
7568
|
+
const rootClassName$$ = 'dot-avatar-with-details';
|
|
7556
7569
|
const StyledAvatarWithDetails = styled.div`
|
|
7557
7570
|
${({
|
|
7558
7571
|
theme,
|
|
7559
7572
|
$maxSubtitleLines,
|
|
7560
7573
|
$maxTitleLines
|
|
7561
7574
|
}) => css`
|
|
7562
|
-
&.${rootClassName
|
|
7575
|
+
&.${rootClassName$$} {
|
|
7563
7576
|
gap: ${theme.spacing(2)};
|
|
7564
7577
|
display: flex;
|
|
7565
7578
|
align-items: center;
|
|
@@ -7595,12 +7608,12 @@ const DotAvatarWithDetails = ({
|
|
|
7595
7608
|
ariaLabel,
|
|
7596
7609
|
avatar,
|
|
7597
7610
|
className,
|
|
7598
|
-
'data-pendoid': dataPendoId = rootClassName
|
|
7611
|
+
'data-pendoid': dataPendoId = rootClassName$$,
|
|
7599
7612
|
'data-testid': dataTestId,
|
|
7600
7613
|
subtitle,
|
|
7601
7614
|
title
|
|
7602
7615
|
}) => {
|
|
7603
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
7616
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className);
|
|
7604
7617
|
const titleClasses = useStylesWithRootClass('dot-avatar-with-details-title', title.maxLines ? 'max-lines-clamp' : '');
|
|
7605
7618
|
const subtitleClasses = useStylesWithRootClass('dot-avatar-with-details-subtitle', (subtitle === null || subtitle === void 0 ? void 0 : subtitle.maxLines) ? 'max-lines-clamp' : '');
|
|
7606
7619
|
return jsxs(StyledAvatarWithDetails, {
|
|
@@ -7635,13 +7648,13 @@ const DotAvatarWithDetails = ({
|
|
|
7635
7648
|
});
|
|
7636
7649
|
};
|
|
7637
7650
|
|
|
7638
|
-
const rootClassName$
|
|
7651
|
+
const rootClassName$_ = 'dot-breadcrumbs';
|
|
7639
7652
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
7640
7653
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
7641
7654
|
${({
|
|
7642
7655
|
theme
|
|
7643
7656
|
}) => css`
|
|
7644
|
-
&.${rootClassName$
|
|
7657
|
+
&.${rootClassName$_} {
|
|
7645
7658
|
overflow: hidden;
|
|
7646
7659
|
|
|
7647
7660
|
.dot-breadcrumbs-menu {
|
|
@@ -7661,7 +7674,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
7661
7674
|
${({
|
|
7662
7675
|
theme
|
|
7663
7676
|
}) => css`
|
|
7664
|
-
&.${rootClassName$
|
|
7677
|
+
&.${rootClassName$_} {
|
|
7665
7678
|
margin-bottom: 0;
|
|
7666
7679
|
|
|
7667
7680
|
.MuiBreadcrumbs-ol {
|
|
@@ -7989,7 +8002,7 @@ const DotBreadcrumbs = ({
|
|
|
7989
8002
|
children: [jsx(StyledBreadcrumbs, {
|
|
7990
8003
|
"aria-label": "breadcrumb",
|
|
7991
8004
|
classes: {
|
|
7992
|
-
root: rootClassName$
|
|
8005
|
+
root: rootClassName$_,
|
|
7993
8006
|
ol: 'dot-ol',
|
|
7994
8007
|
li: 'dot-li'
|
|
7995
8008
|
},
|
|
@@ -8020,14 +8033,14 @@ const DotBreadcrumbs = ({
|
|
|
8020
8033
|
});
|
|
8021
8034
|
};
|
|
8022
8035
|
|
|
8023
|
-
const rootClassName$
|
|
8036
|
+
const rootClassName$Z = 'dot-button-toggle';
|
|
8024
8037
|
// TODO: need to update ripple color
|
|
8025
8038
|
// https://github.com/mui/material-ui/issues/28543
|
|
8026
8039
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
8027
8040
|
${({
|
|
8028
8041
|
theme
|
|
8029
8042
|
}) => css`
|
|
8030
|
-
&.${rootClassName$
|
|
8043
|
+
&.${rootClassName$Z} {
|
|
8031
8044
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
8032
8045
|
/* Override height for medium size */
|
|
8033
8046
|
height: ${theme.spacing(5)};
|
|
@@ -8150,7 +8163,7 @@ const DotButtonToggle = ({
|
|
|
8150
8163
|
buttonOptions,
|
|
8151
8164
|
className,
|
|
8152
8165
|
color,
|
|
8153
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8166
|
+
'data-pendoid': dataPendoId = rootClassName$Z,
|
|
8154
8167
|
'data-testid': dataTestId = 'dot-toggle',
|
|
8155
8168
|
disableFocusRipple = false,
|
|
8156
8169
|
disableRipple = false,
|
|
@@ -8160,7 +8173,7 @@ const DotButtonToggle = ({
|
|
|
8160
8173
|
size = 'medium',
|
|
8161
8174
|
value
|
|
8162
8175
|
}) => {
|
|
8163
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8176
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
8164
8177
|
const renderToggleButton = ({
|
|
8165
8178
|
ariaLabel: optionAriaLabel,
|
|
8166
8179
|
badgeContent: optionBadgeContent,
|
|
@@ -8245,12 +8258,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
8245
8258
|
}));
|
|
8246
8259
|
});
|
|
8247
8260
|
|
|
8248
|
-
const rootClassName$
|
|
8261
|
+
const rootClassName$Y = 'dot-card';
|
|
8249
8262
|
const StyledCard = styled(Card)`
|
|
8250
8263
|
${({
|
|
8251
8264
|
theme
|
|
8252
8265
|
}) => css`
|
|
8253
|
-
&.${rootClassName$
|
|
8266
|
+
&.${rootClassName$Y} {
|
|
8254
8267
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
8255
8268
|
}
|
|
8256
8269
|
`}
|
|
@@ -8264,7 +8277,7 @@ const DotCard = ({
|
|
|
8264
8277
|
onMouseEnter,
|
|
8265
8278
|
onMouseLeave
|
|
8266
8279
|
}) => {
|
|
8267
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8280
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
|
|
8268
8281
|
return jsx(StyledCard, {
|
|
8269
8282
|
"aria-label": ariaLabel,
|
|
8270
8283
|
classes: {
|
|
@@ -8295,12 +8308,12 @@ const DotCardContent = ({
|
|
|
8295
8308
|
});
|
|
8296
8309
|
};
|
|
8297
8310
|
|
|
8298
|
-
const rootClassName$
|
|
8311
|
+
const rootClassName$X = 'dot-card-footer';
|
|
8299
8312
|
const StyledDiv = styled.div`
|
|
8300
8313
|
${({
|
|
8301
8314
|
theme
|
|
8302
8315
|
}) => css`
|
|
8303
|
-
&.${rootClassName$
|
|
8316
|
+
&.${rootClassName$X} {
|
|
8304
8317
|
padding: ${theme.spacing(2)};
|
|
8305
8318
|
}
|
|
8306
8319
|
`}
|
|
@@ -8312,7 +8325,7 @@ const DotCardFooter = ({
|
|
|
8312
8325
|
className,
|
|
8313
8326
|
'data-testid': dataTestId
|
|
8314
8327
|
}) => {
|
|
8315
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8328
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
8316
8329
|
return jsx(StyledDiv, {
|
|
8317
8330
|
"aria-label": ariaLabel,
|
|
8318
8331
|
className: rootClasses,
|
|
@@ -8321,14 +8334,14 @@ const DotCardFooter = ({
|
|
|
8321
8334
|
});
|
|
8322
8335
|
};
|
|
8323
8336
|
|
|
8324
|
-
const rootClassName$
|
|
8337
|
+
const rootClassName$W = 'dot-card-header';
|
|
8325
8338
|
const StyledCardHeader = styled(CardHeader)`
|
|
8326
8339
|
${({
|
|
8327
8340
|
theme,
|
|
8328
8341
|
$maxSubheaderLines,
|
|
8329
8342
|
$maxTitleLines
|
|
8330
8343
|
}) => css`
|
|
8331
|
-
&.${rootClassName$
|
|
8344
|
+
&.${rootClassName$W} {
|
|
8332
8345
|
.MuiCardHeader-content {
|
|
8333
8346
|
overflow-x: hidden;
|
|
8334
8347
|
|
|
@@ -8366,7 +8379,7 @@ const DotCardHeader = ({
|
|
|
8366
8379
|
titleMaxLines = 1,
|
|
8367
8380
|
titleSize = 'large'
|
|
8368
8381
|
}) => {
|
|
8369
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8382
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
8370
8383
|
const nonSmallTitleSize = titleSize === 'medium' ? 'h3' : 'h2';
|
|
8371
8384
|
const titleVariant = titleSize === 'small' ? 'h4' : nonSmallTitleSize;
|
|
8372
8385
|
const subheaderVariant = subheaderSize === 'small' ? 'body2' : 'body1';
|
|
@@ -8403,9 +8416,9 @@ const DotCardHeader = ({
|
|
|
8403
8416
|
});
|
|
8404
8417
|
};
|
|
8405
8418
|
|
|
8406
|
-
const rootClassName$
|
|
8419
|
+
const rootClassName$V = 'dot-form-control-label';
|
|
8407
8420
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
8408
|
-
&.${rootClassName$
|
|
8421
|
+
&.${rootClassName$V} {
|
|
8409
8422
|
.MuiFormControlLabel-label {
|
|
8410
8423
|
margin-bottom: 0;
|
|
8411
8424
|
padding: 0 0 0 4px;
|
|
@@ -8428,12 +8441,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
8428
8441
|
}
|
|
8429
8442
|
`;
|
|
8430
8443
|
|
|
8431
|
-
const rootClassName$
|
|
8444
|
+
const rootClassName$U = 'dot-checkbox';
|
|
8432
8445
|
const StyledCheckbox = styled(Checkbox)`
|
|
8433
8446
|
${({
|
|
8434
8447
|
theme
|
|
8435
8448
|
}) => css`
|
|
8436
|
-
&.${rootClassName$
|
|
8449
|
+
&.${rootClassName$U} {
|
|
8437
8450
|
padding: ${theme.spacing(1)};
|
|
8438
8451
|
|
|
8439
8452
|
&.MuiCheckbox-indeterminate {
|
|
@@ -8452,7 +8465,7 @@ function DotCheckbox({
|
|
|
8452
8465
|
ariaLabelledby,
|
|
8453
8466
|
checked,
|
|
8454
8467
|
className,
|
|
8455
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8468
|
+
'data-pendoid': dataPendoId = rootClassName$V,
|
|
8456
8469
|
'data-testid': dataTestId,
|
|
8457
8470
|
disabled,
|
|
8458
8471
|
disableRipple,
|
|
@@ -8467,14 +8480,14 @@ function DotCheckbox({
|
|
|
8467
8480
|
size = 'medium',
|
|
8468
8481
|
value
|
|
8469
8482
|
}) {
|
|
8470
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8483
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
8471
8484
|
const handleChange = event => {
|
|
8472
8485
|
onChange && onChange(event, event.target.value);
|
|
8473
8486
|
};
|
|
8474
8487
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
8475
8488
|
checked: checked,
|
|
8476
8489
|
classes: {
|
|
8477
|
-
root: rootClassName$
|
|
8490
|
+
root: rootClassName$U
|
|
8478
8491
|
},
|
|
8479
8492
|
color: "primary",
|
|
8480
8493
|
"data-pendoid": dataPendoId,
|
|
@@ -8503,13 +8516,13 @@ function DotCheckbox({
|
|
|
8503
8516
|
});
|
|
8504
8517
|
}
|
|
8505
8518
|
|
|
8506
|
-
const rootClassName$
|
|
8519
|
+
const rootClassName$T = 'dot-form-group';
|
|
8507
8520
|
const groupLabelClassName = 'dot-form-group-label';
|
|
8508
8521
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
8509
8522
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
8510
8523
|
const placementClassName = 'dot-';
|
|
8511
8524
|
const StyledFormControl = styled(FormControl)`
|
|
8512
|
-
&.${rootClassName$
|
|
8525
|
+
&.${rootClassName$T} {
|
|
8513
8526
|
.MuiFormLabel-root {
|
|
8514
8527
|
width: 100%;
|
|
8515
8528
|
line-height: 24px;
|
|
@@ -8540,7 +8553,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
8540
8553
|
}
|
|
8541
8554
|
`;
|
|
8542
8555
|
|
|
8543
|
-
const rootClassName$
|
|
8556
|
+
const rootClassName$S = 'dot-checkbox-group';
|
|
8544
8557
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
8545
8558
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
8546
8559
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -8549,7 +8562,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8549
8562
|
theme
|
|
8550
8563
|
}) => css`
|
|
8551
8564
|
&.${wrapperClassName$1} {
|
|
8552
|
-
.${rootClassName$
|
|
8565
|
+
.${rootClassName$S} {
|
|
8553
8566
|
width: 100%;
|
|
8554
8567
|
}
|
|
8555
8568
|
|
|
@@ -8576,7 +8589,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8576
8589
|
margin-top: 0;
|
|
8577
8590
|
padding-left: ${theme.spacing(2.5)};
|
|
8578
8591
|
|
|
8579
|
-
.${rootClassName$
|
|
8592
|
+
.${rootClassName$V} {
|
|
8580
8593
|
margin: 0;
|
|
8581
8594
|
}
|
|
8582
8595
|
}
|
|
@@ -8584,13 +8597,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8584
8597
|
`}
|
|
8585
8598
|
`;
|
|
8586
8599
|
|
|
8587
|
-
const rootClassName$
|
|
8600
|
+
const rootClassName$R = 'dot-form-group';
|
|
8588
8601
|
const StyledFormGroup = styled(FormGroup)`
|
|
8589
8602
|
${({
|
|
8590
8603
|
theme,
|
|
8591
8604
|
row
|
|
8592
8605
|
}) => css`
|
|
8593
|
-
&.${rootClassName$
|
|
8606
|
+
&.${rootClassName$R} > * {
|
|
8594
8607
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
8595
8608
|
}
|
|
8596
8609
|
`}
|
|
@@ -8603,7 +8616,7 @@ function DotFormGroup({
|
|
|
8603
8616
|
'data-testid': dataTestId,
|
|
8604
8617
|
row
|
|
8605
8618
|
}) {
|
|
8606
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8619
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
8607
8620
|
return jsx(StyledFormGroup, {
|
|
8608
8621
|
"aria-label": ariaLabel,
|
|
8609
8622
|
classes: {
|
|
@@ -8642,7 +8655,7 @@ function DotCheckboxGroup({
|
|
|
8642
8655
|
size = 'medium'
|
|
8643
8656
|
}) {
|
|
8644
8657
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8645
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8658
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, rootClassName$S, className, placement);
|
|
8646
8659
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
8647
8660
|
const [allChecked, setAllChecked] = useState(false);
|
|
8648
8661
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -8727,12 +8740,12 @@ function DotCheckboxGroup({
|
|
|
8727
8740
|
});
|
|
8728
8741
|
}
|
|
8729
8742
|
|
|
8730
|
-
const rootClassName$
|
|
8743
|
+
const rootClassName$Q = 'chip-list';
|
|
8731
8744
|
const StyledChipList = styled.div`
|
|
8732
8745
|
${({
|
|
8733
8746
|
theme
|
|
8734
8747
|
}) => css`
|
|
8735
|
-
&.${rootClassName$
|
|
8748
|
+
&.${rootClassName$Q} {
|
|
8736
8749
|
display: flex;
|
|
8737
8750
|
gap: ${theme.spacing(1)};
|
|
8738
8751
|
}
|
|
@@ -8807,19 +8820,19 @@ function DotChipList({
|
|
|
8807
8820
|
setChips(itemElements);
|
|
8808
8821
|
}, [items, maxChars]);
|
|
8809
8822
|
return jsx(StyledChipList, {
|
|
8810
|
-
className: rootClassName$
|
|
8823
|
+
className: rootClassName$Q,
|
|
8811
8824
|
"data-testid": dataTestId,
|
|
8812
8825
|
style: style,
|
|
8813
8826
|
children: chips
|
|
8814
8827
|
});
|
|
8815
8828
|
}
|
|
8816
8829
|
|
|
8817
|
-
const rootClassName$
|
|
8830
|
+
const rootClassName$P = 'dot-dialog';
|
|
8818
8831
|
const StyledDialog = styled(Dialog)`
|
|
8819
8832
|
${({
|
|
8820
8833
|
theme
|
|
8821
8834
|
}) => css`
|
|
8822
|
-
&.${rootClassName$
|
|
8835
|
+
&.${rootClassName$P} {
|
|
8823
8836
|
.MuiDialog-paper {
|
|
8824
8837
|
background: ${theme.palette.figma.background.level1.white};
|
|
8825
8838
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -8865,7 +8878,7 @@ const DotDialog = ({
|
|
|
8865
8878
|
cancelButtonProps,
|
|
8866
8879
|
cancelButtonVisible = true,
|
|
8867
8880
|
className,
|
|
8868
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8881
|
+
'data-pendoid': dataPendoId = rootClassName$P,
|
|
8869
8882
|
'data-testid': dataTestId,
|
|
8870
8883
|
children,
|
|
8871
8884
|
closeIconVisible,
|
|
@@ -8879,7 +8892,7 @@ const DotDialog = ({
|
|
|
8879
8892
|
submitButtonProps,
|
|
8880
8893
|
title
|
|
8881
8894
|
}) => {
|
|
8882
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8895
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className);
|
|
8883
8896
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
8884
8897
|
const [isOpen, setIsOpen] = useState(open);
|
|
8885
8898
|
const hasSecondaryAction = !!secondaryButtonProps;
|
|
@@ -9016,7 +9029,7 @@ const DotConfirmationDialog = ({
|
|
|
9016
9029
|
});
|
|
9017
9030
|
};
|
|
9018
9031
|
|
|
9019
|
-
const rootClassName$
|
|
9032
|
+
const rootClassName$O = 'dot-grid';
|
|
9020
9033
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
9021
9034
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
9022
9035
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -9076,7 +9089,7 @@ const Grid = ({
|
|
|
9076
9089
|
children,
|
|
9077
9090
|
isLoading
|
|
9078
9091
|
}) => {
|
|
9079
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9092
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, className);
|
|
9080
9093
|
return jsxs("div", {
|
|
9081
9094
|
className: rootClasses,
|
|
9082
9095
|
children: [children, isLoading && jsx(DotProgress, {
|
|
@@ -9100,7 +9113,7 @@ const StyledGrid = styled(Grid)`
|
|
|
9100
9113
|
theme,
|
|
9101
9114
|
width
|
|
9102
9115
|
}) => css`
|
|
9103
|
-
&.${rootClassName$
|
|
9116
|
+
&.${rootClassName$O} {
|
|
9104
9117
|
display: grid;
|
|
9105
9118
|
grid-template-rows: ${frGetter(rows)};
|
|
9106
9119
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -9371,12 +9384,12 @@ const CssGridDebug = ({
|
|
|
9371
9384
|
});
|
|
9372
9385
|
};
|
|
9373
9386
|
|
|
9374
|
-
const rootClassName$
|
|
9387
|
+
const rootClassName$N = 'dot-pill';
|
|
9375
9388
|
const StyledPill = styled(Chip)`
|
|
9376
9389
|
${({
|
|
9377
9390
|
theme
|
|
9378
9391
|
}) => css`
|
|
9379
|
-
&.${rootClassName$
|
|
9392
|
+
&.${rootClassName$N} {
|
|
9380
9393
|
background-color: ${({
|
|
9381
9394
|
backgroundcolor,
|
|
9382
9395
|
variant
|
|
@@ -9500,7 +9513,7 @@ const DotPill = ({
|
|
|
9500
9513
|
status = 'default',
|
|
9501
9514
|
variant = 'filled'
|
|
9502
9515
|
}) => {
|
|
9503
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9516
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, className, status);
|
|
9504
9517
|
return jsx(StyledPill, {
|
|
9505
9518
|
"aria-label": ariaLabel,
|
|
9506
9519
|
bordercolor: bordercolor,
|
|
@@ -9520,25 +9533,126 @@ const DotPill = ({
|
|
|
9520
9533
|
};
|
|
9521
9534
|
|
|
9522
9535
|
class ApiError extends Error {
|
|
9523
|
-
constructor(response, message) {
|
|
9536
|
+
constructor(request, response, message) {
|
|
9524
9537
|
super(message);
|
|
9538
|
+
this.name = 'ApiError';
|
|
9525
9539
|
this.url = response.url;
|
|
9526
9540
|
this.status = response.status;
|
|
9527
9541
|
this.statusText = response.statusText;
|
|
9528
9542
|
this.body = response.body;
|
|
9543
|
+
this.request = request;
|
|
9544
|
+
}
|
|
9545
|
+
}
|
|
9546
|
+
|
|
9547
|
+
var _CancelablePromise_isResolved, _CancelablePromise_isRejected, _CancelablePromise_isCancelled, _CancelablePromise_cancelHandlers, _CancelablePromise_promise, _CancelablePromise_resolve, _CancelablePromise_reject;
|
|
9548
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
9549
|
+
/* istanbul ignore file */
|
|
9550
|
+
/* tslint:disable */
|
|
9551
|
+
/* eslint-disable */
|
|
9552
|
+
class CancelError extends Error {
|
|
9553
|
+
constructor(message) {
|
|
9554
|
+
super(message);
|
|
9555
|
+
this.name = 'CancelError';
|
|
9556
|
+
}
|
|
9557
|
+
get isCancelled() {
|
|
9558
|
+
return true;
|
|
9559
|
+
}
|
|
9560
|
+
}
|
|
9561
|
+
class CancelablePromise {
|
|
9562
|
+
constructor(executor) {
|
|
9563
|
+
_CancelablePromise_isResolved.set(this, void 0);
|
|
9564
|
+
_CancelablePromise_isRejected.set(this, void 0);
|
|
9565
|
+
_CancelablePromise_isCancelled.set(this, void 0);
|
|
9566
|
+
_CancelablePromise_cancelHandlers.set(this, void 0);
|
|
9567
|
+
_CancelablePromise_promise.set(this, void 0);
|
|
9568
|
+
_CancelablePromise_resolve.set(this, void 0);
|
|
9569
|
+
_CancelablePromise_reject.set(this, void 0);
|
|
9570
|
+
__classPrivateFieldSet(this, _CancelablePromise_isResolved, false, "f");
|
|
9571
|
+
__classPrivateFieldSet(this, _CancelablePromise_isRejected, false, "f");
|
|
9572
|
+
__classPrivateFieldSet(this, _CancelablePromise_isCancelled, false, "f");
|
|
9573
|
+
__classPrivateFieldSet(this, _CancelablePromise_cancelHandlers, [], "f");
|
|
9574
|
+
__classPrivateFieldSet(this, _CancelablePromise_promise, new Promise((resolve, reject) => {
|
|
9575
|
+
__classPrivateFieldSet(this, _CancelablePromise_resolve, resolve, "f");
|
|
9576
|
+
__classPrivateFieldSet(this, _CancelablePromise_reject, reject, "f");
|
|
9577
|
+
const onResolve = value => {
|
|
9578
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_isResolved, "f") || __classPrivateFieldGet(this, _CancelablePromise_isRejected, "f") || __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f")) {
|
|
9579
|
+
return;
|
|
9580
|
+
}
|
|
9581
|
+
__classPrivateFieldSet(this, _CancelablePromise_isResolved, true, "f");
|
|
9582
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_resolve, "f")) __classPrivateFieldGet(this, _CancelablePromise_resolve, "f").call(this, value);
|
|
9583
|
+
};
|
|
9584
|
+
const onReject = reason => {
|
|
9585
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_isResolved, "f") || __classPrivateFieldGet(this, _CancelablePromise_isRejected, "f") || __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f")) {
|
|
9586
|
+
return;
|
|
9587
|
+
}
|
|
9588
|
+
__classPrivateFieldSet(this, _CancelablePromise_isRejected, true, "f");
|
|
9589
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_reject, "f")) __classPrivateFieldGet(this, _CancelablePromise_reject, "f").call(this, reason);
|
|
9590
|
+
};
|
|
9591
|
+
const onCancel = cancelHandler => {
|
|
9592
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_isResolved, "f") || __classPrivateFieldGet(this, _CancelablePromise_isRejected, "f") || __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f")) {
|
|
9593
|
+
return;
|
|
9594
|
+
}
|
|
9595
|
+
__classPrivateFieldGet(this, _CancelablePromise_cancelHandlers, "f").push(cancelHandler);
|
|
9596
|
+
};
|
|
9597
|
+
Object.defineProperty(onCancel, 'isResolved', {
|
|
9598
|
+
get: () => __classPrivateFieldGet(this, _CancelablePromise_isResolved, "f")
|
|
9599
|
+
});
|
|
9600
|
+
Object.defineProperty(onCancel, 'isRejected', {
|
|
9601
|
+
get: () => __classPrivateFieldGet(this, _CancelablePromise_isRejected, "f")
|
|
9602
|
+
});
|
|
9603
|
+
Object.defineProperty(onCancel, 'isCancelled', {
|
|
9604
|
+
get: () => __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f")
|
|
9605
|
+
});
|
|
9606
|
+
return executor(onResolve, onReject, onCancel);
|
|
9607
|
+
}), "f");
|
|
9608
|
+
}
|
|
9609
|
+
get [(_CancelablePromise_isResolved = new WeakMap(), _CancelablePromise_isRejected = new WeakMap(), _CancelablePromise_isCancelled = new WeakMap(), _CancelablePromise_cancelHandlers = new WeakMap(), _CancelablePromise_promise = new WeakMap(), _CancelablePromise_resolve = new WeakMap(), _CancelablePromise_reject = new WeakMap(), Symbol.toStringTag)]() {
|
|
9610
|
+
return 'Cancellable Promise';
|
|
9611
|
+
}
|
|
9612
|
+
then(onFulfilled, onRejected) {
|
|
9613
|
+
return __classPrivateFieldGet(this, _CancelablePromise_promise, "f").then(onFulfilled, onRejected);
|
|
9614
|
+
}
|
|
9615
|
+
catch(onRejected) {
|
|
9616
|
+
return __classPrivateFieldGet(this, _CancelablePromise_promise, "f").catch(onRejected);
|
|
9617
|
+
}
|
|
9618
|
+
finally(onFinally) {
|
|
9619
|
+
return __classPrivateFieldGet(this, _CancelablePromise_promise, "f").finally(onFinally);
|
|
9620
|
+
}
|
|
9621
|
+
cancel() {
|
|
9622
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_isResolved, "f") || __classPrivateFieldGet(this, _CancelablePromise_isRejected, "f") || __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f")) {
|
|
9623
|
+
return;
|
|
9624
|
+
}
|
|
9625
|
+
__classPrivateFieldSet(this, _CancelablePromise_isCancelled, true, "f");
|
|
9626
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_cancelHandlers, "f").length) {
|
|
9627
|
+
try {
|
|
9628
|
+
for (const cancelHandler of __classPrivateFieldGet(this, _CancelablePromise_cancelHandlers, "f")) {
|
|
9629
|
+
cancelHandler();
|
|
9630
|
+
}
|
|
9631
|
+
} catch (error) {
|
|
9632
|
+
console.warn('Cancellation threw an error', error);
|
|
9633
|
+
return;
|
|
9634
|
+
}
|
|
9635
|
+
}
|
|
9636
|
+
__classPrivateFieldGet(this, _CancelablePromise_cancelHandlers, "f").length = 0;
|
|
9637
|
+
if (__classPrivateFieldGet(this, _CancelablePromise_reject, "f")) __classPrivateFieldGet(this, _CancelablePromise_reject, "f").call(this, new CancelError('Request aborted'));
|
|
9638
|
+
}
|
|
9639
|
+
get isCancelled() {
|
|
9640
|
+
return __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f");
|
|
9529
9641
|
}
|
|
9530
9642
|
}
|
|
9531
9643
|
|
|
9532
9644
|
const OpenAPI = {
|
|
9533
9645
|
BASE: '',
|
|
9646
|
+
VERSION: '0.1',
|
|
9647
|
+
WITH_CREDENTIALS: false,
|
|
9648
|
+
CREDENTIALS: 'include',
|
|
9534
9649
|
TOKEN: undefined,
|
|
9535
9650
|
USERNAME: undefined,
|
|
9536
9651
|
PASSWORD: undefined,
|
|
9537
|
-
HEADERS: undefined
|
|
9652
|
+
HEADERS: undefined,
|
|
9653
|
+
ENCODE_PATH: undefined
|
|
9654
|
+
};
|
|
9538
9655
|
|
|
9539
|
-
/* istanbul ignore file */
|
|
9540
|
-
/* tslint:disable */
|
|
9541
|
-
/* eslint-disable */
|
|
9542
9656
|
var DashboardCreateBody;
|
|
9543
9657
|
(function (DashboardCreateBody) {
|
|
9544
9658
|
(function (lifecycle_state) {
|
|
@@ -9551,9 +9665,6 @@ var DashboardCreateBody;
|
|
|
9551
9665
|
})(DashboardCreateBody.bi_type || (DashboardCreateBody.bi_type = {}));
|
|
9552
9666
|
})(DashboardCreateBody || (DashboardCreateBody = {}));
|
|
9553
9667
|
|
|
9554
|
-
/* istanbul ignore file */
|
|
9555
|
-
/* tslint:disable */
|
|
9556
|
-
/* eslint-disable */
|
|
9557
9668
|
var DashboardPatchBody;
|
|
9558
9669
|
(function (DashboardPatchBody) {
|
|
9559
9670
|
(function (lifecycle_state) {
|
|
@@ -9566,9 +9677,6 @@ var DashboardPatchBody;
|
|
|
9566
9677
|
})(DashboardPatchBody.bi_type || (DashboardPatchBody.bi_type = {}));
|
|
9567
9678
|
})(DashboardPatchBody || (DashboardPatchBody = {}));
|
|
9568
9679
|
|
|
9569
|
-
/* istanbul ignore file */
|
|
9570
|
-
/* tslint:disable */
|
|
9571
|
-
/* eslint-disable */
|
|
9572
9680
|
var DashboardPutBody;
|
|
9573
9681
|
(function (DashboardPutBody) {
|
|
9574
9682
|
(function (lifecycle_state) {
|
|
@@ -9581,9 +9689,6 @@ var DashboardPutBody;
|
|
|
9581
9689
|
})(DashboardPutBody.bi_type || (DashboardPutBody.bi_type = {}));
|
|
9582
9690
|
})(DashboardPutBody || (DashboardPutBody = {}));
|
|
9583
9691
|
|
|
9584
|
-
/* istanbul ignore file */
|
|
9585
|
-
/* tslint:disable */
|
|
9586
|
-
/* eslint-disable */
|
|
9587
9692
|
var DashboardView;
|
|
9588
9693
|
(function (DashboardView) {
|
|
9589
9694
|
(function (lifecycle_state) {
|
|
@@ -9596,159 +9701,180 @@ var DashboardView;
|
|
|
9596
9701
|
})(DashboardView.bi_type || (DashboardView.bi_type = {}));
|
|
9597
9702
|
})(DashboardView || (DashboardView = {}));
|
|
9598
9703
|
|
|
9599
|
-
|
|
9704
|
+
const isDefined = value => {
|
|
9600
9705
|
return value !== undefined && value !== null;
|
|
9601
|
-
}
|
|
9602
|
-
|
|
9706
|
+
};
|
|
9707
|
+
const isString = value => {
|
|
9603
9708
|
return typeof value === 'string';
|
|
9604
|
-
}
|
|
9605
|
-
|
|
9709
|
+
};
|
|
9710
|
+
const isStringWithValue = value => {
|
|
9606
9711
|
return isString(value) && value !== '';
|
|
9607
|
-
}
|
|
9608
|
-
|
|
9609
|
-
return value
|
|
9610
|
-
}
|
|
9611
|
-
|
|
9712
|
+
};
|
|
9713
|
+
const isBlob = value => {
|
|
9714
|
+
return typeof value === 'object' && typeof value.type === 'string' && typeof value.stream === 'function' && typeof value.arrayBuffer === 'function' && typeof value.constructor === 'function' && typeof value.constructor.name === 'string' && /^(Blob|File)$/.test(value.constructor.name) && /^(Blob|File)$/.test(value[Symbol.toStringTag]);
|
|
9715
|
+
};
|
|
9716
|
+
const isFormData = value => {
|
|
9717
|
+
return value instanceof FormData;
|
|
9718
|
+
};
|
|
9719
|
+
const base64 = str => {
|
|
9612
9720
|
try {
|
|
9613
9721
|
return btoa(str);
|
|
9614
9722
|
} catch (err) {
|
|
9723
|
+
// @ts-ignore
|
|
9615
9724
|
return Buffer.from(str).toString('base64');
|
|
9616
9725
|
}
|
|
9617
|
-
}
|
|
9618
|
-
|
|
9726
|
+
};
|
|
9727
|
+
const getQueryString = params => {
|
|
9619
9728
|
const qs = [];
|
|
9620
|
-
|
|
9621
|
-
|
|
9729
|
+
const append = (key, value) => {
|
|
9730
|
+
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
9731
|
+
};
|
|
9732
|
+
const process = (key, value) => {
|
|
9622
9733
|
if (isDefined(value)) {
|
|
9623
9734
|
if (Array.isArray(value)) {
|
|
9624
|
-
value.forEach(
|
|
9625
|
-
|
|
9735
|
+
value.forEach(v => {
|
|
9736
|
+
process(key, v);
|
|
9737
|
+
});
|
|
9738
|
+
} else if (typeof value === 'object') {
|
|
9739
|
+
Object.entries(value).forEach(([k, v]) => {
|
|
9740
|
+
process(`${key}[${k}]`, v);
|
|
9626
9741
|
});
|
|
9627
9742
|
} else {
|
|
9628
|
-
|
|
9743
|
+
append(key, value);
|
|
9629
9744
|
}
|
|
9630
9745
|
}
|
|
9746
|
+
};
|
|
9747
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
9748
|
+
process(key, value);
|
|
9631
9749
|
});
|
|
9632
9750
|
if (qs.length > 0) {
|
|
9633
9751
|
return `?${qs.join('&')}`;
|
|
9634
9752
|
}
|
|
9635
9753
|
return '';
|
|
9636
|
-
}
|
|
9637
|
-
|
|
9638
|
-
const
|
|
9639
|
-
const
|
|
9754
|
+
};
|
|
9755
|
+
const getUrl = (config, options) => {
|
|
9756
|
+
const encoder = encodeURI;
|
|
9757
|
+
const path = options.url.replace('{api-version}', config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
|
|
9758
|
+
var _a;
|
|
9759
|
+
if ((_a = options.path) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(group)) {
|
|
9760
|
+
return encoder(String(options.path[group]));
|
|
9761
|
+
}
|
|
9762
|
+
return substring;
|
|
9763
|
+
});
|
|
9764
|
+
const url = `${config.BASE}${path}`;
|
|
9640
9765
|
if (options.query) {
|
|
9641
9766
|
return `${url}${getQueryString(options.query)}`;
|
|
9642
9767
|
}
|
|
9643
9768
|
return url;
|
|
9644
|
-
}
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
const
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
}
|
|
9652
|
-
});
|
|
9653
|
-
return formData;
|
|
9654
|
-
}
|
|
9655
|
-
function resolve(options, resolver) {
|
|
9656
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9657
|
-
if (typeof resolver === 'function') {
|
|
9658
|
-
return resolver(options);
|
|
9659
|
-
}
|
|
9660
|
-
return resolver;
|
|
9661
|
-
});
|
|
9662
|
-
}
|
|
9663
|
-
function getHeaders(options) {
|
|
9664
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9665
|
-
const token = yield resolve(options, OpenAPI.TOKEN);
|
|
9666
|
-
const username = yield resolve(options, OpenAPI.USERNAME);
|
|
9667
|
-
const password = yield resolve(options, OpenAPI.PASSWORD);
|
|
9668
|
-
const additionalHeaders = yield resolve(options, OpenAPI.HEADERS);
|
|
9669
|
-
const defaultHeaders = Object.entries(Object.assign(Object.assign({
|
|
9670
|
-
Accept: 'application/json'
|
|
9671
|
-
}, additionalHeaders), options.headers)).filter(([key, value]) => isDefined(value)).reduce((headers, [key, value]) => Object.assign(Object.assign({}, headers), {
|
|
9672
|
-
[key]: value
|
|
9673
|
-
}), {});
|
|
9674
|
-
const headers = new Headers(defaultHeaders);
|
|
9675
|
-
if (isStringWithValue(token)) {
|
|
9676
|
-
headers.append('Authorization', `Bearer ${token}`);
|
|
9677
|
-
}
|
|
9678
|
-
if (isStringWithValue(username) && isStringWithValue(password)) {
|
|
9679
|
-
const credentials = base64(`${username}:${password}`);
|
|
9680
|
-
headers.append('Authorization', `Basic ${credentials}`);
|
|
9681
|
-
}
|
|
9682
|
-
if (options.body) {
|
|
9683
|
-
if (options.mediaType) {
|
|
9684
|
-
headers.append('Content-Type', options.mediaType);
|
|
9685
|
-
} else if (isBlob(options.body)) {
|
|
9686
|
-
headers.append('Content-Type', options.body.type || 'application/octet-stream');
|
|
9687
|
-
} else if (isString(options.body)) {
|
|
9688
|
-
headers.append('Content-Type', 'text/plain');
|
|
9769
|
+
};
|
|
9770
|
+
const getFormData = options => {
|
|
9771
|
+
if (options.formData) {
|
|
9772
|
+
const formData = new FormData();
|
|
9773
|
+
const process = (key, value) => {
|
|
9774
|
+
if (isString(value) || isBlob(value)) {
|
|
9775
|
+
formData.append(key, value);
|
|
9689
9776
|
} else {
|
|
9690
|
-
|
|
9777
|
+
formData.append(key, JSON.stringify(value));
|
|
9691
9778
|
}
|
|
9779
|
+
};
|
|
9780
|
+
Object.entries(options.formData).filter(([_, value]) => isDefined(value)).forEach(([key, value]) => {
|
|
9781
|
+
if (Array.isArray(value)) {
|
|
9782
|
+
value.forEach(v => process(key, v));
|
|
9783
|
+
} else {
|
|
9784
|
+
process(key, value);
|
|
9785
|
+
}
|
|
9786
|
+
});
|
|
9787
|
+
return formData;
|
|
9788
|
+
}
|
|
9789
|
+
return undefined;
|
|
9790
|
+
};
|
|
9791
|
+
const resolve = (options, resolver) => __awaiter(void 0, void 0, void 0, function* () {
|
|
9792
|
+
if (typeof resolver === 'function') {
|
|
9793
|
+
return resolver(options);
|
|
9794
|
+
}
|
|
9795
|
+
return resolver;
|
|
9796
|
+
});
|
|
9797
|
+
const getHeaders = (config, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
9798
|
+
const [token, username, password, additionalHeaders] = yield Promise.all([resolve(options, config.TOKEN), resolve(options, config.USERNAME), resolve(options, config.PASSWORD), resolve(options, config.HEADERS)]);
|
|
9799
|
+
const headers = Object.entries(Object.assign(Object.assign({
|
|
9800
|
+
Accept: 'application/json'
|
|
9801
|
+
}, additionalHeaders), options.headers)).filter(([_, value]) => isDefined(value)).reduce((headers, [key, value]) => Object.assign(Object.assign({}, headers), {
|
|
9802
|
+
[key]: String(value)
|
|
9803
|
+
}), {});
|
|
9804
|
+
if (isStringWithValue(token)) {
|
|
9805
|
+
headers['Authorization'] = `Bearer ${token}`;
|
|
9806
|
+
}
|
|
9807
|
+
if (isStringWithValue(username) && isStringWithValue(password)) {
|
|
9808
|
+
const credentials = base64(`${username}:${password}`);
|
|
9809
|
+
headers['Authorization'] = `Basic ${credentials}`;
|
|
9810
|
+
}
|
|
9811
|
+
if (options.body !== undefined) {
|
|
9812
|
+
if (options.mediaType) {
|
|
9813
|
+
headers['Content-Type'] = options.mediaType;
|
|
9814
|
+
} else if (isBlob(options.body)) {
|
|
9815
|
+
headers['Content-Type'] = options.body.type || 'application/octet-stream';
|
|
9816
|
+
} else if (isString(options.body)) {
|
|
9817
|
+
headers['Content-Type'] = 'text/plain';
|
|
9818
|
+
} else if (!isFormData(options.body)) {
|
|
9819
|
+
headers['Content-Type'] = 'application/json';
|
|
9692
9820
|
}
|
|
9693
|
-
return headers;
|
|
9694
|
-
});
|
|
9695
|
-
}
|
|
9696
|
-
function getRequestBody(options) {
|
|
9697
|
-
var _a;
|
|
9698
|
-
if (options.formData) {
|
|
9699
|
-
return getFormData(options.formData);
|
|
9700
9821
|
}
|
|
9701
|
-
|
|
9822
|
+
return new Headers(headers);
|
|
9823
|
+
});
|
|
9824
|
+
const getRequestBody = options => {
|
|
9825
|
+
var _a;
|
|
9826
|
+
if (options.body !== undefined) {
|
|
9702
9827
|
if ((_a = options.mediaType) === null || _a === void 0 ? void 0 : _a.includes('/json')) {
|
|
9703
9828
|
return JSON.stringify(options.body);
|
|
9704
|
-
} else if (isString(options.body) || isBlob(options.body)) {
|
|
9829
|
+
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
|
9705
9830
|
return options.body;
|
|
9706
9831
|
} else {
|
|
9707
9832
|
return JSON.stringify(options.body);
|
|
9708
9833
|
}
|
|
9709
9834
|
}
|
|
9710
9835
|
return undefined;
|
|
9711
|
-
}
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9836
|
+
};
|
|
9837
|
+
const sendRequest = (config, options, url, body, formData, headers, onCancel) => __awaiter(void 0, void 0, void 0, function* () {
|
|
9838
|
+
const controller = new AbortController();
|
|
9839
|
+
const request = {
|
|
9840
|
+
headers,
|
|
9841
|
+
body: body !== null && body !== void 0 ? body : formData,
|
|
9842
|
+
method: options.method,
|
|
9843
|
+
signal: controller.signal
|
|
9844
|
+
};
|
|
9845
|
+
onCancel(() => controller.abort());
|
|
9846
|
+
return yield fetch(url, request);
|
|
9847
|
+
});
|
|
9848
|
+
const getResponseHeader = (response, responseHeader) => {
|
|
9723
9849
|
if (responseHeader) {
|
|
9724
9850
|
const content = response.headers.get(responseHeader);
|
|
9725
9851
|
if (isString(content)) {
|
|
9726
9852
|
return content;
|
|
9727
9853
|
}
|
|
9728
9854
|
}
|
|
9729
|
-
return
|
|
9730
|
-
}
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
}
|
|
9855
|
+
return undefined;
|
|
9856
|
+
};
|
|
9857
|
+
const getResponseBody = response => __awaiter(void 0, void 0, void 0, function* () {
|
|
9858
|
+
if (response.status !== 204) {
|
|
9859
|
+
try {
|
|
9860
|
+
const contentType = response.headers.get('Content-Type');
|
|
9861
|
+
if (contentType) {
|
|
9862
|
+
const jsonTypes = ['application/json', 'application/problem+json'];
|
|
9863
|
+
const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type));
|
|
9864
|
+
if (isJSON) {
|
|
9865
|
+
return yield response.json();
|
|
9866
|
+
} else {
|
|
9867
|
+
return yield response.text();
|
|
9743
9868
|
}
|
|
9744
|
-
} catch (error) {
|
|
9745
|
-
console.error(error);
|
|
9746
9869
|
}
|
|
9870
|
+
} catch (error) {
|
|
9871
|
+
console.error(error);
|
|
9747
9872
|
}
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
}
|
|
9751
|
-
|
|
9873
|
+
}
|
|
9874
|
+
return undefined;
|
|
9875
|
+
});
|
|
9876
|
+
const catchErrorCodes = (options, result) => {
|
|
9877
|
+
var _a, _b;
|
|
9752
9878
|
const errors = Object.assign({
|
|
9753
9879
|
400: 'Bad Request',
|
|
9754
9880
|
401: 'Unauthorized',
|
|
@@ -9760,35 +9886,54 @@ function catchErrors(options, result) {
|
|
|
9760
9886
|
}, options.errors);
|
|
9761
9887
|
const error = errors[result.status];
|
|
9762
9888
|
if (error) {
|
|
9763
|
-
throw new ApiError(result, error);
|
|
9889
|
+
throw new ApiError(options, result, error);
|
|
9764
9890
|
}
|
|
9765
9891
|
if (!result.ok) {
|
|
9766
|
-
|
|
9892
|
+
const errorStatus = (_a = result.status) !== null && _a !== void 0 ? _a : 'unknown';
|
|
9893
|
+
const errorStatusText = (_b = result.statusText) !== null && _b !== void 0 ? _b : 'unknown';
|
|
9894
|
+
const errorBody = (() => {
|
|
9895
|
+
try {
|
|
9896
|
+
return JSON.stringify(result.body, null, 2);
|
|
9897
|
+
} catch (e) {
|
|
9898
|
+
return undefined;
|
|
9899
|
+
}
|
|
9900
|
+
})();
|
|
9901
|
+
throw new ApiError(options, result, `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`);
|
|
9767
9902
|
}
|
|
9768
|
-
}
|
|
9903
|
+
};
|
|
9769
9904
|
/**
|
|
9770
|
-
* Request
|
|
9771
|
-
* @param
|
|
9772
|
-
* @
|
|
9905
|
+
* Request method
|
|
9906
|
+
* @param config The OpenAPI configuration object
|
|
9907
|
+
* @param options The request options from the service
|
|
9908
|
+
* @returns CancelablePromise<T>
|
|
9773
9909
|
* @throws ApiError
|
|
9774
9910
|
*/
|
|
9775
|
-
|
|
9776
|
-
return __awaiter(
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9911
|
+
const request = (config, options) => {
|
|
9912
|
+
return new CancelablePromise((resolve, reject, onCancel) => __awaiter(void 0, void 0, void 0, function* () {
|
|
9913
|
+
try {
|
|
9914
|
+
const url = getUrl(config, options);
|
|
9915
|
+
const formData = getFormData(options);
|
|
9916
|
+
const body = getRequestBody(options);
|
|
9917
|
+
const headers = yield getHeaders(config, options);
|
|
9918
|
+
if (!onCancel.isCancelled) {
|
|
9919
|
+
const response = yield sendRequest(config, options, url, body, formData, headers, onCancel);
|
|
9920
|
+
const responseBody = yield getResponseBody(response);
|
|
9921
|
+
const responseHeader = getResponseHeader(response, options.responseHeader);
|
|
9922
|
+
const result = {
|
|
9923
|
+
url,
|
|
9924
|
+
ok: response.ok,
|
|
9925
|
+
status: response.status,
|
|
9926
|
+
statusText: response.statusText,
|
|
9927
|
+
body: responseHeader !== null && responseHeader !== void 0 ? responseHeader : responseBody
|
|
9928
|
+
};
|
|
9929
|
+
catchErrorCodes(options, result);
|
|
9930
|
+
resolve(result.body);
|
|
9931
|
+
}
|
|
9932
|
+
} catch (error) {
|
|
9933
|
+
reject(error);
|
|
9934
|
+
}
|
|
9935
|
+
}));
|
|
9936
|
+
};
|
|
9792
9937
|
|
|
9793
9938
|
class DashboardsService {
|
|
9794
9939
|
/**
|
|
@@ -9800,7 +9945,7 @@ class DashboardsService {
|
|
|
9800
9945
|
* @param sort Sort ordering to apply to the query.
|
|
9801
9946
|
* @param filter List of filters (each filter is a separate query param, and they are OR'ed).
|
|
9802
9947
|
*
|
|
9803
|
-
* * **Filterable field names**: author_fullname, author_id, bi_type, categories, created_dt, dataset_id, description, external_embedding_id, external_id, id, is_ootb_dashboard, lifecycle_state, name, target_apps, updated_by_fullname, updated_by_id, updated_dt
|
|
9948
|
+
* * **Filterable field names**: author_fullname, author_id, bi_type, categories, created_dt, dataset_id, description, external_embedding_id, external_id, featured, id, is_ootb_dashboard, lifecycle_state, name, target_apps, updated_by_fullname, updated_by_id, updated_dt
|
|
9804
9949
|
* * **Searchable field names**: author_fullname, categories, description, name, updated_by_fullname
|
|
9805
9950
|
*
|
|
9806
9951
|
* @param favorite Boolean flag to only return dashboards marked as favorites.
|
|
@@ -9819,39 +9964,36 @@ class DashboardsService {
|
|
|
9819
9964
|
* @returns Error Default error response
|
|
9820
9965
|
* @throws ApiError
|
|
9821
9966
|
*/
|
|
9822
|
-
static getDashboards() {
|
|
9823
|
-
return
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
}
|
|
9853
|
-
});
|
|
9854
|
-
return result.body;
|
|
9967
|
+
static getDashboards(xDigitalaiAccountId = null, start, count = 20, sort = 'id', filter, favorite = null, q = null, authorFullname = null, authorId = null, biType = 'MICROSTRATEGY', description = null, id = null, isOotbDashboard = null, lifecycleState = null, name = null, targetApp = null, viewModified = false) {
|
|
9968
|
+
return request(OpenAPI, {
|
|
9969
|
+
method: 'GET',
|
|
9970
|
+
url: '/metadata/bi/dashboards',
|
|
9971
|
+
headers: {
|
|
9972
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
9973
|
+
},
|
|
9974
|
+
query: {
|
|
9975
|
+
start: start,
|
|
9976
|
+
count: count,
|
|
9977
|
+
sort: sort,
|
|
9978
|
+
filter: filter,
|
|
9979
|
+
favorite: favorite,
|
|
9980
|
+
q: q,
|
|
9981
|
+
author_fullname: authorFullname,
|
|
9982
|
+
author_id: authorId,
|
|
9983
|
+
bi_type: biType,
|
|
9984
|
+
description: description,
|
|
9985
|
+
id: id,
|
|
9986
|
+
is_ootb_dashboard: isOotbDashboard,
|
|
9987
|
+
lifecycle_state: lifecycleState,
|
|
9988
|
+
name: name,
|
|
9989
|
+
target_app: targetApp,
|
|
9990
|
+
view_modified: viewModified
|
|
9991
|
+
},
|
|
9992
|
+
errors: {
|
|
9993
|
+
400: `An unknown parameter was specified.`,
|
|
9994
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
9995
|
+
422: `Unprocessable Entity`
|
|
9996
|
+
}
|
|
9855
9997
|
});
|
|
9856
9998
|
}
|
|
9857
9999
|
/**
|
|
@@ -9863,23 +10005,20 @@ class DashboardsService {
|
|
|
9863
10005
|
* @returns Error Default error response
|
|
9864
10006
|
* @throws ApiError
|
|
9865
10007
|
*/
|
|
9866
|
-
static postDashboards(
|
|
9867
|
-
return
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
}
|
|
9881
|
-
});
|
|
9882
|
-
return result.body;
|
|
10008
|
+
static postDashboards(requestBody, xDigitalaiAccountId = null) {
|
|
10009
|
+
return request(OpenAPI, {
|
|
10010
|
+
method: 'POST',
|
|
10011
|
+
url: '/metadata/bi/dashboards',
|
|
10012
|
+
headers: {
|
|
10013
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10014
|
+
},
|
|
10015
|
+
body: requestBody,
|
|
10016
|
+
mediaType: 'application/json',
|
|
10017
|
+
errors: {
|
|
10018
|
+
400: `The provided data is not valid.`,
|
|
10019
|
+
404: `The dashboard could not be found.`,
|
|
10020
|
+
422: `Unprocessable Entity`
|
|
10021
|
+
}
|
|
9883
10022
|
});
|
|
9884
10023
|
}
|
|
9885
10024
|
/**
|
|
@@ -9891,21 +10030,21 @@ class DashboardsService {
|
|
|
9891
10030
|
* @returns Error Default error response
|
|
9892
10031
|
* @throws ApiError
|
|
9893
10032
|
*/
|
|
9894
|
-
static getDashboard(
|
|
9895
|
-
return
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
10033
|
+
static getDashboard(dashboardId, xDigitalaiAccountId = null) {
|
|
10034
|
+
return request(OpenAPI, {
|
|
10035
|
+
method: 'GET',
|
|
10036
|
+
url: '/metadata/bi/dashboards/{dashboard_id}',
|
|
10037
|
+
path: {
|
|
10038
|
+
dashboard_id: dashboardId
|
|
10039
|
+
},
|
|
10040
|
+
headers: {
|
|
10041
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10042
|
+
},
|
|
10043
|
+
errors: {
|
|
10044
|
+
400: `An unknown parameter was specified.`,
|
|
10045
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10046
|
+
404: `The dashboard could not be found.`
|
|
10047
|
+
}
|
|
9909
10048
|
});
|
|
9910
10049
|
}
|
|
9911
10050
|
/**
|
|
@@ -9919,28 +10058,28 @@ class DashboardsService {
|
|
|
9919
10058
|
* @returns Error Default error response
|
|
9920
10059
|
* @throws ApiError
|
|
9921
10060
|
*/
|
|
9922
|
-
static putDashboard(
|
|
9923
|
-
return
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
10061
|
+
static putDashboard(dashboardId, requestBody, xDigitalaiAccountId = null, isSync = null) {
|
|
10062
|
+
return request(OpenAPI, {
|
|
10063
|
+
method: 'PUT',
|
|
10064
|
+
url: '/metadata/bi/dashboards/{dashboard_id}',
|
|
10065
|
+
path: {
|
|
10066
|
+
dashboard_id: dashboardId
|
|
10067
|
+
},
|
|
10068
|
+
headers: {
|
|
10069
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10070
|
+
},
|
|
10071
|
+
query: {
|
|
10072
|
+
is_sync: isSync
|
|
10073
|
+
},
|
|
10074
|
+
body: requestBody,
|
|
10075
|
+
mediaType: 'application/json',
|
|
10076
|
+
errors: {
|
|
10077
|
+
400: `The provided data is not valid.`,
|
|
10078
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10079
|
+
404: `The dashboard could not be found.`,
|
|
10080
|
+
409: `Unable to update object because IDs are different.`,
|
|
10081
|
+
422: `Unprocessable Entity`
|
|
10082
|
+
}
|
|
9944
10083
|
});
|
|
9945
10084
|
}
|
|
9946
10085
|
/**
|
|
@@ -9954,28 +10093,28 @@ class DashboardsService {
|
|
|
9954
10093
|
* @returns Error Default error response
|
|
9955
10094
|
* @throws ApiError
|
|
9956
10095
|
*/
|
|
9957
|
-
static patchDashboard(
|
|
9958
|
-
return
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
10096
|
+
static patchDashboard(dashboardId, requestBody, xDigitalaiAccountId = null, isSync = null) {
|
|
10097
|
+
return request(OpenAPI, {
|
|
10098
|
+
method: 'PATCH',
|
|
10099
|
+
url: '/metadata/bi/dashboards/{dashboard_id}',
|
|
10100
|
+
path: {
|
|
10101
|
+
dashboard_id: dashboardId
|
|
10102
|
+
},
|
|
10103
|
+
headers: {
|
|
10104
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10105
|
+
},
|
|
10106
|
+
query: {
|
|
10107
|
+
is_sync: isSync
|
|
10108
|
+
},
|
|
10109
|
+
body: requestBody,
|
|
10110
|
+
mediaType: 'application/json',
|
|
10111
|
+
errors: {
|
|
10112
|
+
400: `The provided data is not valid.`,
|
|
10113
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10114
|
+
404: `The dashboard could not be found.`,
|
|
10115
|
+
409: `Unable to update object because IDs are different.`,
|
|
10116
|
+
422: `Unprocessable Entity`
|
|
10117
|
+
}
|
|
9979
10118
|
});
|
|
9980
10119
|
}
|
|
9981
10120
|
/**
|
|
@@ -9986,16 +10125,16 @@ class DashboardsService {
|
|
|
9986
10125
|
* @returns Error Default error response
|
|
9987
10126
|
* @throws ApiError
|
|
9988
10127
|
*/
|
|
9989
|
-
static deleteDashboard(
|
|
9990
|
-
return
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
10128
|
+
static deleteDashboard(dashboardId, xDigitalaiAccountId = null) {
|
|
10129
|
+
return request(OpenAPI, {
|
|
10130
|
+
method: 'DELETE',
|
|
10131
|
+
url: '/metadata/bi/dashboards/{dashboard_id}',
|
|
10132
|
+
path: {
|
|
10133
|
+
dashboard_id: dashboardId
|
|
10134
|
+
},
|
|
10135
|
+
headers: {
|
|
10136
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10137
|
+
}
|
|
9999
10138
|
});
|
|
10000
10139
|
}
|
|
10001
10140
|
/**
|
|
@@ -10007,21 +10146,21 @@ class DashboardsService {
|
|
|
10007
10146
|
* @returns Error Default error response
|
|
10008
10147
|
* @throws ApiError
|
|
10009
10148
|
*/
|
|
10010
|
-
static getInProgressDashboard(
|
|
10011
|
-
return
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10149
|
+
static getInProgressDashboard(dashboardId, xDigitalaiAccountId = null) {
|
|
10150
|
+
return request(OpenAPI, {
|
|
10151
|
+
method: 'GET',
|
|
10152
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/inprogress',
|
|
10153
|
+
path: {
|
|
10154
|
+
dashboard_id: dashboardId
|
|
10155
|
+
},
|
|
10156
|
+
headers: {
|
|
10157
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10158
|
+
},
|
|
10159
|
+
errors: {
|
|
10160
|
+
400: `An unknown parameter was specified.`,
|
|
10161
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10162
|
+
404: `The dashboard could not be found.`
|
|
10163
|
+
}
|
|
10025
10164
|
});
|
|
10026
10165
|
}
|
|
10027
10166
|
/**
|
|
@@ -10034,24 +10173,24 @@ class DashboardsService {
|
|
|
10034
10173
|
* @returns Error Default error response
|
|
10035
10174
|
* @throws ApiError
|
|
10036
10175
|
*/
|
|
10037
|
-
static postInProgressDashboard(
|
|
10038
|
-
return
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10176
|
+
static postInProgressDashboard(dashboardId, xDigitalaiAccountId = null, requestBody) {
|
|
10177
|
+
return request(OpenAPI, {
|
|
10178
|
+
method: 'POST',
|
|
10179
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/inprogress',
|
|
10180
|
+
path: {
|
|
10181
|
+
dashboard_id: dashboardId
|
|
10182
|
+
},
|
|
10183
|
+
headers: {
|
|
10184
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10185
|
+
},
|
|
10186
|
+
body: requestBody,
|
|
10187
|
+
mediaType: 'application/json',
|
|
10188
|
+
errors: {
|
|
10189
|
+
400: `The provided data is not valid.`,
|
|
10190
|
+
404: `The dashboard could not be found.`,
|
|
10191
|
+
409: `Unable to update object because IDs are different.`,
|
|
10192
|
+
422: `Unprocessable Entity`
|
|
10193
|
+
}
|
|
10055
10194
|
});
|
|
10056
10195
|
}
|
|
10057
10196
|
/**
|
|
@@ -10065,28 +10204,28 @@ class DashboardsService {
|
|
|
10065
10204
|
* @returns Error Default error response
|
|
10066
10205
|
* @throws ApiError
|
|
10067
10206
|
*/
|
|
10068
|
-
static putInProgressDashboard(
|
|
10069
|
-
return
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
|
|
10207
|
+
static putInProgressDashboard(dashboardId, requestBody, xDigitalaiAccountId = null, isSync = null) {
|
|
10208
|
+
return request(OpenAPI, {
|
|
10209
|
+
method: 'PUT',
|
|
10210
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/inprogress',
|
|
10211
|
+
path: {
|
|
10212
|
+
dashboard_id: dashboardId
|
|
10213
|
+
},
|
|
10214
|
+
headers: {
|
|
10215
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10216
|
+
},
|
|
10217
|
+
query: {
|
|
10218
|
+
is_sync: isSync
|
|
10219
|
+
},
|
|
10220
|
+
body: requestBody,
|
|
10221
|
+
mediaType: 'application/json',
|
|
10222
|
+
errors: {
|
|
10223
|
+
400: `The provided data is not valid.`,
|
|
10224
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10225
|
+
404: `The dashboard could not be found.`,
|
|
10226
|
+
409: `Unable to update object because IDs are different.`,
|
|
10227
|
+
422: `Unprocessable Entity`
|
|
10228
|
+
}
|
|
10090
10229
|
});
|
|
10091
10230
|
}
|
|
10092
10231
|
/**
|
|
@@ -10100,28 +10239,28 @@ class DashboardsService {
|
|
|
10100
10239
|
* @returns Error Default error response
|
|
10101
10240
|
* @throws ApiError
|
|
10102
10241
|
*/
|
|
10103
|
-
static patchInProgressDashboard(
|
|
10104
|
-
return
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10242
|
+
static patchInProgressDashboard(dashboardId, requestBody, xDigitalaiAccountId = null, isSync = null) {
|
|
10243
|
+
return request(OpenAPI, {
|
|
10244
|
+
method: 'PATCH',
|
|
10245
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/inprogress',
|
|
10246
|
+
path: {
|
|
10247
|
+
dashboard_id: dashboardId
|
|
10248
|
+
},
|
|
10249
|
+
headers: {
|
|
10250
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10251
|
+
},
|
|
10252
|
+
query: {
|
|
10253
|
+
is_sync: isSync
|
|
10254
|
+
},
|
|
10255
|
+
body: requestBody,
|
|
10256
|
+
mediaType: 'application/json',
|
|
10257
|
+
errors: {
|
|
10258
|
+
400: `The provided data is not valid.`,
|
|
10259
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10260
|
+
404: `The dashboard could not be found.`,
|
|
10261
|
+
409: `Unable to update object because IDs are different.`,
|
|
10262
|
+
422: `Unprocessable Entity`
|
|
10263
|
+
}
|
|
10125
10264
|
});
|
|
10126
10265
|
}
|
|
10127
10266
|
/**
|
|
@@ -10133,22 +10272,22 @@ class DashboardsService {
|
|
|
10133
10272
|
* @returns Error Default error response
|
|
10134
10273
|
* @throws ApiError
|
|
10135
10274
|
*/
|
|
10136
|
-
static deleteInProgressDashboard(
|
|
10137
|
-
return
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10275
|
+
static deleteInProgressDashboard(dashboardId, xDigitalaiAccountId = null, publish = false) {
|
|
10276
|
+
return request(OpenAPI, {
|
|
10277
|
+
method: 'DELETE',
|
|
10278
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/inprogress',
|
|
10279
|
+
path: {
|
|
10280
|
+
dashboard_id: dashboardId
|
|
10281
|
+
},
|
|
10282
|
+
headers: {
|
|
10283
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10284
|
+
},
|
|
10285
|
+
query: {
|
|
10286
|
+
publish: publish
|
|
10287
|
+
},
|
|
10288
|
+
errors: {
|
|
10289
|
+
422: `Unprocessable Entity`
|
|
10290
|
+
}
|
|
10152
10291
|
});
|
|
10153
10292
|
}
|
|
10154
10293
|
/**
|
|
@@ -10161,23 +10300,23 @@ class DashboardsService {
|
|
|
10161
10300
|
* @returns Error Default error response
|
|
10162
10301
|
* @throws ApiError
|
|
10163
10302
|
*/
|
|
10164
|
-
static copyDashboard(
|
|
10165
|
-
return
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10303
|
+
static copyDashboard(dashboardId, xDigitalaiAccountId = null, requestBody) {
|
|
10304
|
+
return request(OpenAPI, {
|
|
10305
|
+
method: 'POST',
|
|
10306
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/copy',
|
|
10307
|
+
path: {
|
|
10308
|
+
dashboard_id: dashboardId
|
|
10309
|
+
},
|
|
10310
|
+
headers: {
|
|
10311
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10312
|
+
},
|
|
10313
|
+
body: requestBody,
|
|
10314
|
+
mediaType: 'application/json',
|
|
10315
|
+
errors: {
|
|
10316
|
+
400: `The provided data is not valid.`,
|
|
10317
|
+
404: `The dashboard could not be found.`,
|
|
10318
|
+
422: `Unprocessable Entity`
|
|
10319
|
+
}
|
|
10181
10320
|
});
|
|
10182
10321
|
}
|
|
10183
10322
|
/**
|
|
@@ -10189,20 +10328,20 @@ class DashboardsService {
|
|
|
10189
10328
|
* @returns Error Default error response
|
|
10190
10329
|
* @throws ApiError
|
|
10191
10330
|
*/
|
|
10192
|
-
static favoriteDashboard(
|
|
10193
|
-
return
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10331
|
+
static favoriteDashboard(dashboardId, xDigitalaiAccountId = null) {
|
|
10332
|
+
return request(OpenAPI, {
|
|
10333
|
+
method: 'POST',
|
|
10334
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/favorite',
|
|
10335
|
+
path: {
|
|
10336
|
+
dashboard_id: dashboardId
|
|
10337
|
+
},
|
|
10338
|
+
headers: {
|
|
10339
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10340
|
+
},
|
|
10341
|
+
errors: {
|
|
10342
|
+
400: `The provided data is not valid.`,
|
|
10343
|
+
404: `The dashboard could not be found.`
|
|
10344
|
+
}
|
|
10206
10345
|
});
|
|
10207
10346
|
}
|
|
10208
10347
|
/**
|
|
@@ -10214,20 +10353,20 @@ class DashboardsService {
|
|
|
10214
10353
|
* @returns Error Default error response
|
|
10215
10354
|
* @throws ApiError
|
|
10216
10355
|
*/
|
|
10217
|
-
static unfavoriteDashboard(
|
|
10218
|
-
return
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10356
|
+
static unfavoriteDashboard(dashboardId, xDigitalaiAccountId = null) {
|
|
10357
|
+
return request(OpenAPI, {
|
|
10358
|
+
method: 'DELETE',
|
|
10359
|
+
url: '/metadata/bi/dashboards/{dashboard_id}/favorite',
|
|
10360
|
+
path: {
|
|
10361
|
+
dashboard_id: dashboardId
|
|
10362
|
+
},
|
|
10363
|
+
headers: {
|
|
10364
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10365
|
+
},
|
|
10366
|
+
errors: {
|
|
10367
|
+
400: `The provided data is not valid.`,
|
|
10368
|
+
404: `The dashboard could not be found.`
|
|
10369
|
+
}
|
|
10231
10370
|
});
|
|
10232
10371
|
}
|
|
10233
10372
|
/**
|
|
@@ -10247,28 +10386,25 @@ class DashboardsService {
|
|
|
10247
10386
|
* @returns Error Default error response
|
|
10248
10387
|
* @throws ApiError
|
|
10249
10388
|
*/
|
|
10250
|
-
static getDashboardsMetadata() {
|
|
10251
|
-
return
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
}
|
|
10270
|
-
});
|
|
10271
|
-
return result.body;
|
|
10389
|
+
static getDashboardsMetadata(xDigitalaiAccountId = null, filter, targetApp = null, biType = 'MICROSTRATEGY', isOotbDashboard = null, lifecycleState = null) {
|
|
10390
|
+
return request(OpenAPI, {
|
|
10391
|
+
method: 'GET',
|
|
10392
|
+
url: '/metadata/bi/dashboards/metadata',
|
|
10393
|
+
headers: {
|
|
10394
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10395
|
+
},
|
|
10396
|
+
query: {
|
|
10397
|
+
filter: filter,
|
|
10398
|
+
target_app: targetApp,
|
|
10399
|
+
bi_type: biType,
|
|
10400
|
+
is_ootb_dashboard: isOotbDashboard,
|
|
10401
|
+
lifecycle_state: lifecycleState
|
|
10402
|
+
},
|
|
10403
|
+
errors: {
|
|
10404
|
+
400: `Given query params are not valid.`,
|
|
10405
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10406
|
+
422: `Unprocessable Entity`
|
|
10407
|
+
}
|
|
10272
10408
|
});
|
|
10273
10409
|
}
|
|
10274
10410
|
}
|
|
@@ -10282,47 +10418,42 @@ class HelpContentService {
|
|
|
10282
10418
|
* @returns Error Default error response
|
|
10283
10419
|
* @throws ApiError
|
|
10284
10420
|
*/
|
|
10285
|
-
static getHelpContent() {
|
|
10286
|
-
return
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
}
|
|
10297
|
-
});
|
|
10298
|
-
return result.body;
|
|
10421
|
+
static getHelpContent(xDigitalaiAccountId = null) {
|
|
10422
|
+
return request(OpenAPI, {
|
|
10423
|
+
method: 'GET',
|
|
10424
|
+
url: '/metadata/bi/helpcontent',
|
|
10425
|
+
headers: {
|
|
10426
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10427
|
+
},
|
|
10428
|
+
errors: {
|
|
10429
|
+
400: `An unknown parameter was specified.`,
|
|
10430
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`
|
|
10431
|
+
}
|
|
10299
10432
|
});
|
|
10300
10433
|
}
|
|
10301
10434
|
/**
|
|
10302
10435
|
* Upload an HTML file to be displayed as help content.
|
|
10303
10436
|
* Upload help content.
|
|
10304
|
-
* @param
|
|
10437
|
+
* @param formData
|
|
10305
10438
|
* @param xDigitalaiAccountId Perform the requested operation in the context of the Digital.ai account represented by this GUID. <em>Requires elevated permissions.</em>
|
|
10306
10439
|
* @returns HelpContent Content uploaded.
|
|
10307
10440
|
* @returns Error Default error response
|
|
10308
10441
|
* @throws ApiError
|
|
10309
10442
|
*/
|
|
10310
|
-
static createHelpContent(
|
|
10311
|
-
return
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
});
|
|
10325
|
-
return result.body;
|
|
10443
|
+
static createHelpContent(formData, xDigitalaiAccountId = null) {
|
|
10444
|
+
return request(OpenAPI, {
|
|
10445
|
+
method: 'POST',
|
|
10446
|
+
url: '/metadata/bi/helpcontent',
|
|
10447
|
+
headers: {
|
|
10448
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10449
|
+
},
|
|
10450
|
+
formData: formData,
|
|
10451
|
+
mediaType: 'multipart/form-data',
|
|
10452
|
+
errors: {
|
|
10453
|
+
400: `The provided data is not valid.`,
|
|
10454
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10455
|
+
422: `Unprocessable Entity`
|
|
10456
|
+
}
|
|
10326
10457
|
});
|
|
10327
10458
|
}
|
|
10328
10459
|
/**
|
|
@@ -10334,50 +10465,51 @@ class HelpContentService {
|
|
|
10334
10465
|
* @returns Error Default error response
|
|
10335
10466
|
* @throws ApiError
|
|
10336
10467
|
*/
|
|
10337
|
-
static getHelpContentById(
|
|
10338
|
-
return
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10468
|
+
static getHelpContentById(helpContentId, xDigitalaiAccountId = null) {
|
|
10469
|
+
return request(OpenAPI, {
|
|
10470
|
+
method: 'GET',
|
|
10471
|
+
url: '/metadata/bi/helpcontent/{help_content_id}',
|
|
10472
|
+
path: {
|
|
10473
|
+
help_content_id: helpContentId
|
|
10474
|
+
},
|
|
10475
|
+
headers: {
|
|
10476
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10477
|
+
},
|
|
10478
|
+
errors: {
|
|
10479
|
+
400: `An unknown parameter was specified.`,
|
|
10480
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10481
|
+
404: `The help content could not be found.`
|
|
10482
|
+
}
|
|
10352
10483
|
});
|
|
10353
10484
|
}
|
|
10354
10485
|
/**
|
|
10355
10486
|
* Update a help content definition.
|
|
10356
10487
|
* Update a single help content definition, selected by ID.
|
|
10357
10488
|
* @param helpContentId
|
|
10358
|
-
* @param
|
|
10489
|
+
* @param formData
|
|
10359
10490
|
* @param xDigitalaiAccountId Perform the requested operation in the context of the Digital.ai account represented by this GUID. <em>Requires elevated permissions.</em>
|
|
10360
10491
|
* @returns HelpContent OK
|
|
10361
10492
|
* @returns Error Default error response
|
|
10362
10493
|
* @throws ApiError
|
|
10363
10494
|
*/
|
|
10364
|
-
static putHelpContentById(
|
|
10365
|
-
return
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10495
|
+
static putHelpContentById(helpContentId, formData, xDigitalaiAccountId = null) {
|
|
10496
|
+
return request(OpenAPI, {
|
|
10497
|
+
method: 'PUT',
|
|
10498
|
+
url: '/metadata/bi/helpcontent/{help_content_id}',
|
|
10499
|
+
path: {
|
|
10500
|
+
help_content_id: helpContentId
|
|
10501
|
+
},
|
|
10502
|
+
headers: {
|
|
10503
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10504
|
+
},
|
|
10505
|
+
formData: formData,
|
|
10506
|
+
mediaType: 'multipart/form-data',
|
|
10507
|
+
errors: {
|
|
10508
|
+
400: `An unknown parameter was specified.`,
|
|
10509
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10510
|
+
404: `The help content could not be found.`,
|
|
10511
|
+
422: `Unprocessable Entity`
|
|
10512
|
+
}
|
|
10381
10513
|
});
|
|
10382
10514
|
}
|
|
10383
10515
|
/**
|
|
@@ -10388,21 +10520,21 @@ class HelpContentService {
|
|
|
10388
10520
|
* @returns Error Default error response
|
|
10389
10521
|
* @throws ApiError
|
|
10390
10522
|
*/
|
|
10391
|
-
static deleteHelpContentById(
|
|
10392
|
-
return
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10523
|
+
static deleteHelpContentById(helpContentId, xDigitalaiAccountId = null) {
|
|
10524
|
+
return request(OpenAPI, {
|
|
10525
|
+
method: 'DELETE',
|
|
10526
|
+
url: '/metadata/bi/helpcontent/{help_content_id}',
|
|
10527
|
+
path: {
|
|
10528
|
+
help_content_id: helpContentId
|
|
10529
|
+
},
|
|
10530
|
+
headers: {
|
|
10531
|
+
'X-Digitalai-Account-ID': xDigitalaiAccountId
|
|
10532
|
+
},
|
|
10533
|
+
errors: {
|
|
10534
|
+
400: `An unknown parameter was specified.`,
|
|
10535
|
+
401: `Could not resolve a valid Tenant from the provided API Token.`,
|
|
10536
|
+
404: `The help content could not be found.`
|
|
10537
|
+
}
|
|
10406
10538
|
});
|
|
10407
10539
|
}
|
|
10408
10540
|
}
|
|
@@ -10951,6 +11083,9 @@ const DotMetadataApiProvider = ({
|
|
|
10951
11083
|
if (dashboard.in_progress_changes) {
|
|
10952
11084
|
// If the dashboard is published and has in-progress changes, we need to update the in-progress dashboard
|
|
10953
11085
|
response = yield DashboardsService.patchInProgressDashboard(dashboard.id, updatePayload, accountId, isSync);
|
|
11086
|
+
} else if (Object.keys(updatePayload).length === 1 && 'featured' in updatePayload) {
|
|
11087
|
+
// If the dashboard is published and only update is related to 'featured' flag, we can update the published dashboard directly
|
|
11088
|
+
response = yield DashboardsService.patchDashboard(dashboard.id, updatePayload, accountId, isSync);
|
|
10954
11089
|
} else {
|
|
10955
11090
|
// If the dashboard is published and has no in-progress changes, we need to create an in-progress dashboard
|
|
10956
11091
|
response = yield DashboardsService.postInProgressDashboard(dashboard.id, accountId, updatePayload);
|
|
@@ -11089,18 +11224,18 @@ function addAutoHideDuration(severity) {
|
|
|
11089
11224
|
return severity === 'error' ? null : 10000;
|
|
11090
11225
|
}
|
|
11091
11226
|
|
|
11092
|
-
const rootClassName$
|
|
11227
|
+
const rootClassName$M = 'dot-snackbar';
|
|
11093
11228
|
const StyledSnackbar = styled(Snackbar)`
|
|
11094
11229
|
${({
|
|
11095
11230
|
theme,
|
|
11096
11231
|
width,
|
|
11097
11232
|
$anchorOriginTop
|
|
11098
11233
|
}) => css`
|
|
11099
|
-
&.${rootClassName$
|
|
11234
|
+
&.${rootClassName$M} {
|
|
11100
11235
|
.MuiAlert-message {
|
|
11101
11236
|
word-break: break-word;
|
|
11102
11237
|
}
|
|
11103
|
-
.${rootClassName$
|
|
11238
|
+
.${rootClassName$1o} {
|
|
11104
11239
|
align-items: flex-start;
|
|
11105
11240
|
}
|
|
11106
11241
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -11153,7 +11288,7 @@ const DotSnackbar = ({
|
|
|
11153
11288
|
}) => {
|
|
11154
11289
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
11155
11290
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
11156
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11291
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
11157
11292
|
const handleSnackbarClose = reason => {
|
|
11158
11293
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
11159
11294
|
onClose();
|
|
@@ -11223,10 +11358,10 @@ const DotSnackbar = ({
|
|
|
11223
11358
|
});
|
|
11224
11359
|
};
|
|
11225
11360
|
|
|
11226
|
-
const rootClassName$
|
|
11361
|
+
const rootClassName$L = 'dot-snackbar-container';
|
|
11227
11362
|
const StyledSnackbarContainer = styled.div`
|
|
11228
11363
|
${() => css`
|
|
11229
|
-
&.${rootClassName$
|
|
11364
|
+
&.${rootClassName$L} {
|
|
11230
11365
|
position: absolute;
|
|
11231
11366
|
top: 0;
|
|
11232
11367
|
width: 250px;
|
|
@@ -11258,10 +11393,10 @@ const DotSnackbarContainer = ({
|
|
|
11258
11393
|
};
|
|
11259
11394
|
}
|
|
11260
11395
|
return jsx(StyledSnackbarContainer, {
|
|
11261
|
-
className: rootClassName$
|
|
11396
|
+
className: rootClassName$L,
|
|
11262
11397
|
children: jsx("div", {
|
|
11263
|
-
className: rootClassName$
|
|
11264
|
-
"data-testid": rootClassName$
|
|
11398
|
+
className: rootClassName$L,
|
|
11399
|
+
"data-testid": rootClassName$L,
|
|
11265
11400
|
children: alerts.slice().reverse().map(alert => {
|
|
11266
11401
|
return jsx(DotSnackbar, {
|
|
11267
11402
|
autoCloseOnAction: autoCloseOnAction,
|
|
@@ -11335,12 +11470,12 @@ const useEnqueueErrorMessage = error => {
|
|
|
11335
11470
|
}, [error]);
|
|
11336
11471
|
};
|
|
11337
11472
|
|
|
11338
|
-
const rootClassName$
|
|
11473
|
+
const rootClassName$K = 'dot-dashboard-details';
|
|
11339
11474
|
const StyledDashboardDetails = styled(DotDrawer)`
|
|
11340
11475
|
${({
|
|
11341
11476
|
theme
|
|
11342
11477
|
}) => css`
|
|
11343
|
-
&.${rootClassName$
|
|
11478
|
+
&.${rootClassName$K} {
|
|
11344
11479
|
.dot-drawer-paper {
|
|
11345
11480
|
padding: 0;
|
|
11346
11481
|
width: 382px;
|
|
@@ -11466,7 +11601,7 @@ const DotDashboardDetailsView = ({
|
|
|
11466
11601
|
modifiedAuthorUser
|
|
11467
11602
|
}) => {
|
|
11468
11603
|
var _a, _b;
|
|
11469
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11604
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className);
|
|
11470
11605
|
const closeHandler = useCallback(event => {
|
|
11471
11606
|
onClose && onClose(event);
|
|
11472
11607
|
}, [onClose]);
|
|
@@ -12128,12 +12263,12 @@ function DotDashboardDialog({
|
|
|
12128
12263
|
});
|
|
12129
12264
|
}
|
|
12130
12265
|
|
|
12131
|
-
const rootClassName$
|
|
12266
|
+
const rootClassName$J = 'dot-impact-dialog';
|
|
12132
12267
|
const StyledImpactDialog = styled(DotDialog)`
|
|
12133
12268
|
${({
|
|
12134
12269
|
theme
|
|
12135
12270
|
}) => css`
|
|
12136
|
-
&.${rootClassName$
|
|
12271
|
+
&.${rootClassName$J} {
|
|
12137
12272
|
.high-impact-default-content {
|
|
12138
12273
|
margin-top: ${theme.spacing(2)};
|
|
12139
12274
|
margin-bottom: ${theme.spacing(3)};
|
|
@@ -12239,7 +12374,7 @@ const DotImpactDialog = ({
|
|
|
12239
12374
|
}
|
|
12240
12375
|
return '';
|
|
12241
12376
|
}, [action, capitalize, impact, record]);
|
|
12242
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12377
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className);
|
|
12243
12378
|
return jsx(StyledImpactDialog, {
|
|
12244
12379
|
"data-testid": dataTestId,
|
|
12245
12380
|
className: rootClasses,
|
|
@@ -12808,6 +12943,7 @@ function DotDashboardOptionsMenu({
|
|
|
12808
12943
|
currentUser,
|
|
12809
12944
|
isEdit = false,
|
|
12810
12945
|
menuPlacement,
|
|
12946
|
+
onFeature,
|
|
12811
12947
|
onStartDelete,
|
|
12812
12948
|
onStartDuplicate,
|
|
12813
12949
|
onStartStatusChange,
|
|
@@ -12870,6 +13006,21 @@ function DotDashboardOptionsMenu({
|
|
|
12870
13006
|
const isDraft = !dashboard.parent_id && dashboard.lifecycle_state === DashboardView.lifecycle_state.DRAFT;
|
|
12871
13007
|
const isPublished = dashboard.parent_id || dashboard.lifecycle_state === DashboardView.lifecycle_state.PUBLISHED;
|
|
12872
13008
|
const menuItems = [];
|
|
13009
|
+
if (onFeature && isPublished && !dashboard.in_progress_changes) {
|
|
13010
|
+
const label = dashboard.featured ? 'Remove from featured page' : 'Add to featured page';
|
|
13011
|
+
menuItems.push({
|
|
13012
|
+
children: jsx(DotButton, {
|
|
13013
|
+
"data-testid": `feature-dashboard-action-button-${dashboard.id}`,
|
|
13014
|
+
ariaLabel: label,
|
|
13015
|
+
type: "text",
|
|
13016
|
+
startIcon: jsx(DotIcon, {
|
|
13017
|
+
iconId: "add-outlined"
|
|
13018
|
+
}),
|
|
13019
|
+
children: label
|
|
13020
|
+
}, `feature-dashboard-action-button-${dashboard.id}`),
|
|
13021
|
+
key: 'feature'
|
|
13022
|
+
});
|
|
13023
|
+
}
|
|
12873
13024
|
if (!isEdit && onViewMode && !dashboard.is_ootb_dashboard && !dashboardLocked(dashboard, currentUser)) {
|
|
12874
13025
|
menuItems.push({
|
|
12875
13026
|
children: jsx(DotButton, {
|
|
@@ -13067,6 +13218,9 @@ function DotDashboardOptionsMenu({
|
|
|
13067
13218
|
case 'unpublish':
|
|
13068
13219
|
onStartStatusChange(dashboard, DashboardView.lifecycle_state.DRAFT);
|
|
13069
13220
|
break;
|
|
13221
|
+
case 'feature':
|
|
13222
|
+
onFeature(dashboard);
|
|
13223
|
+
break;
|
|
13070
13224
|
}
|
|
13071
13225
|
handleMenuClose();
|
|
13072
13226
|
}, [menuItems, handleMenuClose]);
|
|
@@ -13611,7 +13765,7 @@ function DotDashboardHeader({
|
|
|
13611
13765
|
});
|
|
13612
13766
|
}
|
|
13613
13767
|
|
|
13614
|
-
const rootClassName$
|
|
13768
|
+
const rootClassName$I = 'dot-empty-state';
|
|
13615
13769
|
const emptyStateImageSizing = {
|
|
13616
13770
|
xsmall: 9,
|
|
13617
13771
|
dense: 15,
|
|
@@ -13682,9 +13836,9 @@ const StyledEmptyState = styled.div`
|
|
|
13682
13836
|
`}
|
|
13683
13837
|
`;
|
|
13684
13838
|
|
|
13685
|
-
const rootClassName$
|
|
13839
|
+
const rootClassName$H = 'dot-illustration';
|
|
13686
13840
|
const StyledIllustration = styled.span`
|
|
13687
|
-
&.${rootClassName$
|
|
13841
|
+
&.${rootClassName$H} {
|
|
13688
13842
|
display: inline-block;
|
|
13689
13843
|
}
|
|
13690
13844
|
`;
|
|
@@ -13701,17 +13855,17 @@ const DotIllustration = ({
|
|
|
13701
13855
|
tooltip,
|
|
13702
13856
|
tooltipPlacement = 'right-end'
|
|
13703
13857
|
}) => {
|
|
13704
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13858
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
13705
13859
|
return jsx(DotTooltip, {
|
|
13706
13860
|
childrenDisplayStyle: "inline-block",
|
|
13707
13861
|
title: tooltip,
|
|
13708
13862
|
placement: tooltipPlacement,
|
|
13709
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
13863
|
+
"data-testid": `${dataTestId || rootClassName$H}-tooltip`,
|
|
13710
13864
|
children: jsx(StyledIllustration, {
|
|
13711
13865
|
"aria-hidden": "false",
|
|
13712
13866
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
13713
13867
|
className: rootClasses,
|
|
13714
|
-
"data-testid": dataTestId || rootClassName$
|
|
13868
|
+
"data-testid": dataTestId || rootClassName$H,
|
|
13715
13869
|
role: ariaRole,
|
|
13716
13870
|
children: jsx("img", {
|
|
13717
13871
|
alt: alt || 'Illustration',
|
|
@@ -13737,7 +13891,7 @@ const DotEmptyState = ({
|
|
|
13737
13891
|
subtitle,
|
|
13738
13892
|
title
|
|
13739
13893
|
}) => {
|
|
13740
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13894
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
13741
13895
|
return jsxs(StyledEmptyState, {
|
|
13742
13896
|
"aria-label": ariaLabel,
|
|
13743
13897
|
className: `${rootClasses} ${size}`,
|
|
@@ -13818,20 +13972,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
13818
13972
|
&.${groupClassName} {
|
|
13819
13973
|
padding-left: ${theme.spacing(2.5)};
|
|
13820
13974
|
|
|
13821
|
-
.${rootClassName$
|
|
13975
|
+
.${rootClassName$V} {
|
|
13822
13976
|
margin: 0;
|
|
13823
13977
|
}
|
|
13824
13978
|
}
|
|
13825
13979
|
`}
|
|
13826
13980
|
`;
|
|
13827
13981
|
|
|
13828
|
-
const rootClassName$
|
|
13982
|
+
const rootClassName$G = 'dot-date-picker';
|
|
13829
13983
|
const popperClassName = 'dot-date-picker-popper';
|
|
13830
13984
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
13831
13985
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13832
13986
|
const StyledDatePickerContainer = styled.div`
|
|
13833
13987
|
${() => css`
|
|
13834
|
-
&.${rootClassName$
|
|
13988
|
+
&.${rootClassName$G} .full-width {
|
|
13835
13989
|
width: 100%;
|
|
13836
13990
|
}
|
|
13837
13991
|
`}
|
|
@@ -13840,7 +13994,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13840
13994
|
${({
|
|
13841
13995
|
theme
|
|
13842
13996
|
}) => css`
|
|
13843
|
-
&.${rootClassName$
|
|
13997
|
+
&.${rootClassName$G} {
|
|
13844
13998
|
${pickerInputStyles(theme)};
|
|
13845
13999
|
|
|
13846
14000
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13882,7 +14036,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
13882
14036
|
`}
|
|
13883
14037
|
`;
|
|
13884
14038
|
|
|
13885
|
-
const rootClassName$
|
|
14039
|
+
const rootClassName$F = 'dot-time-picker';
|
|
13886
14040
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
13887
14041
|
const timePickerPopperClassName = 'dot-time-picker-popper';
|
|
13888
14042
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
@@ -13902,7 +14056,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13902
14056
|
${({
|
|
13903
14057
|
theme
|
|
13904
14058
|
}) => css`
|
|
13905
|
-
&.${rootClassName$
|
|
14059
|
+
&.${rootClassName$F} {
|
|
13906
14060
|
${pickerInputStyles(theme)};
|
|
13907
14061
|
|
|
13908
14062
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13979,36 +14133,36 @@ const StyledTimePickerPopper = styled(Popper)`
|
|
|
13979
14133
|
`}
|
|
13980
14134
|
`;
|
|
13981
14135
|
|
|
13982
|
-
const rootClassName$
|
|
14136
|
+
const rootClassName$E = 'dot-form';
|
|
13983
14137
|
const StyledFormContainer = styled.div`
|
|
13984
14138
|
${({
|
|
13985
14139
|
theme
|
|
13986
14140
|
}) => css`
|
|
13987
|
-
&.${rootClassName$
|
|
14141
|
+
&.${rootClassName$E} {
|
|
13988
14142
|
margin: ${theme.spacing(3, 0)};
|
|
13989
14143
|
|
|
13990
|
-
.${rootClassName$
|
|
13991
|
-
.${rootClassName$
|
|
13992
|
-
.${rootClassName$
|
|
14144
|
+
.${rootClassName$T},
|
|
14145
|
+
.${rootClassName$V},
|
|
14146
|
+
.${rootClassName$1s},
|
|
13993
14147
|
.${rootSelectClassName},
|
|
13994
|
-
.${rootClassName$
|
|
13995
|
-
.${rootClassName$
|
|
14148
|
+
.${rootClassName$G},
|
|
14149
|
+
.${rootClassName$F} {
|
|
13996
14150
|
margin: ${theme.spacing(1, 0)};
|
|
13997
14151
|
}
|
|
13998
14152
|
|
|
13999
14153
|
.${wrapperClassName$2} {
|
|
14000
|
-
+ .${rootClassName$
|
|
14154
|
+
+ .${rootClassName$1s},
|
|
14001
14155
|
.${wrapperClassName$2}
|
|
14002
14156
|
+ .${rootSelectClassName},
|
|
14003
14157
|
.${wrapperClassName$2}
|
|
14004
|
-
+ .${rootClassName$
|
|
14158
|
+
+ .${rootClassName$G},
|
|
14005
14159
|
.${wrapperClassName$2}
|
|
14006
|
-
+ .${rootClassName$
|
|
14160
|
+
+ .${rootClassName$F} {
|
|
14007
14161
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
14008
14162
|
}
|
|
14009
14163
|
|
|
14010
|
-
.${rootClassName$
|
|
14011
|
-
.${rootClassName$
|
|
14164
|
+
.${rootClassName$S}, .${groupClassName} {
|
|
14165
|
+
.${rootClassName$V} {
|
|
14012
14166
|
margin: 0;
|
|
14013
14167
|
}
|
|
14014
14168
|
}
|
|
@@ -14023,7 +14177,7 @@ const DotForm = ({
|
|
|
14023
14177
|
'data-testid': dataTestId,
|
|
14024
14178
|
onSubmit
|
|
14025
14179
|
}) => {
|
|
14026
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14180
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
14027
14181
|
return jsx("form", {
|
|
14028
14182
|
"aria-label": ariaLabel,
|
|
14029
14183
|
"data-testid": dataTestId,
|
|
@@ -14036,10 +14190,10 @@ const DotForm = ({
|
|
|
14036
14190
|
});
|
|
14037
14191
|
};
|
|
14038
14192
|
|
|
14039
|
-
const rootClassName$
|
|
14193
|
+
const rootClassName$D = 'dot-dynamic-form';
|
|
14040
14194
|
const StyledDynamicForm = styled(DotForm)`
|
|
14041
14195
|
${() => css`
|
|
14042
|
-
&.${rootClassName$
|
|
14196
|
+
&.${rootClassName$D} {
|
|
14043
14197
|
}
|
|
14044
14198
|
`}
|
|
14045
14199
|
`;
|
|
@@ -14219,12 +14373,12 @@ const checkIfFormDataValid = formState => {
|
|
|
14219
14373
|
return true;
|
|
14220
14374
|
};
|
|
14221
14375
|
|
|
14222
|
-
const rootClassName$
|
|
14376
|
+
const rootClassName$C = 'dot-progress-button';
|
|
14223
14377
|
const StyledProgressButton = styled(DotButton)`
|
|
14224
14378
|
${({
|
|
14225
14379
|
theme
|
|
14226
14380
|
}) => css`
|
|
14227
|
-
&.${rootClassName$
|
|
14381
|
+
&.${rootClassName$C} {
|
|
14228
14382
|
.hidden {
|
|
14229
14383
|
// hide children but preserve its space so that
|
|
14230
14384
|
// button's dimensions don't change
|
|
@@ -14249,7 +14403,7 @@ const DotProgressButton = ({
|
|
|
14249
14403
|
ariaLabel,
|
|
14250
14404
|
children,
|
|
14251
14405
|
className,
|
|
14252
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14406
|
+
'data-pendoid': dataPendoId = rootClassName$C,
|
|
14253
14407
|
'data-testid': dataTestId,
|
|
14254
14408
|
disabled = false,
|
|
14255
14409
|
disableInteractive,
|
|
@@ -14263,7 +14417,7 @@ const DotProgressButton = ({
|
|
|
14263
14417
|
tooltip,
|
|
14264
14418
|
type = 'primary'
|
|
14265
14419
|
}) => {
|
|
14266
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14420
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
14267
14421
|
const isButtonDisabled = disabled || isLoading;
|
|
14268
14422
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
14269
14423
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -14293,12 +14447,12 @@ const DotProgressButton = ({
|
|
|
14293
14447
|
});
|
|
14294
14448
|
};
|
|
14295
14449
|
|
|
14296
|
-
const rootClassName$
|
|
14450
|
+
const rootClassName$B = 'dot-radio';
|
|
14297
14451
|
const StyledRadioButton = styled(Radio)`
|
|
14298
14452
|
${({
|
|
14299
14453
|
theme
|
|
14300
14454
|
}) => css`
|
|
14301
|
-
&.${rootClassName$
|
|
14455
|
+
&.${rootClassName$B} {
|
|
14302
14456
|
padding: 8px;
|
|
14303
14457
|
|
|
14304
14458
|
svg {
|
|
@@ -14316,7 +14470,7 @@ function DotRadioButton({
|
|
|
14316
14470
|
ariaLabel,
|
|
14317
14471
|
checked,
|
|
14318
14472
|
className,
|
|
14319
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14473
|
+
'data-pendoid': dataPendoId = rootClassName$V,
|
|
14320
14474
|
'data-testid': dataTestId,
|
|
14321
14475
|
disabled,
|
|
14322
14476
|
id,
|
|
@@ -14329,7 +14483,7 @@ function DotRadioButton({
|
|
|
14329
14483
|
size = 'medium',
|
|
14330
14484
|
value
|
|
14331
14485
|
}) {
|
|
14332
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14486
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
14333
14487
|
const handleChange = event => {
|
|
14334
14488
|
onChange && onChange(event, event.target.value);
|
|
14335
14489
|
};
|
|
@@ -14337,7 +14491,7 @@ function DotRadioButton({
|
|
|
14337
14491
|
const radioControl = jsx(StyledRadioButton, {
|
|
14338
14492
|
checked: checked,
|
|
14339
14493
|
classes: {
|
|
14340
|
-
root: rootClassName$
|
|
14494
|
+
root: rootClassName$B
|
|
14341
14495
|
},
|
|
14342
14496
|
color: "primary",
|
|
14343
14497
|
"data-pendoid": dataPendoId,
|
|
@@ -14383,7 +14537,7 @@ const DotRadioGroup = ({
|
|
|
14383
14537
|
size = 'medium'
|
|
14384
14538
|
}) => {
|
|
14385
14539
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
14386
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14540
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className, placement);
|
|
14387
14541
|
const radioValue = value || defaultValue;
|
|
14388
14542
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
14389
14543
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -14448,7 +14602,7 @@ const DotRadioGroup = ({
|
|
|
14448
14602
|
});
|
|
14449
14603
|
};
|
|
14450
14604
|
|
|
14451
|
-
const rootClassName$
|
|
14605
|
+
const rootClassName$A = 'dot-switch';
|
|
14452
14606
|
const StyledSwitch = styled(Switch)`
|
|
14453
14607
|
${({
|
|
14454
14608
|
theme
|
|
@@ -14475,7 +14629,7 @@ const DotSwitch = ({
|
|
|
14475
14629
|
checked,
|
|
14476
14630
|
className,
|
|
14477
14631
|
color,
|
|
14478
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14632
|
+
'data-pendoid': dataPendoId = rootClassName$A,
|
|
14479
14633
|
'data-testid': dataTestId,
|
|
14480
14634
|
disabled = false,
|
|
14481
14635
|
id,
|
|
@@ -14485,7 +14639,7 @@ const DotSwitch = ({
|
|
|
14485
14639
|
onChange,
|
|
14486
14640
|
size = 'medium'
|
|
14487
14641
|
}) => {
|
|
14488
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14642
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
14489
14643
|
const handleChange = event => {
|
|
14490
14644
|
onChange && onChange(event);
|
|
14491
14645
|
};
|
|
@@ -14515,7 +14669,7 @@ const DotSwitch = ({
|
|
|
14515
14669
|
tabIndex: 0
|
|
14516
14670
|
});
|
|
14517
14671
|
return jsx(StyledFormControlLabel, {
|
|
14518
|
-
className: rootClassName$
|
|
14672
|
+
className: rootClassName$V,
|
|
14519
14673
|
control: switchControl,
|
|
14520
14674
|
label: label,
|
|
14521
14675
|
labelPlacement: labelPlacement
|
|
@@ -14836,7 +14990,7 @@ const DotDynamicForm = ({
|
|
|
14836
14990
|
onChange,
|
|
14837
14991
|
onSubmit
|
|
14838
14992
|
}) => {
|
|
14839
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14993
|
+
const rootClasses = useStylesWithRootClass(rootClassName$D, className);
|
|
14840
14994
|
// Memoize this operation so that is doesn't get executed each time this
|
|
14841
14995
|
// component re-renders
|
|
14842
14996
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -15082,7 +15236,7 @@ const DotDynamicForm = ({
|
|
|
15082
15236
|
});
|
|
15083
15237
|
};
|
|
15084
15238
|
|
|
15085
|
-
const rootClassName$
|
|
15239
|
+
const rootClassName$z = 'dot-inline-edit';
|
|
15086
15240
|
const editModeClassName = 'dot-edit-mode';
|
|
15087
15241
|
const viewModeClassName = 'dot-view-mode';
|
|
15088
15242
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -15094,7 +15248,7 @@ const StyledInlineEdit = styled.div`
|
|
|
15094
15248
|
theme,
|
|
15095
15249
|
fullWidth
|
|
15096
15250
|
}) => css`
|
|
15097
|
-
&.${rootClassName$
|
|
15251
|
+
&.${rootClassName$z} {
|
|
15098
15252
|
align-items: center;
|
|
15099
15253
|
color: ${theme.palette.figma.typography.black};
|
|
15100
15254
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -15308,7 +15462,7 @@ const DotInlineEdit = ({
|
|
|
15308
15462
|
bindings,
|
|
15309
15463
|
charactersLimit,
|
|
15310
15464
|
className,
|
|
15311
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15465
|
+
'data-pendoid': dataPendoId = rootClassName$z,
|
|
15312
15466
|
'data-testid': dataTestId,
|
|
15313
15467
|
fullWidth = true,
|
|
15314
15468
|
hideActionButtons,
|
|
@@ -15344,7 +15498,7 @@ const DotInlineEdit = ({
|
|
|
15344
15498
|
}
|
|
15345
15499
|
}, [value]);
|
|
15346
15500
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
15347
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15501
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className, editing ? editModeClassName : '');
|
|
15348
15502
|
const handleShowTooltip = visible => {
|
|
15349
15503
|
if (!editing) {
|
|
15350
15504
|
setShowTooltip(visible);
|
|
@@ -15532,13 +15686,13 @@ const DotInlineEdit = ({
|
|
|
15532
15686
|
});
|
|
15533
15687
|
};
|
|
15534
15688
|
|
|
15535
|
-
const rootClassName$
|
|
15689
|
+
const rootClassName$y = 'dot-navigation-rail';
|
|
15536
15690
|
const StyledNavigationRail = styled.div`
|
|
15537
15691
|
${({
|
|
15538
15692
|
theme,
|
|
15539
15693
|
railItemPosition
|
|
15540
15694
|
}) => css`
|
|
15541
|
-
&.${rootClassName$
|
|
15695
|
+
&.${rootClassName$y} {
|
|
15542
15696
|
background: ${theme.palette.figma.neutral.elevated};
|
|
15543
15697
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
15544
15698
|
display: flex;
|
|
@@ -15592,19 +15746,20 @@ const DotNavigationRail = ({
|
|
|
15592
15746
|
ariaLabel,
|
|
15593
15747
|
className,
|
|
15594
15748
|
'data-testid': dataTestId,
|
|
15749
|
+
defaultIndex = 0,
|
|
15595
15750
|
onChange,
|
|
15596
15751
|
railItemPosition = 'flex-start',
|
|
15597
15752
|
railItems,
|
|
15598
|
-
selectedIndex
|
|
15753
|
+
selectedIndex
|
|
15599
15754
|
}) => {
|
|
15600
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15601
|
-
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
15755
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
15756
|
+
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : defaultIndex);
|
|
15602
15757
|
/* Used to change selected index programmatically from the consumer component */
|
|
15603
15758
|
useEffect(() => {
|
|
15604
|
-
setSelectedItemIndex(selectedIndex);
|
|
15759
|
+
selectedIndex !== undefined && setSelectedItemIndex(selectedIndex);
|
|
15605
15760
|
}, [selectedIndex]);
|
|
15606
15761
|
const onItemSelect = index => () => {
|
|
15607
|
-
setSelectedItemIndex(index);
|
|
15762
|
+
selectedIndex === undefined && setSelectedItemIndex(index);
|
|
15608
15763
|
onChange && onChange(index);
|
|
15609
15764
|
};
|
|
15610
15765
|
const checkIfSelected = index => selectedItemIndex === index;
|
|
@@ -15648,12 +15803,12 @@ const DotNavigationRail = ({
|
|
|
15648
15803
|
});
|
|
15649
15804
|
};
|
|
15650
15805
|
|
|
15651
|
-
const rootClassName$
|
|
15806
|
+
const rootClassName$x = 'dot-skeleton';
|
|
15652
15807
|
const StyledSkeleton = styled(Skeleton)`
|
|
15653
15808
|
${({
|
|
15654
15809
|
theme
|
|
15655
15810
|
}) => css`
|
|
15656
|
-
&.${rootClassName$
|
|
15811
|
+
&.${rootClassName$x} {
|
|
15657
15812
|
background-color: ${theme.palette.figma.border.darker};
|
|
15658
15813
|
}
|
|
15659
15814
|
`}
|
|
@@ -15668,7 +15823,7 @@ const DotSkeleton = ({
|
|
|
15668
15823
|
width,
|
|
15669
15824
|
variant
|
|
15670
15825
|
}) => {
|
|
15671
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15826
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className);
|
|
15672
15827
|
return jsx(StyledSkeleton, {
|
|
15673
15828
|
animation: "wave",
|
|
15674
15829
|
"aria-label": ariaLabel,
|
|
@@ -15683,12 +15838,12 @@ const DotSkeleton = ({
|
|
|
15683
15838
|
});
|
|
15684
15839
|
};
|
|
15685
15840
|
|
|
15686
|
-
const rootClassName$
|
|
15841
|
+
const rootClassName$w = 'dot-split-button-group';
|
|
15687
15842
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
15688
15843
|
${({
|
|
15689
15844
|
theme
|
|
15690
15845
|
}) => css`
|
|
15691
|
-
&.${rootClassName$
|
|
15846
|
+
&.${rootClassName$w} {
|
|
15692
15847
|
&.outlined,
|
|
15693
15848
|
&.text {
|
|
15694
15849
|
.expand-button {
|
|
@@ -15754,7 +15909,7 @@ const DotSplitButton = ({
|
|
|
15754
15909
|
autoFocus = false,
|
|
15755
15910
|
ariaLabel,
|
|
15756
15911
|
className,
|
|
15757
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15912
|
+
'data-pendoid': dataPendoId = rootClassName$w,
|
|
15758
15913
|
'data-testid': dataTestId,
|
|
15759
15914
|
defaultMainOptionKey,
|
|
15760
15915
|
disabled = false,
|
|
@@ -15770,7 +15925,7 @@ const DotSplitButton = ({
|
|
|
15770
15925
|
tooltipPlacement,
|
|
15771
15926
|
type = 'primary'
|
|
15772
15927
|
}) => {
|
|
15773
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15928
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className, type, disabled ? 'disabled' : '');
|
|
15774
15929
|
const [open, setOpen] = useState(false);
|
|
15775
15930
|
const anchorRef = useRef(null);
|
|
15776
15931
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -15838,7 +15993,7 @@ const DotSplitButton = ({
|
|
|
15838
15993
|
});
|
|
15839
15994
|
};
|
|
15840
15995
|
|
|
15841
|
-
const rootClassName$
|
|
15996
|
+
const rootClassName$v = 'dot-stepper';
|
|
15842
15997
|
const stepListClassName = 'dot-stepper-list';
|
|
15843
15998
|
const contentClassName = 'dot-stepper-content';
|
|
15844
15999
|
const StyledStepper = styled.div`
|
|
@@ -15846,7 +16001,7 @@ const StyledStepper = styled.div`
|
|
|
15846
16001
|
theme,
|
|
15847
16002
|
offset
|
|
15848
16003
|
}) => css`
|
|
15849
|
-
&.${rootClassName$
|
|
16004
|
+
&.${rootClassName$v} {
|
|
15850
16005
|
display: flex;
|
|
15851
16006
|
align-items: flex-start;
|
|
15852
16007
|
padding: 0;
|
|
@@ -16161,7 +16316,7 @@ const DotStepper = ({
|
|
|
16161
16316
|
return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
|
|
16162
16317
|
}
|
|
16163
16318
|
};
|
|
16164
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16319
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, getStepsPosition(), className);
|
|
16165
16320
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
16166
16321
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
16167
16322
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -16379,12 +16534,12 @@ const DotStepper = ({
|
|
|
16379
16534
|
});
|
|
16380
16535
|
};
|
|
16381
16536
|
|
|
16382
|
-
const rootClassName$
|
|
16537
|
+
const rootClassName$u = 'dot-table-pagination-custom-actions';
|
|
16383
16538
|
const StyledTablePaginationCustomActions = styled.div`
|
|
16384
16539
|
${({
|
|
16385
16540
|
theme
|
|
16386
16541
|
}) => css`
|
|
16387
|
-
&.${rootClassName$
|
|
16542
|
+
&.${rootClassName$u} {
|
|
16388
16543
|
margin-left: ${theme.spacing(2.5)};
|
|
16389
16544
|
display: flex;
|
|
16390
16545
|
align-items: center;
|
|
@@ -16508,7 +16663,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16508
16663
|
});
|
|
16509
16664
|
};
|
|
16510
16665
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
16511
|
-
className: rootClassName$
|
|
16666
|
+
className: rootClassName$u,
|
|
16512
16667
|
children: [jsx(DotIconButton, {
|
|
16513
16668
|
ariaLabel: "previous page",
|
|
16514
16669
|
className: "page-control-button",
|
|
@@ -16555,7 +16710,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16555
16710
|
});
|
|
16556
16711
|
};
|
|
16557
16712
|
|
|
16558
|
-
const rootClassName$
|
|
16713
|
+
const rootClassName$t = 'dot-table-pagination';
|
|
16559
16714
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
16560
16715
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
16561
16716
|
const StyledTablePagination = styled.div`
|
|
@@ -16563,7 +16718,7 @@ const StyledTablePagination = styled.div`
|
|
|
16563
16718
|
theme,
|
|
16564
16719
|
typography
|
|
16565
16720
|
}) => css`
|
|
16566
|
-
.${rootClassName$
|
|
16721
|
+
.${rootClassName$t} {
|
|
16567
16722
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
16568
16723
|
|
|
16569
16724
|
.dot-caption,
|
|
@@ -16606,7 +16761,7 @@ const DotTablePagination = ({
|
|
|
16606
16761
|
showJumpToPageActionButton = false,
|
|
16607
16762
|
typography = 'subtitle2'
|
|
16608
16763
|
}) => {
|
|
16609
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16764
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
16610
16765
|
const handlePageChange = (event, newPage) => {
|
|
16611
16766
|
onPageChange && onPageChange(newPage);
|
|
16612
16767
|
};
|
|
@@ -16614,7 +16769,7 @@ const DotTablePagination = ({
|
|
|
16614
16769
|
onRowsPerPageChange && onRowsPerPageChange(evt);
|
|
16615
16770
|
};
|
|
16616
16771
|
return /* Container is used to pass 'typography' prop to a styled component */jsx(StyledTablePagination, {
|
|
16617
|
-
className: rootClassName$
|
|
16772
|
+
className: rootClassName$t,
|
|
16618
16773
|
typography: typography,
|
|
16619
16774
|
children: jsx(TablePagination, {
|
|
16620
16775
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -16640,14 +16795,14 @@ const DotTablePagination = ({
|
|
|
16640
16795
|
});
|
|
16641
16796
|
};
|
|
16642
16797
|
|
|
16643
|
-
const rootClassName$
|
|
16798
|
+
const rootClassName$s = 'dot-table';
|
|
16644
16799
|
const MULTISELECT_COLUMN_WIDTH = 52;
|
|
16645
16800
|
const COLLAPSIBLE_COLUMN_WIDTH = 42;
|
|
16646
16801
|
const StyledPaper$1 = styled(Paper)`
|
|
16647
16802
|
${({
|
|
16648
16803
|
theme
|
|
16649
16804
|
}) => css`
|
|
16650
|
-
&.${rootClassName$
|
|
16805
|
+
&.${rootClassName$s} {
|
|
16651
16806
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16652
16807
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
16653
16808
|
overflow: hidden;
|
|
@@ -16790,10 +16945,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
16790
16945
|
}
|
|
16791
16946
|
`;
|
|
16792
16947
|
|
|
16793
|
-
const rootClassName$
|
|
16948
|
+
const rootClassName$r = 'dot-tbody';
|
|
16794
16949
|
const StyledTableBody = styled(TableBody)`
|
|
16795
16950
|
${() => css`
|
|
16796
|
-
&.${rootClassName$
|
|
16951
|
+
&.${rootClassName$r} {
|
|
16797
16952
|
tr:last-child td {
|
|
16798
16953
|
border-bottom: none;
|
|
16799
16954
|
}
|
|
@@ -16988,12 +17143,12 @@ function stableSort(array, comparator) {
|
|
|
16988
17143
|
return stabilizedThis.map(el => el[0]);
|
|
16989
17144
|
}
|
|
16990
17145
|
|
|
16991
|
-
const rootClassName$
|
|
17146
|
+
const rootClassName$q = 'dot-td';
|
|
16992
17147
|
const StyledTableCell = styled(TableCell)`
|
|
16993
17148
|
${({
|
|
16994
17149
|
theme
|
|
16995
17150
|
}) => css`
|
|
16996
|
-
&.${rootClassName$
|
|
17151
|
+
&.${rootClassName$q} {
|
|
16997
17152
|
padding-top: 0;
|
|
16998
17153
|
padding-bottom: 0;
|
|
16999
17154
|
|
|
@@ -17088,7 +17243,7 @@ const DotBodyCell = ({
|
|
|
17088
17243
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
17089
17244
|
setShowMenu(isOverflowing);
|
|
17090
17245
|
};
|
|
17091
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17246
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
17092
17247
|
const getTableCellValue = () => {
|
|
17093
17248
|
if (Array.isArray(value)) {
|
|
17094
17249
|
return jsx("div", {
|
|
@@ -17156,13 +17311,13 @@ const EmptyDotRow = ({
|
|
|
17156
17311
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
17157
17312
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
17158
17313
|
|
|
17159
|
-
const rootClassName$
|
|
17314
|
+
const rootClassName$p = 'dot-th-checkbox';
|
|
17160
17315
|
const styledTableHeaderCheckboxElement = (isCell = true) => {
|
|
17161
17316
|
return styled(isCell ? TableCell : 'div')`
|
|
17162
17317
|
${({
|
|
17163
17318
|
theme
|
|
17164
17319
|
}) => css`
|
|
17165
|
-
&.${rootClassName$
|
|
17320
|
+
&.${rootClassName$p} {
|
|
17166
17321
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17167
17322
|
padding: ${theme.spacing(0, 1)};
|
|
17168
17323
|
width: ${theme.spacing(5)};
|
|
@@ -17190,7 +17345,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
17190
17345
|
isFromTableSelectionToolbar,
|
|
17191
17346
|
multiSelectHeader
|
|
17192
17347
|
}) => {
|
|
17193
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17348
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
|
|
17194
17349
|
const [multiSelectState, setMultiSelectState] = useState('unchecked');
|
|
17195
17350
|
const {
|
|
17196
17351
|
onCheckAllChange,
|
|
@@ -17240,12 +17395,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
17240
17395
|
});
|
|
17241
17396
|
};
|
|
17242
17397
|
|
|
17243
|
-
const rootClassName$
|
|
17398
|
+
const rootClassName$o = 'dot-th';
|
|
17244
17399
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
17245
17400
|
${({
|
|
17246
17401
|
theme
|
|
17247
17402
|
}) => css`
|
|
17248
|
-
&.${rootClassName$
|
|
17403
|
+
&.${rootClassName$o} {
|
|
17249
17404
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17250
17405
|
|
|
17251
17406
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -17285,7 +17440,7 @@ const DotHeaderCell = ({
|
|
|
17285
17440
|
value,
|
|
17286
17441
|
width
|
|
17287
17442
|
}) => {
|
|
17288
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17443
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, pinned ? 'dot-pinned-cell' : '', className);
|
|
17289
17444
|
const headerTitle = isString$2(value) ? value : null;
|
|
17290
17445
|
const formattedValue = getFormattedTableCellValue(value, typography);
|
|
17291
17446
|
const getCellValue = () => {
|
|
@@ -17376,12 +17531,12 @@ const DotHeaderRow = ({
|
|
|
17376
17531
|
});
|
|
17377
17532
|
};
|
|
17378
17533
|
|
|
17379
|
-
const rootClassName$
|
|
17534
|
+
const rootClassName$n = 'dot-tr';
|
|
17380
17535
|
const StyledTableRowStyles = styled(TableRow)`
|
|
17381
17536
|
${({
|
|
17382
17537
|
theme
|
|
17383
17538
|
}) => css`
|
|
17384
|
-
&.${rootClassName$
|
|
17539
|
+
&.${rootClassName$n} {
|
|
17385
17540
|
&.selected {
|
|
17386
17541
|
&,
|
|
17387
17542
|
.dot-td.dot-pinned-cell,
|
|
@@ -17607,12 +17762,12 @@ const ExpandCollapseCell = ({
|
|
|
17607
17762
|
});
|
|
17608
17763
|
};
|
|
17609
17764
|
|
|
17610
|
-
const rootClassName$
|
|
17765
|
+
const rootClassName$m = 'dot-td-checkbox';
|
|
17611
17766
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
17612
17767
|
${({
|
|
17613
17768
|
theme
|
|
17614
17769
|
}) => css`
|
|
17615
|
-
&.${rootClassName$
|
|
17770
|
+
&.${rootClassName$m} {
|
|
17616
17771
|
padding: ${theme.spacing(0, 1)};
|
|
17617
17772
|
width: ${theme.spacing(5)};
|
|
17618
17773
|
|
|
@@ -17631,7 +17786,7 @@ const DotBodyCheckboxCell = ({
|
|
|
17631
17786
|
onChange,
|
|
17632
17787
|
rowId
|
|
17633
17788
|
}) => {
|
|
17634
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17789
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, className);
|
|
17635
17790
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
17636
17791
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
17637
17792
|
useEffect(() => {
|
|
@@ -17684,7 +17839,7 @@ const DotTableRow = ({
|
|
|
17684
17839
|
selectedTableRowIds
|
|
17685
17840
|
} = multiSelectBody || {};
|
|
17686
17841
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
17687
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17842
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, isCheckboxChecked ? 'selected' : undefined, className);
|
|
17688
17843
|
const renderCheckboxCell = () => {
|
|
17689
17844
|
return jsx(DotBodyCheckboxCell, {
|
|
17690
17845
|
ariaLabel: "Click to select this row",
|
|
@@ -17805,7 +17960,7 @@ const DotTableBody = ({
|
|
|
17805
17960
|
return jsxs(Fragment, {
|
|
17806
17961
|
children: [jsx(StyledTableBody, {
|
|
17807
17962
|
classes: {
|
|
17808
|
-
root: rootClassName$
|
|
17963
|
+
root: rootClassName$r
|
|
17809
17964
|
},
|
|
17810
17965
|
children: getTableBodyRows()
|
|
17811
17966
|
}), jsx(StyledMenu$1, {
|
|
@@ -17820,12 +17975,12 @@ const DotTableBody = ({
|
|
|
17820
17975
|
});
|
|
17821
17976
|
};
|
|
17822
17977
|
|
|
17823
|
-
const rootClassName$
|
|
17978
|
+
const rootClassName$l = 'dot-table-selection-toolbar';
|
|
17824
17979
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
17825
17980
|
${({
|
|
17826
17981
|
theme
|
|
17827
17982
|
}) => css`
|
|
17828
|
-
&.${rootClassName$
|
|
17983
|
+
&.${rootClassName$l} {
|
|
17829
17984
|
display: flex;
|
|
17830
17985
|
align-items: center;
|
|
17831
17986
|
justify-content: space-between;
|
|
@@ -17880,7 +18035,7 @@ const DotTableSelectionToolbar = ({
|
|
|
17880
18035
|
multiSelectHeader,
|
|
17881
18036
|
selectedRowsNumber
|
|
17882
18037
|
}) => {
|
|
17883
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18038
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, className);
|
|
17884
18039
|
return jsxs(StyledTableSelectionToolbar, {
|
|
17885
18040
|
ariaLabel: ariaLabel,
|
|
17886
18041
|
className: rootClasses,
|
|
@@ -17966,7 +18121,7 @@ const DotTable = ({
|
|
|
17966
18121
|
setPage(page);
|
|
17967
18122
|
}
|
|
17968
18123
|
}, [page]);
|
|
17969
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18124
|
+
const rootClasses = useStylesWithRootClass(rootClassName$s, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
|
|
17970
18125
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
17971
18126
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
17972
18127
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -18169,7 +18324,7 @@ const DotTableAction = ({
|
|
|
18169
18324
|
});
|
|
18170
18325
|
};
|
|
18171
18326
|
|
|
18172
|
-
const rootClassName$
|
|
18327
|
+
const rootClassName$k = 'dot-table-actions';
|
|
18173
18328
|
const TableActionsContainer = styled.div`
|
|
18174
18329
|
overflow: hidden;
|
|
18175
18330
|
text-overflow: clip;
|
|
@@ -18259,7 +18414,7 @@ const DotTableActions = ({
|
|
|
18259
18414
|
};
|
|
18260
18415
|
return jsxs(Fragment, {
|
|
18261
18416
|
children: [jsxs(TableActionsContainer, {
|
|
18262
|
-
className: rootClassName$
|
|
18417
|
+
className: rootClassName$k,
|
|
18263
18418
|
ref: wrapperRef,
|
|
18264
18419
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
18265
18420
|
ariaLabel: "more options",
|
|
@@ -18283,12 +18438,12 @@ const DotTableActions = ({
|
|
|
18283
18438
|
});
|
|
18284
18439
|
};
|
|
18285
18440
|
|
|
18286
|
-
const rootClassName$
|
|
18441
|
+
const rootClassName$j = 'dot-tabs';
|
|
18287
18442
|
const StyledTabs = styled(Tabs)`
|
|
18288
18443
|
${({
|
|
18289
18444
|
theme
|
|
18290
18445
|
}) => css`
|
|
18291
|
-
&.${rootClassName$
|
|
18446
|
+
&.${rootClassName$j} {
|
|
18292
18447
|
&.MuiTabs-root {
|
|
18293
18448
|
width: 100%;
|
|
18294
18449
|
}
|
|
@@ -18341,7 +18496,7 @@ const DotTabs = ({
|
|
|
18341
18496
|
centered = false,
|
|
18342
18497
|
className,
|
|
18343
18498
|
color,
|
|
18344
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18499
|
+
'data-pendoid': dataPendoId = rootClassName$j,
|
|
18345
18500
|
'data-testid': dataTestId,
|
|
18346
18501
|
initialValue = 0,
|
|
18347
18502
|
onChange,
|
|
@@ -18350,7 +18505,7 @@ const DotTabs = ({
|
|
|
18350
18505
|
variant = 'standard'
|
|
18351
18506
|
}) => {
|
|
18352
18507
|
const [value, setValue] = useState(initialValue);
|
|
18353
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18508
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, className);
|
|
18354
18509
|
useEffect(() => {
|
|
18355
18510
|
if (color) {
|
|
18356
18511
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -18404,9 +18559,9 @@ const DotTabs = ({
|
|
|
18404
18559
|
});
|
|
18405
18560
|
};
|
|
18406
18561
|
|
|
18407
|
-
const rootClassName$
|
|
18408
|
-
const containerClassName = `${rootClassName$
|
|
18409
|
-
const dropZoneClassName = `${rootClassName$
|
|
18562
|
+
const rootClassName$i = 'dot-file-upload';
|
|
18563
|
+
const containerClassName = `${rootClassName$i}-container`;
|
|
18564
|
+
const dropZoneClassName = `${rootClassName$i}-drop-zone`;
|
|
18410
18565
|
const StyledFileUploadContainer = styled.div`
|
|
18411
18566
|
${({
|
|
18412
18567
|
theme
|
|
@@ -18426,7 +18581,7 @@ const StyledFileUpload = styled.div`
|
|
|
18426
18581
|
${({
|
|
18427
18582
|
theme
|
|
18428
18583
|
}) => css`
|
|
18429
|
-
&.${rootClassName$
|
|
18584
|
+
&.${rootClassName$i}.${dropZoneClassName} {
|
|
18430
18585
|
align-items: center;
|
|
18431
18586
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
18432
18587
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -18458,12 +18613,12 @@ const StyledFileUpload = styled.div`
|
|
|
18458
18613
|
`}
|
|
18459
18614
|
`;
|
|
18460
18615
|
|
|
18461
|
-
const rootClassName$
|
|
18616
|
+
const rootClassName$h = 'dot-file-list-item';
|
|
18462
18617
|
const StyledFileListItem = styled(StyledListItem)`
|
|
18463
18618
|
${({
|
|
18464
18619
|
theme
|
|
18465
18620
|
}) => css`
|
|
18466
|
-
&.${rootClassName$
|
|
18621
|
+
&.${rootClassName$h} {
|
|
18467
18622
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
18468
18623
|
&:hover {
|
|
18469
18624
|
cursor: pointer;
|
|
@@ -18475,7 +18630,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18475
18630
|
outline: none;
|
|
18476
18631
|
}
|
|
18477
18632
|
|
|
18478
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
18633
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$h}-end-icon {
|
|
18479
18634
|
i:before {
|
|
18480
18635
|
color: ${theme.palette.figma.success.normal};
|
|
18481
18636
|
}
|
|
@@ -18485,7 +18640,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18485
18640
|
}
|
|
18486
18641
|
}
|
|
18487
18642
|
|
|
18488
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
18643
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$h}-end-icon {
|
|
18489
18644
|
i:before,
|
|
18490
18645
|
.MuiListItemText-secondary {
|
|
18491
18646
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -18527,7 +18682,7 @@ const DotFileListItem = ({
|
|
|
18527
18682
|
onKeyPress,
|
|
18528
18683
|
tabIndex = 0
|
|
18529
18684
|
}) => {
|
|
18530
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18685
|
+
const rootClasses = useStylesWithRootClass(rootClassName$h, className, error ? 'file-error' : 'file-success');
|
|
18531
18686
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
18532
18687
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
18533
18688
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -18560,7 +18715,7 @@ const DotFileListItem = ({
|
|
|
18560
18715
|
})]
|
|
18561
18716
|
}), jsx(DotIconButton, {
|
|
18562
18717
|
ariaLabel: "delete file",
|
|
18563
|
-
className: `${rootClassName$
|
|
18718
|
+
className: `${rootClassName$h}-end-icon`,
|
|
18564
18719
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
18565
18720
|
disabled: disableDelete,
|
|
18566
18721
|
iconId: endIcon,
|
|
@@ -18684,7 +18839,7 @@ const DotFileUpload = ({
|
|
|
18684
18839
|
buttonOnly = false,
|
|
18685
18840
|
className,
|
|
18686
18841
|
contentErrors,
|
|
18687
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18842
|
+
'data-pendoid': dataPendoId = rootClassName$i,
|
|
18688
18843
|
'data-testid': dataTestId,
|
|
18689
18844
|
disabled,
|
|
18690
18845
|
hideFilesList,
|
|
@@ -18697,7 +18852,7 @@ const DotFileUpload = ({
|
|
|
18697
18852
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
18698
18853
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
18699
18854
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
18700
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18855
|
+
const rootClasses = useStylesWithRootClass(rootClassName$i, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
18701
18856
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
18702
18857
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
18703
18858
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -18769,13 +18924,13 @@ const DotFileUpload = ({
|
|
|
18769
18924
|
});
|
|
18770
18925
|
};
|
|
18771
18926
|
|
|
18772
|
-
const rootClassName$
|
|
18927
|
+
const rootClassName$g = 'dot-fab';
|
|
18773
18928
|
const StyledFab = styled(Fab)`
|
|
18774
18929
|
${({
|
|
18775
18930
|
theme,
|
|
18776
18931
|
color
|
|
18777
18932
|
}) => css`
|
|
18778
|
-
&.${rootClassName$
|
|
18933
|
+
&.${rootClassName$g} {
|
|
18779
18934
|
${color === 'default' ? css`
|
|
18780
18935
|
background-color: ${theme.palette.figma.typography.white};
|
|
18781
18936
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -18815,7 +18970,7 @@ const DotFab = ({
|
|
|
18815
18970
|
children,
|
|
18816
18971
|
className,
|
|
18817
18972
|
color = 'default',
|
|
18818
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18973
|
+
'data-pendoid': dataPendoId = rootClassName$g,
|
|
18819
18974
|
'data-testid': dataTestId,
|
|
18820
18975
|
disableRipple = false,
|
|
18821
18976
|
disabled = false,
|
|
@@ -18823,7 +18978,7 @@ const DotFab = ({
|
|
|
18823
18978
|
size = 'large',
|
|
18824
18979
|
variant = 'circular'
|
|
18825
18980
|
}) => {
|
|
18826
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18981
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className);
|
|
18827
18982
|
return jsx(StyledFab, {
|
|
18828
18983
|
"aria-label": ariaLabel,
|
|
18829
18984
|
color: color,
|
|
@@ -18839,12 +18994,12 @@ const DotFab = ({
|
|
|
18839
18994
|
});
|
|
18840
18995
|
};
|
|
18841
18996
|
|
|
18842
|
-
const rootClassName$
|
|
18997
|
+
const rootClassName$f = 'dot-divider';
|
|
18843
18998
|
const StyledDivider = styled(Divider)`
|
|
18844
18999
|
${({
|
|
18845
19000
|
theme
|
|
18846
19001
|
}) => css`
|
|
18847
|
-
&.${rootClassName$
|
|
19002
|
+
&.${rootClassName$f} {
|
|
18848
19003
|
color: ${theme.palette.figma.border.darker};
|
|
18849
19004
|
|
|
18850
19005
|
.MuiDivider-light {
|
|
@@ -18864,7 +19019,7 @@ const DotDivider = ({
|
|
|
18864
19019
|
orientation,
|
|
18865
19020
|
variant
|
|
18866
19021
|
}) => {
|
|
18867
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19022
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className);
|
|
18868
19023
|
return jsx(StyledDivider, {
|
|
18869
19024
|
absolute: absolute,
|
|
18870
19025
|
"aria-label": ariaLabel,
|
|
@@ -18893,7 +19048,7 @@ const DotPopper = ({
|
|
|
18893
19048
|
placement
|
|
18894
19049
|
}) => {
|
|
18895
19050
|
const [arrowRef, setArrowRef] = useState(null);
|
|
18896
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19051
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
|
|
18897
19052
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18898
19053
|
const handleClickAway = event => {
|
|
18899
19054
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -18958,14 +19113,14 @@ const getListItemLayout = listItems => {
|
|
|
18958
19113
|
}));
|
|
18959
19114
|
};
|
|
18960
19115
|
|
|
18961
|
-
const rootClassName$
|
|
19116
|
+
const rootClassName$e = 'dot-draggable-list';
|
|
18962
19117
|
const listItemClassName = 'dot-draggable-list-item';
|
|
18963
19118
|
const StyledDraggableList = styled.div`
|
|
18964
19119
|
${({
|
|
18965
19120
|
theme,
|
|
18966
19121
|
draggableHandle
|
|
18967
19122
|
}) => css`
|
|
18968
|
-
&.${rootClassName$
|
|
19123
|
+
&.${rootClassName$e} {
|
|
18969
19124
|
padding: ${theme.spacing(1, 0)};
|
|
18970
19125
|
position: relative;
|
|
18971
19126
|
|
|
@@ -19000,7 +19155,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
19000
19155
|
const DotDraggableList = ({
|
|
19001
19156
|
ariaLabel,
|
|
19002
19157
|
className,
|
|
19003
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
19158
|
+
'data-pendoid': dataPendoId = rootClassName$e,
|
|
19004
19159
|
'data-testid': dataTestId,
|
|
19005
19160
|
disableDrag,
|
|
19006
19161
|
draggableHandle,
|
|
@@ -19009,7 +19164,7 @@ const DotDraggableList = ({
|
|
|
19009
19164
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
19010
19165
|
width = DEFAULT_LIST_WIDTH
|
|
19011
19166
|
}) => {
|
|
19012
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19167
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
19013
19168
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
19014
19169
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
19015
19170
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -22285,7 +22440,7 @@ cjs.exports.DraggableCore = DraggableCore;
|
|
|
22285
22440
|
var cjsExports = cjs.exports;
|
|
22286
22441
|
var Draggable$1 = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
|
|
22287
22442
|
|
|
22288
|
-
const rootClassName$
|
|
22443
|
+
const rootClassName$d = 'dot-draggable-window';
|
|
22289
22444
|
const defaultWidth = '600px';
|
|
22290
22445
|
const defaultHeight = '324px';
|
|
22291
22446
|
const StyledPaper = styled(Paper)`
|
|
@@ -22294,7 +22449,7 @@ const StyledPaper = styled(Paper)`
|
|
|
22294
22449
|
$maxHeight,
|
|
22295
22450
|
$maxWidth
|
|
22296
22451
|
}) => css`
|
|
22297
|
-
&.${rootClassName$
|
|
22452
|
+
&.${rootClassName$d} {
|
|
22298
22453
|
max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
|
|
22299
22454
|
max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
|
|
22300
22455
|
${$maxWidth ? '' : `width: ${defaultWidth};`}
|
|
@@ -22332,7 +22487,7 @@ const StyledPaper = styled(Paper)`
|
|
|
22332
22487
|
const DotDraggableWindow = ({
|
|
22333
22488
|
ariaLabel,
|
|
22334
22489
|
anchorEl,
|
|
22335
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
22490
|
+
'data-pendoid': dataPendoId = rootClassName$d,
|
|
22336
22491
|
'data-testid': dataTestId,
|
|
22337
22492
|
className,
|
|
22338
22493
|
children,
|
|
@@ -22341,7 +22496,7 @@ const DotDraggableWindow = ({
|
|
|
22341
22496
|
onClose,
|
|
22342
22497
|
title
|
|
22343
22498
|
}) => {
|
|
22344
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22499
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className);
|
|
22345
22500
|
const nodeRef = useRef(null);
|
|
22346
22501
|
return jsx(Draggable$1, {
|
|
22347
22502
|
bounds: "body",
|
|
@@ -22383,12 +22538,12 @@ const DotDraggableWindow = ({
|
|
|
22383
22538
|
});
|
|
22384
22539
|
};
|
|
22385
22540
|
|
|
22386
|
-
const rootClassName$
|
|
22541
|
+
const rootClassName$c = 'dot-linear-progress';
|
|
22387
22542
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
22388
22543
|
${({
|
|
22389
22544
|
theme
|
|
22390
22545
|
}) => css`
|
|
22391
|
-
&.${rootClassName$
|
|
22546
|
+
&.${rootClassName$c} {
|
|
22392
22547
|
&.MuiLinearProgress-colorError {
|
|
22393
22548
|
color: ${theme.palette.figma.inProgress.error};
|
|
22394
22549
|
}
|
|
@@ -22420,7 +22575,7 @@ const DotLinearProgress = ({
|
|
|
22420
22575
|
valueBuffer,
|
|
22421
22576
|
variant = 'indeterminate'
|
|
22422
22577
|
}) => {
|
|
22423
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22578
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className);
|
|
22424
22579
|
useEffect(() => {
|
|
22425
22580
|
if (!ariaLabel) {
|
|
22426
22581
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -22471,7 +22626,7 @@ const DotDatePicker = ({
|
|
|
22471
22626
|
autoFocus = false,
|
|
22472
22627
|
className,
|
|
22473
22628
|
closeOnSelect = true,
|
|
22474
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
22629
|
+
'data-pendoid': dataPendoId = rootClassName$G,
|
|
22475
22630
|
'data-testid': dataTestId,
|
|
22476
22631
|
defaultValue,
|
|
22477
22632
|
disableOpenPicker,
|
|
@@ -22512,7 +22667,7 @@ const DotDatePicker = ({
|
|
|
22512
22667
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
22513
22668
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
22514
22669
|
const inputRef = useRef(null);
|
|
22515
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22670
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className, isInputReadOnly ? 'read-only' : '');
|
|
22516
22671
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
22517
22672
|
const focusInput = ref => {
|
|
22518
22673
|
setTimeout(() => {
|
|
@@ -22733,7 +22888,7 @@ const DotTimePicker = ({
|
|
|
22733
22888
|
ariaLabel,
|
|
22734
22889
|
autoFocus = false,
|
|
22735
22890
|
className,
|
|
22736
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
22891
|
+
'data-pendoid': dataPendoId = rootClassName$F,
|
|
22737
22892
|
'data-testid': dataTestId,
|
|
22738
22893
|
defaultValue,
|
|
22739
22894
|
disableOpenPicker = false,
|
|
@@ -22765,7 +22920,7 @@ const DotTimePicker = ({
|
|
|
22765
22920
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
22766
22921
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
22767
22922
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
22768
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22923
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className, isComponentReadOnly ? 'read-only' : '');
|
|
22769
22924
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
22770
22925
|
const inputRef = useRef(null);
|
|
22771
22926
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -23061,13 +23216,13 @@ const DotTimePicker = ({
|
|
|
23061
23216
|
});
|
|
23062
23217
|
};
|
|
23063
23218
|
|
|
23064
|
-
const rootClassName$
|
|
23219
|
+
const rootClassName$b = 'dot-carousel';
|
|
23065
23220
|
const StyledCarousel = styled.div`
|
|
23066
23221
|
${({
|
|
23067
23222
|
backgroundColor,
|
|
23068
23223
|
theme
|
|
23069
23224
|
}) => css`
|
|
23070
|
-
&.${rootClassName$
|
|
23225
|
+
&.${rootClassName$b} {
|
|
23071
23226
|
display: flex;
|
|
23072
23227
|
flex-direction: column;
|
|
23073
23228
|
justify-content: space-between;
|
|
@@ -23167,7 +23322,7 @@ const DotCarousel = ({
|
|
|
23167
23322
|
progressIndicator,
|
|
23168
23323
|
showPagesButtons = true
|
|
23169
23324
|
}) => {
|
|
23170
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
23325
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className, backgroundColor ? 'with-background-color' : '');
|
|
23171
23326
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
23172
23327
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
23173
23328
|
const createUuids = () => {
|
|
@@ -23318,13 +23473,13 @@ const DotCarousel = ({
|
|
|
23318
23473
|
});
|
|
23319
23474
|
};
|
|
23320
23475
|
|
|
23321
|
-
const rootClassName$
|
|
23476
|
+
const rootClassName$a = 'dot-sticky-with-border';
|
|
23322
23477
|
const StyledStickyWithBorder = styled.div`
|
|
23323
23478
|
${({
|
|
23324
23479
|
pinnedStickyBorder,
|
|
23325
23480
|
unpinnedStickyBorder
|
|
23326
23481
|
}) => css`
|
|
23327
|
-
&.${rootClassName$
|
|
23482
|
+
&.${rootClassName$a} {
|
|
23328
23483
|
position: sticky;
|
|
23329
23484
|
top: -1px;
|
|
23330
23485
|
|
|
@@ -23352,7 +23507,7 @@ const DotStickyWithBorder = ({
|
|
|
23352
23507
|
}) => {
|
|
23353
23508
|
const [isPinned, setIsPinned] = useState(false);
|
|
23354
23509
|
const ref = useRef(undefined);
|
|
23355
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
23510
|
+
const rootClasses = useStylesWithRootClass(rootClassName$a, className, isPinned ? 'pinned' : 'unpinned');
|
|
23356
23511
|
useEffect(() => {
|
|
23357
23512
|
const element = ref.current;
|
|
23358
23513
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -23374,18 +23529,18 @@ const DotStickyWithBorder = ({
|
|
|
23374
23529
|
});
|
|
23375
23530
|
};
|
|
23376
23531
|
|
|
23377
|
-
const rootClassName$
|
|
23532
|
+
const rootClassName$9 = 'dot--board';
|
|
23378
23533
|
const classNames$5 = {
|
|
23379
|
-
root: rootClassName$
|
|
23380
|
-
spacingNormal: `${rootClassName$
|
|
23381
|
-
spacingDense: `${rootClassName$
|
|
23382
|
-
loading: `${rootClassName$
|
|
23534
|
+
root: rootClassName$9,
|
|
23535
|
+
spacingNormal: `${rootClassName$9}-normal`,
|
|
23536
|
+
spacingDense: `${rootClassName$9}-dense`,
|
|
23537
|
+
loading: `${rootClassName$9}-loading`
|
|
23383
23538
|
};
|
|
23384
23539
|
const StyledBoard = styled.div`
|
|
23385
23540
|
${({
|
|
23386
23541
|
theme
|
|
23387
23542
|
}) => css`
|
|
23388
|
-
&.${rootClassName$
|
|
23543
|
+
&.${rootClassName$9} {
|
|
23389
23544
|
display: flex;
|
|
23390
23545
|
overflow-x: auto;
|
|
23391
23546
|
flex: 1;
|
|
@@ -23393,7 +23548,7 @@ const StyledBoard = styled.div`
|
|
|
23393
23548
|
}
|
|
23394
23549
|
|
|
23395
23550
|
@media (max-width: 650px) {
|
|
23396
|
-
&.${rootClassName$
|
|
23551
|
+
&.${rootClassName$9} {
|
|
23397
23552
|
justify-content: center;
|
|
23398
23553
|
}
|
|
23399
23554
|
}
|
|
@@ -23494,18 +23649,18 @@ const Board = React__default.forwardRef(({
|
|
|
23494
23649
|
});
|
|
23495
23650
|
});
|
|
23496
23651
|
|
|
23497
|
-
const rootClassName$
|
|
23652
|
+
const rootClassName$8 = 'dot--board-column';
|
|
23498
23653
|
const classNames$4 = {
|
|
23499
|
-
root: rootClassName$
|
|
23500
|
-
spacingNormal: `${rootClassName$
|
|
23501
|
-
spacingDense: `${rootClassName$
|
|
23502
|
-
collapse: `${rootClassName$
|
|
23654
|
+
root: rootClassName$8,
|
|
23655
|
+
spacingNormal: `${rootClassName$8}-normal`,
|
|
23656
|
+
spacingDense: `${rootClassName$8}-dense`,
|
|
23657
|
+
collapse: `${rootClassName$8}-collapse`
|
|
23503
23658
|
};
|
|
23504
23659
|
const StyledBoardColumn = styled.div`
|
|
23505
23660
|
${({
|
|
23506
23661
|
theme
|
|
23507
23662
|
}) => css`
|
|
23508
|
-
&.${rootClassName$
|
|
23663
|
+
&.${rootClassName$8} {
|
|
23509
23664
|
display: flex;
|
|
23510
23665
|
flex-direction: column;
|
|
23511
23666
|
overflow: hidden;
|
|
@@ -23596,13 +23751,13 @@ const BoardColumn = React__default.forwardRef(({
|
|
|
23596
23751
|
});
|
|
23597
23752
|
});
|
|
23598
23753
|
|
|
23599
|
-
const rootClassName$
|
|
23754
|
+
const rootClassName$7 = 'dot--board-column-header';
|
|
23600
23755
|
const classNames$3 = {
|
|
23601
|
-
root: rootClassName$
|
|
23602
|
-
spacingNormal: `${rootClassName$
|
|
23603
|
-
spacingDense: `${rootClassName$
|
|
23604
|
-
colorBar: `${rootClassName$
|
|
23605
|
-
title: `${rootClassName$
|
|
23756
|
+
root: rootClassName$7,
|
|
23757
|
+
spacingNormal: `${rootClassName$7}-normal`,
|
|
23758
|
+
spacingDense: `${rootClassName$7}-dense`,
|
|
23759
|
+
colorBar: `${rootClassName$7}-color-bar`,
|
|
23760
|
+
title: `${rootClassName$7}-title`
|
|
23606
23761
|
};
|
|
23607
23762
|
const StyledBoardColumnHeader = styled.div`
|
|
23608
23763
|
${({
|
|
@@ -23670,11 +23825,11 @@ const BoardColumnHeader = ({
|
|
|
23670
23825
|
});
|
|
23671
23826
|
};
|
|
23672
23827
|
|
|
23673
|
-
const rootClassName$
|
|
23828
|
+
const rootClassName$6 = 'dot--board-column-items';
|
|
23674
23829
|
const classNames$2 = {
|
|
23675
|
-
root: rootClassName$
|
|
23676
|
-
spacingNormal: `${rootClassName$
|
|
23677
|
-
spacingDense: `${rootClassName$
|
|
23830
|
+
root: rootClassName$6,
|
|
23831
|
+
spacingNormal: `${rootClassName$6}-normal`,
|
|
23832
|
+
spacingDense: `${rootClassName$6}-dense`
|
|
23678
23833
|
};
|
|
23679
23834
|
const StyledBoardColumnItems = styled.div`
|
|
23680
23835
|
${({
|
|
@@ -23726,11 +23881,11 @@ const BoardColumnItems = ({
|
|
|
23726
23881
|
});
|
|
23727
23882
|
};
|
|
23728
23883
|
|
|
23729
|
-
const rootClassName$
|
|
23884
|
+
const rootClassName$5 = 'dot--board-column-action-bar';
|
|
23730
23885
|
const classNames$1 = {
|
|
23731
|
-
root: rootClassName$
|
|
23732
|
-
spacingNormal: `${rootClassName$
|
|
23733
|
-
spacingDense: `${rootClassName$
|
|
23886
|
+
root: rootClassName$5,
|
|
23887
|
+
spacingNormal: `${rootClassName$5}-normal`,
|
|
23888
|
+
spacingDense: `${rootClassName$5}-dense`
|
|
23734
23889
|
};
|
|
23735
23890
|
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
23736
23891
|
${({
|
|
@@ -23801,13 +23956,13 @@ const BoardColumnCollapse = ({
|
|
|
23801
23956
|
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
23802
23957
|
};
|
|
23803
23958
|
|
|
23804
|
-
const rootClassName$
|
|
23959
|
+
const rootClassName$4 = 'dot--board-column-header';
|
|
23805
23960
|
const classNames = {
|
|
23806
|
-
root: rootClassName$
|
|
23807
|
-
spacingNormal: `${rootClassName$
|
|
23808
|
-
spacingDense: `${rootClassName$
|
|
23809
|
-
title: `${rootClassName$
|
|
23810
|
-
text: `${rootClassName$
|
|
23961
|
+
root: rootClassName$4,
|
|
23962
|
+
spacingNormal: `${rootClassName$4}-normal`,
|
|
23963
|
+
spacingDense: `${rootClassName$4}-dense`,
|
|
23964
|
+
title: `${rootClassName$4}-title`,
|
|
23965
|
+
text: `${rootClassName$4}-text`
|
|
23811
23966
|
};
|
|
23812
23967
|
const StyledBoardColumnSummary = styled.div`
|
|
23813
23968
|
${({
|
|
@@ -23869,12 +24024,12 @@ const BoardColumnSummary = ({
|
|
|
23869
24024
|
});
|
|
23870
24025
|
};
|
|
23871
24026
|
|
|
23872
|
-
const rootClassName$
|
|
24027
|
+
const rootClassName$3 = 'dot-search';
|
|
23873
24028
|
const StyledSearch = styled(DotInputText)`
|
|
23874
24029
|
${({
|
|
23875
24030
|
theme
|
|
23876
24031
|
}) => css`
|
|
23877
|
-
&.${rootClassName$
|
|
24032
|
+
&.${rootClassName$3} {
|
|
23878
24033
|
&.with-value .MuiInputBase-root {
|
|
23879
24034
|
background-color: ${theme.palette.figma.primary.light};
|
|
23880
24035
|
|
|
@@ -23917,7 +24072,7 @@ const DotSearch = _a => {
|
|
|
23917
24072
|
value
|
|
23918
24073
|
} = _a,
|
|
23919
24074
|
rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
|
|
23920
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
24075
|
+
const rootClasses = useStylesWithRootClass(rootClassName$3, className, value ? 'with-value' : '');
|
|
23921
24076
|
return jsx(StyledSearch, Object.assign({}, rest, {
|
|
23922
24077
|
"aria-label": ariaLabel,
|
|
23923
24078
|
className: rootClasses,
|
|
@@ -23936,12 +24091,12 @@ const DotSearch = _a => {
|
|
|
23936
24091
|
}));
|
|
23937
24092
|
};
|
|
23938
24093
|
|
|
23939
|
-
const rootClassName$
|
|
24094
|
+
const rootClassName$2 = 'dot-toggle-switch';
|
|
23940
24095
|
const StyledToggleSwitch = styled(Stack)`
|
|
23941
24096
|
${({
|
|
23942
24097
|
theme
|
|
23943
24098
|
}) => css`
|
|
23944
|
-
&.${rootClassName$
|
|
24099
|
+
&.${rootClassName$2} {
|
|
23945
24100
|
gap: ${theme.spacing(2)};
|
|
23946
24101
|
cursor: pointer;
|
|
23947
24102
|
|
|
@@ -23995,7 +24150,7 @@ const StyledToggleSwitch = styled(Stack)`
|
|
|
23995
24150
|
const DotToggleSwitch = ({
|
|
23996
24151
|
ariaLabel,
|
|
23997
24152
|
className,
|
|
23998
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
24153
|
+
'data-pendoid': dataPendoId = rootClassName$2,
|
|
23999
24154
|
'data-testid': dataTestId,
|
|
24000
24155
|
disabled = false,
|
|
24001
24156
|
label,
|
|
@@ -24005,7 +24160,7 @@ const DotToggleSwitch = ({
|
|
|
24005
24160
|
}) => {
|
|
24006
24161
|
const toggleOptions = options.slice(0, 2);
|
|
24007
24162
|
const isChecked = toggleOptions[1].value === value;
|
|
24008
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
24163
|
+
const rootClasses = useStylesWithRootClass(rootClassName$2, className, disabled ? 'dot-disabled' : '');
|
|
24009
24164
|
const toggleValue = () => {
|
|
24010
24165
|
const [firstOption, secondOption] = toggleOptions;
|
|
24011
24166
|
const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
|
|
@@ -25274,13 +25429,13 @@ var Sketch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
|
25274
25429
|
});
|
|
25275
25430
|
Sketch.displayName = 'Sketch';
|
|
25276
25431
|
|
|
25277
|
-
const rootClassName = 'dot-color-picker';
|
|
25432
|
+
const rootClassName$1 = 'dot-color-picker';
|
|
25278
25433
|
const StyledColorPicker = styled(Sketch)`
|
|
25279
25434
|
${({
|
|
25280
25435
|
theme,
|
|
25281
25436
|
$hideShadow
|
|
25282
25437
|
}) => css`
|
|
25283
|
-
&.${rootClassName} {
|
|
25438
|
+
&.${rootClassName$1} {
|
|
25284
25439
|
--sketch-background: ${theme.palette.figma.background.level0.componentsBackground} !important;
|
|
25285
25440
|
--sketch-swatch-border-top: none !important;
|
|
25286
25441
|
--sketch-box-shadow: ${theme.shadows[1]} !important;
|
|
@@ -25336,7 +25491,7 @@ const DotColorPicker = ({
|
|
|
25336
25491
|
return jsx(StyledColorPicker, {
|
|
25337
25492
|
"$hideShadow": hideShadow,
|
|
25338
25493
|
"aria-label": ariaLabel,
|
|
25339
|
-
className: rootClassName,
|
|
25494
|
+
className: rootClassName$1,
|
|
25340
25495
|
color: color,
|
|
25341
25496
|
"data-pendoid": dataPendoId,
|
|
25342
25497
|
"data-testid": dataTestId,
|
|
@@ -25351,4 +25506,144 @@ const DotColorPicker = ({
|
|
|
25351
25506
|
});
|
|
25352
25507
|
};
|
|
25353
25508
|
|
|
25354
|
-
|
|
25509
|
+
const rootClassName = 'dot-select';
|
|
25510
|
+
const StyledSelectContainer = styled.div`
|
|
25511
|
+
${({
|
|
25512
|
+
theme,
|
|
25513
|
+
size,
|
|
25514
|
+
persistentLabel
|
|
25515
|
+
}) => css`
|
|
25516
|
+
&.${rootClassName} {
|
|
25517
|
+
.MuiInputBase-root {
|
|
25518
|
+
background: ${theme.palette.figma.neutral.normal};
|
|
25519
|
+
height: ${theme.spacing(7)};
|
|
25520
|
+
&.MuiInputBase-sizeSmall {
|
|
25521
|
+
height: ${theme.spacing(5)};
|
|
25522
|
+
}
|
|
25523
|
+
}
|
|
25524
|
+
|
|
25525
|
+
.MuiInputLabel-root:not(.MuiInputLabel-shrink) {
|
|
25526
|
+
top: ${size === 'small' && !persistentLabel ? '-7px' : '1px'};
|
|
25527
|
+
}
|
|
25528
|
+
|
|
25529
|
+
.MuiInputLabel-root {
|
|
25530
|
+
color: ${theme.palette.figma.typography.gray};
|
|
25531
|
+
|
|
25532
|
+
&.Mui-focused,
|
|
25533
|
+
&.MuiInputLabel-shrink {
|
|
25534
|
+
color: ${theme.palette.figma.typography.black};
|
|
25535
|
+
}
|
|
25536
|
+
}
|
|
25537
|
+
|
|
25538
|
+
.MuiInputBase-root.Mui-disabled,
|
|
25539
|
+
.MuiInputBase-root.Mui-readOnly {
|
|
25540
|
+
${readOnlyStyles(theme)};
|
|
25541
|
+
}
|
|
25542
|
+
|
|
25543
|
+
.MuiFormHelperText-root {
|
|
25544
|
+
${formHelperTextRootStyles(theme)};
|
|
25545
|
+
}
|
|
25546
|
+
}
|
|
25547
|
+
`}
|
|
25548
|
+
`;
|
|
25549
|
+
const StyledMenuItem = styled(MenuItem)`
|
|
25550
|
+
${({
|
|
25551
|
+
theme
|
|
25552
|
+
}) => css`
|
|
25553
|
+
&.MuiMenuItem-root.Mui-selected {
|
|
25554
|
+
background-color: ${theme.palette.figma.primary.light};
|
|
25555
|
+
color: ${theme.palette.figma.primary.elevated};
|
|
25556
|
+
}
|
|
25557
|
+
`}
|
|
25558
|
+
`;
|
|
25559
|
+
|
|
25560
|
+
const DotSelect = ({
|
|
25561
|
+
ariaLabel,
|
|
25562
|
+
autoFocus,
|
|
25563
|
+
className,
|
|
25564
|
+
defaultValue = '',
|
|
25565
|
+
'data-pendoid': dataPendoId = rootClassName,
|
|
25566
|
+
'data-testid': dataTestId,
|
|
25567
|
+
disabled = false,
|
|
25568
|
+
error = false,
|
|
25569
|
+
fullWidth = true,
|
|
25570
|
+
helperText,
|
|
25571
|
+
id,
|
|
25572
|
+
inputRef,
|
|
25573
|
+
label,
|
|
25574
|
+
minWidth = 80,
|
|
25575
|
+
name,
|
|
25576
|
+
onBlur,
|
|
25577
|
+
onChange,
|
|
25578
|
+
onFocus,
|
|
25579
|
+
onKeyDown,
|
|
25580
|
+
onMouseUp,
|
|
25581
|
+
persistentLabel,
|
|
25582
|
+
size = 'small',
|
|
25583
|
+
readOnly = false,
|
|
25584
|
+
required = false,
|
|
25585
|
+
value,
|
|
25586
|
+
options,
|
|
25587
|
+
renderOption
|
|
25588
|
+
}) => {
|
|
25589
|
+
const rootStyles = useStylesWithRootClass(rootClassName, className);
|
|
25590
|
+
return jsxs(StyledSelectContainer, {
|
|
25591
|
+
persistentLabel: persistentLabel,
|
|
25592
|
+
size: size,
|
|
25593
|
+
className: rootStyles,
|
|
25594
|
+
children: [persistentLabel && jsx(DotInputLabel, {
|
|
25595
|
+
"data-testid": dataTestId && `${dataTestId}-persistent-label`,
|
|
25596
|
+
id: `${id}-label`,
|
|
25597
|
+
disabled,
|
|
25598
|
+
error,
|
|
25599
|
+
label,
|
|
25600
|
+
required
|
|
25601
|
+
}), jsxs(StyledFormControl, {
|
|
25602
|
+
error: error,
|
|
25603
|
+
fullWidth: fullWidth,
|
|
25604
|
+
required: required,
|
|
25605
|
+
sx: {
|
|
25606
|
+
minWidth
|
|
25607
|
+
},
|
|
25608
|
+
children: [!persistentLabel && label && jsx(InputLabel, {
|
|
25609
|
+
id: `${id}-label`,
|
|
25610
|
+
htmlFor: name,
|
|
25611
|
+
children: label
|
|
25612
|
+
}), jsx(Select, {
|
|
25613
|
+
autoFocus: autoFocus,
|
|
25614
|
+
defaultValue: defaultValue,
|
|
25615
|
+
disabled: disabled,
|
|
25616
|
+
label: persistentLabel ? undefined : label,
|
|
25617
|
+
error: error,
|
|
25618
|
+
fullWidth: fullWidth,
|
|
25619
|
+
id: id,
|
|
25620
|
+
inputRef: inputRef,
|
|
25621
|
+
inputProps: {
|
|
25622
|
+
'aria-label': ariaLabel,
|
|
25623
|
+
'data-pendoid': dataPendoId,
|
|
25624
|
+
'data-testid': dataTestId,
|
|
25625
|
+
readOnly
|
|
25626
|
+
},
|
|
25627
|
+
name: name,
|
|
25628
|
+
onBlur: onBlur,
|
|
25629
|
+
onChange: onChange,
|
|
25630
|
+
onFocus: onFocus,
|
|
25631
|
+
onKeyDown: onKeyDown,
|
|
25632
|
+
onMouseUp: onMouseUp,
|
|
25633
|
+
readOnly: readOnly,
|
|
25634
|
+
required: required,
|
|
25635
|
+
size: size,
|
|
25636
|
+
value: value,
|
|
25637
|
+
variant: "outlined",
|
|
25638
|
+
children: options.map(option => jsx(StyledMenuItem, {
|
|
25639
|
+
value: option.value,
|
|
25640
|
+
children: renderOption ? renderOption(option) : option.option
|
|
25641
|
+
}, option.value))
|
|
25642
|
+
}), helperText && jsx(FormHelperText, {
|
|
25643
|
+
children: helperText
|
|
25644
|
+
})]
|
|
25645
|
+
})]
|
|
25646
|
+
});
|
|
25647
|
+
};
|
|
25648
|
+
|
|
25649
|
+
export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardAppTypeToLabelMap, DashboardView, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAnnotation, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotAvatarWithDetails, DotBadge, Board as DotBoard, BoardColumn as DotBoardColumn, BoardColumnActionBar as DotBoardColumnActionBar, BoardColumnCollapse as DotBoardColumnCollapse, BoardColumnExpand as DotBoardColumnExpand, BoardColumnHeader as DotBoardColumnHeader, BoardColumnItems as DotBoardColumnItems, BoardColumnSummary as DotBoardColumnSummary, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotColorPicker, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFab, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSelect, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotToggleSwitch, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage, useKeyPress };
|