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