@carto/ps-react-ui 4.18.0 → 4.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/change-column-Fu1DCYQ3.js +1186 -0
- package/dist/{change-column-Bhcxmp-r.js.map → change-column-Fu1DCYQ3.js.map} +1 -1
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +1 -0
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +28 -2
- package/dist/types/widgets-v2/index.d.ts +1 -1
- package/dist/types/widgets-v2/spread/band.d.ts +37 -0
- package/dist/types/widgets-v2/spread/band.test.d.ts +1 -0
- package/dist/types/widgets-v2/spread/index.d.ts +1 -0
- package/dist/widgets-v2/actions.js +1 -1
- package/dist/widgets-v2/spread.js +24 -12
- package/dist/widgets-v2/spread.js.map +1 -1
- package/dist/widgets-v2.js +1 -1
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets-v2/actions/change-column/change-column.tsx +10 -1
- package/src/widgets-v2/actions/change-column/labels.ts +2 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +8 -1
- package/src/widgets-v2/actions/change-column/style.ts +28 -2
- package/src/widgets-v2/index.ts +6 -1
- package/src/widgets-v2/spread/band.test.ts +46 -0
- package/src/widgets-v2/spread/band.ts +47 -0
- package/src/widgets-v2/spread/index.ts +1 -0
- package/dist/change-column-Bhcxmp-r.js +0 -1148
|
@@ -11,23 +11,49 @@ export declare const styles: {
|
|
|
11
11
|
};
|
|
12
12
|
menuPaper: {
|
|
13
13
|
overflow: "hidden";
|
|
14
|
-
|
|
14
|
+
};
|
|
15
|
+
header: {
|
|
16
|
+
color: "text.secondary";
|
|
17
|
+
backgroundColor: "transparent";
|
|
18
|
+
typography: string;
|
|
19
|
+
px: number;
|
|
20
|
+
py: number;
|
|
15
21
|
};
|
|
16
22
|
item: {
|
|
23
|
+
position: "relative";
|
|
17
24
|
cursor: "grab";
|
|
25
|
+
px: number;
|
|
26
|
+
touchAction: "none";
|
|
27
|
+
'&:hover .change-column-drag-handle': {
|
|
28
|
+
opacity: number;
|
|
29
|
+
};
|
|
18
30
|
'&:focus-visible': {
|
|
19
31
|
outline: string;
|
|
20
32
|
outlineColor: "primary.main";
|
|
21
33
|
outlineOffset: number;
|
|
22
34
|
};
|
|
35
|
+
'&:focus-visible .change-column-drag-handle': {
|
|
36
|
+
opacity: number;
|
|
37
|
+
};
|
|
23
38
|
};
|
|
24
39
|
itemDragging: {
|
|
25
40
|
opacity: number;
|
|
26
41
|
cursor: "grabbing";
|
|
27
42
|
};
|
|
28
43
|
dragHandle: {
|
|
44
|
+
position: "absolute";
|
|
45
|
+
left: number;
|
|
46
|
+
top: string;
|
|
47
|
+
transform: "translateY(-50%)";
|
|
29
48
|
color: "text.secondary";
|
|
30
|
-
mr: number;
|
|
31
49
|
fontSize: number;
|
|
50
|
+
opacity: number;
|
|
51
|
+
transition: "opacity 0.1s";
|
|
52
|
+
'@media (hover: none)': {
|
|
53
|
+
opacity: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
dragHandleVisible: {
|
|
57
|
+
opacity: number;
|
|
32
58
|
};
|
|
33
59
|
};
|
|
@@ -102,7 +102,7 @@ export type { MarkdownUIProps, MarkdownWidgetData } from './markdown';
|
|
|
102
102
|
export type { PieDatum, PieWidgetData } from './pie';
|
|
103
103
|
export type { TimeseriesDatum, TimeseriesWidgetData } from './timeseries';
|
|
104
104
|
export type { ScatterplotDatum, ScatterplotWidgetData } from './scatterplot';
|
|
105
|
-
export type { SpreadUIProps, SpreadDataItem, SpreadWidgetData } from './spread';
|
|
105
|
+
export type { SpreadUIProps, SpreadDataItem, SpreadWidgetData, SpreadVariant, } from './spread';
|
|
106
106
|
export type { RangeProps, RangeUIProps, RangeDataItem, RangeWidgetData, RangeItemValue, } from './range';
|
|
107
107
|
export type { CategoryProps, CategoryUIProps, CategoryDataItem, CategoryWidgetData, CategoryKey, CategorySeriesConfig, CategoryLabels, } from './category';
|
|
108
108
|
export type { TableProps, TableUIProps, TableColumn, TableRow, TableWidgetData, TableWidgetState, TableSortDirection, TableSortState, } from './table';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a `spread` amount is applied to a centre value.
|
|
3
|
+
*
|
|
4
|
+
* - `percentage` — `spread` is a whole-number percentage of the centre
|
|
5
|
+
* value, so `5` means +/-5%.
|
|
6
|
+
* - `absolute` — `spread` is a raw offset in the value's own units.
|
|
7
|
+
*/
|
|
8
|
+
export type SpreadVariant = 'percentage' | 'absolute';
|
|
9
|
+
export interface GetSpreadBandOptions {
|
|
10
|
+
/** The centre value the band is drawn around. */
|
|
11
|
+
value: number;
|
|
12
|
+
/** Half-width of the band, read according to `variant`. */
|
|
13
|
+
spread: number;
|
|
14
|
+
/** Defaults to `percentage`. */
|
|
15
|
+
variant?: SpreadVariant;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Derives the `min` / `max` band around a centre value, for feeding a
|
|
19
|
+
* {@link SpreadDataItem} from a single aggregated number (a prediction, a
|
|
20
|
+
* target) plus a tolerance — rather than from a real column range.
|
|
21
|
+
*
|
|
22
|
+
* `spread` is read as a percentage by default, which is what a tolerance
|
|
23
|
+
* almost always is: an absolute offset is meaningless without knowing the
|
|
24
|
+
* value's magnitude, and gets visually lost on large values (+/-5 on a
|
|
25
|
+
* prediction of 204,113 renders as a range indistinguishable from a single
|
|
26
|
+
* number).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* getSpreadBand({ value: 1000, spread: 5 })
|
|
30
|
+
* // -> { min: 950, max: 1050 }
|
|
31
|
+
* getSpreadBand({ value: 1000, spread: 5, variant: 'absolute' })
|
|
32
|
+
* // -> { min: 995, max: 1005 }
|
|
33
|
+
*/
|
|
34
|
+
export declare function getSpreadBand({ value, spread, variant, }: GetSpreadBandOptions): {
|
|
35
|
+
min: number;
|
|
36
|
+
max: number;
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,4 +3,5 @@ export { SpreadUI, type SpreadUIProps } from './spread-ui';
|
|
|
3
3
|
export { Separator } from './separator';
|
|
4
4
|
export { SpreadSkeleton, type SpreadSkeletonProps } from './skeleton';
|
|
5
5
|
export { createSpreadDownloadConfig } from './download';
|
|
6
|
+
export { getSpreadBand, type SpreadVariant, type GetSpreadBandOptions } from './band';
|
|
6
7
|
export type { SpreadDataItem, SpreadWidgetData } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as L, C as o, D as e, a as A, b as E, c as r, d as t, e as S, f as _, g as T, h as l, i as D, j as d, F as n, L as c, R as O, S as g, k as B, l as C, m, n as F, Z as U, o as i, p as I, q as h, r as w, s as G, t as f, u as N, v as R } from "../change-column-
|
|
1
|
+
import { B as L, C as o, D as e, a as A, b as E, c as r, d as t, e as S, f as _, g as T, h as l, i as D, j as d, F as n, L as c, R as O, S as g, k as B, l as C, m, n as F, Z as U, o as i, p as I, q as h, r as w, s as G, t as f, u as N, v as R } from "../change-column-Fu1DCYQ3.js";
|
|
2
2
|
import { Z as u, a as x, c as M } from "../transforms-Cdx4fkU5.js";
|
|
3
3
|
import { d as b, a as p, t as v, b as H } from "../exports-Cx-f6m6U.js";
|
|
4
4
|
import { C as W, D as V, M as y, P as K, b as j } from "../png-item-9dNbB37T.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { S as P, a as _, b as $ } from "../spread-4MYPOntd.js";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
4
|
-
import { Box as
|
|
3
|
+
import { c as p } from "react/compiler-runtime";
|
|
4
|
+
import { Box as m, Skeleton as s } from "@mui/material";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@mui/icons-material";
|
|
7
7
|
import "../lasso-tool-YLFRgb-S.js";
|
|
8
8
|
import "../cjs-D4KH3azB.js";
|
|
9
9
|
import "@carto/ps-utils";
|
|
10
10
|
import "html2canvas";
|
|
11
|
-
import { b as
|
|
11
|
+
import { b as l } from "../png-item-9dNbB37T.js";
|
|
12
12
|
import { b as f } from "../csv-item-hH_Gt7ur.js";
|
|
13
13
|
const a = {
|
|
14
14
|
root: {
|
|
@@ -28,20 +28,20 @@ const a = {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
function D(t) {
|
|
31
|
-
const e =
|
|
31
|
+
const e = p(2), {
|
|
32
32
|
count: n
|
|
33
33
|
} = t, r = n === void 0 ? 1 : n;
|
|
34
34
|
let o;
|
|
35
|
-
return e[0] !== r ? (o = /* @__PURE__ */ i(
|
|
35
|
+
return e[0] !== r ? (o = /* @__PURE__ */ i(m, { sx: a.root, children: Array.from({
|
|
36
36
|
length: r
|
|
37
37
|
}).map(c) }), e[0] = r, e[1] = o) : o = e[1], o;
|
|
38
38
|
}
|
|
39
39
|
function c(t, e) {
|
|
40
|
-
return /* @__PURE__ */ i(
|
|
40
|
+
return /* @__PURE__ */ i(m, { sx: a.row, children: /* @__PURE__ */ i(s, { variant: "rectangular", sx: a.block }) }, `row-${e}`);
|
|
41
41
|
}
|
|
42
42
|
function I(t) {
|
|
43
43
|
const e = [];
|
|
44
|
-
return t.getCaptureEl && e.push(
|
|
44
|
+
return t.getCaptureEl && e.push(l({
|
|
45
45
|
filename: t.filename,
|
|
46
46
|
getCaptureEl: t.getCaptureEl,
|
|
47
47
|
pixelRatio: t.pngPixelRatio,
|
|
@@ -56,11 +56,23 @@ function I(t) {
|
|
|
56
56
|
}
|
|
57
57
|
})), e;
|
|
58
58
|
}
|
|
59
|
+
function B({
|
|
60
|
+
value: t,
|
|
61
|
+
spread: e,
|
|
62
|
+
variant: n = "percentage"
|
|
63
|
+
}) {
|
|
64
|
+
const r = n === "absolute" ? e : e / 100 * t, o = Math.abs(r);
|
|
65
|
+
return {
|
|
66
|
+
min: t - o,
|
|
67
|
+
max: t + o
|
|
68
|
+
};
|
|
69
|
+
}
|
|
59
70
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
P as Separator,
|
|
72
|
+
_ as Spread,
|
|
62
73
|
D as SpreadSkeleton,
|
|
63
|
-
|
|
64
|
-
I as createSpreadDownloadConfig
|
|
74
|
+
$ as SpreadUI,
|
|
75
|
+
I as createSpreadDownloadConfig,
|
|
76
|
+
B as getSpreadBand
|
|
65
77
|
};
|
|
66
78
|
//# sourceMappingURL=spread.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spread.js","sources":["../../src/widgets-v2/spread/skeleton.tsx","../../src/widgets-v2/spread/download.ts"],"sourcesContent":["import { Box, Skeleton } from '@mui/material'\nimport type { SxProps, Theme } from '@mui/material'\n\nconst styles = {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n py: 1,\n },\n row: {\n display: 'flex',\n alignItems: 'center',\n gap: 1.5,\n },\n block: { width: 200, height: 32 },\n} satisfies Record<string, SxProps<Theme>>\n\nexport interface SpreadSkeletonProps {\n count?: number\n}\n\n/**\n * Loading placeholder for the Spread widget. Renders `count` rows, each\n * sized for the `min — max` pair so the layout doesn't jump once data\n * resolves. Mirrors the row-per-item structure of {@link SpreadUI}.\n */\nexport function SpreadSkeleton({ count = 1 }: SpreadSkeletonProps) {\n return (\n <Box sx={styles.root}>\n {Array.from({ length: count }).map((_, i) => (\n <Box key={`row-${i}`} sx={styles.row}>\n <Skeleton variant='rectangular' sx={styles.block} />\n </Box>\n ))}\n </Box>\n )\n}\n","import {\n buildCsvDownloadItem,\n buildPngDownloadItem,\n type DownloadItem,\n} from '../actions/download'\nimport type { SpreadWidgetData } from './types'\n\n/**\n * Download menu items for the Spread widget. Always includes a CSV item\n * with `series, prefix, min, max, suffix, note` columns (one row per\n * entry). When `getCaptureEl` is supplied, prepends a PNG item that\n * rasterises the captured element via `html2canvas`.\n */\nexport function createSpreadDownloadConfig(args: {\n filename: string\n getData: () => SpreadWidgetData\n getCaptureEl?: () => HTMLElement | null\n pngPixelRatio?: number\n pngBackgroundColor?: string | null\n}): DownloadItem[] {\n const items: DownloadItem[] = []\n if (args.getCaptureEl) {\n items.push(\n buildPngDownloadItem({\n filename: args.filename,\n getCaptureEl: args.getCaptureEl,\n pixelRatio: args.pngPixelRatio,\n backgroundColor: args.pngBackgroundColor,\n }),\n )\n }\n items.push(\n buildCsvDownloadItem({\n filename: args.filename,\n getRows: () => {\n const data = args.getData()\n const rows: unknown[][] = [\n ['series', 'prefix', 'min', 'max', 'suffix', 'note'],\n ]\n for (const item of data) {\n rows.push([\n item.series?.name ?? '',\n item.prefix ?? '',\n item.min,\n item.max,\n item.suffix ?? '',\n item.note ?? '',\n ])\n }\n return rows\n },\n }),\n )\n return items\n}\n"],"names":["styles","root","display","flexDirection","gap","py","row","alignItems","block","width","height","SpreadSkeleton","t0","$","_c","count","t1","undefined","t2","Box","Array","from","length","map","_temp","_","i","jsx","Skeleton","createSpreadDownloadConfig","args","items","getCaptureEl","push","buildPngDownloadItem","filename","pixelRatio","pngPixelRatio","backgroundColor","pngBackgroundColor","buildCsvDownloadItem","getRows","data","getData","rows","item","series","name","prefix","min","max","suffix","note"],"mappings":";;;;;;;;;;;;AAGA,MAAMA,IAAS;AAAA,EACbC,MAAM;AAAA,IACJC,SAAS;AAAA,IACTC,eAAe;AAAA,IACfC,KAAK;AAAA,IACLC,IAAI;AAAA,EAAA;AAAA,EAENC,KAAK;AAAA,IACHJ,SAAS;AAAA,IACTK,YAAY;AAAA,IACZH,KAAK;AAAA,EAAA;AAAA,EAEPI,OAAO;AAAA,IAAEC,OAAO;AAAA,IAAKC,QAAQ;AAAA,EAAA;AAC/B;AAWO,SAAAC,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAwB;AAAA,IAAAC,OAAAC;AAAAA,EAAAA,IAAAJ,GAAEG,IAAAC,MAAAC,SAAA,IAAAD;AAAS,MAAAE;AAAA,SAAAL,SAAAE,KAEtCG,sBAACC,GAAA,EAAQ,IAAAnB,EAAMC,MACZmB,gBAAKC,KAAM;AAAA,IAAAC,QAAUP;AAAAA,EAAAA,CAAO,EAACQ,IAAKC,CAIlC,GACH,GAAMX,OAAAE,GAAAF,OAAAK,KAAAA,IAAAL,EAAA,CAAA,GANNK;AAMM;AARH,SAAAM,EAAAC,GAAAC,GAAA;AAAA,SAIC,gBAAAC,EAACR,GAAA,EAAyB,IAAAnB,EAAMM,KAC9B,UAAA,gBAAAqB,EAACC,GAAA,EAAiB,SAAA,eAAkB,IAAA5B,EAAMQ,MAAAA,CAAM,EAAA,GADxC,OAAOkB,CAAC,EAElB;AAAM;ACpBP,SAASG,EAA2BC,GAMxB;AACjB,QAAMC,IAAwB,CAAA;AAC9B,SAAID,EAAKE,gBACPD,EAAME,KACJC,EAAqB;AAAA,IACnBC,UAAUL,EAAKK;AAAAA,IACfH,cAAcF,EAAKE;AAAAA,IACnBI,YAAYN,EAAKO;AAAAA,IACjBC,iBAAiBR,EAAKS;AAAAA,EAAAA,CACvB,CACH,GAEFR,EAAME,KACJO,EAAqB;AAAA,IACnBL,UAAUL,EAAKK;AAAAA,IACfM,SAASA,MAAM;AACb,YAAMC,IAAOZ,EAAKa,QAAAA,GACZC,IAAoB,CACxB,CAAC,UAAU,UAAU,OAAO,OAAO,UAAU,MAAM,CAAC;AAEtD,iBAAWC,KAAQH;AACjBE,QAAAA,EAAKX,KAAK,CACRY,EAAKC,QAAQC,QAAQ,IACrBF,EAAKG,UAAU,IACfH,EAAKI,KACLJ,EAAKK,KACLL,EAAKM,UAAU,IACfN,EAAKO,QAAQ,EAAE,CAChB;AAEH,aAAOR;AAAAA,IACT;AAAA,EAAA,CACD,CACH,GACOb;AACT;"}
|
|
1
|
+
{"version":3,"file":"spread.js","sources":["../../src/widgets-v2/spread/skeleton.tsx","../../src/widgets-v2/spread/download.ts","../../src/widgets-v2/spread/band.ts"],"sourcesContent":["import { Box, Skeleton } from '@mui/material'\nimport type { SxProps, Theme } from '@mui/material'\n\nconst styles = {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n py: 1,\n },\n row: {\n display: 'flex',\n alignItems: 'center',\n gap: 1.5,\n },\n block: { width: 200, height: 32 },\n} satisfies Record<string, SxProps<Theme>>\n\nexport interface SpreadSkeletonProps {\n count?: number\n}\n\n/**\n * Loading placeholder for the Spread widget. Renders `count` rows, each\n * sized for the `min — max` pair so the layout doesn't jump once data\n * resolves. Mirrors the row-per-item structure of {@link SpreadUI}.\n */\nexport function SpreadSkeleton({ count = 1 }: SpreadSkeletonProps) {\n return (\n <Box sx={styles.root}>\n {Array.from({ length: count }).map((_, i) => (\n <Box key={`row-${i}`} sx={styles.row}>\n <Skeleton variant='rectangular' sx={styles.block} />\n </Box>\n ))}\n </Box>\n )\n}\n","import {\n buildCsvDownloadItem,\n buildPngDownloadItem,\n type DownloadItem,\n} from '../actions/download'\nimport type { SpreadWidgetData } from './types'\n\n/**\n * Download menu items for the Spread widget. Always includes a CSV item\n * with `series, prefix, min, max, suffix, note` columns (one row per\n * entry). When `getCaptureEl` is supplied, prepends a PNG item that\n * rasterises the captured element via `html2canvas`.\n */\nexport function createSpreadDownloadConfig(args: {\n filename: string\n getData: () => SpreadWidgetData\n getCaptureEl?: () => HTMLElement | null\n pngPixelRatio?: number\n pngBackgroundColor?: string | null\n}): DownloadItem[] {\n const items: DownloadItem[] = []\n if (args.getCaptureEl) {\n items.push(\n buildPngDownloadItem({\n filename: args.filename,\n getCaptureEl: args.getCaptureEl,\n pixelRatio: args.pngPixelRatio,\n backgroundColor: args.pngBackgroundColor,\n }),\n )\n }\n items.push(\n buildCsvDownloadItem({\n filename: args.filename,\n getRows: () => {\n const data = args.getData()\n const rows: unknown[][] = [\n ['series', 'prefix', 'min', 'max', 'suffix', 'note'],\n ]\n for (const item of data) {\n rows.push([\n item.series?.name ?? '',\n item.prefix ?? '',\n item.min,\n item.max,\n item.suffix ?? '',\n item.note ?? '',\n ])\n }\n return rows\n },\n }),\n )\n return items\n}\n","/**\n * How a `spread` amount is applied to a centre value.\n *\n * - `percentage` — `spread` is a whole-number percentage of the centre\n * value, so `5` means +/-5%.\n * - `absolute` — `spread` is a raw offset in the value's own units.\n */\nexport type SpreadVariant = 'percentage' | 'absolute'\n\nexport interface GetSpreadBandOptions {\n /** The centre value the band is drawn around. */\n value: number\n /** Half-width of the band, read according to `variant`. */\n spread: number\n /** Defaults to `percentage`. */\n variant?: SpreadVariant\n}\n\n/**\n * Derives the `min` / `max` band around a centre value, for feeding a\n * {@link SpreadDataItem} from a single aggregated number (a prediction, a\n * target) plus a tolerance — rather than from a real column range.\n *\n * `spread` is read as a percentage by default, which is what a tolerance\n * almost always is: an absolute offset is meaningless without knowing the\n * value's magnitude, and gets visually lost on large values (+/-5 on a\n * prediction of 204,113 renders as a range indistinguishable from a single\n * number).\n *\n * @example\n * getSpreadBand({ value: 1000, spread: 5 })\n * // -> { min: 950, max: 1050 }\n * getSpreadBand({ value: 1000, spread: 5, variant: 'absolute' })\n * // -> { min: 995, max: 1005 }\n */\nexport function getSpreadBand({\n value,\n spread,\n variant = 'percentage',\n}: GetSpreadBandOptions): { min: number; max: number } {\n const offset = variant === 'absolute' ? spread : (spread / 100) * value\n // Keep `min <= max`: a percentage of a negative centre value (or a negative\n // `spread`) yields a negative offset, which would invert the band.\n const width = Math.abs(offset)\n\n return { min: value - width, max: value + width }\n}\n"],"names":["styles","root","display","flexDirection","gap","py","row","alignItems","block","width","height","SpreadSkeleton","t0","$","_c","count","t1","undefined","t2","Box","Array","from","length","map","_temp","_","i","jsx","Skeleton","createSpreadDownloadConfig","args","items","getCaptureEl","push","buildPngDownloadItem","filename","pixelRatio","pngPixelRatio","backgroundColor","pngBackgroundColor","buildCsvDownloadItem","getRows","data","getData","rows","item","series","name","prefix","min","max","suffix","note","getSpreadBand","value","spread","variant","offset","Math","abs"],"mappings":";;;;;;;;;;;;AAGA,MAAMA,IAAS;AAAA,EACbC,MAAM;AAAA,IACJC,SAAS;AAAA,IACTC,eAAe;AAAA,IACfC,KAAK;AAAA,IACLC,IAAI;AAAA,EAAA;AAAA,EAENC,KAAK;AAAA,IACHJ,SAAS;AAAA,IACTK,YAAY;AAAA,IACZH,KAAK;AAAA,EAAA;AAAA,EAEPI,OAAO;AAAA,IAAEC,OAAO;AAAA,IAAKC,QAAQ;AAAA,EAAA;AAC/B;AAWO,SAAAC,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAwB;AAAA,IAAAC,OAAAC;AAAAA,EAAAA,IAAAJ,GAAEG,IAAAC,MAAAC,SAAA,IAAAD;AAAS,MAAAE;AAAA,SAAAL,SAAAE,KAEtCG,sBAACC,GAAA,EAAQ,IAAAnB,EAAMC,MACZmB,gBAAKC,KAAM;AAAA,IAAAC,QAAUP;AAAAA,EAAAA,CAAO,EAACQ,IAAKC,CAIlC,GACH,GAAMX,OAAAE,GAAAF,OAAAK,KAAAA,IAAAL,EAAA,CAAA,GANNK;AAMM;AARH,SAAAM,EAAAC,GAAAC,GAAA;AAAA,SAIC,gBAAAC,EAACR,GAAA,EAAyB,IAAAnB,EAAMM,KAC9B,UAAA,gBAAAqB,EAACC,GAAA,EAAiB,SAAA,eAAkB,IAAA5B,EAAMQ,MAAAA,CAAM,EAAA,GADxC,OAAOkB,CAAC,EAElB;AAAM;ACpBP,SAASG,EAA2BC,GAMxB;AACjB,QAAMC,IAAwB,CAAA;AAC9B,SAAID,EAAKE,gBACPD,EAAME,KACJC,EAAqB;AAAA,IACnBC,UAAUL,EAAKK;AAAAA,IACfH,cAAcF,EAAKE;AAAAA,IACnBI,YAAYN,EAAKO;AAAAA,IACjBC,iBAAiBR,EAAKS;AAAAA,EAAAA,CACvB,CACH,GAEFR,EAAME,KACJO,EAAqB;AAAA,IACnBL,UAAUL,EAAKK;AAAAA,IACfM,SAASA,MAAM;AACb,YAAMC,IAAOZ,EAAKa,QAAAA,GACZC,IAAoB,CACxB,CAAC,UAAU,UAAU,OAAO,OAAO,UAAU,MAAM,CAAC;AAEtD,iBAAWC,KAAQH;AACjBE,QAAAA,EAAKX,KAAK,CACRY,EAAKC,QAAQC,QAAQ,IACrBF,EAAKG,UAAU,IACfH,EAAKI,KACLJ,EAAKK,KACLL,EAAKM,UAAU,IACfN,EAAKO,QAAQ,EAAE,CAChB;AAEH,aAAOR;AAAAA,IACT;AAAA,EAAA,CACD,CACH,GACOb;AACT;ACnBO,SAASsB,EAAc;AAAA,EAC5BC,OAAAA;AAAAA,EACAC,QAAAA;AAAAA,EACAC,SAAAA,IAAU;AACU,GAAiC;AACrD,QAAMC,IAASD,MAAY,aAAaD,IAAUA,IAAS,MAAOD,GAG5D7C,IAAQiD,KAAKC,IAAIF,CAAM;AAE7B,SAAO;AAAA,IAAER,KAAKK,IAAQ7C;AAAAA,IAAOyC,KAAKI,IAAQ7C;AAAAA,EAAAA;AAC5C;"}
|
package/dist/widgets-v2.js
CHANGED
|
@@ -16,7 +16,7 @@ import "@carto/ps-utils";
|
|
|
16
16
|
import { o as Ze, a as Ke, E as Ye } from "./echart-B10dhEaM.js";
|
|
17
17
|
import { D as $n } from "./echart-B10dhEaM.js";
|
|
18
18
|
import { MarkdownContent as Je } from "./markdown-content-Dk2DSgbf.js";
|
|
19
|
-
import { C as Qe, L as et, F as tt, j as nt, R as ot, B as rt, Z as it, m as lt, n as st, l as at, k as ct } from "./change-column-
|
|
19
|
+
import { C as Qe, L as et, F as tt, j as nt, R as ot, B as rt, Z as it, m as lt, n as st, l as at, k as ct } from "./change-column-Fu1DCYQ3.js";
|
|
20
20
|
import "html2canvas";
|
|
21
21
|
import { a as dt, F as ft } from "./formula-DuC0NQLH.js";
|
|
22
22
|
import { a as pt, M as mt } from "./markdown-DdqANCiN.js";
|