@carto/meridian-ds 1.4.3-alpha-codemirror.6 → 1.4.3-alpha-tag.2
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 -1
- package/dist/{Alert-CpgfD3bq.js → Alert--QYebQp3.js} +1 -1
- package/dist/{Alert-ChcvNOU6.cjs → Alert-DFaAeTZf.cjs} +3 -3
- package/dist/{palette-CD5ph5A-.cjs → TablePaginationActions-BG2gWq0M.cjs} +3 -232
- package/dist/{palette-DI1CmQ2J.js → TablePaginationActions-Dit3VW-A.js} +5 -234
- package/dist/components/index.cjs +236 -1098
- package/dist/components/index.js +202 -1064
- package/dist/custom-icons/index.cjs +390 -339
- package/dist/custom-icons/index.js +390 -339
- package/dist/paletteUtils-B9ybmwiI.cjs +304 -0
- package/dist/paletteUtils-BHqJlHm9.js +288 -0
- package/dist/theme/index.cjs +103 -103
- package/dist/theme/index.js +4 -3
- package/dist/types/components/molecules/Tag.d.ts +20 -0
- package/dist/types/components/molecules/Tag.d.ts.map +1 -0
- package/dist/types/components/molecules/index.d.ts +2 -0
- package/dist/types/components/molecules/index.d.ts.map +1 -1
- package/dist/types/components/organisms/index.d.ts +0 -2
- package/dist/types/components/organisms/index.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +0 -6
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +0 -6
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +0 -6
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +0 -18
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/widgets/index.cjs +136 -136
- package/dist/widgets/index.js +3 -3
- package/package.json +1 -6
- package/dist/OpenDiagonallyRight-5HZXh46V.js +0 -59
- package/dist/OpenDiagonallyRight-BrRyCV4Q.cjs +0 -58
- package/dist/paletteUtils-DEHchy2r.cjs +0 -93
- package/dist/paletteUtils-DTaXyq2Z.js +0 -77
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +0 -16
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +0 -16
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +0 -10
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +0 -8
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +0 -4
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +0 -12
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +0 -9
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +0 -26
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +0 -7
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/index.d.ts +0 -9
- package/dist/types/components/organisms/CodeArea/index.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/types.d.ts +0 -38
- package/dist/types/components/organisms/CodeArea/types.d.ts.map +0 -1
- package/dist/types/components/organisms/CodeArea/utils.d.ts +0 -5
- package/dist/types/components/organisms/CodeArea/utils.d.ts.map +0 -1
package/dist/widgets/index.cjs
CHANGED
|
@@ -4,13 +4,13 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const material = require("@mui/material");
|
|
6
6
|
const reactIntl = require("react-intl");
|
|
7
|
-
const
|
|
7
|
+
const TablePaginationActions = require("../TablePaginationActions-BG2gWq0M.cjs");
|
|
8
8
|
const _ReactEcharts = require("echarts-for-react");
|
|
9
9
|
const reactWindow = require("react-window");
|
|
10
10
|
const SwatchSquare = require("../SwatchSquare-w-U8-O-P.cjs");
|
|
11
11
|
const iconsMaterial = require("@mui/icons-material");
|
|
12
|
-
const Alert = require("../Alert-
|
|
13
|
-
const paletteUtils = require("../paletteUtils-
|
|
12
|
+
const Alert = require("../Alert-DFaAeTZf.cjs");
|
|
13
|
+
const paletteUtils = require("../paletteUtils-B9ybmwiI.cjs");
|
|
14
14
|
function detectTouchscreen() {
|
|
15
15
|
let result = false;
|
|
16
16
|
if (window.PointerEvent && "maxTouchPoints" in navigator) {
|
|
@@ -157,7 +157,7 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
157
157
|
}
|
|
158
158
|
return a !== a && b !== b;
|
|
159
159
|
};
|
|
160
|
-
const isEqual = /* @__PURE__ */
|
|
160
|
+
const isEqual = /* @__PURE__ */ TablePaginationActions.getDefaultExportFromCjs(fastDeepEqual);
|
|
161
161
|
class ReactEcharts extends _ReactEcharts {
|
|
162
162
|
componentDidUpdate(prevProps) {
|
|
163
163
|
const { shouldSetOption } = this.props;
|
|
@@ -328,7 +328,7 @@ function BarWidgetUI(props) {
|
|
|
328
328
|
const isMultiSeries = series.length > 1;
|
|
329
329
|
const theme = material.useTheme();
|
|
330
330
|
const intl = reactIntl.useIntl();
|
|
331
|
-
const intlConfig =
|
|
331
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
332
332
|
const { showSkeleton } = useSkeleton(!!isLoading);
|
|
333
333
|
const tooltipOptions = React.useMemo(
|
|
334
334
|
() => ({
|
|
@@ -550,7 +550,7 @@ function BarWidgetUI(props) {
|
|
|
550
550
|
}
|
|
551
551
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
552
552
|
onSelectedBarsChange && /* @__PURE__ */ jsxRuntime.jsxs(OptionsSelectedBar$2, { container: true, children: [
|
|
553
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
553
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: selectedBars.length > 0 ? intlConfig.formatMessage(
|
|
554
554
|
{ id: "c4r.widgets.bar.selectedItems" },
|
|
555
555
|
{ items: selectedBars.length }
|
|
556
556
|
) : intlConfig.formatMessage({ id: "c4r.widgets.bar.all" }) }),
|
|
@@ -631,14 +631,14 @@ const CategoryItemGroup = material.styled(material.Grid, {
|
|
|
631
631
|
};
|
|
632
632
|
});
|
|
633
633
|
const OptionsSelectedBar$1 = material.styled(material.Grid)(
|
|
634
|
-
({ theme: { spacing, palette
|
|
634
|
+
({ theme: { spacing, palette } }) => ({
|
|
635
635
|
flexDirection: "row",
|
|
636
636
|
justifyContent: "space-between",
|
|
637
637
|
alignItems: "center",
|
|
638
638
|
marginBottom: spacing(1.5),
|
|
639
639
|
paddingRight: spacing(1),
|
|
640
640
|
"& .MuiTypography-caption": {
|
|
641
|
-
color:
|
|
641
|
+
color: palette.text.secondary
|
|
642
642
|
}
|
|
643
643
|
})
|
|
644
644
|
);
|
|
@@ -666,7 +666,7 @@ const CategoryLabelWrapper = material.styled(material.Grid, {
|
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
});
|
|
669
|
-
const CategoryLabel = material.styled(
|
|
669
|
+
const CategoryLabel = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
|
|
670
670
|
fontWeight: theme.typography.fontWeightBold,
|
|
671
671
|
marginRight: theme.spacing(2)
|
|
672
672
|
}));
|
|
@@ -820,7 +820,7 @@ function CategoryWidgetUI({
|
|
|
820
820
|
const referencedPrevAnimValues = React.useRef([]);
|
|
821
821
|
const { showSkeleton } = useSkeleton(!!isLoading);
|
|
822
822
|
const intl = reactIntl.useIntl();
|
|
823
|
-
const intlConfig =
|
|
823
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
824
824
|
function sortBlockedSameAsData(blockedCategories2) {
|
|
825
825
|
return sortedData.reduce((acum, elem) => {
|
|
826
826
|
if (blockedCategories2.includes(elem.name)) {
|
|
@@ -1150,7 +1150,7 @@ function CategoryWidgetUI({
|
|
|
1150
1150
|
};
|
|
1151
1151
|
return /* @__PURE__ */ jsxRuntime.jsxs(CategoriesRoot, { children: [
|
|
1152
1152
|
filterable && sortedData.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(OptionsSelectedBar$1, { container: true, children: [
|
|
1153
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1153
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: selectedCategories.length > 0 ? intlConfig.formatMessage(
|
|
1154
1154
|
{ id: "c4r.widgets.category.selectedItems" },
|
|
1155
1155
|
{ items: selectedCategories.length }
|
|
1156
1156
|
) : intlConfig.formatMessage({ id: "c4r.widgets.category.all" }) }),
|
|
@@ -1236,10 +1236,10 @@ function CategoryWidgetUI({
|
|
|
1236
1236
|
children: CategoryRow
|
|
1237
1237
|
}
|
|
1238
1238
|
) : /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
|
|
1239
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1239
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", children: intlConfig.formatMessage({
|
|
1240
1240
|
id: "c4r.widgets.category.noResults"
|
|
1241
1241
|
}) }),
|
|
1242
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1242
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { component: "p", variant: "caption", mb: 2, children: intlConfig.formatMessage(
|
|
1243
1243
|
{ id: "c4r.widgets.category.noResultsMessage" },
|
|
1244
1244
|
{ searchValue }
|
|
1245
1245
|
) })
|
|
@@ -1326,12 +1326,12 @@ function FormulaWidgetUI({
|
|
|
1326
1326
|
if (showSkeleton) {
|
|
1327
1327
|
return /* @__PURE__ */ jsxRuntime.jsx(FormulaSkeleton, {});
|
|
1328
1328
|
}
|
|
1329
|
-
return isComplexFormat ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1329
|
+
return isComplexFormat ? /* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "h5", component: "div", weight: "medium", children: [
|
|
1330
1330
|
/* @__PURE__ */ jsxRuntime.jsx(Prefix, { children: formattedValue.prefix }),
|
|
1331
1331
|
formattedValue.value,
|
|
1332
1332
|
/* @__PURE__ */ jsxRuntime.jsx(Suffix, { children: formattedValue.suffix })
|
|
1333
1333
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1334
|
-
|
|
1334
|
+
TablePaginationActions.Typography,
|
|
1335
1335
|
{
|
|
1336
1336
|
variant: "h5",
|
|
1337
1337
|
component: "div",
|
|
@@ -1530,7 +1530,7 @@ function HistogramWidgetUI({
|
|
|
1530
1530
|
}) {
|
|
1531
1531
|
const intl = reactIntl.useIntl();
|
|
1532
1532
|
const theme = material.useTheme();
|
|
1533
|
-
const intlConfig =
|
|
1533
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
1534
1534
|
const { showSkeleton } = useSkeleton(!!isLoading);
|
|
1535
1535
|
const filterable = !!_filterable && !!onSelectedBarsChange;
|
|
1536
1536
|
const [echartsInstance, setEchartInstance] = React.useState();
|
|
@@ -1550,7 +1550,7 @@ function HistogramWidgetUI({
|
|
|
1550
1550
|
() => ({
|
|
1551
1551
|
show: tooltip,
|
|
1552
1552
|
trigger: "item",
|
|
1553
|
-
padding: [
|
|
1553
|
+
padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
|
|
1554
1554
|
borderWidth: 0,
|
|
1555
1555
|
textStyle: {
|
|
1556
1556
|
...theme.typography.caption,
|
|
@@ -1588,7 +1588,7 @@ function HistogramWidgetUI({
|
|
|
1588
1588
|
showMaxLabel: true,
|
|
1589
1589
|
...theme.typography.overlineDelicate,
|
|
1590
1590
|
hideOverlap: true,
|
|
1591
|
-
padding: [
|
|
1591
|
+
padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING * 0.5, 0, TablePaginationActions.SPACING * 0.5],
|
|
1592
1592
|
formatter: (value) => {
|
|
1593
1593
|
const formattedValue = processFormatterResult(xAxisFormatter(value));
|
|
1594
1594
|
if (value === min) {
|
|
@@ -1608,7 +1608,7 @@ function HistogramWidgetUI({
|
|
|
1608
1608
|
const denseAxisConfig = {
|
|
1609
1609
|
margin: 0,
|
|
1610
1610
|
verticalAlign: "bottom",
|
|
1611
|
-
padding: [0, 0,
|
|
1611
|
+
padding: [0, 0, TablePaginationActions.SPACING * 1.25, 0],
|
|
1612
1612
|
inside: true,
|
|
1613
1613
|
color: (value) => {
|
|
1614
1614
|
const maxValue = Math.max(...data.map((d) => d ?? Number.MIN_SAFE_INTEGER)) || 1;
|
|
@@ -1623,7 +1623,7 @@ function HistogramWidgetUI({
|
|
|
1623
1623
|
};
|
|
1624
1624
|
const fullAxisConfig = {
|
|
1625
1625
|
verticalAlign: "middle",
|
|
1626
|
-
padding: [0, 0, 0,
|
|
1626
|
+
padding: [0, 0, 0, TablePaginationActions.SPACING * 0.5],
|
|
1627
1627
|
color: theme.palette.black[60]
|
|
1628
1628
|
};
|
|
1629
1629
|
const axisLabelConfig = yAxisType === "dense" ? denseAxisConfig : fullAxisConfig;
|
|
@@ -1718,10 +1718,10 @@ function HistogramWidgetUI({
|
|
|
1718
1718
|
const options = React.useMemo(
|
|
1719
1719
|
() => ({
|
|
1720
1720
|
grid: {
|
|
1721
|
-
left:
|
|
1722
|
-
right:
|
|
1723
|
-
top:
|
|
1724
|
-
bottom:
|
|
1721
|
+
left: TablePaginationActions.SPACING * 0.1,
|
|
1722
|
+
right: TablePaginationActions.SPACING * 0.1,
|
|
1723
|
+
top: TablePaginationActions.SPACING * 2,
|
|
1724
|
+
bottom: TablePaginationActions.SPACING * 0.5,
|
|
1725
1725
|
containLabel: true
|
|
1726
1726
|
},
|
|
1727
1727
|
tooltip: tooltipOptions,
|
|
@@ -1745,7 +1745,7 @@ function HistogramWidgetUI({
|
|
|
1745
1745
|
}
|
|
1746
1746
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1747
1747
|
filterable && /* @__PURE__ */ jsxRuntime.jsxs(OptionsSelectedBar, { container: true, children: [
|
|
1748
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1748
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", weight: "strong", children: selectedBars.length > 0 ? intlConfig.formatMessage(
|
|
1749
1749
|
{ id: "c4r.widgets.histogram.selectedItems" },
|
|
1750
1750
|
{
|
|
1751
1751
|
items: processFormatterResult(
|
|
@@ -1830,8 +1830,8 @@ function usePieCategories(data, order, maxItems, colors) {
|
|
|
1830
1830
|
color = newColor;
|
|
1831
1831
|
}
|
|
1832
1832
|
} else {
|
|
1833
|
-
const
|
|
1834
|
-
const newColor =
|
|
1833
|
+
const palette = theme.palette.qualitative.bold;
|
|
1834
|
+
const newColor = palette[index];
|
|
1835
1835
|
if (newColor) {
|
|
1836
1836
|
color = newColor;
|
|
1837
1837
|
}
|
|
@@ -1909,10 +1909,10 @@ function PieCentralText({
|
|
|
1909
1909
|
return null;
|
|
1910
1910
|
}
|
|
1911
1911
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root$4, { children: [
|
|
1912
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1912
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "h5", children: percentage }),
|
|
1913
1913
|
/* @__PURE__ */ jsxRuntime.jsxs(Category, { children: [
|
|
1914
1914
|
/* @__PURE__ */ jsxRuntime.jsx(MarkerColor, { bgcolor: color, component: "span" }),
|
|
1915
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1915
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { component: "span", variant: "body2", noWrap: true, children: name })
|
|
1916
1916
|
] })
|
|
1917
1917
|
] });
|
|
1918
1918
|
}
|
|
@@ -2066,7 +2066,7 @@ function ChartLegend({
|
|
|
2066
2066
|
const containerRef = React.useRef(null);
|
|
2067
2067
|
const showMoreButtonsRef = React.useRef(null);
|
|
2068
2068
|
const intl = reactIntl.useIntl();
|
|
2069
|
-
const intlConfig =
|
|
2069
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
2070
2070
|
function handleClickRight() {
|
|
2071
2071
|
setOffset(offset + 1);
|
|
2072
2072
|
}
|
|
@@ -2138,7 +2138,7 @@ function ChartLegend({
|
|
|
2138
2138
|
}
|
|
2139
2139
|
),
|
|
2140
2140
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2141
|
-
|
|
2141
|
+
TablePaginationActions.Typography,
|
|
2142
2142
|
{
|
|
2143
2143
|
variant: "overline",
|
|
2144
2144
|
color: selected ? void 0 : "text.disabled",
|
|
@@ -2244,7 +2244,7 @@ function PieWidgetUI({
|
|
|
2244
2244
|
const processedData = usePieCategories(data, order, maxItems, colors);
|
|
2245
2245
|
const { showSkeleton } = useSkeleton(!!isLoading);
|
|
2246
2246
|
const intl = reactIntl.useIntl();
|
|
2247
|
-
const intlConfig =
|
|
2247
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
2248
2248
|
const _percentFormatter = React.useMemo(() => {
|
|
2249
2249
|
if (percentFormatter) {
|
|
2250
2250
|
return percentFormatter;
|
|
@@ -2260,7 +2260,7 @@ function PieWidgetUI({
|
|
|
2260
2260
|
_formatter = (params) => tooltipFormatter(params, formatter, _percentFormatter);
|
|
2261
2261
|
}
|
|
2262
2262
|
return {
|
|
2263
|
-
padding: [
|
|
2263
|
+
padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
|
|
2264
2264
|
backgroundColor: theme.palette.black[90],
|
|
2265
2265
|
borderColor: "transparent",
|
|
2266
2266
|
textStyle: { color: theme.palette.common.white },
|
|
@@ -2300,7 +2300,7 @@ function PieWidgetUI({
|
|
|
2300
2300
|
}),
|
|
2301
2301
|
radius: ["74%", "90%"],
|
|
2302
2302
|
selectedOffset: 0,
|
|
2303
|
-
bottom:
|
|
2303
|
+
bottom: TablePaginationActions.SPACING * 1.5,
|
|
2304
2304
|
label: { show: false },
|
|
2305
2305
|
emphasis: {
|
|
2306
2306
|
focus: "series",
|
|
@@ -2380,7 +2380,7 @@ function PieWidgetUI({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2382
2382
|
filterable && /* @__PURE__ */ jsxRuntime.jsxs(OptionsBar, { container: true, children: [
|
|
2383
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2383
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "textSecondary", children: selectedCategories.length ? intlConfig.formatMessage(
|
|
2384
2384
|
{ id: "c4r.widgets.pie.selectedItems" },
|
|
2385
2385
|
{ items: selectedCategories.length }
|
|
2386
2386
|
) : intlConfig.formatMessage({ id: "c4r.widgets.pie.allSelected" }) }),
|
|
@@ -2496,12 +2496,12 @@ const LimitTextField = material.styled(material.TextField)(({ theme: { spacing }
|
|
|
2496
2496
|
}
|
|
2497
2497
|
}
|
|
2498
2498
|
}));
|
|
2499
|
-
const StyledSlider = material.styled(material.Slider)(({ theme: { palette
|
|
2499
|
+
const StyledSlider = material.styled(material.Slider)(({ theme: { palette } }) => ({
|
|
2500
2500
|
"& .MuiSlider-rail": {
|
|
2501
|
-
color:
|
|
2501
|
+
color: palette.text.hint
|
|
2502
2502
|
}
|
|
2503
2503
|
}));
|
|
2504
|
-
const SliderLimit = material.styled(material.Slider)(({ theme: { palette
|
|
2504
|
+
const SliderLimit = material.styled(material.Slider)(({ theme: { palette, spacing } }) => ({
|
|
2505
2505
|
pointerEvents: "none",
|
|
2506
2506
|
position: "absolute",
|
|
2507
2507
|
zIndex: 1,
|
|
@@ -2514,11 +2514,11 @@ const SliderLimit = material.styled(material.Slider)(({ theme: { palette: palett
|
|
|
2514
2514
|
display: "none"
|
|
2515
2515
|
},
|
|
2516
2516
|
"& .MuiSlider-track": {
|
|
2517
|
-
color:
|
|
2517
|
+
color: palette.primary.main,
|
|
2518
2518
|
opacity: 0.38
|
|
2519
2519
|
},
|
|
2520
2520
|
"& .MuiSlider-mark, & .MuiSlider-markActive": {
|
|
2521
|
-
backgroundColor:
|
|
2521
|
+
backgroundColor: palette.primary.main,
|
|
2522
2522
|
opacity: 0.38,
|
|
2523
2523
|
height: spacing(1),
|
|
2524
2524
|
width: spacing(0.25),
|
|
@@ -2540,7 +2540,7 @@ function RangeWidgetUI({
|
|
|
2540
2540
|
max
|
|
2541
2541
|
]);
|
|
2542
2542
|
const intl = reactIntl.useIntl();
|
|
2543
|
-
const intlConfig =
|
|
2543
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
2544
2544
|
const { showSkeleton } = useSkeleton(!!isLoading);
|
|
2545
2545
|
const limitsMarks = React.useMemo(() => {
|
|
2546
2546
|
if (!limits || limits.length !== 2) {
|
|
@@ -2612,7 +2612,7 @@ function RangeWidgetUI({
|
|
|
2612
2612
|
return /* @__PURE__ */ jsxRuntime.jsx(RangeSkeleton, {});
|
|
2613
2613
|
}
|
|
2614
2614
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root$2, { children: [
|
|
2615
|
-
/* @__PURE__ */ jsxRuntime.jsx(ClearWrapper, { children: hasBeenModified && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2615
|
+
/* @__PURE__ */ jsxRuntime.jsx(ClearWrapper, { children: hasBeenModified && /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "primary", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2616
2616
|
ClearButton,
|
|
2617
2617
|
{
|
|
2618
2618
|
onClick: resetSlider,
|
|
@@ -2689,7 +2689,7 @@ const GraphGrid = material.styled(SkeletonGraphGrid)(({ theme }) => ({
|
|
|
2689
2689
|
justifyContent: "center",
|
|
2690
2690
|
marginLeft: theme.spacing(4),
|
|
2691
2691
|
containerType: "inline-size",
|
|
2692
|
-
[`@container (max-width: ${
|
|
2692
|
+
[`@container (max-width: ${TablePaginationActions.BREAKPOINTS.XS}px)`]: {
|
|
2693
2693
|
" > div": {
|
|
2694
2694
|
maxWidth: "75%"
|
|
2695
2695
|
}
|
|
@@ -2750,7 +2750,7 @@ function __generateDefaultConfig({
|
|
|
2750
2750
|
containLabel: true
|
|
2751
2751
|
},
|
|
2752
2752
|
tooltip: {
|
|
2753
|
-
padding: [
|
|
2753
|
+
padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
|
|
2754
2754
|
textStyle: {
|
|
2755
2755
|
...theme.typography.caption,
|
|
2756
2756
|
fontSize: 11,
|
|
@@ -2763,7 +2763,7 @@ function __generateDefaultConfig({
|
|
|
2763
2763
|
xAxis: {
|
|
2764
2764
|
axisLabel: {
|
|
2765
2765
|
...theme.typography.overlineDelicate,
|
|
2766
|
-
padding: [
|
|
2766
|
+
padding: [TablePaginationActions.SPACING * 0.5, 0, 0, 0],
|
|
2767
2767
|
formatter: (v) => processFormatterResult(xAxisFormatter(v))
|
|
2768
2768
|
}
|
|
2769
2769
|
},
|
|
@@ -2964,7 +2964,7 @@ function TableWidgetUI({
|
|
|
2964
2964
|
var _a;
|
|
2965
2965
|
const paginationRef = React.useRef(null);
|
|
2966
2966
|
const intl = reactIntl.useIntl();
|
|
2967
|
-
const intlConfig =
|
|
2967
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
2968
2968
|
const { showSkeleton } = useSkeleton(!!isLoading);
|
|
2969
2969
|
function defaultLabelDisplayedRows({
|
|
2970
2970
|
from,
|
|
@@ -2992,7 +2992,7 @@ function TableWidgetUI({
|
|
|
2992
2992
|
if (height) {
|
|
2993
2993
|
const paginationHeight = Math.max(
|
|
2994
2994
|
((_a = paginationRef == null ? void 0 : paginationRef.current) == null ? void 0 : _a.clientHeight) ?? 0,
|
|
2995
|
-
pagination ?
|
|
2995
|
+
pagination ? TablePaginationActions.SPACING * 6 : 0
|
|
2996
2996
|
);
|
|
2997
2997
|
fixedHeightStyle.height = `calc(${height} - ${paginationHeight}px)`;
|
|
2998
2998
|
}
|
|
@@ -3046,7 +3046,7 @@ function TableWidgetUI({
|
|
|
3046
3046
|
onPageChange: handleChangePage,
|
|
3047
3047
|
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
3048
3048
|
ActionsComponent: () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3049
|
-
|
|
3049
|
+
TablePaginationActions.TablePaginationActions,
|
|
3050
3050
|
{
|
|
3051
3051
|
count: totalCount,
|
|
3052
3052
|
rowsPerPage,
|
|
@@ -3497,7 +3497,7 @@ function TimeSeriesProvider({
|
|
|
3497
3497
|
const [_isPlaying, setIsPlaying] = React.useState(isPlaying);
|
|
3498
3498
|
const [_isPaused, setIsPaused] = React.useState(isPaused);
|
|
3499
3499
|
const [_timeWindow, setTimeWindow] = React.useState([]);
|
|
3500
|
-
const intlConfig =
|
|
3500
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
3501
3501
|
React.useEffect(() => {
|
|
3502
3502
|
const sorted = _timeWindow.sort((timeA, timeB) => timeA < timeB ? -1 : 1).map(getDate);
|
|
3503
3503
|
onTimeWindowUpdate == null ? void 0 : onTimeWindowUpdate(sorted);
|
|
@@ -3798,11 +3798,11 @@ function addEventWithCleanUp(zr, eventKey, event) {
|
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|
|
3800
3800
|
}
|
|
3801
|
-
const CHART_HEIGHT_DEFAULT =
|
|
3801
|
+
const CHART_HEIGHT_DEFAULT = TablePaginationActions.SPACING * 22;
|
|
3802
3802
|
const CHART_HEIGHT_FITHEIGHT = "100%";
|
|
3803
3803
|
const DEFAULT_SPLIT_NUMBER = 5;
|
|
3804
3804
|
const MIN_ADAPTIVE_SPLIT_NUMBER = 3;
|
|
3805
|
-
const ADAPTIVE_SPLIT_NUMBER_SPACING =
|
|
3805
|
+
const ADAPTIVE_SPLIT_NUMBER_SPACING = TablePaginationActions.SPACING * 20;
|
|
3806
3806
|
function TimeSeriesChart({
|
|
3807
3807
|
chartType,
|
|
3808
3808
|
formatter,
|
|
@@ -3839,7 +3839,7 @@ function TimeSeriesChart({
|
|
|
3839
3839
|
show: tooltip,
|
|
3840
3840
|
trigger: "axis",
|
|
3841
3841
|
appendToBody: true,
|
|
3842
|
-
padding: [
|
|
3842
|
+
padding: [TablePaginationActions.SPACING * 0.5, TablePaginationActions.SPACING],
|
|
3843
3843
|
textStyle: {
|
|
3844
3844
|
...theme.typography.caption,
|
|
3845
3845
|
fontSize: 11,
|
|
@@ -3850,9 +3850,9 @@ function TimeSeriesChart({
|
|
|
3850
3850
|
position: (point, params, dom, rect, size) => {
|
|
3851
3851
|
const position = { top: 0 };
|
|
3852
3852
|
if (size.contentSize[0] < size.viewSize[0] - point[0]) {
|
|
3853
|
-
position.left = point[0] +
|
|
3853
|
+
position.left = point[0] + TablePaginationActions.SPACING * 1.5;
|
|
3854
3854
|
} else {
|
|
3855
|
-
position.right = size.viewSize[0] - point[0] +
|
|
3855
|
+
position.right = size.viewSize[0] - point[0] + TablePaginationActions.SPACING * 1.5;
|
|
3856
3856
|
}
|
|
3857
3857
|
return position;
|
|
3858
3858
|
},
|
|
@@ -3864,7 +3864,7 @@ function TimeSeriesChart({
|
|
|
3864
3864
|
const denseAxisConfig = {
|
|
3865
3865
|
margin: 0,
|
|
3866
3866
|
verticalAlign: "bottom",
|
|
3867
|
-
padding: [0, 0,
|
|
3867
|
+
padding: [0, 0, TablePaginationActions.SPACING * 1.25, 0],
|
|
3868
3868
|
inside: true,
|
|
3869
3869
|
color: (value) => {
|
|
3870
3870
|
let col = "transparent";
|
|
@@ -3877,7 +3877,7 @@ function TimeSeriesChart({
|
|
|
3877
3877
|
const fullAxisConfig = {
|
|
3878
3878
|
margin: 0,
|
|
3879
3879
|
verticalAlign: "middle",
|
|
3880
|
-
padding: [0,
|
|
3880
|
+
padding: [0, TablePaginationActions.SPACING * 0.75, 0, 0],
|
|
3881
3881
|
color: theme.palette.black[60]
|
|
3882
3882
|
};
|
|
3883
3883
|
const yAxisLabelConfig = yAxisType === "dense" ? denseAxisConfig : fullAxisConfig;
|
|
@@ -4005,10 +4005,10 @@ function TimeSeriesChart({
|
|
|
4005
4005
|
const options = React.useMemo(
|
|
4006
4006
|
() => ({
|
|
4007
4007
|
grid: {
|
|
4008
|
-
left:
|
|
4009
|
-
top:
|
|
4010
|
-
right:
|
|
4011
|
-
bottom:
|
|
4008
|
+
left: TablePaginationActions.SPACING * (yAxisType === "dense" ? 2 : 3.5),
|
|
4009
|
+
top: TablePaginationActions.SPACING * 4,
|
|
4010
|
+
right: TablePaginationActions.SPACING * 2,
|
|
4011
|
+
bottom: TablePaginationActions.SPACING * 3
|
|
4012
4012
|
},
|
|
4013
4013
|
color: [theme.palette.secondary.main],
|
|
4014
4014
|
tooltip: tooltipOptions,
|
|
@@ -4194,7 +4194,7 @@ function TimeSeriesControls({
|
|
|
4194
4194
|
open: Boolean(anchorSpeedEl),
|
|
4195
4195
|
onClose: handleCloseSpeedMenu,
|
|
4196
4196
|
children: [
|
|
4197
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.MenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4197
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.MenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "textSecondary", children: intl.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
|
|
4198
4198
|
SPEED_FACTORS.map((speedItem) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4199
4199
|
material.MenuItem,
|
|
4200
4200
|
{
|
|
@@ -4367,7 +4367,7 @@ const ControlsBox = material.styled(material.Box)(({ theme }) => ({
|
|
|
4367
4367
|
flexShrink: 0,
|
|
4368
4368
|
marginLeft: 0,
|
|
4369
4369
|
paddingLeft: theme.spacing(1),
|
|
4370
|
-
[`@container (max-width: ${
|
|
4370
|
+
[`@container (max-width: ${TablePaginationActions.BREAKPOINTS.XS}px)`]: {
|
|
4371
4371
|
paddingLeft: 0
|
|
4372
4372
|
},
|
|
4373
4373
|
paddingBottom: theme.spacing(1.5),
|
|
@@ -4378,7 +4378,7 @@ const ChartBox = material.styled(material.Box)(({ theme }) => ({
|
|
|
4378
4378
|
minWidth: 0,
|
|
4379
4379
|
paddingLeft: theme.spacing(5),
|
|
4380
4380
|
paddingBottom: theme.spacing(1.5),
|
|
4381
|
-
[`@container (max-width: ${
|
|
4381
|
+
[`@container (max-width: ${TablePaginationActions.BREAKPOINTS.XS}px)`]: {
|
|
4382
4382
|
paddingLeft: theme.spacing(1)
|
|
4383
4383
|
}
|
|
4384
4384
|
}));
|
|
@@ -4542,7 +4542,7 @@ function TimeSeriesWidgetUI({
|
|
|
4542
4542
|
onPause,
|
|
4543
4543
|
onStop,
|
|
4544
4544
|
isLoading = false,
|
|
4545
|
-
palette
|
|
4545
|
+
palette = Object.values(paletteUtils.commonPalette.qualitative.bold),
|
|
4546
4546
|
showLegend,
|
|
4547
4547
|
yAxisType = "dense"
|
|
4548
4548
|
}) {
|
|
@@ -4609,7 +4609,7 @@ function TimeSeriesWidgetUI({
|
|
|
4609
4609
|
showControls,
|
|
4610
4610
|
animation,
|
|
4611
4611
|
filterable,
|
|
4612
|
-
palette
|
|
4612
|
+
palette,
|
|
4613
4613
|
showLegend,
|
|
4614
4614
|
selectedCategories,
|
|
4615
4615
|
timelinePosition,
|
|
@@ -4635,7 +4635,7 @@ function TimeSeriesWidgetUIContent({
|
|
|
4635
4635
|
showControls = true,
|
|
4636
4636
|
animation = true,
|
|
4637
4637
|
filterable = true,
|
|
4638
|
-
palette
|
|
4638
|
+
palette = Object.values(paletteUtils.commonPalette.qualitative.bold),
|
|
4639
4639
|
selectedCategories = [],
|
|
4640
4640
|
onSelectedCategoriesChange,
|
|
4641
4641
|
showLegend,
|
|
@@ -4666,7 +4666,7 @@ function TimeSeriesWidgetUIContent({
|
|
|
4666
4666
|
name: category,
|
|
4667
4667
|
data: [],
|
|
4668
4668
|
color: paletteUtils.getColorByCategory(category, {
|
|
4669
|
-
palette
|
|
4669
|
+
palette,
|
|
4670
4670
|
fallbackColor,
|
|
4671
4671
|
colorMapping
|
|
4672
4672
|
})
|
|
@@ -4690,7 +4690,7 @@ function TimeSeriesWidgetUIContent({
|
|
|
4690
4690
|
series2[categoryIndex].data.push([name, value]);
|
|
4691
4691
|
}
|
|
4692
4692
|
return series2;
|
|
4693
|
-
}, [categories, data, palette
|
|
4693
|
+
}, [categories, data, palette, fallbackColor, theme.palette.secondary.main]);
|
|
4694
4694
|
const currentDate = React.useMemo(() => {
|
|
4695
4695
|
if (!data.length) {
|
|
4696
4696
|
return "";
|
|
@@ -4739,7 +4739,7 @@ function TimeSeriesWidgetUIContent({
|
|
|
4739
4739
|
);
|
|
4740
4740
|
const isLegendVisible = Boolean(showLegend ?? series.length > 1);
|
|
4741
4741
|
const header = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4742
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4742
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { color: "textSecondary", variant: "caption", children: currentDate ?? "-" }) }),
|
|
4743
4743
|
filterable && showClearButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4744
4744
|
material.Link,
|
|
4745
4745
|
{
|
|
@@ -5123,7 +5123,7 @@ function ComparativeCategoryWidgetUI({
|
|
|
5123
5123
|
const [tempSelection, setTempSelection] = React.useState(selectedCategories);
|
|
5124
5124
|
const [searchValue, setSearchValue] = React.useState("");
|
|
5125
5125
|
const intl = reactIntl.useIntl();
|
|
5126
|
-
const intlConfig =
|
|
5126
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
5127
5127
|
const processedData = React.useMemo(() => {
|
|
5128
5128
|
const _colors = colors.length ? colors : [
|
|
5129
5129
|
theme.palette.secondary.main,
|
|
@@ -5240,11 +5240,11 @@ function ComparativeCategoryWidgetUI({
|
|
|
5240
5240
|
const clickHandler = filterable ? searchActive ? selectTempCategory : selectCategory : void 0;
|
|
5241
5241
|
return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { children: [
|
|
5242
5242
|
filterable ? /* @__PURE__ */ jsxRuntime.jsxs(Toolbar, { center: true, children: [
|
|
5243
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5243
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: selectedCategories.length > 0 ? intlConfig.formatMessage(
|
|
5244
5244
|
{ id: "c4r.widgets.category.selectedItems" },
|
|
5245
5245
|
{ items: selectedCategories.length }
|
|
5246
5246
|
) : intlConfig.formatMessage({ id: "c4r.widgets.category.all" }) }),
|
|
5247
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5247
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", component: "div", children: searchActive ? /* @__PURE__ */ jsxRuntime.jsx(material.Link, { onClick: applyTempSelection, children: intlConfig.formatMessage({ id: "c4r.widgets.category.apply" }) }) : blockingActive ? /* @__PURE__ */ jsxRuntime.jsx(material.Link, { onClick: disableBlocking, children: intlConfig.formatMessage({
|
|
5248
5248
|
id: "c4r.widgets.category.unlock"
|
|
5249
5249
|
}) }) : selectedCategories.length ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5250
5250
|
material.Box,
|
|
@@ -5282,10 +5282,10 @@ function ComparativeCategoryWidgetUI({
|
|
|
5282
5282
|
) }) : null,
|
|
5283
5283
|
/* @__PURE__ */ jsxRuntime.jsxs(CategoriesList, { children: [
|
|
5284
5284
|
list.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5285
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5285
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", children: intlConfig.formatMessage({
|
|
5286
5286
|
id: "c4r.widgets.category.noResults"
|
|
5287
5287
|
}) }),
|
|
5288
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5288
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", children: intlConfig.formatMessage(
|
|
5289
5289
|
{ id: "c4r.widgets.category.noResultsMessage" },
|
|
5290
5290
|
{ searchValue }
|
|
5291
5291
|
) })
|
|
@@ -5323,11 +5323,11 @@ function ComparativeCategoryWidgetUI({
|
|
|
5323
5323
|
searchActive ? /* @__PURE__ */ jsxRuntime.jsx(material.Button, { size: "small", color: "primary", onClick: disableSearchMode, children: intlConfig.formatMessage({ id: "c4r.widgets.category.cancel" }) }) : null,
|
|
5324
5324
|
/* @__PURE__ */ jsxRuntime.jsx(BulletListWrapper, { children: names.map((name, i) => /* @__PURE__ */ jsxRuntime.jsxs(BulletWrapper, { children: [
|
|
5325
5325
|
/* @__PURE__ */ jsxRuntime.jsx(Bullet, { color: (colors == null ? void 0 : colors[i]) ?? theme.palette.background.default }),
|
|
5326
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5326
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", children: name })
|
|
5327
5327
|
] }, names[i])) })
|
|
5328
5328
|
] });
|
|
5329
5329
|
}
|
|
5330
|
-
const Note = material.styled(
|
|
5330
|
+
const Note = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
|
|
5331
5331
|
display: "inline-block",
|
|
5332
5332
|
marginTop: theme.spacing(0.5)
|
|
5333
5333
|
}));
|
|
@@ -5344,10 +5344,10 @@ const MainLine = material.styled("div")(({ theme }) => ({
|
|
|
5344
5344
|
color: theme.palette.text.primary,
|
|
5345
5345
|
display: "flex"
|
|
5346
5346
|
}));
|
|
5347
|
-
const Preffix = material.styled(
|
|
5347
|
+
const Preffix = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
|
|
5348
5348
|
marginRight: theme.spacing(0.5)
|
|
5349
5349
|
}));
|
|
5350
|
-
const Unit = material.styled(
|
|
5350
|
+
const Unit = material.styled(TablePaginationActions.Typography)(({ theme }) => ({
|
|
5351
5351
|
marginLeft: theme.spacing(0.5)
|
|
5352
5352
|
}));
|
|
5353
5353
|
function FormulaValue({
|
|
@@ -5415,8 +5415,8 @@ function prepareFormulaValues(data, colors) {
|
|
|
5415
5415
|
function processData(data, colors = [], labels = [], theme, selectedCategories = []) {
|
|
5416
5416
|
return data.map((item, index) => {
|
|
5417
5417
|
const isDisabled = selectedCategories.length > 0 && !selectedCategories.includes(item.name);
|
|
5418
|
-
const
|
|
5419
|
-
const color =
|
|
5418
|
+
const palette = (colors == null ? void 0 : colors.length) ? colors : theme.palette.qualitative.bold;
|
|
5419
|
+
const color = palette[index];
|
|
5420
5420
|
return {
|
|
5421
5421
|
...item,
|
|
5422
5422
|
key: item.name,
|
|
@@ -5495,19 +5495,19 @@ function ComparativePieWidgetUI({
|
|
|
5495
5495
|
data: legendData,
|
|
5496
5496
|
selectedMode: false,
|
|
5497
5497
|
type: "scroll",
|
|
5498
|
-
left:
|
|
5499
|
-
bottom:
|
|
5500
|
-
itemGap:
|
|
5498
|
+
left: TablePaginationActions.SPACING,
|
|
5499
|
+
bottom: TablePaginationActions.SPACING * -0.5,
|
|
5500
|
+
itemGap: TablePaginationActions.SPACING * 3,
|
|
5501
5501
|
icon: "circle",
|
|
5502
|
-
itemWidth:
|
|
5503
|
-
itemHeight:
|
|
5502
|
+
itemWidth: TablePaginationActions.SPACING,
|
|
5503
|
+
itemHeight: TablePaginationActions.SPACING,
|
|
5504
5504
|
textStyle: {
|
|
5505
5505
|
...theme.typography.overline,
|
|
5506
5506
|
color: theme.palette.text.primary,
|
|
5507
5507
|
fontWeight: 400,
|
|
5508
5508
|
lineHeight: 1,
|
|
5509
5509
|
verticalAlign: "bottom",
|
|
5510
|
-
padding: [0, 0, 0,
|
|
5510
|
+
padding: [0, 0, 0, TablePaginationActions.SPACING * 0.5]
|
|
5511
5511
|
},
|
|
5512
5512
|
inactiveColor: theme.palette.text.disabled,
|
|
5513
5513
|
pageIcons: {
|
|
@@ -5516,13 +5516,13 @@ function ComparativePieWidgetUI({
|
|
|
5516
5516
|
"path://M9 16.59 13.3265857 12 9 7.41 10.3319838 6 16 12 10.3319838 18z"
|
|
5517
5517
|
]
|
|
5518
5518
|
},
|
|
5519
|
-
pageIconSize:
|
|
5519
|
+
pageIconSize: TablePaginationActions.SPACING * 1.5,
|
|
5520
5520
|
pageIconColor: theme.palette.text.secondary,
|
|
5521
5521
|
pageIconInactiveColor: theme.palette.text.disabled,
|
|
5522
5522
|
pageTextStyle: {
|
|
5523
5523
|
fontFamily: theme.typography.overline.fontFamily,
|
|
5524
|
-
fontSize:
|
|
5525
|
-
lineHeight:
|
|
5524
|
+
fontSize: TablePaginationActions.SPACING * 1.5,
|
|
5525
|
+
lineHeight: TablePaginationActions.SPACING * 1.75,
|
|
5526
5526
|
fontWeight: 400,
|
|
5527
5527
|
color: theme.palette.text.primary
|
|
5528
5528
|
}
|
|
@@ -5534,15 +5534,15 @@ function ComparativePieWidgetUI({
|
|
|
5534
5534
|
rich: {
|
|
5535
5535
|
b: {
|
|
5536
5536
|
fontFamily: theme.typography.overline.fontFamily,
|
|
5537
|
-
fontSize:
|
|
5538
|
-
lineHeight:
|
|
5537
|
+
fontSize: TablePaginationActions.SPACING * 1.75,
|
|
5538
|
+
lineHeight: TablePaginationActions.SPACING * 1.75,
|
|
5539
5539
|
fontWeight: 400,
|
|
5540
5540
|
color: theme.palette.text.primary
|
|
5541
5541
|
},
|
|
5542
5542
|
per: {
|
|
5543
5543
|
...theme.typography.overline,
|
|
5544
|
-
fontSize:
|
|
5545
|
-
lineHeight:
|
|
5544
|
+
fontSize: TablePaginationActions.SPACING * 3,
|
|
5545
|
+
lineHeight: TablePaginationActions.SPACING * 4.5,
|
|
5546
5546
|
fontWeight: 600,
|
|
5547
5547
|
color: theme.palette.text.primary
|
|
5548
5548
|
}
|
|
@@ -5561,7 +5561,7 @@ function ComparativePieWidgetUI({
|
|
|
5561
5561
|
radius: i === 0 ? ["75%", "90%"] : ["56%", "72%"],
|
|
5562
5562
|
selectedOffset: 0,
|
|
5563
5563
|
hoverOffset: 5,
|
|
5564
|
-
bottom:
|
|
5564
|
+
bottom: TablePaginationActions.SPACING * 2.5,
|
|
5565
5565
|
avoidLabelOverlap: true,
|
|
5566
5566
|
label: { show: false, ...labelOptions },
|
|
5567
5567
|
emphasis: {
|
|
@@ -5756,7 +5756,7 @@ function FeatureSelectionUIDropdown({
|
|
|
5756
5756
|
disabled: editDisabled && isEditItem(mode),
|
|
5757
5757
|
children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
|
|
5758
5758
|
mode.icon,
|
|
5759
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { ml: 2, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5759
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { ml: 2, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", color: "inherit", children: material.capitalize(mode.label) }) })
|
|
5760
5760
|
] })
|
|
5761
5761
|
},
|
|
5762
5762
|
mode.id
|
|
@@ -5785,7 +5785,7 @@ function FeatureSelectionUIDropdown({
|
|
|
5785
5785
|
onClose: closeDropdown,
|
|
5786
5786
|
MenuListProps: { "aria-labelledby": "feature-selection-menu-button" },
|
|
5787
5787
|
children: [
|
|
5788
|
-
menuHeaderText && /* @__PURE__ */ jsxRuntime.jsx(DisabledMenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5788
|
+
menuHeaderText && /* @__PURE__ */ jsxRuntime.jsx(DisabledMenuItem, { disabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", color: "textSecondary", children: menuHeaderText }) }),
|
|
5789
5789
|
!!selectionModes.length && selectionModes.map(createMenuItemWrapper),
|
|
5790
5790
|
showDivider && /* @__PURE__ */ jsxRuntime.jsx(material.Divider, { sx: { margin: ({ spacing }) => spacing(1, 0) } }),
|
|
5791
5791
|
!!editModes.length && editModes.map(createMenuItemWrapper)
|
|
@@ -5819,7 +5819,7 @@ function FeatureSelectionUIGeometryChips({
|
|
|
5819
5819
|
chipLabel
|
|
5820
5820
|
}) {
|
|
5821
5821
|
const intl = reactIntl.useIntl();
|
|
5822
|
-
const intlConfig =
|
|
5822
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
5823
5823
|
function translateType(type) {
|
|
5824
5824
|
if (type === "MultiPoint") {
|
|
5825
5825
|
return intlConfig.formatMessage({
|
|
@@ -5920,7 +5920,7 @@ function FeatureSelectionWidgetUI({
|
|
|
5920
5920
|
chipLabel
|
|
5921
5921
|
}) {
|
|
5922
5922
|
const intl = reactIntl.useIntl();
|
|
5923
|
-
const intlConfig =
|
|
5923
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
5924
5924
|
const selectionModeWithLocales = React.useMemo(() => {
|
|
5925
5925
|
return selectionModes.map((mode) => ({
|
|
5926
5926
|
...mode,
|
|
@@ -6088,8 +6088,8 @@ const LegendIconWrapper = material.styled("li")(() => ({
|
|
|
6088
6088
|
}));
|
|
6089
6089
|
const LegendIconImageWrapper = material.styled("div")(({ theme }) => ({
|
|
6090
6090
|
marginRight: theme.spacing(1.5),
|
|
6091
|
-
width:
|
|
6092
|
-
height:
|
|
6091
|
+
width: TablePaginationActions.ICON_SIZE_MEDIUM,
|
|
6092
|
+
height: TablePaginationActions.ICON_SIZE_MEDIUM,
|
|
6093
6093
|
"& img": {
|
|
6094
6094
|
margin: "auto",
|
|
6095
6095
|
display: "block"
|
|
@@ -6120,7 +6120,7 @@ function LegendOpacityControl({
|
|
|
6120
6120
|
onChange
|
|
6121
6121
|
}) {
|
|
6122
6122
|
const intl = reactIntl.useIntl();
|
|
6123
|
-
const intlConfig =
|
|
6123
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6124
6124
|
function handleTextFieldChange(e) {
|
|
6125
6125
|
const newOpacity = parseInt(e.target.value || "0");
|
|
6126
6126
|
const clamped = Math.min(Math.max(newOpacity, 0), 100);
|
|
@@ -6212,7 +6212,7 @@ function LegendLayerTitle({
|
|
|
6212
6212
|
}
|
|
6213
6213
|
}, [title, visible]);
|
|
6214
6214
|
const element = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6215
|
-
|
|
6215
|
+
TablePaginationActions.Typography,
|
|
6216
6216
|
{
|
|
6217
6217
|
ref,
|
|
6218
6218
|
color: visible ? "textPrimary" : "textSecondary",
|
|
@@ -6249,16 +6249,16 @@ function LegendCategories({
|
|
|
6249
6249
|
customMarkers,
|
|
6250
6250
|
maskedMarkers = true
|
|
6251
6251
|
} = legend;
|
|
6252
|
-
const palette
|
|
6252
|
+
const palette = paletteUtils.getPalette(colors, labels.length);
|
|
6253
6253
|
const showHelperText = labels.length > MAX_CATEGORIES;
|
|
6254
6254
|
const intl = reactIntl.useIntl();
|
|
6255
|
-
const intlConfig =
|
|
6255
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6256
6256
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6257
6257
|
/* @__PURE__ */ jsxRuntime.jsx(LegendVariableList, { "data-testid": "categories-legend", children: labels.slice(0, MAX_CATEGORIES).map((label, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6258
6258
|
LegendCategoriesRow,
|
|
6259
6259
|
{
|
|
6260
6260
|
label: String(label),
|
|
6261
|
-
color: palette
|
|
6261
|
+
color: palette[idx % palette.length],
|
|
6262
6262
|
icon: customMarkers && Array.isArray(customMarkers) ? customMarkers[idx] : customMarkers,
|
|
6263
6263
|
maskedIcon: maskedMarkers,
|
|
6264
6264
|
isStrokeColor
|
|
@@ -6266,7 +6266,7 @@ function LegendCategories({
|
|
|
6266
6266
|
`${label}${idx}`
|
|
6267
6267
|
)) }),
|
|
6268
6268
|
showHelperText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6269
|
-
|
|
6269
|
+
TablePaginationActions.Typography,
|
|
6270
6270
|
{
|
|
6271
6271
|
variant: "caption",
|
|
6272
6272
|
color: "textSecondary",
|
|
@@ -6410,7 +6410,7 @@ function LegendProportion({
|
|
|
6410
6410
|
legend
|
|
6411
6411
|
}) {
|
|
6412
6412
|
const intl = reactIntl.useIntl();
|
|
6413
|
-
const intlConfig =
|
|
6413
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6414
6414
|
const showMinMax = legend.showMinMax ?? true;
|
|
6415
6415
|
const { min, max, error } = calculateRange(legend);
|
|
6416
6416
|
const [step1, step2] = !error ? calculateSteps(min, max) : [0, 0];
|
|
@@ -6423,20 +6423,20 @@ function LegendProportion({
|
|
|
6423
6423
|
},
|
|
6424
6424
|
index
|
|
6425
6425
|
)) }),
|
|
6426
|
-
/* @__PURE__ */ jsxRuntime.jsx(LabelList, { children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6427
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6426
|
+
/* @__PURE__ */ jsxRuntime.jsx(LabelList, { children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6427
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: [
|
|
6428
6428
|
showMinMax && intlConfig.formatMessage({ id: "c4r.widgets.legend.max" }) + ": ",
|
|
6429
6429
|
intl.formatNumber(max, {
|
|
6430
6430
|
maximumSignificantDigits: MAX_SIG_DIGITS
|
|
6431
6431
|
})
|
|
6432
6432
|
] }),
|
|
6433
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6433
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: intl.formatNumber(step2, {
|
|
6434
6434
|
maximumSignificantDigits: MAX_SIG_DIGITS
|
|
6435
6435
|
}) }),
|
|
6436
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6436
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: intl.formatNumber(step1, {
|
|
6437
6437
|
maximumSignificantDigits: MAX_SIG_DIGITS
|
|
6438
6438
|
}) }),
|
|
6439
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6439
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "overline", color: "textSecondary", children: [
|
|
6440
6440
|
showMinMax && intlConfig.formatMessage({ id: "c4r.widgets.legend.min" }) + ": ",
|
|
6441
6441
|
intl.formatNumber(min, {
|
|
6442
6442
|
maximumSignificantDigits: MAX_SIG_DIGITS
|
|
@@ -6479,7 +6479,7 @@ function LegendIcon({
|
|
|
6479
6479
|
src: icons[idx],
|
|
6480
6480
|
alt: label,
|
|
6481
6481
|
width: "auto",
|
|
6482
|
-
height:
|
|
6482
|
+
height: TablePaginationActions.ICON_SIZE_MEDIUM
|
|
6483
6483
|
}
|
|
6484
6484
|
) }),
|
|
6485
6485
|
/* @__PURE__ */ jsxRuntime.jsx(LegendLayerTitle, { visible: true, title: label })
|
|
@@ -6493,7 +6493,7 @@ function LegendRamp({
|
|
|
6493
6493
|
legend
|
|
6494
6494
|
}) {
|
|
6495
6495
|
const { labels = [], colors = [], showMinMax = true } = legend;
|
|
6496
|
-
const palette
|
|
6496
|
+
const palette = paletteUtils.getPalette(
|
|
6497
6497
|
colors,
|
|
6498
6498
|
!labels.length || isContinuous ? 2 : labels.length + 1
|
|
6499
6499
|
);
|
|
@@ -6508,36 +6508,36 @@ function LegendRamp({
|
|
|
6508
6508
|
minLabel = "< " + minLabel;
|
|
6509
6509
|
maxLabel = "≥ " + maxLabel;
|
|
6510
6510
|
}
|
|
6511
|
-
return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { py: 2, "data-testid": "ramp-legend", children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6511
|
+
return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { py: 2, "data-testid": "ramp-legend", children: error ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { maxWidth: 240, children: /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6512
6512
|
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { display: "flex", pb: 1, children: isContinuous ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6513
6513
|
StepsContinuous,
|
|
6514
6514
|
{
|
|
6515
6515
|
"data-testid": "step-continuous",
|
|
6516
|
-
palette
|
|
6516
|
+
palette
|
|
6517
6517
|
}
|
|
6518
6518
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6519
6519
|
StepsDiscontinuous,
|
|
6520
6520
|
{
|
|
6521
|
-
palette
|
|
6521
|
+
palette,
|
|
6522
6522
|
labels: formattedLabels,
|
|
6523
6523
|
max: maxLabel,
|
|
6524
6524
|
min: minLabel
|
|
6525
6525
|
}
|
|
6526
6526
|
) }),
|
|
6527
6527
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Box, { display: "flex", justifyContent: "space-between", children: [
|
|
6528
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6529
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6528
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overlineDelicate", color: "textSecondary", children: minLabel }),
|
|
6529
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "overlineDelicate", color: "textSecondary", children: maxLabel })
|
|
6530
6530
|
] })
|
|
6531
6531
|
] }) });
|
|
6532
6532
|
}
|
|
6533
6533
|
const StepsContinuous = material.styled(material.Box, {
|
|
6534
6534
|
shouldForwardProp: (prop) => prop !== "palette"
|
|
6535
|
-
})(({ palette
|
|
6535
|
+
})(({ palette, theme }) => ({
|
|
6536
6536
|
display: "block",
|
|
6537
6537
|
flexGrow: 1,
|
|
6538
6538
|
height: theme.spacing(1),
|
|
6539
6539
|
borderRadius: theme.spacing(0.5),
|
|
6540
|
-
background: `linear-gradient(to right, ${
|
|
6540
|
+
background: `linear-gradient(to right, ${palette.join()})`
|
|
6541
6541
|
}));
|
|
6542
6542
|
const StepGrid = material.styled(material.Box, {
|
|
6543
6543
|
shouldForwardProp: (prop) => prop !== "color"
|
|
@@ -6555,14 +6555,14 @@ const StepGrid = material.styled(material.Box, {
|
|
|
6555
6555
|
}));
|
|
6556
6556
|
function StepsDiscontinuous({
|
|
6557
6557
|
labels = [],
|
|
6558
|
-
palette
|
|
6558
|
+
palette = [],
|
|
6559
6559
|
max,
|
|
6560
6560
|
min
|
|
6561
6561
|
}) {
|
|
6562
6562
|
const rightLabels = labels.length ? [min, ...labels] : [min, max];
|
|
6563
6563
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: rightLabels.map((label, idx) => {
|
|
6564
6564
|
const title = idx === 0 ? min : idx === rightLabels.length - 1 ? max : `${label} - ${rightLabels[idx + 1]}`;
|
|
6565
|
-
return /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title, children: /* @__PURE__ */ jsxRuntime.jsx(StepGrid, { "data-testid": "step-discontinuous", color:
|
|
6565
|
+
return /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title, children: /* @__PURE__ */ jsxRuntime.jsx(StepGrid, { "data-testid": "step-discontinuous", color: palette[idx] }) }, idx);
|
|
6566
6566
|
}) });
|
|
6567
6567
|
}
|
|
6568
6568
|
const legendTypeMap = {
|
|
@@ -6574,11 +6574,11 @@ const legendTypeMap = {
|
|
|
6574
6574
|
};
|
|
6575
6575
|
function LegendUnknown({ legend }) {
|
|
6576
6576
|
const intl = reactIntl.useIntl();
|
|
6577
|
-
const intlConfig =
|
|
6577
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6578
6578
|
if (legend.select || !legend.type) {
|
|
6579
6579
|
return null;
|
|
6580
6580
|
}
|
|
6581
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6581
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TablePaginationActions.Typography, { variant: "body2", color: "textSecondary", component: "p", children: [
|
|
6582
6582
|
legend.type,
|
|
6583
6583
|
" ",
|
|
6584
6584
|
intlConfig.formatMessage({ id: "c4r.widgets.legend.notSupported" }),
|
|
@@ -6605,7 +6605,7 @@ function LegendLayerVariable({
|
|
|
6605
6605
|
}) {
|
|
6606
6606
|
var _a;
|
|
6607
6607
|
const intl = reactIntl.useIntl();
|
|
6608
|
-
const intlConfig =
|
|
6608
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6609
6609
|
const type = legend.type;
|
|
6610
6610
|
const TypeComponent = legendTypeMap[type] ?? customLegendTypes[type] ?? LegendUnknown;
|
|
6611
6611
|
const TypedComponent = TypeComponent;
|
|
@@ -6613,7 +6613,7 @@ function LegendLayerVariable({
|
|
|
6613
6613
|
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { component: "li", "data-testid": "legend-layer-variable", px: 2, children: [
|
|
6614
6614
|
legend.attr ? /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { pb: 1, children: [
|
|
6615
6615
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6616
|
-
|
|
6616
|
+
TablePaginationActions.Typography,
|
|
6617
6617
|
{
|
|
6618
6618
|
gutterBottom: true,
|
|
6619
6619
|
variant: "overlineDelicate",
|
|
@@ -6622,10 +6622,10 @@ function LegendLayerVariable({
|
|
|
6622
6622
|
children: intlConfig.formatMessage({ id: getLegendSubtitle(legend) })
|
|
6623
6623
|
}
|
|
6624
6624
|
),
|
|
6625
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6625
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", component: "p", children: legend.attr })
|
|
6626
6626
|
] }) : null,
|
|
6627
6627
|
legend.select ? /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { pb: 1, children: [
|
|
6628
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6628
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", weight: "medium", component: "p", children: legend.select.label }),
|
|
6629
6629
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6630
6630
|
material.Select,
|
|
6631
6631
|
{
|
|
@@ -6675,7 +6675,7 @@ function LegendLayer({
|
|
|
6675
6675
|
currentZoom = 0
|
|
6676
6676
|
}) {
|
|
6677
6677
|
const intl = reactIntl.useIntl();
|
|
6678
|
-
const intlConfig =
|
|
6678
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6679
6679
|
const menuAnchorRef = React.useRef(null);
|
|
6680
6680
|
const [opacityOpen, setOpacityOpen] = React.useState(false);
|
|
6681
6681
|
const id = layer.id;
|
|
@@ -6733,7 +6733,7 @@ function LegendLayer({
|
|
|
6733
6733
|
id: "c4r.widgets.legend.zoomLevelTooltip"
|
|
6734
6734
|
}),
|
|
6735
6735
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6736
|
-
|
|
6736
|
+
TablePaginationActions.Typography,
|
|
6737
6737
|
{
|
|
6738
6738
|
color: visible ? "textPrimary" : "textSecondary",
|
|
6739
6739
|
variant: "caption",
|
|
@@ -6802,7 +6802,7 @@ function LegendLayer({
|
|
|
6802
6802
|
}
|
|
6803
6803
|
),
|
|
6804
6804
|
helperText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6805
|
-
|
|
6805
|
+
TablePaginationActions.Typography,
|
|
6806
6806
|
{
|
|
6807
6807
|
variant: "caption",
|
|
6808
6808
|
color: "textSecondary",
|
|
@@ -6852,9 +6852,9 @@ function LegendWidgetUI({
|
|
|
6852
6852
|
sx
|
|
6853
6853
|
}) {
|
|
6854
6854
|
const intl = reactIntl.useIntl();
|
|
6855
|
-
const intlConfig =
|
|
6855
|
+
const intlConfig = TablePaginationActions.useImperativeIntl(intl);
|
|
6856
6856
|
const legendToggleHeader = /* @__PURE__ */ jsxRuntime.jsxs(LegendToggleHeader, { collapsed, children: [
|
|
6857
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6857
|
+
/* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "caption", flexGrow: 1, children: title }),
|
|
6858
6858
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6859
6859
|
material.Tooltip,
|
|
6860
6860
|
{
|
|
@@ -6922,7 +6922,7 @@ function AlertBody({
|
|
|
6922
6922
|
children
|
|
6923
6923
|
}) {
|
|
6924
6924
|
return children ? /* @__PURE__ */ jsxRuntime.jsx(material.Box, { mt: 0.5, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6925
|
-
|
|
6925
|
+
TablePaginationActions.Typography,
|
|
6926
6926
|
{
|
|
6927
6927
|
component: "div",
|
|
6928
6928
|
variant: "caption",
|
|
@@ -6939,7 +6939,7 @@ function NoDataAlert({
|
|
|
6939
6939
|
...otherProps
|
|
6940
6940
|
}) {
|
|
6941
6941
|
return severity ? /* @__PURE__ */ jsxRuntime.jsx(Alert.Alert, { title, severity, ...otherProps, children: /* @__PURE__ */ jsxRuntime.jsx(AlertBody, { children: body }) }) : /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { ...otherProps, children: [
|
|
6942
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6942
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(TablePaginationActions.Typography, { variant: "body2", children: title }),
|
|
6943
6943
|
/* @__PURE__ */ jsxRuntime.jsx(AlertBody, { color: "textSecondary", children: body })
|
|
6944
6944
|
] });
|
|
6945
6945
|
}
|