@carto/meridian-ds 2.11.0 → 2.12.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/CHANGELOG.md +4 -0
- package/dist/{ListItem-BmsqkqsM.cjs → ListItem-2aFaE2cn.cjs} +1 -1
- package/dist/{ListItem-k7Far5JT.js → ListItem-DA0KFtZW.js} +1 -1
- package/dist/{OpenDiagonallyRight-BUZBgnkY.cjs → OpenDiagonallyRight-CaNa6uRI.cjs} +31 -3
- package/dist/{OpenDiagonallyRight-DQEM4RAg.js → OpenDiagonallyRight-y1A_rQiz.js} +31 -3
- package/dist/components/index.cjs +35 -15
- package/dist/components/index.js +35 -15
- package/dist/custom-icons/index.cjs +79 -106
- package/dist/custom-icons/index.js +79 -106
- package/dist/{palette-utils-BsfMFfME.cjs → palette-utils-Y3_zSjv2.cjs} +3 -0
- package/dist/{palette-utils-BMEVUZ5G.js → palette-utils-vw-vTQjG.js} +3 -0
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +3 -3
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts +56 -13
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/types.d.ts +11 -4
- package/dist/types/components/Dialog/types.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +1 -0
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +1 -0
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +1 -0
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +3 -0
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/{utils-BndCEhGs.cjs → utils-BC7DF-VM.cjs} +1 -1
- package/dist/{utils-DYO_K3Z4.js → utils-COdo3b_v.js} +1 -1
- package/dist/widgets/index.cjs +2 -2
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## 2.0
|
|
6
6
|
|
|
7
|
+
### 2.12.0
|
|
8
|
+
|
|
9
|
+
- Added onBack button functionality to the DialogHeader component [#372](https://github.com/CartoDB/meridian-ds/pull/372)
|
|
10
|
+
|
|
7
11
|
### 2.11.0
|
|
8
12
|
|
|
9
13
|
- Extend `AccordionGroup`, adding the `sx` property to each of the `items` [#369](https://github.com/CartoDB/meridian-ds/pull/369)
|
|
@@ -3,8 +3,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
5
|
const iconsMaterial = require("@mui/icons-material");
|
|
6
|
-
const paletteUtils = require("./palette-utils-BsfMFfME.cjs");
|
|
7
6
|
require("cartocolor");
|
|
7
|
+
const paletteUtils = require("./palette-utils-Y3_zSjv2.cjs");
|
|
8
8
|
const ReactWindow = require("react-window");
|
|
9
9
|
function _interopNamespaceDefault(e) {
|
|
10
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { forwardRef, useState, createContext, useMemo, useContext } from "react";
|
|
3
3
|
import { styled, Link as Link$1, Alert as Alert$1, Fade, AlertTitle, List as List$1, ListItemButton as ListItemButton$1, ListItem as ListItem$1 } from "@mui/material";
|
|
4
4
|
import { OpenInNewOutlined } from "@mui/icons-material";
|
|
5
|
-
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography, m as LIST_MAX_SIZE, n as LIST_OVERSCAN_ITEMS_COUNT, h as LIST_ITEM_SIZE_DENSE, i as LIST_ITEM_SIZE_DEFAULT } from "./palette-utils-BMEVUZ5G.js";
|
|
6
5
|
import "cartocolor";
|
|
6
|
+
import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography, m as LIST_MAX_SIZE, n as LIST_OVERSCAN_ITEMS_COUNT, h as LIST_ITEM_SIZE_DENSE, i as LIST_ITEM_SIZE_DEFAULT } from "./palette-utils-vw-vTQjG.js";
|
|
7
7
|
import * as ReactWindow from "react-window";
|
|
8
8
|
const ScreenReaderOnly = styled("span")(() => ({
|
|
9
9
|
position: "absolute",
|
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const material = require("@mui/material");
|
|
5
|
+
const Icon$3 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
fillRule: "evenodd",
|
|
10
|
+
d: "m11.835 11.995 3.17-3.17-1.41-1.41-4.59 4.58 4.59 4.59 1.41-1.42z",
|
|
11
|
+
clipRule: "evenodd"
|
|
12
|
+
}
|
|
13
|
+
) });
|
|
14
|
+
const BaseSvgIcon$3 = material.createSvgIcon(Icon$3(), "ArrowLeft");
|
|
15
|
+
function ArrowLeft({ width, height, sx, ...props }, ref) {
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
|
+
BaseSvgIcon$3,
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
sx: {
|
|
22
|
+
width,
|
|
23
|
+
height: height || width,
|
|
24
|
+
...sx
|
|
25
|
+
},
|
|
26
|
+
...props
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
const ForwardedComponent$3 = React.forwardRef(ArrowLeft);
|
|
31
|
+
ForwardedComponent$3.displayName = "ArrowLeft";
|
|
5
32
|
const Icon$2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6
33
|
"path",
|
|
7
34
|
{
|
|
@@ -83,6 +110,7 @@ function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
|
83
110
|
}
|
|
84
111
|
const ForwardedComponent = React.forwardRef(OpenDiagonallyRight);
|
|
85
112
|
ForwardedComponent.displayName = "OpenDiagonallyRight";
|
|
86
|
-
exports.ForwardedComponent = ForwardedComponent$
|
|
87
|
-
exports.ForwardedComponent$1 = ForwardedComponent$
|
|
88
|
-
exports.ForwardedComponent$2 = ForwardedComponent;
|
|
113
|
+
exports.ForwardedComponent = ForwardedComponent$3;
|
|
114
|
+
exports.ForwardedComponent$1 = ForwardedComponent$2;
|
|
115
|
+
exports.ForwardedComponent$2 = ForwardedComponent$1;
|
|
116
|
+
exports.ForwardedComponent$3 = ForwardedComponent;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { createSvgIcon } from "@mui/material";
|
|
4
|
+
const Icon$3 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
fillRule: "evenodd",
|
|
9
|
+
d: "m11.835 11.995 3.17-3.17-1.41-1.41-4.59 4.58 4.59 4.59 1.41-1.42z",
|
|
10
|
+
clipRule: "evenodd"
|
|
11
|
+
}
|
|
12
|
+
) });
|
|
13
|
+
const BaseSvgIcon$3 = createSvgIcon(Icon$3(), "ArrowLeft");
|
|
14
|
+
function ArrowLeft({ width, height, sx, ...props }, ref) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
BaseSvgIcon$3,
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
sx: {
|
|
21
|
+
width,
|
|
22
|
+
height: height || width,
|
|
23
|
+
...sx
|
|
24
|
+
},
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
const ForwardedComponent$3 = forwardRef(ArrowLeft);
|
|
30
|
+
ForwardedComponent$3.displayName = "ArrowLeft";
|
|
4
31
|
const Icon$2 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
|
|
5
32
|
"path",
|
|
6
33
|
{
|
|
@@ -83,7 +110,8 @@ function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
|
|
|
83
110
|
const ForwardedComponent = forwardRef(OpenDiagonallyRight);
|
|
84
111
|
ForwardedComponent.displayName = "OpenDiagonallyRight";
|
|
85
112
|
export {
|
|
86
|
-
ForwardedComponent$
|
|
87
|
-
ForwardedComponent$
|
|
88
|
-
ForwardedComponent as b
|
|
113
|
+
ForwardedComponent$3 as F,
|
|
114
|
+
ForwardedComponent$2 as a,
|
|
115
|
+
ForwardedComponent$1 as b,
|
|
116
|
+
ForwardedComponent as c
|
|
89
117
|
};
|
|
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const material = require("@mui/material");
|
|
6
6
|
const iconsMaterial = require("@mui/icons-material");
|
|
7
|
-
const paletteUtils = require("../palette-utils-
|
|
8
|
-
const ListItem = require("../ListItem-
|
|
7
|
+
const paletteUtils = require("../palette-utils-Y3_zSjv2.cjs");
|
|
8
|
+
const ListItem = require("../ListItem-2aFaE2cn.cjs");
|
|
9
9
|
const ArrowDown = require("../ArrowDown-84Oc8r9k.cjs");
|
|
10
|
-
const OpenDiagonallyRight = require("../OpenDiagonallyRight-
|
|
11
|
-
const utils = require("../utils-
|
|
10
|
+
const OpenDiagonallyRight = require("../OpenDiagonallyRight-CaNa6uRI.cjs");
|
|
11
|
+
const utils = require("../utils-BC7DF-VM.cjs");
|
|
12
12
|
require("cartocolor");
|
|
13
13
|
const ReactWindow = require("react-window");
|
|
14
14
|
const reactCodemirror2 = require("react-codemirror2");
|
|
@@ -203,7 +203,7 @@ function SplitButton({
|
|
|
203
203
|
children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
|
|
204
204
|
}
|
|
205
205
|
),
|
|
206
|
-
/* @__PURE__ */ jsxRuntime.jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}) })
|
|
206
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$1, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}) })
|
|
207
207
|
]
|
|
208
208
|
}
|
|
209
209
|
),
|
|
@@ -2162,7 +2162,7 @@ function CodeAreaHeader({
|
|
|
2162
2162
|
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { children: copyLabel })
|
|
2163
2163
|
] }),
|
|
2164
2164
|
/* @__PURE__ */ jsxRuntime.jsxs(utils.MenuItem, { onClick: onClickExpand, disabled, id: "expand", children: [
|
|
2165
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$
|
|
2165
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$3, {}) }),
|
|
2166
2166
|
/* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { children: expandLabel })
|
|
2167
2167
|
] })
|
|
2168
2168
|
]
|
|
@@ -2200,7 +2200,7 @@ function CodeAreaHeader({
|
|
|
2200
2200
|
color: "default",
|
|
2201
2201
|
size,
|
|
2202
2202
|
onClick: onClickExpand,
|
|
2203
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$
|
|
2203
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$3, {}),
|
|
2204
2204
|
disabled,
|
|
2205
2205
|
tooltip: expandLabel,
|
|
2206
2206
|
tooltipPlacement: "top"
|
|
@@ -3252,18 +3252,36 @@ function DialogHeader({
|
|
|
3252
3252
|
"aria-label": ariaLabel,
|
|
3253
3253
|
closeIcon,
|
|
3254
3254
|
closeTooltipText,
|
|
3255
|
-
tooltipProps,
|
|
3256
3255
|
iconButtonProps,
|
|
3256
|
+
onBack,
|
|
3257
|
+
backIcon,
|
|
3258
|
+
backTooltipText,
|
|
3259
|
+
backIconButtonProps,
|
|
3257
3260
|
...otherProps
|
|
3258
3261
|
}) {
|
|
3259
3262
|
const closeTooltipLabel = paletteUtils.useTranslationWithFallback(
|
|
3260
3263
|
"c4r.button.close",
|
|
3261
3264
|
closeTooltipText
|
|
3262
3265
|
);
|
|
3266
|
+
const backTooltipLabel = paletteUtils.useTranslationWithFallback(
|
|
3267
|
+
"c4r.button.back",
|
|
3268
|
+
backTooltipText
|
|
3269
|
+
);
|
|
3263
3270
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3264
3271
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogTitle, { component: "div", "data-name": "dialog-header", ...otherProps, children: [
|
|
3265
3272
|
/* @__PURE__ */ jsxRuntime.jsxs(Main$1, { children: [
|
|
3266
3273
|
/* @__PURE__ */ jsxRuntime.jsxs(ItemsWrapper$1, { flex: 1, maxWidth: 0.8, children: [
|
|
3274
|
+
onBack && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3275
|
+
paletteUtils.IconButton,
|
|
3276
|
+
{
|
|
3277
|
+
"aria-label": backTooltipLabel,
|
|
3278
|
+
onClick: onBack,
|
|
3279
|
+
tooltip: backTooltipLabel,
|
|
3280
|
+
tooltipPlacement: "bottom",
|
|
3281
|
+
icon: backIcon || /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}),
|
|
3282
|
+
...backIconButtonProps
|
|
3283
|
+
}
|
|
3284
|
+
),
|
|
3267
3285
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3268
3286
|
paletteUtils.Typography,
|
|
3269
3287
|
{
|
|
@@ -3280,12 +3298,14 @@ function DialogHeader({
|
|
|
3280
3298
|
/* @__PURE__ */ jsxRuntime.jsxs(ItemsWrapper$1, { children: [
|
|
3281
3299
|
secondaryActions,
|
|
3282
3300
|
onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3283
|
-
|
|
3301
|
+
paletteUtils.IconButton,
|
|
3284
3302
|
{
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3303
|
+
"aria-label": closeTooltipLabel,
|
|
3304
|
+
onClick: onClose,
|
|
3305
|
+
tooltip: closeTooltipLabel,
|
|
3306
|
+
tooltipPlacement: "bottom",
|
|
3307
|
+
icon: closeIcon || /* @__PURE__ */ jsxRuntime.jsx(CloseIcon, { "data-testid": "CloseIcon" }),
|
|
3308
|
+
...iconButtonProps
|
|
3289
3309
|
}
|
|
3290
3310
|
)
|
|
3291
3311
|
] })
|
|
@@ -3808,7 +3828,7 @@ function CodeAreaDialog({
|
|
|
3808
3828
|
{
|
|
3809
3829
|
title,
|
|
3810
3830
|
onClose,
|
|
3811
|
-
closeIcon: !onClickFooter && /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$
|
|
3831
|
+
closeIcon: !onClickFooter && /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$2, {})
|
|
3812
3832
|
}
|
|
3813
3833
|
),
|
|
3814
3834
|
/* @__PURE__ */ jsxRuntime.jsx(CodeAreaDialogContent, { error, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5164,7 +5184,7 @@ function _FilterDropdown({
|
|
|
5164
5184
|
Button,
|
|
5165
5185
|
{
|
|
5166
5186
|
...commonButtonProps,
|
|
5167
|
-
endIcon: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
5187
|
+
endIcon: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$1, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
|
|
5168
5188
|
...buttonProps,
|
|
5169
5189
|
children: menuLabel
|
|
5170
5190
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import React, { forwardRef, useState, useRef, useEffect, useMemo, createElement,
|
|
|
3
3
|
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText as ListItemText$1, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip as Chip$1, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade, ListSubheader as ListSubheader$1, Typography as Typography$1, Popover } from "@mui/material";
|
|
4
4
|
import { ListItemAvatar, ListItemSecondaryAction } from "@mui/material";
|
|
5
5
|
import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
|
|
6
|
-
import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, o as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, l as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, p as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles, r as resolvePalettePath } from "../palette-utils-
|
|
7
|
-
import { a } from "../palette-utils-
|
|
8
|
-
import { S as ScreenReaderOnly, A as Alert$1, u as useListContextProps } from "../ListItem-
|
|
9
|
-
import { L, a as a2, b, c, d } from "../ListItem-
|
|
6
|
+
import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, o as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, l as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, p as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles, r as resolvePalettePath } from "../palette-utils-vw-vTQjG.js";
|
|
7
|
+
import { a } from "../palette-utils-vw-vTQjG.js";
|
|
8
|
+
import { S as ScreenReaderOnly, A as Alert$1, u as useListContextProps } from "../ListItem-DA0KFtZW.js";
|
|
9
|
+
import { L, a as a2, b, c, d } from "../ListItem-DA0KFtZW.js";
|
|
10
10
|
import { F as ForwardedComponent$1 } from "../ArrowDown-Bho9Ssnw.js";
|
|
11
|
-
import {
|
|
12
|
-
import { M as MenuItem$1, b as getThemeColor, S as SVG_SELECTOR } from "../utils-
|
|
11
|
+
import { a as ForwardedComponent, c as ForwardedComponent$2, F as ForwardedComponent$3, b as ForwardedComponent$4 } from "../OpenDiagonallyRight-y1A_rQiz.js";
|
|
12
|
+
import { M as MenuItem$1, b as getThemeColor, S as SVG_SELECTOR } from "../utils-COdo3b_v.js";
|
|
13
13
|
import "cartocolor";
|
|
14
14
|
import * as ReactWindow from "react-window";
|
|
15
15
|
import { Controlled, UnControlled } from "react-codemirror2";
|
|
@@ -42,7 +42,7 @@ import { useIntl } from "react-intl";
|
|
|
42
42
|
import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
|
|
43
43
|
import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
|
|
44
44
|
import { DateTimePicker as DateTimePicker$1 } from "@mui/x-date-pickers/DateTimePicker";
|
|
45
|
-
import { F as ForwardedComponent$
|
|
45
|
+
import { F as ForwardedComponent$5 } from "../Search-Bx9LZ_VF.js";
|
|
46
46
|
import DOMPurify from "dompurify";
|
|
47
47
|
const IndicatorIcon = styled(Box)({
|
|
48
48
|
position: "absolute",
|
|
@@ -3236,18 +3236,36 @@ function DialogHeader({
|
|
|
3236
3236
|
"aria-label": ariaLabel,
|
|
3237
3237
|
closeIcon,
|
|
3238
3238
|
closeTooltipText,
|
|
3239
|
-
tooltipProps,
|
|
3240
3239
|
iconButtonProps,
|
|
3240
|
+
onBack,
|
|
3241
|
+
backIcon,
|
|
3242
|
+
backTooltipText,
|
|
3243
|
+
backIconButtonProps,
|
|
3241
3244
|
...otherProps
|
|
3242
3245
|
}) {
|
|
3243
3246
|
const closeTooltipLabel = useTranslationWithFallback(
|
|
3244
3247
|
"c4r.button.close",
|
|
3245
3248
|
closeTooltipText
|
|
3246
3249
|
);
|
|
3250
|
+
const backTooltipLabel = useTranslationWithFallback(
|
|
3251
|
+
"c4r.button.back",
|
|
3252
|
+
backTooltipText
|
|
3253
|
+
);
|
|
3247
3254
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3248
3255
|
/* @__PURE__ */ jsxs(DialogTitle, { component: "div", "data-name": "dialog-header", ...otherProps, children: [
|
|
3249
3256
|
/* @__PURE__ */ jsxs(Main$1, { children: [
|
|
3250
3257
|
/* @__PURE__ */ jsxs(ItemsWrapper$1, { flex: 1, maxWidth: 0.8, children: [
|
|
3258
|
+
onBack && /* @__PURE__ */ jsx(
|
|
3259
|
+
IconButton,
|
|
3260
|
+
{
|
|
3261
|
+
"aria-label": backTooltipLabel,
|
|
3262
|
+
onClick: onBack,
|
|
3263
|
+
tooltip: backTooltipLabel,
|
|
3264
|
+
tooltipPlacement: "bottom",
|
|
3265
|
+
icon: backIcon || /* @__PURE__ */ jsx(ForwardedComponent$3, {}),
|
|
3266
|
+
...backIconButtonProps
|
|
3267
|
+
}
|
|
3268
|
+
),
|
|
3251
3269
|
/* @__PURE__ */ jsx(
|
|
3252
3270
|
Typography,
|
|
3253
3271
|
{
|
|
@@ -3264,12 +3282,14 @@ function DialogHeader({
|
|
|
3264
3282
|
/* @__PURE__ */ jsxs(ItemsWrapper$1, { children: [
|
|
3265
3283
|
secondaryActions,
|
|
3266
3284
|
onClose && /* @__PURE__ */ jsx(
|
|
3267
|
-
|
|
3285
|
+
IconButton,
|
|
3268
3286
|
{
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3287
|
+
"aria-label": closeTooltipLabel,
|
|
3288
|
+
onClick: onClose,
|
|
3289
|
+
tooltip: closeTooltipLabel,
|
|
3290
|
+
tooltipPlacement: "bottom",
|
|
3291
|
+
icon: closeIcon || /* @__PURE__ */ jsx(CloseIcon, { "data-testid": "CloseIcon" }),
|
|
3292
|
+
...iconButtonProps
|
|
3273
3293
|
}
|
|
3274
3294
|
)
|
|
3275
3295
|
] })
|
|
@@ -3792,7 +3812,7 @@ function CodeAreaDialog({
|
|
|
3792
3812
|
{
|
|
3793
3813
|
title,
|
|
3794
3814
|
onClose,
|
|
3795
|
-
closeIcon: !onClickFooter && /* @__PURE__ */ jsx(ForwardedComponent$
|
|
3815
|
+
closeIcon: !onClickFooter && /* @__PURE__ */ jsx(ForwardedComponent$4, {})
|
|
3796
3816
|
}
|
|
3797
3817
|
),
|
|
3798
3818
|
/* @__PURE__ */ jsx(CodeAreaDialogContent, { error, children: /* @__PURE__ */ jsx(
|
|
@@ -5494,7 +5514,7 @@ function _MessageField({
|
|
|
5494
5514
|
}
|
|
5495
5515
|
const MessageField = forwardRef(_MessageField);
|
|
5496
5516
|
MessageField.displayName = "MessageField";
|
|
5497
|
-
const SearchIcon = styled(ForwardedComponent$
|
|
5517
|
+
const SearchIcon = styled(ForwardedComponent$5, {
|
|
5498
5518
|
shouldForwardProp: (prop) => prop !== "minimized" && prop !== "disabled"
|
|
5499
5519
|
})(
|
|
5500
5520
|
({ theme, minimized, disabled }) => ({
|