@carto/meridian-ds 1.4.8-alpha-external-link.5 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -5
- package/dist/{Alert-CmDToT57.cjs → Alert-BiOR9aar.cjs} +1 -72
- package/dist/{Alert-2L0Hy8lT.js → Alert-CywtIMOj.js} +3 -74
- package/dist/{OpenDiagonallyRight-CSm5GYYJ.js → OpenDiagonallyRight-5HZXh46V.js} +0 -27
- package/dist/{OpenDiagonallyRight-CM1tojUq.cjs → OpenDiagonallyRight-BrRyCV4Q.cjs} +0 -27
- package/dist/{TablePaginationActions-CAmwcyTy.cjs → TablePaginationActions-CFGXm44W.cjs} +3 -6
- package/dist/{TablePaginationActions-b5wP_uRE.js → TablePaginationActions-KpTvhN4Y.js} +3 -6
- package/dist/components/index.cjs +21 -239
- package/dist/components/index.js +27 -246
- package/dist/custom-icons/index.cjs +55 -29
- package/dist/custom-icons/index.js +55 -29
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/types/components/atoms/Button.d.ts +0 -11
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/index.d.ts +0 -4
- package/dist/types/components/atoms/index.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/index.d.ts +0 -1
- package/dist/types/components/organisms/CodeArea/index.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/types.d.ts +0 -4
- package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/utils.d.ts +0 -34
- package/dist/types/components/organisms/CodeArea/utils.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +0 -1
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +0 -1
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +0 -1
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +0 -3
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +0 -6
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +5 -5
- package/dist/widgets/index.js +5 -5
- package/package.json +1 -1
- package/dist/types/components/atoms/Link.d.ts +0 -14
- package/dist/types/components/atoms/Link.d.ts.map +0 -1
- package/dist/types/components/atoms/SplitButton.d.ts +0 -17
- package/dist/types/components/atoms/SplitButton.d.ts.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useState,
|
|
2
|
+
import { forwardRef, useState, useEffect, useMemo, useRef, Fragment as Fragment$1, useImperativeHandle, useCallback } from "react";
|
|
3
|
+
import { styled, Box, Button as Button$1, CircularProgress, TextField, InputAdornment, IconButton, Tooltip, Select, MenuItem, FormControl, InputLabel, FormHelperText, ToggleButtonGroup as ToggleButtonGroup$1, Menu as Menu$2, MenuList as MenuList$1, Link, Checkbox, ListItemText, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Snackbar as Snackbar$1, Portal, Fade, Slide, alpha, useTheme, Toolbar, AppBar as AppBar$1, Paper, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1 } from "@mui/material";
|
|
4
|
+
import { T as Typography, c as ICON_SIZE_SMALL, u as useImperativeIntl, N as NOTIFICATION_DURATION_IN_MS, A as APPBAR_SIZE } from "../TablePaginationActions-KpTvhN4Y.js";
|
|
5
|
+
import { a } from "../TablePaginationActions-KpTvhN4Y.js";
|
|
3
6
|
import { useIntl } from "react-intl";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as useImperativeIntl, T as Typography, c as ICON_SIZE_SMALL, N as NOTIFICATION_DURATION_IN_MS, A as APPBAR_SIZE } from "../TablePaginationActions-b5wP_uRE.js";
|
|
7
|
-
import { a } from "../TablePaginationActions-b5wP_uRE.js";
|
|
8
|
-
import { A as ArrowDown } from "../ArrowDown-CY_wMVJT.js";
|
|
9
|
-
import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CSm5GYYJ.js";
|
|
10
|
-
import { I as IconButton$1, A as Alert$1 } from "../Alert-2L0Hy8lT.js";
|
|
11
|
-
import { L } from "../Alert-2L0Hy8lT.js";
|
|
7
|
+
import { VisibilityOffOutlined, VisibilityOutlined, Cancel, AddCircleOutlineOutlined, ContentCopyOutlined, CloseOutlined, MenuOutlined, HelpOutline, TodayOutlined, MoreVertOutlined, ErrorOutline, Check } from "@mui/icons-material";
|
|
8
|
+
import { I as IconButton$1, A as Alert$1 } from "../Alert-CywtIMOj.js";
|
|
12
9
|
import "cartocolor";
|
|
13
10
|
import { M as MenuItem$1 } from "../MenuItem-CXnnE5lK.js";
|
|
11
|
+
import { A as ArrowDown } from "../ArrowDown-CY_wMVJT.js";
|
|
14
12
|
import { DatePicker as DatePicker$1 } from "@mui/x-date-pickers/DatePicker";
|
|
15
13
|
import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
|
|
16
14
|
import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
|
|
17
15
|
import { DateTimePicker as DateTimePicker$1 } from "@mui/x-date-pickers/DateTimePicker";
|
|
16
|
+
import { O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-5HZXh46V.js";
|
|
18
17
|
import { Controlled, UnControlled } from "react-codemirror2";
|
|
19
|
-
import { lime, blue, purple, teal, red,
|
|
18
|
+
import { lime, blue, purple, teal, red, indigo } from "@mui/material/colors";
|
|
20
19
|
import "codemirror/lib/codemirror.css";
|
|
21
20
|
import "codemirror/lib/codemirror.js";
|
|
22
21
|
import "codemirror/mode/sql/sql.js";
|
|
@@ -39,7 +38,7 @@ import "codemirror/addon/fold/xml-fold.js";
|
|
|
39
38
|
import "codemirror/addon/fold/indent-fold.js";
|
|
40
39
|
import "codemirror/addon/fold/markdown-fold.js";
|
|
41
40
|
import "codemirror/addon/fold/comment-fold.js";
|
|
42
|
-
import ClickAwayListener
|
|
41
|
+
import ClickAwayListener from "@mui/material/ClickAwayListener";
|
|
43
42
|
const IndicatorIcon = styled(Box)({
|
|
44
43
|
position: "absolute",
|
|
45
44
|
top: 0,
|
|
@@ -61,13 +60,8 @@ function _Button({
|
|
|
61
60
|
startIcon,
|
|
62
61
|
endIcon,
|
|
63
62
|
loadingPosition,
|
|
64
|
-
external,
|
|
65
|
-
showExternalIcon = true,
|
|
66
|
-
"aria-label": ariaLabel,
|
|
67
63
|
...otherProps
|
|
68
64
|
}, ref) {
|
|
69
|
-
const intl = useIntl();
|
|
70
|
-
const intlConfig = useImperativeIntl(intl);
|
|
71
65
|
const defaultIconLoader = /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" });
|
|
72
66
|
const isDefaultLoading = loading && loadingPosition === void 0;
|
|
73
67
|
const renderContent = () => {
|
|
@@ -89,11 +83,7 @@ function _Button({
|
|
|
89
83
|
}
|
|
90
84
|
return void 0;
|
|
91
85
|
}
|
|
92
|
-
|
|
93
|
-
return startIcon;
|
|
94
|
-
} else {
|
|
95
|
-
return endIcon || (external && showExternalIcon && otherProps.href ? /* @__PURE__ */ jsx(OpenInNewOutlined, {}) : void 0);
|
|
96
|
-
}
|
|
86
|
+
return position === "start" ? startIcon : endIcon;
|
|
97
87
|
};
|
|
98
88
|
return /* @__PURE__ */ jsx(
|
|
99
89
|
Button$1,
|
|
@@ -103,103 +93,12 @@ function _Button({
|
|
|
103
93
|
endIcon: getIconForPosition("end"),
|
|
104
94
|
...otherProps,
|
|
105
95
|
role: otherProps.href ? "link" : "button",
|
|
106
|
-
...otherProps.href && external && {
|
|
107
|
-
target: "_blank",
|
|
108
|
-
rel: "noopener noreferrer"
|
|
109
|
-
},
|
|
110
|
-
"aria-label": ariaLabel || (external && otherProps.href ? `${children == null ? void 0 : children.toString()} (${intlConfig.formatMessage({
|
|
111
|
-
id: "c4r.button.opensInNewTab"
|
|
112
|
-
})})` : void 0),
|
|
113
96
|
ref,
|
|
114
97
|
children: /* @__PURE__ */ jsx(Typography, { variant: "inherit", color: "inherit", noWrap: true, component: "span", children: renderContent() })
|
|
115
98
|
}
|
|
116
99
|
);
|
|
117
100
|
}
|
|
118
101
|
const Button = forwardRef(_Button);
|
|
119
|
-
const ButtonGroup = styled(ButtonGroup$1)(({ theme, size }) => ({
|
|
120
|
-
"& .MuiButton-root:last-child": {
|
|
121
|
-
padding: 0,
|
|
122
|
-
minWidth: size === "small" ? theme.spacing(3) : size === "large" ? theme.spacing(6) : theme.spacing(4)
|
|
123
|
-
}
|
|
124
|
-
}));
|
|
125
|
-
function SplitButton({
|
|
126
|
-
options,
|
|
127
|
-
onClick,
|
|
128
|
-
variant,
|
|
129
|
-
size,
|
|
130
|
-
color,
|
|
131
|
-
...otherProps
|
|
132
|
-
}) {
|
|
133
|
-
var _a;
|
|
134
|
-
const [open, setOpen] = useState(false);
|
|
135
|
-
const anchorRef = useRef(null);
|
|
136
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
137
|
-
const handleClick = () => {
|
|
138
|
-
onClick(options[selectedIndex]);
|
|
139
|
-
};
|
|
140
|
-
const handleMenuItemClick = (_, index) => {
|
|
141
|
-
setSelectedIndex(index);
|
|
142
|
-
setOpen(false);
|
|
143
|
-
};
|
|
144
|
-
const handleToggle = () => {
|
|
145
|
-
setOpen((prevOpen) => !prevOpen);
|
|
146
|
-
};
|
|
147
|
-
const handleClose = (event) => {
|
|
148
|
-
var _a2;
|
|
149
|
-
if ((_a2 = anchorRef.current) == null ? void 0 : _a2.contains(event.target)) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
setOpen(false);
|
|
153
|
-
};
|
|
154
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
155
|
-
/* @__PURE__ */ jsxs(
|
|
156
|
-
ButtonGroup,
|
|
157
|
-
{
|
|
158
|
-
"data-name": "split-button",
|
|
159
|
-
ref: anchorRef,
|
|
160
|
-
variant,
|
|
161
|
-
size,
|
|
162
|
-
color,
|
|
163
|
-
...otherProps,
|
|
164
|
-
children: [
|
|
165
|
-
/* @__PURE__ */ jsx(Button$1, { onClick: handleClick, children: (_a = options[selectedIndex]) == null ? void 0 : _a.label }),
|
|
166
|
-
/* @__PURE__ */ jsx(Button$1, { onClick: handleToggle, children: open ? /* @__PURE__ */ jsx(ArrowUp, {}) : /* @__PURE__ */ jsx(ArrowDown, {}) })
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
/* @__PURE__ */ jsx(
|
|
171
|
-
Popper,
|
|
172
|
-
{
|
|
173
|
-
sx: { zIndex: 1 },
|
|
174
|
-
open,
|
|
175
|
-
anchorEl: anchorRef.current,
|
|
176
|
-
role: void 0,
|
|
177
|
-
transition: true,
|
|
178
|
-
disablePortal: true,
|
|
179
|
-
placement: "bottom-end",
|
|
180
|
-
children: ({ TransitionProps, placement }) => /* @__PURE__ */ jsx(
|
|
181
|
-
Grow,
|
|
182
|
-
{
|
|
183
|
-
...TransitionProps,
|
|
184
|
-
style: {
|
|
185
|
-
transformOrigin: placement === "bottom" ? "center top" : "center bottom"
|
|
186
|
-
},
|
|
187
|
-
children: /* @__PURE__ */ jsx(Paper, { elevation: 8, children: /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsx(MenuList$1, { autoFocusItem: true, sx: { paddingY: 1 }, children: options.map((option, index) => /* @__PURE__ */ jsx(
|
|
188
|
-
MenuItem,
|
|
189
|
-
{
|
|
190
|
-
disabled: option.disabled,
|
|
191
|
-
selected: index === selectedIndex,
|
|
192
|
-
onClick: (event) => handleMenuItemClick(event, index),
|
|
193
|
-
children: option.label
|
|
194
|
-
},
|
|
195
|
-
option.label
|
|
196
|
-
)) }) }) })
|
|
197
|
-
}
|
|
198
|
-
)
|
|
199
|
-
}
|
|
200
|
-
)
|
|
201
|
-
] });
|
|
202
|
-
}
|
|
203
102
|
const Root$5 = styled(Box)(({ theme }) => ({
|
|
204
103
|
display: "flex",
|
|
205
104
|
alignItems: "center",
|
|
@@ -3214,9 +3113,8 @@ const CodeAreaTheme = styled(Box, {
|
|
|
3214
3113
|
right: 0,
|
|
3215
3114
|
zIndex: 1
|
|
3216
3115
|
},
|
|
3217
|
-
".
|
|
3218
|
-
color: theme.palette.text.primary
|
|
3219
|
-
fontVariantLigatures: "no-common-ligatures"
|
|
3116
|
+
"& .pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like, & .cm-bracket": {
|
|
3117
|
+
color: theme.palette.text.primary
|
|
3220
3118
|
},
|
|
3221
3119
|
"& .CodeMirror pre.CodeMirror-placeholder": {
|
|
3222
3120
|
color: theme.palette.text.hint
|
|
@@ -3234,7 +3132,7 @@ const CodeAreaTheme = styled(Box, {
|
|
|
3234
3132
|
"& .cm-number, & .cm-property, & .cm-builtin": {
|
|
3235
3133
|
color: red[700]
|
|
3236
3134
|
},
|
|
3237
|
-
"& .cm-comment
|
|
3135
|
+
"& .cm-comment": {
|
|
3238
3136
|
color: theme.palette.text.secondary
|
|
3239
3137
|
},
|
|
3240
3138
|
"& .cm-variable": {
|
|
@@ -3243,18 +3141,9 @@ const CodeAreaTheme = styled(Box, {
|
|
|
3243
3141
|
"& .cm-variable-2": {
|
|
3244
3142
|
color: theme.palette.text.primary
|
|
3245
3143
|
},
|
|
3246
|
-
"& .cm-punctuation, & .cm-def": {
|
|
3144
|
+
"& .cm-punctuation, & .cm-def, ": {
|
|
3247
3145
|
color: blue[800]
|
|
3248
3146
|
},
|
|
3249
|
-
"& .cm-image-alt-text, & .cm-link": {
|
|
3250
|
-
color: green[800],
|
|
3251
|
-
textDecoration: "none"
|
|
3252
|
-
},
|
|
3253
|
-
// Custom inline link styling .cm-inline-url
|
|
3254
|
-
"& .cm-url, & .cm-inline-url": {
|
|
3255
|
-
color: blue[800],
|
|
3256
|
-
textDecoration: "none"
|
|
3257
|
-
},
|
|
3258
3147
|
"& .cm-variable-3, & .cm-type": {
|
|
3259
3148
|
color: indigo[800]
|
|
3260
3149
|
},
|
|
@@ -3268,23 +3157,20 @@ const CodeAreaTheme = styled(Box, {
|
|
|
3268
3157
|
"& .CodeMirror-selected": {
|
|
3269
3158
|
background: blue[800]
|
|
3270
3159
|
},
|
|
3271
|
-
"& .cm-header": {
|
|
3272
|
-
|
|
3273
|
-
...theme.typography.code3,
|
|
3274
|
-
fontWeight: theme.typography.fontWeightBold
|
|
3160
|
+
"& .cm-header-1": {
|
|
3161
|
+
fontSize: theme.typography.h2.fontSize
|
|
3275
3162
|
},
|
|
3276
|
-
"& .cm-header-
|
|
3277
|
-
|
|
3163
|
+
"& .cm-header-2": {
|
|
3164
|
+
fontSize: theme.typography.h3.fontSize
|
|
3278
3165
|
},
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
backgroundColor: theme.palette.black[4],
|
|
3282
|
-
color: purple[500]
|
|
3166
|
+
"& .cm-header-3": {
|
|
3167
|
+
fontSize: theme.typography.h4.fontSize
|
|
3283
3168
|
},
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3169
|
+
"& .cm-header-4": {
|
|
3170
|
+
fontSize: theme.typography.h5.fontSize
|
|
3171
|
+
},
|
|
3172
|
+
"& .cm-header-5": {
|
|
3173
|
+
fontSize: theme.typography.h6.fontSize
|
|
3288
3174
|
},
|
|
3289
3175
|
...size === "small" && {
|
|
3290
3176
|
"& .CodeMirror": {
|
|
@@ -3320,100 +3206,6 @@ function findCodeAreaControlCodeOccurrences(content) {
|
|
|
3320
3206
|
}
|
|
3321
3207
|
return matches;
|
|
3322
3208
|
}
|
|
3323
|
-
const editorMarkers = /* @__PURE__ */ new WeakMap();
|
|
3324
|
-
function clearMarkersForClass(editor, className) {
|
|
3325
|
-
var _a, _b;
|
|
3326
|
-
const markers = (_a = editorMarkers.get(editor)) == null ? void 0 : _a.get(className);
|
|
3327
|
-
if (!markers) return;
|
|
3328
|
-
markers.forEach((marker) => {
|
|
3329
|
-
if (marker.find()) {
|
|
3330
|
-
marker.clear();
|
|
3331
|
-
}
|
|
3332
|
-
});
|
|
3333
|
-
(_b = editorMarkers.get(editor)) == null ? void 0 : _b.delete(className);
|
|
3334
|
-
}
|
|
3335
|
-
function storeMarkersForClass(editor, className, markers) {
|
|
3336
|
-
if (!editorMarkers.has(editor)) {
|
|
3337
|
-
editorMarkers.set(editor, /* @__PURE__ */ new Map());
|
|
3338
|
-
}
|
|
3339
|
-
const editorMap = editorMarkers.get(editor);
|
|
3340
|
-
if (editorMap) {
|
|
3341
|
-
editorMap.set(className, markers);
|
|
3342
|
-
}
|
|
3343
|
-
}
|
|
3344
|
-
function CodeAreaMarkTextPattern(editor, pattern, options, excludePatterns) {
|
|
3345
|
-
const { className } = options;
|
|
3346
|
-
clearMarkersForClass(editor, className);
|
|
3347
|
-
const doc = editor.getDoc();
|
|
3348
|
-
const content = doc.getValue();
|
|
3349
|
-
const excludeRanges = (excludePatterns == null ? void 0 : excludePatterns.flatMap(
|
|
3350
|
-
(excludePattern) => Array.from(content.matchAll(excludePattern), (match) => ({
|
|
3351
|
-
start: match.index,
|
|
3352
|
-
end: match.index + match[0].length
|
|
3353
|
-
}))
|
|
3354
|
-
)) ?? [];
|
|
3355
|
-
const markers = Array.from(content.matchAll(pattern)).filter((match) => {
|
|
3356
|
-
if (excludeRanges.some(
|
|
3357
|
-
(range) => match.index >= range.start && match.index < range.end
|
|
3358
|
-
)) {
|
|
3359
|
-
return false;
|
|
3360
|
-
}
|
|
3361
|
-
return !match[1] || match[1].trim().length > 0;
|
|
3362
|
-
}).map((match) => {
|
|
3363
|
-
const startPos = doc.posFromIndex(match.index);
|
|
3364
|
-
const endPos = doc.posFromIndex(match.index + match[0].length);
|
|
3365
|
-
return editor.markText(startPos, endPos, {
|
|
3366
|
-
atomic: false,
|
|
3367
|
-
clearOnEnter: false,
|
|
3368
|
-
...options
|
|
3369
|
-
});
|
|
3370
|
-
});
|
|
3371
|
-
if (markers.length > 0) {
|
|
3372
|
-
storeMarkersForClass(editor, className, markers);
|
|
3373
|
-
}
|
|
3374
|
-
}
|
|
3375
|
-
function markInlineCode(editor, className = "cm-inline-code") {
|
|
3376
|
-
const inlineCodePattern = /`([^`\n\r]+)`/g;
|
|
3377
|
-
const codeBlockPattern = /```[\s\S]*?```/g;
|
|
3378
|
-
CodeAreaMarkTextPattern(
|
|
3379
|
-
editor,
|
|
3380
|
-
inlineCodePattern,
|
|
3381
|
-
{
|
|
3382
|
-
className
|
|
3383
|
-
},
|
|
3384
|
-
[codeBlockPattern]
|
|
3385
|
-
);
|
|
3386
|
-
}
|
|
3387
|
-
function markInlineLinks(editor, className = "cm-inline-url") {
|
|
3388
|
-
const inlineLinkPattern = /<((?:https?:\/\/[^\s<>]+)|(?:[^\s<>@]+@[^\s<>@]+\.[^\s<>@]+))>/g;
|
|
3389
|
-
const codeBlockPattern = /```[\s\S]*?```/g;
|
|
3390
|
-
CodeAreaMarkTextPattern(
|
|
3391
|
-
editor,
|
|
3392
|
-
inlineLinkPattern,
|
|
3393
|
-
{
|
|
3394
|
-
className
|
|
3395
|
-
},
|
|
3396
|
-
[codeBlockPattern]
|
|
3397
|
-
);
|
|
3398
|
-
}
|
|
3399
|
-
function markCodeBlocks(editor, className = "cm-code-block") {
|
|
3400
|
-
const doc = editor.getDoc();
|
|
3401
|
-
const content = doc.getValue();
|
|
3402
|
-
const lineCount = content.split("\n").length;
|
|
3403
|
-
for (let i = 0; i < lineCount; i++) {
|
|
3404
|
-
["background", "wrap", "text"].forEach(
|
|
3405
|
-
(where) => editor.removeLineClass(i, where, className)
|
|
3406
|
-
);
|
|
3407
|
-
}
|
|
3408
|
-
const codeBlockPattern = /```[\s\S]*?(?:```|$)/g;
|
|
3409
|
-
Array.from(content.matchAll(codeBlockPattern)).forEach((match) => {
|
|
3410
|
-
const startPos = doc.posFromIndex(match.index);
|
|
3411
|
-
const endPos = doc.posFromIndex(match.index + match[0].length);
|
|
3412
|
-
for (let lineNum = startPos.line; lineNum <= endPos.line; lineNum++) {
|
|
3413
|
-
editor.addLineClass(lineNum, "wrap", className);
|
|
3414
|
-
}
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
3209
|
function foldCode(editor, { from, to }) {
|
|
3418
3210
|
editor.foldCode(
|
|
3419
3211
|
0,
|
|
@@ -3454,7 +3246,6 @@ function CodeAreaInput({
|
|
|
3454
3246
|
const codeMirrorOptions = {
|
|
3455
3247
|
mode: "sql",
|
|
3456
3248
|
theme: "light",
|
|
3457
|
-
addModeClass: true,
|
|
3458
3249
|
lineNumbers: true,
|
|
3459
3250
|
lineWrapping: true,
|
|
3460
3251
|
extraKeys: { "Ctrl-Space": "autocomplete" },
|
|
@@ -3485,13 +3276,6 @@ function CodeAreaInput({
|
|
|
3485
3276
|
}
|
|
3486
3277
|
initialFoldingDoneRef.current = true;
|
|
3487
3278
|
}, [value, editor, autoFoldControlBlocks]);
|
|
3488
|
-
useEffect(() => {
|
|
3489
|
-
const mode = typeof (options == null ? void 0 : options.mode) === "object" && options.mode !== null ? options.mode.name : options == null ? void 0 : options.mode;
|
|
3490
|
-
if (mode !== "markdown" || !editor || !value) return;
|
|
3491
|
-
markInlineCode(editor);
|
|
3492
|
-
markInlineLinks(editor);
|
|
3493
|
-
markCodeBlocks(editor);
|
|
3494
|
-
}, [editor, value, options == null ? void 0 : options.mode]);
|
|
3495
3279
|
return /* @__PURE__ */ jsxs(
|
|
3496
3280
|
CodeAreaTheme,
|
|
3497
3281
|
{
|
|
@@ -4426,7 +4210,7 @@ function DialogConfirmation({
|
|
|
4426
4210
|
"aria-label": ariaLabel,
|
|
4427
4211
|
role: "presentation",
|
|
4428
4212
|
"data-name": "dialog-confirmation",
|
|
4429
|
-
children: /* @__PURE__ */ jsx(ClickAwayListener
|
|
4213
|
+
children: /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: handleClickAway, children: /* @__PURE__ */ jsx(
|
|
4430
4214
|
Slide,
|
|
4431
4215
|
{
|
|
4432
4216
|
direction: "up",
|
|
@@ -4712,7 +4496,6 @@ export {
|
|
|
4712
4496
|
CodeAreaFooter,
|
|
4713
4497
|
CodeAreaHeader,
|
|
4714
4498
|
CodeAreaInput,
|
|
4715
|
-
CodeAreaMarkTextPattern,
|
|
4716
4499
|
CopiableComponent,
|
|
4717
4500
|
CreatableAutocomplete,
|
|
4718
4501
|
DatePicker,
|
|
@@ -4730,7 +4513,6 @@ export {
|
|
|
4730
4513
|
DialogStepper,
|
|
4731
4514
|
IconButton$1 as IconButton,
|
|
4732
4515
|
LabelWithIndicator,
|
|
4733
|
-
L as Link,
|
|
4734
4516
|
Menu$1 as Menu,
|
|
4735
4517
|
MenuItem$1 as MenuItem,
|
|
4736
4518
|
MenuItemFilter,
|
|
@@ -4740,7 +4522,6 @@ export {
|
|
|
4740
4522
|
PasswordField,
|
|
4741
4523
|
SelectField,
|
|
4742
4524
|
Snackbar,
|
|
4743
|
-
SplitButton,
|
|
4744
4525
|
a as TablePaginationActions,
|
|
4745
4526
|
Tag,
|
|
4746
4527
|
TimePicker,
|
|
@@ -4,9 +4,9 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const utils = require("@mui/material/utils");
|
|
6
6
|
const ArrowDown = require("../ArrowDown-8fLj23Ge.cjs");
|
|
7
|
-
const OpenDiagonallyRight = require("../OpenDiagonallyRight-
|
|
7
|
+
const OpenDiagonallyRight = require("../OpenDiagonallyRight-BrRyCV4Q.cjs");
|
|
8
8
|
const SwatchSquare = require("../SwatchSquare-benaO55C.cjs");
|
|
9
|
-
const Icon$
|
|
9
|
+
const Icon$30 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
10
|
"path",
|
|
11
11
|
{
|
|
12
12
|
fill: "currentColor",
|
|
@@ -15,10 +15,10 @@ const Icon$2$ = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www
|
|
|
15
15
|
clipRule: "evenodd"
|
|
16
16
|
}
|
|
17
17
|
) });
|
|
18
|
-
const BaseSvgIcon$
|
|
18
|
+
const BaseSvgIcon$30 = utils.createSvgIcon(Icon$30(), "AccessIn");
|
|
19
19
|
function AccessIn({ width, height, sx, ...props }, ref) {
|
|
20
20
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
-
BaseSvgIcon$
|
|
21
|
+
BaseSvgIcon$30,
|
|
22
22
|
{
|
|
23
23
|
ref,
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
@@ -32,17 +32,17 @@ function AccessIn({ width, height, sx, ...props }, ref) {
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
const AccessIn$1 = React.forwardRef(AccessIn);
|
|
35
|
-
const Icon$
|
|
35
|
+
const Icon$2$ = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
36
|
"path",
|
|
37
37
|
{
|
|
38
38
|
fill: "currentColor",
|
|
39
39
|
d: "M4 8h4V4H4zM10 20h4v-4h-4zM8 20H4v-4h4zM4 14h4v-4H4zM14 14h-4v-4h4zM14 8h-4V4h4zM16 14h4v-4h-4zM20 20h-4v-4h4zM21 0h-2v3h-3v2h3v3h2V5h3V3h-3z"
|
|
40
40
|
}
|
|
41
41
|
) });
|
|
42
|
-
const BaseSvgIcon$
|
|
42
|
+
const BaseSvgIcon$2$ = utils.createSvgIcon(Icon$2$(), "AddApp");
|
|
43
43
|
function AddApp({ width, height, sx, ...props }, ref) {
|
|
44
44
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
-
BaseSvgIcon$
|
|
45
|
+
BaseSvgIcon$2$,
|
|
46
46
|
{
|
|
47
47
|
ref,
|
|
48
48
|
viewBox: "0 0 24 24",
|
|
@@ -56,7 +56,7 @@ function AddApp({ width, height, sx, ...props }, ref) {
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const AddApp$1 = React.forwardRef(AddApp);
|
|
59
|
-
const Icon$
|
|
59
|
+
const Icon$2_ = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
60
60
|
"path",
|
|
61
61
|
{
|
|
62
62
|
fill: "currentColor",
|
|
@@ -65,10 +65,10 @@ const Icon$2Z = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www
|
|
|
65
65
|
clipRule: "evenodd"
|
|
66
66
|
}
|
|
67
67
|
) });
|
|
68
|
-
const BaseSvgIcon$
|
|
68
|
+
const BaseSvgIcon$2_ = utils.createSvgIcon(Icon$2_(), "AddSection");
|
|
69
69
|
function AddSection({ width, height, sx, ...props }, ref) {
|
|
70
70
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
-
BaseSvgIcon$
|
|
71
|
+
BaseSvgIcon$2_,
|
|
72
72
|
{
|
|
73
73
|
ref,
|
|
74
74
|
viewBox: "0 0 24 24",
|
|
@@ -82,17 +82,17 @@ function AddSection({ width, height, sx, ...props }, ref) {
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
const AddSection$1 = React.forwardRef(AddSection);
|
|
85
|
-
const Icon$
|
|
85
|
+
const Icon$2Z = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
86
|
"path",
|
|
87
87
|
{
|
|
88
88
|
fill: "currentColor",
|
|
89
89
|
d: "M3 7v2h10V7zm4 6v2H3v2h4v2h2v-6zm14 4v-2H11v2zm-6-6h2V9h4V7h-4V5h-2z"
|
|
90
90
|
}
|
|
91
91
|
) });
|
|
92
|
-
const BaseSvgIcon$
|
|
92
|
+
const BaseSvgIcon$2Z = utils.createSvgIcon(Icon$2Z(), "AdvancedSettings");
|
|
93
93
|
function AdvancedSettings({ width, height, sx, ...props }, ref) {
|
|
94
94
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
95
|
-
BaseSvgIcon$
|
|
95
|
+
BaseSvgIcon$2Z,
|
|
96
96
|
{
|
|
97
97
|
ref,
|
|
98
98
|
viewBox: "0 0 24 24",
|
|
@@ -106,7 +106,7 @@ function AdvancedSettings({ width, height, sx, ...props }, ref) {
|
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
const AdvancedSettings$1 = React.forwardRef(AdvancedSettings);
|
|
109
|
-
const Icon$
|
|
109
|
+
const Icon$2Y = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
|
|
110
110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
111
111
|
"path",
|
|
112
112
|
{
|
|
@@ -147,10 +147,10 @@ const Icon$2X = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://ww
|
|
|
147
147
|
}
|
|
148
148
|
)
|
|
149
149
|
] });
|
|
150
|
-
const BaseSvgIcon$
|
|
150
|
+
const BaseSvgIcon$2Y = utils.createSvgIcon(Icon$2Y(), "AiTool");
|
|
151
151
|
function AiTool({ width, height, sx, ...props }, ref) {
|
|
152
152
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
153
|
-
BaseSvgIcon$
|
|
153
|
+
BaseSvgIcon$2Y,
|
|
154
154
|
{
|
|
155
155
|
ref,
|
|
156
156
|
viewBox: "0 0 24 24",
|
|
@@ -164,7 +164,7 @@ function AiTool({ width, height, sx, ...props }, ref) {
|
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
const AiTool$1 = React.forwardRef(AiTool);
|
|
167
|
-
const Icon$
|
|
167
|
+
const Icon$2X = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
|
|
168
168
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
169
169
|
"path",
|
|
170
170
|
{
|
|
@@ -184,10 +184,10 @@ const Icon$2W = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://ww
|
|
|
184
184
|
}
|
|
185
185
|
)
|
|
186
186
|
] });
|
|
187
|
-
const BaseSvgIcon$
|
|
187
|
+
const BaseSvgIcon$2X = utils.createSvgIcon(Icon$2X(), "Annotation");
|
|
188
188
|
function Annotation({ width, height, sx, ...props }, ref) {
|
|
189
189
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
190
|
-
BaseSvgIcon$
|
|
190
|
+
BaseSvgIcon$2X,
|
|
191
191
|
{
|
|
192
192
|
ref,
|
|
193
193
|
viewBox: "0 0 24 24",
|
|
@@ -201,7 +201,7 @@ function Annotation({ width, height, sx, ...props }, ref) {
|
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
203
|
const Annotation$1 = React.forwardRef(Annotation);
|
|
204
|
-
const Icon$
|
|
204
|
+
const Icon$2W = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
|
|
205
205
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
206
206
|
"path",
|
|
207
207
|
{
|
|
@@ -226,10 +226,10 @@ const Icon$2V = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://ww
|
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
228
|
] });
|
|
229
|
-
const BaseSvgIcon$
|
|
229
|
+
const BaseSvgIcon$2W = utils.createSvgIcon(Icon$2W(), "ApiCall");
|
|
230
230
|
function ApiCall({ width, height, sx, ...props }, ref) {
|
|
231
231
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
232
|
-
BaseSvgIcon$
|
|
232
|
+
BaseSvgIcon$2W,
|
|
233
233
|
{
|
|
234
234
|
ref,
|
|
235
235
|
viewBox: "0 0 24 24",
|
|
@@ -243,7 +243,7 @@ function ApiCall({ width, height, sx, ...props }, ref) {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
const ApiCall$1 = React.forwardRef(ApiCall);
|
|
246
|
-
const Icon$
|
|
246
|
+
const Icon$2V = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
247
247
|
"path",
|
|
248
248
|
{
|
|
249
249
|
fill: "currentColor",
|
|
@@ -252,10 +252,10 @@ const Icon$2U = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www
|
|
|
252
252
|
clipRule: "evenodd"
|
|
253
253
|
}
|
|
254
254
|
) });
|
|
255
|
-
const BaseSvgIcon$
|
|
255
|
+
const BaseSvgIcon$2V = utils.createSvgIcon(Icon$2V(), "ArrowLeft");
|
|
256
256
|
function ArrowLeft({ width, height, sx, ...props }, ref) {
|
|
257
257
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
-
BaseSvgIcon$
|
|
258
|
+
BaseSvgIcon$2V,
|
|
259
259
|
{
|
|
260
260
|
ref,
|
|
261
261
|
viewBox: "0 0 24 24",
|
|
@@ -269,7 +269,7 @@ function ArrowLeft({ width, height, sx, ...props }, ref) {
|
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
const ArrowLeft$1 = React.forwardRef(ArrowLeft);
|
|
272
|
-
const Icon$
|
|
272
|
+
const Icon$2U = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
273
273
|
"path",
|
|
274
274
|
{
|
|
275
275
|
fill: "currentColor",
|
|
@@ -278,10 +278,10 @@ const Icon$2T = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www
|
|
|
278
278
|
clipRule: "evenodd"
|
|
279
279
|
}
|
|
280
280
|
) });
|
|
281
|
-
const BaseSvgIcon$
|
|
281
|
+
const BaseSvgIcon$2U = utils.createSvgIcon(Icon$2U(), "ArrowRight");
|
|
282
282
|
function ArrowRight({ width, height, sx, ...props }, ref) {
|
|
283
283
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
284
|
-
BaseSvgIcon$
|
|
284
|
+
BaseSvgIcon$2U,
|
|
285
285
|
{
|
|
286
286
|
ref,
|
|
287
287
|
viewBox: "0 0 24 24",
|
|
@@ -295,6 +295,32 @@ function ArrowRight({ width, height, sx, ...props }, ref) {
|
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
297
|
const ArrowRight$1 = React.forwardRef(ArrowRight);
|
|
298
|
+
const Icon$2T = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
299
|
+
"path",
|
|
300
|
+
{
|
|
301
|
+
fill: "currentColor",
|
|
302
|
+
fillRule: "evenodd",
|
|
303
|
+
d: "M12.01 11.83 15.18 15l1.41-1.41L12.01 9l-4.59 4.59L8.84 15z",
|
|
304
|
+
clipRule: "evenodd"
|
|
305
|
+
}
|
|
306
|
+
) });
|
|
307
|
+
const BaseSvgIcon$2T = utils.createSvgIcon(Icon$2T(), "ArrowUp");
|
|
308
|
+
function ArrowUp({ width, height, sx, ...props }, ref) {
|
|
309
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
310
|
+
BaseSvgIcon$2T,
|
|
311
|
+
{
|
|
312
|
+
ref,
|
|
313
|
+
viewBox: "0 0 24 24",
|
|
314
|
+
sx: {
|
|
315
|
+
width,
|
|
316
|
+
height: height || width,
|
|
317
|
+
...sx
|
|
318
|
+
},
|
|
319
|
+
...props
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
const ArrowUp$1 = React.forwardRef(ArrowUp);
|
|
298
324
|
const Icon$2S = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
|
|
299
325
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
300
326
|
"path",
|
|
@@ -5770,7 +5796,6 @@ function WorkflowTemp({ width, height, sx, ...props }, ref) {
|
|
|
5770
5796
|
}
|
|
5771
5797
|
const WorkflowTemp$1 = React.forwardRef(WorkflowTemp);
|
|
5772
5798
|
exports.ArrowDown = ArrowDown.ArrowDown;
|
|
5773
|
-
exports.ArrowUp = OpenDiagonallyRight.ArrowUp;
|
|
5774
5799
|
exports.CloseDiagonallyRight = OpenDiagonallyRight.CloseDiagonallyRight;
|
|
5775
5800
|
exports.OpenDiagonallyRight = OpenDiagonallyRight.OpenDiagonallyRight;
|
|
5776
5801
|
exports.Search = SwatchSquare.Search;
|
|
@@ -5784,6 +5809,7 @@ exports.Annotation = Annotation$1;
|
|
|
5784
5809
|
exports.ApiCall = ApiCall$1;
|
|
5785
5810
|
exports.ArrowLeft = ArrowLeft$1;
|
|
5786
5811
|
exports.ArrowRight = ArrowRight$1;
|
|
5812
|
+
exports.ArrowUp = ArrowUp$1;
|
|
5787
5813
|
exports.AsynchronousWait = AsynchronousWait$1;
|
|
5788
5814
|
exports.Autostyle = Autostyle$1;
|
|
5789
5815
|
exports.Avg = Avg$1;
|