@carto/meridian-ds 1.4.5-alpha-external-link.1 → 1.4.5-alpha-external-link.3
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 +1 -0
- package/dist/{Alert-D8jI1sG4.js → Alert-CETC14v2.js} +89 -3
- package/dist/{Alert-zqtoWsBL.cjs → Alert-hun6016k.cjs} +88 -2
- package/dist/{TablePaginationActions-CFGXm44W.cjs → TablePaginationActions-CAmwcyTy.cjs} +6 -3
- package/dist/{TablePaginationActions-KpTvhN4Y.js → TablePaginationActions-b5wP_uRE.js} +6 -3
- package/dist/components/index.cjs +19 -100
- package/dist/components/index.js +31 -112
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/types/components/atoms/ExternalLink.d.ts +1 -1
- package/dist/types/components/atoms/ExternalLink.d.ts.map +1 -1
- package/dist/types/components/atoms/Link.d.ts +4 -0
- package/dist/types/components/atoms/Link.d.ts.map +1 -0
- package/dist/types/components/atoms/index.d.ts +2 -0
- package/dist/types/components/atoms/index.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/types/theme/types.d.ts +6 -0
- 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/ChartLegend.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +23 -31
- package/dist/widgets/index.js +34 -42
- package/package.json +1 -1
package/dist/widgets/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useMemo, useState, useEffect, useCallback, useRef, forwardRef, createContext, useContext, useLayoutEffect, createRef } from "react";
|
|
3
|
-
import { useTheme, styled, Box, Skeleton, Grid, Link, darken, Button, Divider, TextField, InputAdornment, Checkbox, Tooltip,
|
|
3
|
+
import { useTheme, styled, Box, Skeleton, Grid, Link, darken, Button, Divider, TextField, InputAdornment, Checkbox, Tooltip, debounce, Slider, TableCell, Table, TableHead, TableRow, TableBody, TableContainer, TableSortLabel, TablePagination, IconButton as IconButton$1, Menu, MenuItem, SvgIcon, lighten, Typography as Typography$1, ClickAwayListener, ToggleButton, capitalize, ListItem, Chip, List, Paper, Popover, Select, ListItemText, Collapse, Drawer, Icon, LinearProgress } from "@mui/material";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import { d as getDefaultExportFromCjs, u as useImperativeIntl, T as Typography, S as SPACING, B as BREAKPOINTS, a as TablePaginationActions, b as ICON_SIZE_MEDIUM } from "../TablePaginationActions-
|
|
5
|
+
import { d as getDefaultExportFromCjs, u as useImperativeIntl, T as Typography, S as SPACING, B as BREAKPOINTS, a as TablePaginationActions, b as ICON_SIZE_MEDIUM } from "../TablePaginationActions-b5wP_uRE.js";
|
|
6
6
|
import _ReactEcharts from "echarts-for-react";
|
|
7
7
|
import { FixedSizeList } from "react-window";
|
|
8
8
|
import { S as Search, a as SwatchSquare } from "../SwatchSquare-DhaaXt53.js";
|
|
9
9
|
import { ChevronLeft, ChevronRight, KeyboardArrowDown, ErrorOutline, Cancel, VisibilityOutlined, VisibilityOffOutlined, ExpandLess, ExpandMore, Close, LayersOutlined, MoreVert } from "@mui/icons-material";
|
|
10
|
-
import { A as Alert } from "../Alert-
|
|
10
|
+
import { I as IconButton, L as Link$1, A as Alert } from "../Alert-CETC14v2.js";
|
|
11
11
|
import { a as getColorByCategory, c as commonPalette, b as getPalette } from "../paletteUtils-BHqJlHm9.js";
|
|
12
12
|
function detectTouchscreen() {
|
|
13
13
|
let result = false;
|
|
@@ -2169,37 +2169,29 @@ function ChartLegend({
|
|
|
2169
2169
|
(overflowing || offset > 0) && /* @__PURE__ */ jsxs(ShowMoreButtons, { ref: showMoreButtonsRef, children: [
|
|
2170
2170
|
/* @__PURE__ */ jsx(OverflowVeil, {}),
|
|
2171
2171
|
/* @__PURE__ */ jsx(
|
|
2172
|
-
|
|
2172
|
+
IconButton,
|
|
2173
2173
|
{
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
onClick: handleClickLeft,
|
|
2183
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, {})
|
|
2184
|
-
}
|
|
2185
|
-
)
|
|
2174
|
+
icon: /* @__PURE__ */ jsx(ChevronLeft, {}),
|
|
2175
|
+
component: "span",
|
|
2176
|
+
size: "small",
|
|
2177
|
+
disabled: offset === 0,
|
|
2178
|
+
onClick: handleClickLeft,
|
|
2179
|
+
tooltip: intlConfig.formatMessage({
|
|
2180
|
+
id: "c4r.widgets.chartLegend.prev"
|
|
2181
|
+
})
|
|
2186
2182
|
}
|
|
2187
2183
|
),
|
|
2188
2184
|
/* @__PURE__ */ jsx(
|
|
2189
|
-
|
|
2185
|
+
IconButton,
|
|
2190
2186
|
{
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
onClick: handleClickRight,
|
|
2200
|
-
children: /* @__PURE__ */ jsx(ChevronRight, {})
|
|
2201
|
-
}
|
|
2202
|
-
)
|
|
2187
|
+
icon: /* @__PURE__ */ jsx(ChevronRight, {}),
|
|
2188
|
+
component: "span",
|
|
2189
|
+
size: "small",
|
|
2190
|
+
disabled: !overflowing,
|
|
2191
|
+
onClick: handleClickRight,
|
|
2192
|
+
tooltip: intlConfig.formatMessage({
|
|
2193
|
+
id: "c4r.widgets.chartLegend.next"
|
|
2194
|
+
})
|
|
2203
2195
|
}
|
|
2204
2196
|
)
|
|
2205
2197
|
] })
|
|
@@ -4229,7 +4221,7 @@ function TimeSeriesControls({
|
|
|
4229
4221
|
};
|
|
4230
4222
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4231
4223
|
/* @__PURE__ */ jsx(
|
|
4232
|
-
IconButton,
|
|
4224
|
+
IconButton$1,
|
|
4233
4225
|
{
|
|
4234
4226
|
size: "small",
|
|
4235
4227
|
color: "default",
|
|
@@ -4263,7 +4255,7 @@ function TimeSeriesControls({
|
|
|
4263
4255
|
}
|
|
4264
4256
|
),
|
|
4265
4257
|
/* @__PURE__ */ jsx(Box, { mt: 2, children: /* @__PURE__ */ jsx(
|
|
4266
|
-
IconButton,
|
|
4258
|
+
IconButton$1,
|
|
4267
4259
|
{
|
|
4268
4260
|
size: "small",
|
|
4269
4261
|
color: "primary",
|
|
@@ -4274,7 +4266,7 @@ function TimeSeriesControls({
|
|
|
4274
4266
|
}
|
|
4275
4267
|
) }),
|
|
4276
4268
|
/* @__PURE__ */ jsx(Box, { mt: 0.75, children: /* @__PURE__ */ jsx(
|
|
4277
|
-
IconButton,
|
|
4269
|
+
IconButton$1,
|
|
4278
4270
|
{
|
|
4279
4271
|
"data-testid": "play-pause",
|
|
4280
4272
|
size: "small",
|
|
@@ -5273,7 +5265,7 @@ function ComparativeCategoryWidgetUI({
|
|
|
5273
5265
|
{ id: "c4r.widgets.category.selectedItems" },
|
|
5274
5266
|
{ items: selectedCategories.length }
|
|
5275
5267
|
) : intlConfig.formatMessage({ id: "c4r.widgets.category.all" }) }),
|
|
5276
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", component: "div", children: searchActive ? /* @__PURE__ */ jsx(Link, { onClick: applyTempSelection, children: intlConfig.formatMessage({ id: "c4r.widgets.category.apply" }) }) : blockingActive ? /* @__PURE__ */ jsx(Link, { onClick: disableBlocking, children: intlConfig.formatMessage({
|
|
5268
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", component: "div", children: searchActive ? /* @__PURE__ */ jsx(Link$1, { onClick: applyTempSelection, children: intlConfig.formatMessage({ id: "c4r.widgets.category.apply" }) }) : blockingActive ? /* @__PURE__ */ jsx(Link$1, { onClick: disableBlocking, children: intlConfig.formatMessage({
|
|
5277
5269
|
id: "c4r.widgets.category.unlock"
|
|
5278
5270
|
}) }) : selectedCategories.length ? /* @__PURE__ */ jsxs(
|
|
5279
5271
|
Box,
|
|
@@ -5284,11 +5276,11 @@ function ComparativeCategoryWidgetUI({
|
|
|
5284
5276
|
gap: theme.spacing(1)
|
|
5285
5277
|
},
|
|
5286
5278
|
children: [
|
|
5287
|
-
/* @__PURE__ */ jsx(Link, { onClick: enableBlocking, children: intlConfig.formatMessage({
|
|
5279
|
+
/* @__PURE__ */ jsx(Link$1, { onClick: enableBlocking, children: intlConfig.formatMessage({
|
|
5288
5280
|
id: "c4r.widgets.category.lock"
|
|
5289
5281
|
}) }),
|
|
5290
5282
|
/* @__PURE__ */ jsx(Divider, { orientation: "vertical", flexItem: true }),
|
|
5291
|
-
/* @__PURE__ */ jsx(Link, { onClick: clearSelection, children: intlConfig.formatMessage({
|
|
5283
|
+
/* @__PURE__ */ jsx(Link$1, { onClick: clearSelection, children: intlConfig.formatMessage({
|
|
5292
5284
|
id: "c4r.widgets.category.clear"
|
|
5293
5285
|
}) })
|
|
5294
5286
|
]
|
|
@@ -5730,7 +5722,7 @@ function FeatureSelectionUIToggleButton({
|
|
|
5730
5722
|
}
|
|
5731
5723
|
) });
|
|
5732
5724
|
}
|
|
5733
|
-
const ArrowButton = styled(IconButton, {
|
|
5725
|
+
const ArrowButton = styled(IconButton$1, {
|
|
5734
5726
|
shouldForwardProp: (prop) => prop !== "isOpen"
|
|
5735
5727
|
})(({ isOpen, theme }) => ({
|
|
5736
5728
|
color: theme.palette.text.secondary,
|
|
@@ -6161,7 +6153,7 @@ function LegendOpacityControl({
|
|
|
6161
6153
|
{
|
|
6162
6154
|
title: intlConfig.formatMessage({ id: "c4r.widgets.legend.opacity" }),
|
|
6163
6155
|
children: /* @__PURE__ */ jsx(
|
|
6164
|
-
IconButton,
|
|
6156
|
+
IconButton$1,
|
|
6165
6157
|
{
|
|
6166
6158
|
size: "small",
|
|
6167
6159
|
color: open ? "primary" : "default",
|
|
@@ -6742,7 +6734,7 @@ function LegendLayer({
|
|
|
6742
6734
|
return /* @__PURE__ */ jsxs(LegendLayerWrapper, { "data-testid": "legend-layer", "aria-label": title, children: [
|
|
6743
6735
|
/* @__PURE__ */ jsxs(LegendItemHeader, { ref: menuAnchorRef, children: [
|
|
6744
6736
|
collapsible && /* @__PURE__ */ jsx(
|
|
6745
|
-
IconButton,
|
|
6737
|
+
IconButton$1,
|
|
6746
6738
|
{
|
|
6747
6739
|
size: "small",
|
|
6748
6740
|
"aria-label": intlConfig.formatMessage({
|
|
@@ -6798,7 +6790,7 @@ function LegendLayer({
|
|
|
6798
6790
|
id: visible ? "c4r.widgets.legend.hideLayer" : "c4r.widgets.legend.showLayer"
|
|
6799
6791
|
}),
|
|
6800
6792
|
children: /* @__PURE__ */ jsx(
|
|
6801
|
-
IconButton,
|
|
6793
|
+
IconButton$1,
|
|
6802
6794
|
{
|
|
6803
6795
|
size: "small",
|
|
6804
6796
|
onClick: () => onChangeVisibility({
|
|
@@ -6888,7 +6880,7 @@ function LegendWidgetUI({
|
|
|
6888
6880
|
Tooltip,
|
|
6889
6881
|
{
|
|
6890
6882
|
title: intlConfig.formatMessage({ id: "c4r.widgets.legend.close" }),
|
|
6891
|
-
children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => onChangeCollapsed(true), children: /* @__PURE__ */ jsx(Close, {}) })
|
|
6883
|
+
children: /* @__PURE__ */ jsx(IconButton$1, { size: "small", onClick: () => onChangeCollapsed(true), children: /* @__PURE__ */ jsx(Close, {}) })
|
|
6892
6884
|
}
|
|
6893
6885
|
)
|
|
6894
6886
|
] });
|
|
@@ -6896,7 +6888,7 @@ function LegendWidgetUI({
|
|
|
6896
6888
|
Tooltip,
|
|
6897
6889
|
{
|
|
6898
6890
|
title: intlConfig.formatMessage({ id: "c4r.widgets.legend.open" }),
|
|
6899
|
-
children: /* @__PURE__ */ jsx(IconButton, { "aria-label": title, onClick: () => onChangeCollapsed(false), children: /* @__PURE__ */ jsx(LayersOutlined, {}) })
|
|
6891
|
+
children: /* @__PURE__ */ jsx(IconButton$1, { "aria-label": title, onClick: () => onChangeCollapsed(false), children: /* @__PURE__ */ jsx(LayersOutlined, {}) })
|
|
6900
6892
|
}
|
|
6901
6893
|
);
|
|
6902
6894
|
return /* @__PURE__ */ jsx(LegendRoot, { sx, elevation: 3, collapsed: collapsed || !!isMobile, children: isMobile ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -7051,7 +7043,7 @@ const HeaderItems = styled(Grid)(({ theme }) => ({
|
|
|
7051
7043
|
marginRight: theme.spacing(-0.5),
|
|
7052
7044
|
marginLeft: theme.spacing(1)
|
|
7053
7045
|
}));
|
|
7054
|
-
const IconActionButton = styled(IconButton)(({ theme }) => ({
|
|
7046
|
+
const IconActionButton = styled(IconButton$1)(({ theme }) => ({
|
|
7055
7047
|
color: theme.palette.text.secondary
|
|
7056
7048
|
}));
|
|
7057
7049
|
const PaperMenu = styled(Menu)(({ theme }) => ({
|