@carto/ps-react-ui 4.6.3 → 4.7.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.
Files changed (38) hide show
  1. package/dist/{download-config-C3I0jWIL.js → download-config-DNLkypdN.js} +8 -7
  2. package/dist/{download-config-C3I0jWIL.js.map → download-config-DNLkypdN.js.map} +1 -1
  3. package/dist/shared-resize-observer-98b1SK1e.js +17 -0
  4. package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
  5. package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
  6. package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +15 -10
  7. package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
  8. package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
  9. package/dist/types/widgets/actions/brush-toggle/style.d.ts +8 -0
  10. package/dist/types/widgets/actions/brush-toggle/types.d.ts +35 -1
  11. package/dist/widgets/actions.js +985 -772
  12. package/dist/widgets/actions.js.map +1 -1
  13. package/dist/widgets/bar.js +1 -1
  14. package/dist/widgets/category.js +9 -8
  15. package/dist/widgets/category.js.map +1 -1
  16. package/dist/widgets/echart.js +79 -91
  17. package/dist/widgets/echart.js.map +1 -1
  18. package/dist/widgets/formula.js +43 -42
  19. package/dist/widgets/formula.js.map +1 -1
  20. package/dist/widgets/histogram.js +7 -6
  21. package/dist/widgets/histogram.js.map +1 -1
  22. package/dist/widgets/markdown.js +15 -14
  23. package/dist/widgets/markdown.js.map +1 -1
  24. package/dist/widgets/pie.js +1 -1
  25. package/dist/widgets/scatterplot.js +1 -1
  26. package/dist/widgets/spread.js +47 -46
  27. package/dist/widgets/spread.js.map +1 -1
  28. package/dist/widgets/table.js +17 -16
  29. package/dist/widgets/table.js.map +1 -1
  30. package/dist/widgets/timeseries.js +1 -1
  31. package/dist/widgets/utils.js +1 -1
  32. package/package.json +3 -1
  33. package/src/widgets/actions/brush-toggle/brush-overlay.tsx +386 -0
  34. package/src/widgets/actions/brush-toggle/brush-toggle.tsx +88 -152
  35. package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
  36. package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
  37. package/src/widgets/actions/brush-toggle/style.ts +32 -0
  38. package/src/widgets/actions/brush-toggle/types.ts +36 -1
@@ -1,4 +1,4 @@
1
- import { jsx as s, jsxs as M, Fragment as _ } from "react/jsx-runtime";
1
+ import { jsx as m, jsxs as M, Fragment as _ } from "react/jsx-runtime";
2
2
  import { c as g } from "react/compiler-runtime";
3
3
  import { I as w, S as k, P as C, a as R } from "../series-DLNHDWs0.js";
4
4
  import { u as T } from "../use-widget-selector-DFl2hW0R.js";
@@ -15,12 +15,13 @@ import "../cjs-D4KH3azB.js";
15
15
  import "@dnd-kit/core";
16
16
  import "@dnd-kit/sortable";
17
17
  import "@dnd-kit/utilities";
18
+ import "react-dom";
18
19
  import { u as j } from "../use-widget-ref-Ddr_SlJJ.js";
19
20
  import { d as y, a as P } from "../exports-Cr43OCul.js";
20
21
  function v(e) {
21
22
  const t = g(2);
22
23
  let i;
23
- return t[0] !== e ? (i = /* @__PURE__ */ s(w, { ...e, children: "-" }), t[0] = e, t[1] = i) : i = t[1], i;
24
+ return t[0] !== e ? (i = /* @__PURE__ */ m(w, { ...e, children: "-" }), t[0] = e, t[1] = i) : i = t[1], i;
24
25
  }
25
26
  function F(e) {
26
27
  const t = g(15);
@@ -31,29 +32,29 @@ function F(e) {
31
32
  ...r
32
33
  } = e, t[0] = e, t[1] = i, t[2] = r, t[3] = o) : (i = t[1], r = t[2], o = t[3]);
33
34
  const n = o === void 0 ? 0 : o;
34
- let d;
35
- t[4] !== n ? (d = (S) => {
36
- const p = S;
35
+ let s;
36
+ t[4] !== n ? (s = (S) => {
37
+ const x = S;
37
38
  return {
38
- min: p?.data[n]?.min,
39
- color: p?.data[n]?.color,
40
- formatter: p?.formatter
39
+ min: x?.data[n]?.min,
40
+ color: x?.data[n]?.color,
41
+ formatter: x?.formatter
41
42
  };
42
- }, t[4] = n, t[5] = d) : d = t[5];
43
+ }, t[4] = n, t[5] = s) : s = t[5];
43
44
  const {
44
- min: m,
45
+ min: d,
45
46
  color: c,
46
47
  formatter: h
47
- } = T(i, d), u = h ?? $;
48
+ } = T(i, s), u = h ?? $;
48
49
  let a;
49
50
  t[6] !== c ? (a = {
50
51
  color: c
51
52
  }, t[6] = c, t[7] = a) : a = t[7];
52
- const x = m ?? 0;
53
+ const p = d ?? 0;
53
54
  let l;
54
- t[8] !== u || t[9] !== x ? (l = u(x), t[8] = u, t[9] = x, t[10] = l) : l = t[10];
55
+ t[8] !== u || t[9] !== p ? (l = u(p), t[8] = u, t[9] = p, t[10] = l) : l = t[10];
55
56
  let f;
56
- return t[11] !== r || t[12] !== a || t[13] !== l ? (f = /* @__PURE__ */ s(w, { TypographyProps: a, ...r, children: l }), t[11] = r, t[12] = a, t[13] = l, t[14] = f) : f = t[14], f;
57
+ return t[11] !== r || t[12] !== a || t[13] !== l ? (f = /* @__PURE__ */ m(w, { TypographyProps: a, ...r, children: l }), t[11] = r, t[12] = a, t[13] = l, t[14] = f) : f = t[14], f;
57
58
  }
58
59
  function W(e) {
59
60
  const t = g(15);
@@ -64,52 +65,52 @@ function W(e) {
64
65
  ...r
65
66
  } = e, t[0] = e, t[1] = i, t[2] = r, t[3] = o) : (i = t[1], r = t[2], o = t[3]);
66
67
  const n = o === void 0 ? 0 : o;
67
- let d;
68
- t[4] !== n ? (d = (S) => {
69
- const p = S;
68
+ let s;
69
+ t[4] !== n ? (s = (S) => {
70
+ const x = S;
70
71
  return {
71
- max: p?.data[n]?.max,
72
- color: p?.data[n]?.color,
73
- formatter: p?.formatter
72
+ max: x?.data[n]?.max,
73
+ color: x?.data[n]?.color,
74
+ formatter: x?.formatter
74
75
  };
75
- }, t[4] = n, t[5] = d) : d = t[5];
76
+ }, t[4] = n, t[5] = s) : s = t[5];
76
77
  const {
77
- max: m,
78
+ max: d,
78
79
  color: c,
79
80
  formatter: h
80
- } = T(i, d), u = h ?? $;
81
+ } = T(i, s), u = h ?? $;
81
82
  let a;
82
83
  t[6] !== c ? (a = {
83
84
  color: c
84
85
  }, t[6] = c, t[7] = a) : a = t[7];
85
- const x = m ?? 0;
86
+ const p = d ?? 0;
86
87
  let l;
87
- t[8] !== u || t[9] !== x ? (l = u(x), t[8] = u, t[9] = x, t[10] = l) : l = t[10];
88
+ t[8] !== u || t[9] !== p ? (l = u(p), t[8] = u, t[9] = p, t[10] = l) : l = t[10];
88
89
  let f;
89
- return t[11] !== r || t[12] !== a || t[13] !== l ? (f = /* @__PURE__ */ s(w, { TypographyProps: a, ...r, children: l }), t[11] = r, t[12] = a, t[13] = l, t[14] = f) : f = t[14], f;
90
+ return t[11] !== r || t[12] !== a || t[13] !== l ? (f = /* @__PURE__ */ m(w, { TypographyProps: a, ...r, children: l }), t[11] = r, t[12] = a, t[13] = l, t[14] = f) : f = t[14], f;
90
91
  }
91
- function rt(e) {
92
+ function it(e) {
92
93
  const t = g(8), {
93
94
  ref: i
94
95
  } = j(e.id);
95
96
  let r;
96
- t[0] !== e.id ? (r = (d) => {
97
+ t[0] !== e.id ? (r = (s) => {
97
98
  const {
98
- index: m
99
- } = d;
99
+ index: d
100
+ } = s;
100
101
  return /* @__PURE__ */ M(_, { children: [
101
- /* @__PURE__ */ s(k, { id: e.id, index: m }),
102
- /* @__PURE__ */ s(C, { id: e.id, index: m }),
103
- /* @__PURE__ */ s(F, { id: e.id, index: m }),
104
- /* @__PURE__ */ s(v, {}),
105
- /* @__PURE__ */ s(W, { id: e.id, index: m }),
106
- /* @__PURE__ */ s(R, { id: e.id, index: m })
102
+ /* @__PURE__ */ m(k, { id: e.id, index: d }),
103
+ /* @__PURE__ */ m(C, { id: e.id, index: d }),
104
+ /* @__PURE__ */ m(F, { id: e.id, index: d }),
105
+ /* @__PURE__ */ m(v, {}),
106
+ /* @__PURE__ */ m(W, { id: e.id, index: d }),
107
+ /* @__PURE__ */ m(R, { id: e.id, index: d })
107
108
  ] });
108
109
  }, t[0] = e.id, t[1] = r) : r = t[1];
109
110
  let o;
110
- t[2] !== e.id || t[3] !== r ? (o = /* @__PURE__ */ s(b, { id: e.id, children: r }), t[2] = e.id, t[3] = r, t[4] = o) : o = t[4];
111
+ t[2] !== e.id || t[3] !== r ? (o = /* @__PURE__ */ m(b, { id: e.id, children: r }), t[2] = e.id, t[3] = r, t[4] = o) : o = t[4];
111
112
  let n;
112
- return t[5] !== i || t[6] !== o ? (n = /* @__PURE__ */ s(I, { ref: i, children: o }), t[5] = i, t[6] = o, t[7] = n) : n = t[7], n;
113
+ return t[5] !== i || t[6] !== o ? (n = /* @__PURE__ */ m(I, { ref: i, children: o }), t[5] = i, t[6] = o, t[7] = n) : n = t[7], n;
113
114
  }
114
115
  const B = {
115
116
  row: {
@@ -121,12 +122,12 @@ const B = {
121
122
  }
122
123
  }
123
124
  };
124
- function it() {
125
+ function ot() {
125
126
  const e = g(1);
126
127
  let t;
127
- return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(I, { sx: B.row, "aria-label": "Spread skeleton", children: /* @__PURE__ */ s(V, { width: 120, height: 32 }) }), e[0] = t) : t = e[0], t;
128
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ m(I, { sx: B.row, "aria-label": "Spread skeleton", children: /* @__PURE__ */ m(V, { width: 120, height: 32 }) }), e[0] = t) : t = e[0], t;
128
129
  }
129
- function ot({
130
+ function nt({
130
131
  refUI: e
131
132
  }) {
132
133
  return [{
@@ -140,7 +141,7 @@ function ot({
140
141
  }
141
142
  }];
142
143
  }
143
- function nt() {
144
+ function at() {
144
145
  return {
145
146
  series: []
146
147
  };
@@ -153,10 +154,10 @@ export {
153
154
  b as Row,
154
155
  v as Separator,
155
156
  k as Series,
156
- it as SpreadSkeleton,
157
- rt as SpreadUI,
157
+ ot as SpreadSkeleton,
158
+ it as SpreadUI,
158
159
  R as Suffix,
159
- nt as spreadConfig,
160
- ot as spreadDownloadConfig
160
+ at as spreadConfig,
161
+ nt as spreadDownloadConfig
161
162
  };
162
163
  //# sourceMappingURL=spread.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spread.js","sources":["../../src/widgets/spread/components/separator.tsx","../../src/widgets/spread/components/min-value.tsx","../../src/widgets/spread/components/max-value.tsx","../../src/widgets/spread/spread-ui.tsx","../../src/widgets/spread/style.ts","../../src/widgets/spread/skeleton.tsx","../../src/widgets/spread/config.ts"],"sourcesContent":["import { Item } from '../../formula/components/item'\nimport type { ItemProps } from '../../formula/types'\n\n/**\n * Renders a dash separator between the min and max values in a spread widget.\n */\nexport function Separator(props: Omit<ItemProps, 'children'>) {\n return <Item {...props}>-</Item>\n}\n","import { type SpreadWidgetState, type ValueProps } from '../types'\nimport { useWidgetSelector } from '../../stores/use-widget-selector'\nimport { Item } from '../../formula/components/item'\nimport { defaultFormatter } from '../../utils/formatter'\n\n/**\n * Displays the formatted minimum value for a spread widget data item.\n */\nexport function MinValue({ id, index = 0, ...props }: ValueProps) {\n const {\n min,\n color,\n formatter: _formatter,\n } = useWidgetSelector(id, (w) => {\n const sw = w as SpreadWidgetState | undefined\n return {\n min: sw?.data[index]?.min,\n color: sw?.data[index]?.color,\n formatter: sw?.formatter,\n }\n })\n const formatter = _formatter ?? defaultFormatter\n\n return (\n <Item TypographyProps={{ color }} {...props}>\n {formatter(min ?? 0)}\n </Item>\n )\n}\n","import { type SpreadWidgetState, type ValueProps } from '../types'\nimport { useWidgetSelector } from '../../stores/use-widget-selector'\nimport { Item } from '../../formula/components/item'\nimport { defaultFormatter } from '../../utils/formatter'\n\n/**\n * Displays the formatted maximum value for a spread widget data item.\n */\nexport function MaxValue({ id, index = 0, ...props }: ValueProps) {\n const {\n max,\n color,\n formatter: _formatter,\n } = useWidgetSelector(id, (w) => {\n const sw = w as SpreadWidgetState | undefined\n return {\n max: sw?.data[index]?.max,\n color: sw?.data[index]?.color,\n formatter: sw?.formatter,\n }\n })\n const formatter = _formatter ?? defaultFormatter\n\n return (\n <Item TypographyProps={{ color }} {...props}>\n {formatter(max ?? 0)}\n </Item>\n )\n}\n","import type { SpreadUIProps } from './types'\n\nimport { Separator } from './components/separator'\nimport { MinValue } from './components/min-value'\nimport { MaxValue } from './components/max-value'\nimport { Prefix, Row, Suffix, Series } from '../formula'\nimport { useWidgetRef } from '../../hooks'\nimport { Box } from '@mui/material'\n\n/**\n * Renders a spread widget displaying min-max value pairs with optional prefixes, suffixes, and series indicators.\n */\nexport function SpreadUI(props: SpreadUIProps) {\n const { ref } = useWidgetRef(props.id)\n\n return (\n <Box ref={ref}>\n <Row id={props.id}>\n {({ index }) => (\n <>\n <Series id={props.id} index={index} />\n <Prefix id={props.id} index={index} />\n <MinValue id={props.id} index={index} />\n <Separator />\n <MaxValue id={props.id} index={index} />\n <Suffix id={props.id} index={index} />\n </>\n )}\n </Row>\n </Box>\n )\n}\n","import type { SxProps, Theme } from '@mui/material'\n\nexport const styles = {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: (theme: Theme) => theme.spacing(2),\n },\n item: {\n '&[data-disabled=\"true\"]': {\n color: (theme: Theme) => theme.palette.text.disabled,\n },\n },\n row: {\n display: 'flex',\n alignItems: 'center',\n gap: (theme: Theme) => theme.spacing(0.25),\n '& + &': {\n marginTop: (theme: Theme) => theme.spacing(1),\n },\n },\n} satisfies Record<string, SxProps<Theme>>\n","import { Box, Skeleton } from '@mui/material'\nimport { styles } from './style'\n\nexport function SpreadSkeleton() {\n return (\n <Box sx={styles.row} aria-label='Spread skeleton'>\n <Skeleton width={120} height={32} />\n </Box>\n )\n}\n","import { downloadToCSV, downloadToPNG, type DownloadItem } from '../actions'\nimport type { ConfigProps } from '../loader/types'\nimport type { SpreadWidgetConfig, SpreadWidgetData } from './types'\n\n/**\n * Creates download configuration for spread widgets, supporting PNG (screenshot) and CSV (min/max data) exports.\n *\n * @param props - Configuration with `refUI` reference for PNG export.\n * @returns Array of download items for use with the Download action.\n */\nexport function spreadDownloadConfig({\n refUI,\n}: ConfigProps): DownloadItem<SpreadWidgetData>[] {\n return [\n {\n ...downloadToPNG,\n modifier: () => downloadToPNG.modifier(refUI),\n },\n {\n ...downloadToCSV,\n modifier: async (data) => {\n const rows = data.map((item) => [item.min, item.max])\n\n return downloadToCSV.modifier([['Min', 'Max'], ...rows])\n },\n },\n ]\n}\n\n/**\n * Returns the default configuration for spread (min/max value range) widgets.\n *\n * @returns Default spread widget config with empty series.\n */\nexport function spreadConfig(): SpreadWidgetConfig {\n return {\n series: [],\n }\n}\n"],"names":["Separator","props","$","_c","t0","jsx","Item","MinValue","id","t1","index","undefined","t2","w","sw","min","data","color","formatter","_formatter","useWidgetSelector","defaultFormatter","t3","t4","t5","t6","MaxValue","max","SpreadUI","ref","useWidgetRef","jsxs","Fragment","Series","Prefix","Suffix","Row","Box","styles","row","display","alignItems","gap","theme","spacing","marginTop","SpreadSkeleton","Symbol","for","Skeleton","spreadDownloadConfig","refUI","downloadToPNG","modifier","downloadToCSV","rows","map","item","spreadConfig","series"],"mappings":";;;;;;;;;;;;;;;;;;;AAMO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,SAAAD,KACEG,IAAA,gBAAAC,EAACC,GAAA,EAAI,GAAKL,GAAO,UAAA,KAAC,GAAOC,OAAAD,GAAAC,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAAzBE;AAAyB;ACC3B,SAAAG,EAAAH,GAAA;AAAA,QAAAF,IAAAC,EAAA,EAAA;AAAA,MAAAK,GAAAP,GAAAQ;AAAA,EAAAP,SAAAE,KAAkB;AAAA,IAAAI,IAAAA;AAAAA,IAAAE,OAAAD;AAAAA,IAAA,GAAAR;AAAAA,EAAAA,IAAAG,GAAuCF,OAAAE,GAAAF,OAAAM,GAAAN,OAAAD,GAAAC,OAAAO,MAAAD,IAAAN,EAAA,CAAA,GAAAD,IA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sx","../../src/widgets/spread/components/min-value.tsx","../../src/widgets/spread/components/max-value.tsx","../../src/widgets/spread/spread-ui.tsx","../../src/widgets/spread/style.ts","../../src/widgets/spread/skeleton.tsx","../../src/widgets/spread/config.ts"],"sourcesContent":["import { Item } from '../../formula/components/item'\nimport type { ItemProps } from '../../formula/types'\n\n/**\n * Renders a dash separator between the min and max values in a spread widget.\n */\nexport function Separator(props: Omit<ItemProps, 'children'>) {\n return <Item {...props}>-</Item>\n}\n","import { type SpreadWidgetState, type ValueProps } from '../types'\nimport { useWidgetSelector } from '../../stores/use-widget-selector'\nimport { Item } from '../../formula/components/item'\nimport { defaultFormatter } from '../../utils/formatter'\n\n/**\n * Displays the formatted minimum value for a spread widget data item.\n */\nexport function MinValue({ id, index = 0, ...props }: ValueProps) {\n const {\n min,\n color,\n formatter: _formatter,\n } = useWidgetSelector(id, (w) => {\n const sw = w as SpreadWidgetState | undefined\n return {\n min: sw?.data[index]?.min,\n color: sw?.data[index]?.color,\n formatter: sw?.formatter,\n }\n })\n const formatter = _formatter ?? defaultFormatter\n\n return (\n <Item TypographyProps={{ color }} {...props}>\n {formatter(min ?? 0)}\n </Item>\n )\n}\n","import { type SpreadWidgetState, type ValueProps } from '../types'\nimport { useWidgetSelector } from '../../stores/use-widget-selector'\nimport { Item } from '../../formula/components/item'\nimport { defaultFormatter } from '../../utils/formatter'\n\n/**\n * Displays the formatted maximum value for a spread widget data item.\n */\nexport function MaxValue({ id, index = 0, ...props }: ValueProps) {\n const {\n max,\n color,\n formatter: _formatter,\n } = useWidgetSelector(id, (w) => {\n const sw = w as SpreadWidgetState | undefined\n return {\n max: sw?.data[index]?.max,\n color: sw?.data[index]?.color,\n formatter: sw?.formatter,\n }\n })\n const formatter = _formatter ?? defaultFormatter\n\n return (\n <Item TypographyProps={{ color }} {...props}>\n {formatter(max ?? 0)}\n </Item>\n )\n}\n","import type { SpreadUIProps } from './types'\n\nimport { Separator } from './components/separator'\nimport { MinValue } from './components/min-value'\nimport { MaxValue } from './components/max-value'\nimport { Prefix, Row, Suffix, Series } from '../formula'\nimport { useWidgetRef } from '../../hooks'\nimport { Box } from '@mui/material'\n\n/**\n * Renders a spread widget displaying min-max value pairs with optional prefixes, suffixes, and series indicators.\n */\nexport function SpreadUI(props: SpreadUIProps) {\n const { ref } = useWidgetRef(props.id)\n\n return (\n <Box ref={ref}>\n <Row id={props.id}>\n {({ index }) => (\n <>\n <Series id={props.id} index={index} />\n <Prefix id={props.id} index={index} />\n <MinValue id={props.id} index={index} />\n <Separator />\n <MaxValue id={props.id} index={index} />\n <Suffix id={props.id} index={index} />\n </>\n )}\n </Row>\n </Box>\n )\n}\n","import type { SxProps, Theme } from '@mui/material'\n\nexport const styles = {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: (theme: Theme) => theme.spacing(2),\n },\n item: {\n '&[data-disabled=\"true\"]': {\n color: (theme: Theme) => theme.palette.text.disabled,\n },\n },\n row: {\n display: 'flex',\n alignItems: 'center',\n gap: (theme: Theme) => theme.spacing(0.25),\n '& + &': {\n marginTop: (theme: Theme) => theme.spacing(1),\n },\n },\n} satisfies Record<string, SxProps<Theme>>\n","import { Box, Skeleton } from '@mui/material'\nimport { styles } from './style'\n\nexport function SpreadSkeleton() {\n return (\n <Box sx={styles.row} aria-label='Spread skeleton'>\n <Skeleton width={120} height={32} />\n </Box>\n )\n}\n","import { downloadToCSV, downloadToPNG, type DownloadItem } from '../actions'\nimport type { ConfigProps } from '../loader/types'\nimport type { SpreadWidgetConfig, SpreadWidgetData } from './types'\n\n/**\n * Creates download configuration for spread widgets, supporting PNG (screenshot) and CSV (min/max data) exports.\n *\n * @param props - Configuration with `refUI` reference for PNG export.\n * @returns Array of download items for use with the Download action.\n */\nexport function spreadDownloadConfig({\n refUI,\n}: ConfigProps): DownloadItem<SpreadWidgetData>[] {\n return [\n {\n ...downloadToPNG,\n modifier: () => downloadToPNG.modifier(refUI),\n },\n {\n ...downloadToCSV,\n modifier: async (data) => {\n const rows = data.map((item) => [item.min, item.max])\n\n return downloadToCSV.modifier([['Min', 'Max'], ...rows])\n },\n },\n ]\n}\n\n/**\n * Returns the default configuration for spread (min/max value range) widgets.\n *\n * @returns Default spread widget config with empty series.\n */\nexport function spreadConfig(): SpreadWidgetConfig {\n return {\n series: [],\n }\n}\n"],"names":["Separator","props","$","_c","t0","jsx","Item","MinValue","id","t1","index","undefined","t2","w","sw","min","data","color","formatter","_formatter","useWidgetSelector","defaultFormatter","t3","t4","t5","t6","MaxValue","max","SpreadUI","ref","useWidgetRef","jsxs","Fragment","Series","Prefix","Suffix","Row","Box","styles","row","display","alignItems","gap","theme","spacing","marginTop","SpreadSkeleton","Symbol","for","Skeleton","spreadDownloadConfig","refUI","downloadToPNG","modifier","downloadToCSV","rows","map","item","spreadConfig","series"],"mappings":";;;;;;;;;;;;;;;;;;;;AAMO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,SAAAD,KACEG,IAAA,gBAAAC,EAACC,GAAA,EAAI,GAAKL,GAAO,UAAA,KAAC,GAAOC,OAAAD,GAAAC,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAAzBE;AAAyB;ACC3B,SAAAG,EAAAH,GAAA;AAAA,QAAAF,IAAAC,EAAA,EAAA;AAAA,MAAAK,GAAAP,GAAAQ;AAAA,EAAAP,SAAAE,KAAkB;AAAA,IAAAI,IAAAA;AAAAA,IAAAE,OAAAD;AAAAA,IAAA,GAAAR;AAAAA,EAAAA,IAAAG,GAAuCF,OAAAE,GAAAF,OAAAM,GAAAN,OAAAD,GAAAC,OAAAO,MAAAD,IAAAN,EAAA,CAAA,GAAAD,IAAAC,EAAA,CAAA,GAAAO,IAAAP,EAAA,CAAA;AAAjC,QAAAQ,IAAAD,MAAAE,SAAA,IAAAF;AAAS,MAAAG;AAAA,EAAAV,SAAAQ,KAKZE,IAAAC,CAAAA,MAAA;AACxB,UAAAC,IAAWD;AAAkC,WACtC;AAAA,MAA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A,IACTC,YAAY;AAAA,IACZC,KAAKA,CAACC,MAAiBA,EAAMC,QAAQ,IAAI;AAAA,IACzC,SAAS;AAAA,MACPC,WAAWA,CAACF,MAAiBA,EAAMC,QAAQ,CAAC;AAAA,IAAA;AAAA,EAC9C;AAEJ;AClBO,SAAAE,KAAA;AAAA,QAAA5C,IAAAC,EAAA,CAAA;AAAA,MAAAC;AAAA,SAAAF,EAAA,CAAA,MAAA6C,uBAAAC,IAAA,2BAAA,KAEH5C,IAAA,gBAAAC,EAACgC,GAAA,EAAQ,IAAAC,EAAMC,KAAiB,cAAA,mBAC9B,UAAA,gBAAAlC,EAAC4C,GAAA,EAAgB,OAAA,KAAa,QAAA,IAAE,GAClC,GAAM/C,OAAAE,KAAAA,IAAAF,EAAA,CAAA,GAFNE;AAEM;ACGH,SAAS8C,GAAqB;AAAA,EACnCC,OAAAA;AACW,GAAqC;AAChD,SAAO,CACL;AAAA,IACE,GAAGC;AAAAA,IACHC,UAAUA,MAAMD,EAAcC,SAASF,CAAK;AAAA,EAAA,GAE9C;AAAA,IACE,GAAGG;AAAAA,IACHD,UAAU,OAAOrC,MAAS;AACxB,YAAMuC,IAAOvC,EAAKwC,IAAKC,CAAAA,MAAS,CAACA,EAAK1C,KAAK0C,EAAK9B,GAAG,CAAC;AAEpD,aAAO2B,EAAcD,SAAS,CAAC,CAAC,OAAO,KAAK,GAAG,GAAGE,CAAI,CAAC;AAAA,IACzD;AAAA,EAAA,CACD;AAEL;AAOO,SAASG,KAAmC;AACjD,SAAO;AAAA,IACLC,QAAQ,CAAA;AAAA,EAAA;AAEZ;"}
@@ -18,6 +18,7 @@ import "../cjs-D4KH3azB.js";
18
18
  import "@dnd-kit/core";
19
19
  import "@dnd-kit/sortable";
20
20
  import "@dnd-kit/utilities";
21
+ import "react-dom";
21
22
  function ge(n) {
22
23
  const e = R(26), {
23
24
  column: t,
@@ -298,7 +299,7 @@ function _e(n) {
298
299
  return e[0] !== n.children || e[1] !== t ? (o = /* @__PURE__ */ P(ie, { ref: t, children: n.children }), e[0] = n.children, e[1] = t, e[2] = o) : o = e[2], o;
299
300
  }
300
301
  const Ce = "local", ve = 0, G = 10, we = [5, 10, 25, 50], V = null, I = "asc";
301
- function Ze({
302
+ function Ve({
302
303
  refUI: n
303
304
  }) {
304
305
  return [{
@@ -320,14 +321,14 @@ function Ze({
320
321
  }
321
322
  }];
322
323
  }
323
- function Ve(n = []) {
324
+ function Ie(n = []) {
324
325
  return {
325
326
  columns: n,
326
327
  selectable: !1,
327
328
  mode: Ce
328
329
  };
329
330
  }
330
- function Ie(n, e) {
331
+ function et(n, e) {
331
332
  const t = R(35);
332
333
  let o;
333
334
  t[0] !== e.length ? (o = (y) => {
@@ -410,7 +411,7 @@ function Ie(n, e) {
410
411
  goToPreviousPage: k
411
412
  }, t[22] = g, t[23] = C, t[24] = w, t[25] = k, t[26] = i, t[27] = v, t[28] = l, t[29] = s, t[30] = r, t[31] = f, t[32] = p, t[33] = c, t[34] = b) : b = t[34], b;
412
413
  }
413
- function et(n, e) {
414
+ function tt(n, e) {
414
415
  const t = R(18), {
415
416
  sortEnabled: o,
416
417
  columnId: l,
@@ -481,7 +482,7 @@ function Te(n) {
481
482
  mode: e?.mode
482
483
  };
483
484
  }
484
- function tt(n, e) {
485
+ function nt(n, e) {
485
486
  const t = R(35);
486
487
  let o;
487
488
  t[0] !== e ? (o = e ?? {}, t[0] = e, t[1] = o) : o = t[1];
@@ -564,7 +565,7 @@ function ke(n) {
564
565
  function Ae(n) {
565
566
  return n?.selected;
566
567
  }
567
- function nt(n) {
568
+ function ot(n) {
568
569
  const e = R(10), {
569
570
  columns: t,
570
571
  rows: o
@@ -611,10 +612,10 @@ function xe(n) {
611
612
  e[t] = void 0;
612
613
  return e;
613
614
  }
614
- function ot(n) {
615
+ function lt(n) {
615
616
  return n?.map(xe);
616
617
  }
617
- const lt = {
618
+ const it = {
618
619
  container: {
619
620
  width: "100%",
620
621
  overflow: "auto"
@@ -652,18 +653,18 @@ export {
652
653
  Z as PaginationActions,
653
654
  Se as Row,
654
655
  D as Table,
655
- nt as TableSkeleton,
656
+ ot as TableSkeleton,
656
657
  me as compareValues,
657
658
  ue as getCellValue,
658
659
  pe as paginateData,
659
- ot as sanitizeTableData,
660
+ lt as sanitizeTableData,
660
661
  xe as sanitizeTableRow,
661
662
  he as sortData,
662
- Ve as tableConfig,
663
- Ze as tableDownloadConfig,
664
- lt as tableStyles,
665
- Ie as usePagination,
666
- tt as useSelection,
667
- et as useSort
663
+ Ie as tableConfig,
664
+ Ve as tableDownloadConfig,
665
+ it as tableStyles,
666
+ et as usePagination,
667
+ nt as useSelection,
668
+ tt as useSort
668
669
  };
669
670
  //# sourceMappingURL=table.js.map