@quillsql/react 2.8.8 → 2.8.9

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 (114) hide show
  1. package/dist/AddToDashboardModal.js +146 -181
  2. package/dist/BarList.js +36 -44
  3. package/dist/Chart.d.ts +0 -5
  4. package/dist/Chart.d.ts.map +1 -1
  5. package/dist/Chart.js +94 -276
  6. package/dist/ChartBuilder.d.ts +1 -0
  7. package/dist/ChartBuilder.d.ts.map +1 -1
  8. package/dist/ChartBuilder.js +96 -93
  9. package/dist/ChartEditor.d.ts +2 -1
  10. package/dist/ChartEditor.d.ts.map +1 -1
  11. package/dist/ChartEditor.js +14 -21
  12. package/dist/Context.js +52 -57
  13. package/dist/Dashboard.d.ts.map +1 -1
  14. package/dist/Dashboard.js +181 -213
  15. package/dist/DateRangePicker/Calendar.js +41 -46
  16. package/dist/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  17. package/dist/DateRangePicker/DateRangePicker.js +33 -62
  18. package/dist/DateRangePicker/DateRangePickerButton.js +14 -17
  19. package/dist/DateRangePicker/dateRangePickerUtils.js +76 -90
  20. package/dist/DateRangePicker/index.js +1 -9
  21. package/dist/PieChart.js +35 -70
  22. package/dist/QuillProvider.js +4 -7
  23. package/dist/ReportBuilder.js +120 -129
  24. package/dist/SQLEditor.d.ts +5 -1
  25. package/dist/SQLEditor.d.ts.map +1 -1
  26. package/dist/SQLEditor.js +82 -89
  27. package/dist/Table.d.ts.map +1 -1
  28. package/dist/Table.js +64 -66
  29. package/dist/TableChart.js +17 -45
  30. package/dist/assets/ArrowDownHeadIcon.js +3 -6
  31. package/dist/assets/ArrowDownIcon.js +3 -6
  32. package/dist/assets/ArrowDownRightIcon.js +3 -6
  33. package/dist/assets/ArrowLeftHeadIcon.js +3 -6
  34. package/dist/assets/ArrowRightHeadIcon.js +3 -6
  35. package/dist/assets/ArrowRightIcon.js +3 -6
  36. package/dist/assets/ArrowUpHeadIcon.js +3 -6
  37. package/dist/assets/ArrowUpIcon.js +3 -6
  38. package/dist/assets/ArrowUpRightIcon.js +3 -6
  39. package/dist/assets/CalendarIcon.js +3 -6
  40. package/dist/assets/CalendarNormalIcon.js +3 -6
  41. package/dist/assets/DoubleArrowLeftHeadIcon.js +3 -6
  42. package/dist/assets/DoubleArrowRightHeadIcon.js +3 -6
  43. package/dist/assets/ExclamationFilledIcon.js +3 -6
  44. package/dist/assets/FilterIcon.js +3 -6
  45. package/dist/assets/LoadingSpinner.js +3 -6
  46. package/dist/assets/RefreshIcon.js +3 -6
  47. package/dist/assets/SearchIcon.js +3 -6
  48. package/dist/assets/UpLeftArrowsIcon.js +3 -6
  49. package/dist/assets/XCircleIcon.js +3 -6
  50. package/dist/assets/XIcon.js +3 -6
  51. package/dist/assets/index.js +21 -49
  52. package/dist/components/Banner/index.d.ts +3 -0
  53. package/dist/components/Banner/index.d.ts.map +1 -0
  54. package/dist/components/Banner/index.js +24 -0
  55. package/dist/components/BigModal/BigModal.js +13 -39
  56. package/dist/components/Dropdown/Dropdown.js +24 -53
  57. package/dist/components/Dropdown/DropdownItem.js +9 -35
  58. package/dist/components/Dropdown/index.js +2 -11
  59. package/dist/components/Modal/Modal.js +13 -39
  60. package/dist/components/Modal/index.js +1 -9
  61. package/dist/components/QuillCard.js +8 -13
  62. package/dist/components/ReportBuilder/ColumnSelector.d.ts +19 -0
  63. package/dist/components/ReportBuilder/ColumnSelector.d.ts.map +1 -0
  64. package/dist/components/ReportBuilder/ColumnSelector.js +87 -0
  65. package/dist/components/SqlTextEditor.d.ts.map +1 -1
  66. package/dist/components/SqlTextEditor.js +30 -13
  67. package/dist/components/UiComponents.d.ts.map +1 -1
  68. package/dist/components/UiComponents.js +40 -53
  69. package/dist/components/selectUtils.js +6 -17
  70. package/dist/contexts/BaseColorContext.js +3 -6
  71. package/dist/contexts/HoveredValueContext.js +3 -6
  72. package/dist/contexts/RootStylesContext.js +3 -6
  73. package/dist/contexts/SelectedValueContext.js +3 -6
  74. package/dist/contexts/index.js +4 -15
  75. package/dist/hooks/index.js +4 -15
  76. package/dist/hooks/useDashboard.js +10 -15
  77. package/dist/hooks/useInternalState.js +3 -6
  78. package/dist/hooks/useOnClickOutside.js +3 -6
  79. package/dist/hooks/useOnWindowResize.js +4 -7
  80. package/dist/hooks/useQuill.js +11 -16
  81. package/dist/hooks/useSelectOnKeyDown.js +4 -7
  82. package/dist/index.js +13 -33
  83. package/dist/internals/ReportBuilder/PivotList.js +14 -20
  84. package/dist/internals/ReportBuilder/PivotModal.d.ts +2 -2
  85. package/dist/internals/ReportBuilder/PivotModal.d.ts.map +1 -1
  86. package/dist/internals/ReportBuilder/PivotModal.js +116 -119
  87. package/dist/internals/ReportBuilder/PivotModal.spec.js +70 -73
  88. package/dist/lib/font.js +2 -6
  89. package/dist/lib/index.js +3 -20
  90. package/dist/lib/inputTypes.js +1 -3
  91. package/dist/lib/utils.js +8 -19
  92. package/dist/test-data/tables.d.ts +2 -0
  93. package/dist/test-data/tables.d.ts.map +1 -0
  94. package/dist/test-data/tables.js +621 -0
  95. package/dist/utils/aggregate.js +28 -35
  96. package/dist/utils/axisFormatter.d.ts +20 -0
  97. package/dist/utils/axisFormatter.d.ts.map +1 -0
  98. package/dist/utils/axisFormatter.js +185 -0
  99. package/dist/utils/colorToHex.js +1 -5
  100. package/dist/utils/dataFetcher.js +2 -8
  101. package/dist/utils/downloadCSV.js +1 -6
  102. package/dist/utils/schema.d.ts +22 -0
  103. package/dist/utils/schema.d.ts.map +1 -0
  104. package/dist/utils/schema.js +134 -0
  105. package/dist/utils/textFormatting.d.ts +4 -0
  106. package/dist/utils/textFormatting.d.ts.map +1 -0
  107. package/dist/utils/textFormatting.js +38 -0
  108. package/dist/utils/valueFormatter.d.ts +17 -0
  109. package/dist/utils/valueFormatter.d.ts.map +1 -0
  110. package/dist/utils/valueFormatter.js +166 -0
  111. package/dist/utils/valueFormatterCSV.d.ts +17 -0
  112. package/dist/utils/valueFormatterCSV.d.ts.map +1 -0
  113. package/dist/utils/valueFormatterCSV.js +90 -0
  114. package/package.json +1 -2
package/dist/Table.js CHANGED
@@ -1,18 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpecialTable = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
2
  /* eslint-disable @typescript-eslint/ban-ts-comment */
6
3
  // @ts-nocheck
7
- const react_1 = require("react");
8
- const Context_1 = require("./Context");
9
- const Chart_1 = require("./Chart");
10
- const dataFetcher_1 = require("./utils/dataFetcher");
4
+ import { useContext, useEffect, useState } from 'react';
5
+ import { ClientContext, DashboardContext, ThemeContext, DashboardFiltersContext, } from './Context';
6
+ import { getData } from './utils/dataFetcher';
7
+ import { valueFormatter } from './utils/valueFormatter';
8
+ import { valueFormatterCSV } from './utils/valueFormatterCSV';
11
9
  const Table = ({ chartId, columns, rows, containerStyle, csvFilename, showDownloadCsvButton, LoadingComponent, }) => {
12
- const { dispatch, dashboard } = (0, react_1.useContext)(Context_1.DashboardContext);
13
- const { dashboardFilters } = (0, react_1.useContext)(Context_1.DashboardFiltersContext);
14
- const [client, _] = (0, react_1.useContext)(Context_1.ClientContext);
15
- const [theme] = (0, react_1.useContext)(Context_1.ThemeContext);
10
+ const { dispatch, dashboard } = useContext(DashboardContext);
11
+ const { dashboardFilters } = useContext(DashboardFiltersContext);
12
+ const [client, _] = useContext(ClientContext);
13
+ const [theme] = useContext(ThemeContext);
16
14
  const downloadCSV = (rows, name) => {
17
15
  // report.rows
18
16
  if (!rows.length) {
@@ -41,9 +39,9 @@ const Table = ({ chartId, columns, rows, containerStyle, csvFilename, showDownlo
41
39
  document.body.removeChild(downloadLink);
42
40
  };
43
41
  if (!chartId && rows && columns) {
44
- return ((0, jsx_runtime_1.jsx)(SpecialTable, { showDownloadCsvButton: showDownloadCsvButton, csvFilename: csvFilename || 'table', columns: columns, rows: rows, height: containerStyle?.height || '100%', theme: theme, containerStyle: containerStyle, LoadingComponent: LoadingComponent }));
42
+ return (_jsx(SpecialTable, { showDownloadCsvButton: showDownloadCsvButton, csvFilename: csvFilename || 'table', columns: columns, rows: rows, height: containerStyle?.height || '100%', theme: theme, containerStyle: containerStyle, LoadingComponent: LoadingComponent }));
45
43
  }
46
- return ((0, jsx_runtime_1.jsx)(ChartUpdater, { showDownloadCsvButton: showDownloadCsvButton, dispatch: dispatch, dashboard: dashboard, chartId: chartId, containerStyle: containerStyle, dashboardFilters: dashboardFilters, client: client, theme: theme, downloadCSV: downloadCSV, csvFilename: csvFilename, LoadingComponent: LoadingComponent }));
44
+ return (_jsx(ChartUpdater, { showDownloadCsvButton: showDownloadCsvButton, dispatch: dispatch, dashboard: dashboard, chartId: chartId, containerStyle: containerStyle, dashboardFilters: dashboardFilters, client: client, theme: theme, downloadCSV: downloadCSV, csvFilename: csvFilename, LoadingComponent: LoadingComponent }));
47
45
  };
48
46
  const compareValues = (a, b, column) => {
49
47
  const valueA = a[column];
@@ -62,13 +60,13 @@ const compareValues = (a, b, column) => {
62
60
  // For strings
63
61
  return valueA.localeCompare(valueB);
64
62
  };
65
- function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingComponent, theme, showDownloadCsvButton = true, csvFilename, DownloadCSVButtonComponent, AddToDashboardButtonComponent, isTableChart = false, name, }) {
66
- const [activeRows, setActiveRows] = (0, react_1.useState)([]);
67
- const [page, setPage] = (0, react_1.useState)(1);
68
- const [maxPage, setMaxPage] = (0, react_1.useState)(1);
69
- const [sortColumn, setSortColumn] = (0, react_1.useState)(null);
70
- const [sortDirection, setSortDirection] = (0, react_1.useState)('desc');
71
- (0, react_1.useEffect)(() => {
63
+ export function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingComponent, theme, showDownloadCsvButton = true, csvFilename, DownloadCSVButtonComponent, AddToDashboardButtonComponent, isTableChart = false, name, }) {
64
+ const [activeRows, setActiveRows] = useState([]);
65
+ const [page, setPage] = useState(1);
66
+ const [maxPage, setMaxPage] = useState(1);
67
+ const [sortColumn, setSortColumn] = useState(null);
68
+ const [sortDirection, setSortDirection] = useState('desc');
69
+ useEffect(() => {
72
70
  const sortedRows = [...rows];
73
71
  if (sortColumn) {
74
72
  sortedRows.sort((a, b) => {
@@ -114,7 +112,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
114
112
  const newRows = [];
115
113
  for (let i = 0; i < rows.length; i++) {
116
114
  const newRow = {};
117
- Object.keys(rows[i]).forEach((field) => (newRow[field] = (0, Chart_1.valueFormatter)({
115
+ Object.keys(rows[i]).forEach((field) => (newRow[field] = valueFormatterCSV({
118
116
  value: rows[i][field],
119
117
  field: field,
120
118
  fields: columns,
@@ -128,7 +126,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
128
126
  // Data rows
129
127
  for (const row of newRows) {
130
128
  const values = fields.map((field) => {
131
- let value = JSON.stringify(row[field] || '');
129
+ let value = JSON.stringify(row[field] ?? '');
132
130
  if (value.includes('\\"')) {
133
131
  value = value.replaceAll('\\"', '""');
134
132
  }
@@ -172,7 +170,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
172
170
  document.body.removeChild(downloadLink);
173
171
  };
174
172
  if (loading) {
175
- return ((0, jsx_runtime_1.jsx)("div", { style: {
173
+ return (_jsx("div", { style: {
176
174
  ...containerStyle,
177
175
  // paddingLeft: 25,
178
176
  // paddingRight: 25,
@@ -181,12 +179,14 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
181
179
  // overflow: 'visible',
182
180
  width: '100%',
183
181
  height: height || '100%',
182
+ display: 'flex',
183
+ flexDirection: 'column',
184
184
  // overflow: 'hidden',
185
185
  // @ts-ignore
186
186
  // boxShadow: 'rgba(231, 231, 231, 0.5) 0px 1px 2px 0px',
187
- }, children: (0, jsx_runtime_1.jsxs)("div", { style: {
187
+ }, children: _jsxs("div", { style: {
188
188
  height: '100%',
189
- overflow: 'scroll',
189
+ overflow: 'auto',
190
190
  borderRadius: 6,
191
191
  border: '1px solid rgb(229, 231, 235)',
192
192
  padding: 0,
@@ -199,7 +199,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
199
199
  justifyContent: 'center',
200
200
  alignItems: 'center',
201
201
  // maxHeight: 600,
202
- }, children: [LoadingComponent && (0, jsx_runtime_1.jsx)(LoadingComponent, {}), !LoadingComponent && ((0, jsx_runtime_1.jsxs)("svg", { width: "24", height: "24", children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 6)", stroke: theme?.primaryTextColor || '#364153', fill: "none", transform: "rotate(-90 12 12)", children: (0, jsx_runtime_1.jsx)("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "-180 12 12", to: "180 12 12", dur: "0.8s", repeatCount: "indefinite" }) }), (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 1 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", stroke: '#ADB1B9', fill: "none", transform: "rotate(90 12 12)", children: (0, jsx_runtime_1.jsx)("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: "0.8s", repeatCount: "indefinite" }) })] }))] }) }));
202
+ }, children: [LoadingComponent && _jsx(LoadingComponent, {}), !LoadingComponent && (_jsxs("svg", { width: "24", height: "24", children: [_jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 6)", stroke: theme?.primaryTextColor || '#364153', fill: "none", transform: "rotate(-90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "-180 12 12", to: "180 12 12", dur: "0.8s", repeatCount: "indefinite" }) }), _jsx("circle", { cx: "12", cy: "12", r: "9.375", strokeWidth: "3.75", strokeDasharray: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 1 / 3)", strokeDashoffset: "calc(2 * 3.14 * 9.375 / 3) calc(2 * 3.14 * 9.375 * 2 / 3)", stroke: '#ADB1B9', fill: "none", transform: "rotate(90 12 12)", children: _jsx("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: "0.8s", repeatCount: "indefinite" }) })] }))] }) }));
203
203
  }
204
204
  if (!columns || !columns.length || !activeRows) {
205
205
  return null;
@@ -219,7 +219,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
219
219
  return null;
220
220
  }
221
221
  }
222
- return ((0, jsx_runtime_1.jsxs)("div", { style: {
222
+ return (_jsxs("div", { style: {
223
223
  ...containerStyle,
224
224
  // paddingLeft: 25,
225
225
  // paddingRight: 25,
@@ -232,7 +232,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
232
232
  // overflow: 'hidden',
233
233
  // @ts-ignore
234
234
  // boxShadow: 'rgba(231, 231, 231, 0.5) 0px 1px 2px 0px',
235
- }, children: [(0, jsx_runtime_1.jsx)("div", { style: {
235
+ }, children: [_jsx("div", { style: {
236
236
  height: '100%',
237
237
  overflow: 'auto',
238
238
  borderRadius: 6,
@@ -243,12 +243,12 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
243
243
  boxSizing: 'border-box',
244
244
  outline: 'none',
245
245
  // maxHeight: 600,
246
- }, children: (0, jsx_runtime_1.jsxs)("div", { role: "table", className: "table", style: { minWidth: '0px', width: '100%', height: '100%' }, children: [(0, jsx_runtime_1.jsx)("div", { className: "thead", children: (0, jsx_runtime_1.jsx)("div", { role: "row", className: "tr", style: {
246
+ }, children: _jsxs("div", { role: "table", className: "table", style: { minWidth: '0px', width: '100%', height: '100%' }, children: [_jsx("div", { className: "thead", children: _jsx("div", { role: "row", className: "tr", style: {
247
247
  display: 'flex',
248
248
  flex: '1 0 auto',
249
249
  minWidth: '100px',
250
250
  boxSizing: 'border-box',
251
- }, children: columns.map((column, index) => ((0, jsx_runtime_1.jsxs)("div", { onClick: () => toggleSort(column),
251
+ }, children: columns.map((column, index) => (_jsxs("div", { onClick: () => toggleSort(column),
252
252
  // @ts-ignore
253
253
  style: {
254
254
  boxSizing: 'border-box',
@@ -274,7 +274,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
274
274
  display: 'flex',
275
275
  flexDirection: 'row',
276
276
  justifyContent: 'space-between',
277
- }, children: [(0, jsx_runtime_1.jsx)("div", { "aria-haspopup": "dialog", "aria-expanded": "false", "aria-controls": "mantine-r6-dropdown",
277
+ }, children: [_jsx("div", { "aria-haspopup": "dialog", "aria-expanded": "false", "aria-controls": "mantine-r6-dropdown",
278
278
  // @ts-ignore
279
279
  style: {
280
280
  // fontFamily:
@@ -290,16 +290,16 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
290
290
  textOverflow: 'ellipsis',
291
291
  whiteSpace: 'nowrap',
292
292
  overflow: 'hidden',
293
- }, children: column.label || column.field }), column.field === sortColumn && ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: theme?.primaryTextColor, height: "14px", width: "14px", style: {
293
+ }, children: column.label || column.field }), column.field === sortColumn && (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: theme?.primaryTextColor, height: "14px", width: "14px", style: {
294
294
  transform: sortDirection === 'desc'
295
295
  ? 'rotate(180deg)'
296
296
  : undefined,
297
- }, children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M10 3a.75.75 0 01.75.75v10.638l3.96-4.158a.75.75 0 111.08 1.04l-5.25 5.5a.75.75 0 01-1.08 0l-5.25-5.5a.75.75 0 111.08-1.04l3.96 4.158V3.75A.75.75 0 0110 3z", clipRule: "evenodd" }) }))] }, 'sqlcol' + index))) }) }), (0, jsx_runtime_1.jsx)("div", { role: "rowgroup", className: "tbody", children: activeRows.map((row, rowIndex) => ((0, jsx_runtime_1.jsx)("div", { role: "row", className: "tr", style: {
297
+ }, children: _jsx("path", { fillRule: "evenodd", d: "M10 3a.75.75 0 01.75.75v10.638l3.96-4.158a.75.75 0 111.08 1.04l-5.25 5.5a.75.75 0 01-1.08 0l-5.25-5.5a.75.75 0 111.08-1.04l3.96 4.158V3.75A.75.75 0 0110 3z", clipRule: "evenodd" }) }))] }, 'sqlcol' + index))) }) }), _jsx("div", { role: "rowgroup", className: "tbody", children: activeRows.map((row, rowIndex) => (_jsx("div", { role: "row", className: "tr", style: {
298
298
  display: 'flex',
299
299
  flex: '1 0 auto',
300
300
  minWidth: '100px',
301
301
  boxSizing: 'border-box',
302
- }, children: columns.map((column, columnIndex) => ((0, jsx_runtime_1.jsx)("div", { role: "cell", style: {
302
+ }, children: columns.map((column, columnIndex) => (_jsx("div", { role: "cell", style: {
303
303
  boxSizing: 'border-box',
304
304
  flex: '150 0 auto',
305
305
  minWidth: '50px',
@@ -319,14 +319,14 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
319
319
  ? '1px solid rgb(229, 231, 235)'
320
320
  : undefined,
321
321
  userSelect: 'none',
322
- }, children: (0, jsx_runtime_1.jsx)("div", { style: {
322
+ }, children: _jsx("div", { style: {
323
323
  lineHeight: '24px',
324
324
  width: '100%',
325
325
  display: 'flex',
326
326
  cursor: 'default',
327
327
  position: 'relative',
328
328
  userSelect: 'none',
329
- }, "data-testid": "static-cell", children: (0, jsx_runtime_1.jsx)("div", { "aria-haspopup": "dialog", "aria-expanded": "false", style: {
329
+ }, "data-testid": "static-cell", children: _jsx("div", { "aria-haspopup": "dialog", "aria-expanded": "false", style: {
330
330
  fontFamily: theme?.fontFamily ||
331
331
  'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
332
332
  WebkitTapHighlightColor: 'transparent',
@@ -342,7 +342,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
342
342
  padding: '8px 16px',
343
343
  userSelect: 'none',
344
344
  }, children: column.format
345
- ? (0, Chart_1.valueFormatter)({
345
+ ? valueFormatter({
346
346
  value: row[column.field],
347
347
  field: column.field,
348
348
  fields: columns,
@@ -353,7 +353,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
353
353
  : JSON.stringify(row[column.field])
354
354
  : row[column.field].length > 55
355
355
  ? row[column.field].substring(0, 52) + '...'
356
- : row[column.field] }) }) }, 'sqlcell' + columnIndex))) }, 'sqlrow' + rowIndex))) }), activeRows.length === 0 && ((0, jsx_runtime_1.jsx)("div", { style: {
356
+ : row[column.field] }) }) }, 'sqlcell' + columnIndex))) }, 'sqlrow' + rowIndex))) }), activeRows.length === 0 && (_jsx("div", { style: {
357
357
  paddingTop: '60px',
358
358
  display: 'flex',
359
359
  flex: '1 0 auto',
@@ -362,7 +362,7 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
362
362
  alignItems: 'center',
363
363
  fontSize: 13,
364
364
  color: theme?.secondaryTextColor || 'rgb(55, 65, 81)',
365
- }, children: "No results found for specified time period." }))] }) }), (0, jsx_runtime_1.jsx)("div", { style: { position: 'relative' }, children: (0, jsx_runtime_1.jsx)("div", { style: {
365
+ }, children: "No results found for specified time period." }))] }) }), _jsx("div", { style: { position: 'relative' }, children: _jsx("div", { style: {
366
366
  display: 'flex',
367
367
  flex: '1 0 auto',
368
368
  minWidth: '100px',
@@ -380,13 +380,13 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
380
380
  borderBottomRightRadius: 6,
381
381
  borderBottomLeftRadius: 6,
382
382
  width: '100%',
383
- }, children: (0, jsx_runtime_1.jsxs)("div", { style: {
383
+ }, children: _jsxs("div", { style: {
384
384
  display: 'flex',
385
385
  flexDirection: 'row',
386
386
  alignItems: 'center',
387
387
  justifyContent: 'space-between',
388
388
  width: '100%',
389
- }, children: [(0, jsx_runtime_1.jsx)("button", { onClick: showDownloadCsvButton ? downloadCSV : undefined, style: {
389
+ }, children: [_jsx("button", { onClick: showDownloadCsvButton ? downloadCSV : undefined, style: {
390
390
  fontSize: 14,
391
391
  paddingLeft: 12,
392
392
  fontFamily: theme?.fontFamily,
@@ -395,29 +395,28 @@ function SpecialTable({ columns, rows, height, containerStyle, loading, LoadingC
395
395
  fontWeight: 500,
396
396
  cursor: 'pointer',
397
397
  border: 'none',
398
- }, children: showDownloadCsvButton ? 'Download CSV' : '' }), (0, jsx_runtime_1.jsxs)("div", { style: {
398
+ }, children: showDownloadCsvButton ? 'Download CSV' : '' }), _jsxs("div", { style: {
399
399
  display: 'flex',
400
400
  flexDirection: 'row',
401
401
  alignItems: 'center',
402
- }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
402
+ }, children: [_jsxs("div", { style: {
403
403
  fontSize: 12,
404
404
  fontFamily: theme?.fontFamily,
405
405
  color: theme?.primaryTextColor,
406
- }, children: [page, ' of ', maxPage] }), (0, jsx_runtime_1.jsx)("div", { style: { width: 8 } }), (0, jsx_runtime_1.jsx)("button", { onClick: decreasePage, style: {
406
+ }, children: [page, ' of ', maxPage] }), _jsx("div", { style: { width: 8 } }), _jsx("button", { onClick: decreasePage, style: {
407
407
  cursor: 'pointer',
408
408
  border: 'none',
409
409
  background: 'transparent',
410
- }, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: theme?.chartLabelFontFamily || theme?.fontFamily, height: "16px", width: "16px", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z", clipRule: "evenodd" }) }) }), (0, jsx_runtime_1.jsx)("button", { onClick: increasePage, style: {
410
+ }, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: theme?.chartLabelFontFamily || theme?.fontFamily, height: "16px", width: "16px", children: _jsx("path", { fillRule: "evenodd", d: "M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z", clipRule: "evenodd" }) }) }), _jsx("button", { onClick: increasePage, style: {
411
411
  cursor: 'pointer',
412
412
  border: 'none',
413
413
  background: 'transparent',
414
- }, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: theme?.chartLabelFontFamily || theme?.fontFamily, height: "16px", width: "16px", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z", clipRule: "evenodd" }) }) }), (0, jsx_runtime_1.jsx)("div", { style: { width: 12 } })] })] }) }) })] }));
414
+ }, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: theme?.chartLabelFontFamily || theme?.fontFamily, height: "16px", width: "16px", children: _jsx("path", { fillRule: "evenodd", d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z", clipRule: "evenodd" }) }) }), _jsx("div", { style: { width: 12 } })] })] }) }) })] }));
415
415
  }
416
- exports.SpecialTable = SpecialTable;
417
416
  const ChartUpdater = ({ chartId, containerStyle, dashboard, dispatch, client, dashboardFilters, theme, downloadCSV, csvFilename, showDownloadCsvButton = true, LoadingComponent, }) => {
418
- const [chartConfig, setChartConfig] = (0, react_1.useState)(null);
419
- const [loading, setLoading] = (0, react_1.useState)(true);
420
- (0, react_1.useEffect)(() => {
417
+ const [chartConfig, setChartConfig] = useState(null);
418
+ const [loading, setLoading] = useState(true);
419
+ useEffect(() => {
421
420
  let isSubscribed = true;
422
421
  async function getChartOptions() {
423
422
  if (isSubscribed) {
@@ -443,7 +442,7 @@ const ChartUpdater = ({ chartId, containerStyle, dashboard, dispatch, client, da
443
442
  id: chartId,
444
443
  filters: [...Object.values(dashboardFilters)],
445
444
  };
446
- const resp = await (0, dataFetcher_1.getData)(client, 'itempost', 'omit', hostedBody, cloudBody);
445
+ const resp = await getData(client, 'itempost', 'omit', hostedBody, cloudBody);
447
446
  if (resp) {
448
447
  setLoading(false);
449
448
  dispatch({
@@ -486,7 +485,7 @@ const ChartUpdater = ({ chartId, containerStyle, dashboard, dispatch, client, da
486
485
  // : null;
487
486
  // }, [dashboard, chartId, dateFilter]);
488
487
  if (!dashboard[chartId] || loading) {
489
- return ((0, jsx_runtime_1.jsx)("div", {
488
+ return (_jsx("div", {
490
489
  // className="flex flex-col flex-1 h-[100%]"
491
490
  style: {
492
491
  ...containerStyle,
@@ -497,36 +496,36 @@ const ChartUpdater = ({ chartId, containerStyle, dashboard, dispatch, client, da
497
496
  display: 'flex',
498
497
  flexDirection: 'column',
499
498
  flex: 1,
500
- }, children: (0, jsx_runtime_1.jsx)("div", { style: {
499
+ }, children: _jsx("div", { style: {
501
500
  height: containerStyle?.height || 300,
502
501
  width: '100%',
503
502
  boxSizing: 'content-box',
504
- }, children: (0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", children: [(0, jsx_runtime_1.jsx)("rect", { width: "100%", height: "100%", fill: "#F9F9FA" }), (0, jsx_runtime_1.jsx)("defs", { fill: "#F9F9FA", children: (0, jsx_runtime_1.jsxs)("linearGradient", { id: "skeletonGradient", x1: "0%", y1: "0%", x2: "10%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { offset: "0%", stopColor: "rgba(255,255,255,0)" }), (0, jsx_runtime_1.jsx)("stop", { offset: "50%", stopColor: "#FEFEFE" }), (0, jsx_runtime_1.jsx)("stop", { offset: "100%", stopColor: "rgba(255,255,255,0)" }), (0, jsx_runtime_1.jsx)("animate", { attributeName: "x1", from: "-100%", to: "100%", dur: "2s", repeatCount: "indefinite" }), (0, jsx_runtime_1.jsx)("animate", { attributeName: "x2", from: "-50%", to: "150%", dur: "2s", repeatCount: "indefinite" })] }) }), (0, jsx_runtime_1.jsx)("rect", { width: "50%", height: "100%", fill: "url(#skeletonGradient)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "x", from: "-100%", to: "100%", dur: "2s", repeatCount: "indefinite" }) })] }) }) }));
503
+ }, children: _jsxs("svg", { width: "100%", height: "100%", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", children: [_jsx("rect", { width: "100%", height: "100%", fill: "#F9F9FA" }), _jsx("defs", { fill: "#F9F9FA", children: _jsxs("linearGradient", { id: "skeletonGradient", x1: "0%", y1: "0%", x2: "10%", y2: "0%", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0%", stopColor: "rgba(255,255,255,0)" }), _jsx("stop", { offset: "50%", stopColor: "#FEFEFE" }), _jsx("stop", { offset: "100%", stopColor: "rgba(255,255,255,0)" }), _jsx("animate", { attributeName: "x1", from: "-100%", to: "100%", dur: "2s", repeatCount: "indefinite" }), _jsx("animate", { attributeName: "x2", from: "-50%", to: "150%", dur: "2s", repeatCount: "indefinite" })] }) }), _jsx("rect", { width: "50%", height: "100%", fill: "url(#skeletonGradient)", children: _jsx("animate", { attributeName: "x", from: "-100%", to: "100%", dur: "2s", repeatCount: "indefinite" }) })] }) }) }));
505
504
  }
506
- return ((0, jsx_runtime_1.jsx)(SpecialTable, { showDownloadCsvButton: showDownloadCsvButton, csvFilename: csvFilename || dashboard[chartId].name, columns: dashboard[chartId].columns, rows: dashboard[chartId].rows, height: containerStyle?.height || '100%', theme: theme, containerStyle: containerStyle, LoadingComponent: LoadingComponent }));
505
+ return (_jsx(SpecialTable, { showDownloadCsvButton: showDownloadCsvButton, csvFilename: csvFilename || dashboard[chartId].name, columns: dashboard[chartId].columns, rows: dashboard[chartId].rows, height: containerStyle?.height || '100%', theme: theme, containerStyle: containerStyle, LoadingComponent: LoadingComponent }));
507
506
  };
508
507
  function Columns({ columns, data, theme, handleDownloadCSV, numToShow }) {
509
- return ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', flexDirection: 'column', height: '100%' }, children: [(0, jsx_runtime_1.jsx)("div", { style: {
508
+ return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', height: '100%' }, children: [_jsx("div", { style: {
510
509
  display: 'flex',
511
510
  flexDirection: 'row',
512
511
  // overflowX: 'scroll',
513
512
  // overflowY: 'hidden',
514
513
  overflow: 'scroll',
515
514
  height: '100%',
516
- }, children: columns.map((elem) => ((0, jsx_runtime_1.jsx)(Column, { column: elem, data: data, theme: theme }, elem.field))) }), (0, jsx_runtime_1.jsxs)("div", { style: {
515
+ }, children: columns.map((elem) => (_jsx(Column, { column: elem, data: data, theme: theme }, elem.field))) }), _jsxs("div", { style: {
517
516
  display: 'flex',
518
517
  flexDirection: 'row',
519
518
  alignItems: 'center',
520
519
  justifyContent: 'space-between',
521
520
  // background: 'black',
522
- }, children: [data.length > numToShow && ((0, jsx_runtime_1.jsxs)("div", { style: {
521
+ }, children: [data.length > numToShow && (_jsxs("div", { style: {
523
522
  color: theme?.chartLabelColor,
524
523
  boxSizing: 'content-box',
525
524
  fontFamily: theme?.chartLabelFontFamily || theme?.fontFamily,
526
525
  fontSize: theme?.fontSizeSmall || '0.875rem',
527
526
  marginLeft: 12,
528
527
  marginTop: 8,
529
- }, children: ["...", data.length - numToShow, " more"] })), (0, jsx_runtime_1.jsx)("div", { onClick: handleDownloadCSV, style: {
528
+ }, children: ["...", data.length - numToShow, " more"] })), _jsx("div", { onClick: handleDownloadCSV, style: {
530
529
  height: 40,
531
530
  minHeight: 40,
532
531
  color: theme?.primaryTextColor,
@@ -540,14 +539,14 @@ function Columns({ columns, data, theme, handleDownloadCSV, numToShow }) {
540
539
  }, children: "Download CSV" })] })] }));
541
540
  }
542
541
  function Column({ column, data, theme }) {
543
- return ((0, jsx_runtime_1.jsxs)("div", { style: {
542
+ return (_jsxs("div", { style: {
544
543
  paddingLeft: 20,
545
544
  paddingRight: 20,
546
545
  // width: 'max-content',
547
546
  display: 'inline-flex',
548
547
  flexDirection: 'column',
549
548
  whiteSpace: 'nowrap',
550
- }, children: [(0, jsx_runtime_1.jsx)("div", { style: {
549
+ }, children: [_jsx("div", { style: {
551
550
  height: 40,
552
551
  minHeight: 40,
553
552
  color: theme?.primaryTextColor,
@@ -555,10 +554,10 @@ function Column({ column, data, theme }) {
555
554
  fontFamily: theme?.chartLabelFontFamily || theme?.fontFamily,
556
555
  fontSize: theme?.fontSizeSmall || '0.875rem',
557
556
  fontWeight: theme?.fontWeightMedium || '500',
558
- }, children: column.label || column.field }), data.map((elem) => ((0, jsx_runtime_1.jsx)(Cell, { item: elem[column.field], theme: theme })))] }));
557
+ }, children: column.label || column.field }), data.map((elem) => (_jsx(Cell, { item: elem[column.field], theme: theme })))] }));
559
558
  }
560
559
  function Cell({ item, theme }) {
561
- return ((0, jsx_runtime_1.jsx)("div", { style: {
560
+ return (_jsx("div", { style: {
562
561
  height: 40,
563
562
  minHeight: 40,
564
563
  whiteSpace: 'nowrap',
@@ -568,5 +567,4 @@ function Cell({ item, theme }) {
568
567
  color: theme?.chartLabelColor,
569
568
  }, children: item }));
570
569
  }
571
- exports.default = Table;
572
- //# sourceMappingURL=Table.js.map
570
+ export default Table;
@@ -1,34 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.hexToRgbaWith10PercentAlpha = void 0;
27
- const jsx_runtime_1 = require("react/jsx-runtime");
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
2
  /* eslint-disable react/display-name */
29
3
  // @ts-nocheck
30
- const react_1 = __importStar(require("react"));
31
- const Chart_1 = require("./Chart");
4
+ import React, { useMemo } from 'react';
5
+ import { valueFormatter } from './utils/valueFormatter';
32
6
  const getWidthsFromValues = (dataValues) => {
33
7
  let maxValue = -Infinity;
34
8
  dataValues.forEach((value) => {
@@ -40,7 +14,7 @@ const getWidthsFromValues = (dataValues) => {
40
14
  return Math.max((value / maxValue) * 100, 1);
41
15
  });
42
16
  };
43
- function hexToRgbaWith10PercentAlpha(hex) {
17
+ export function hexToRgbaWith10PercentAlpha(hex) {
44
18
  // Convert the hex color to RGB
45
19
  const r = parseInt(hex.slice(1, 3), 16);
46
20
  const g = parseInt(hex.slice(3, 5), 16);
@@ -50,26 +24,25 @@ function hexToRgbaWith10PercentAlpha(hex) {
50
24
  // Return the color as an rgba string
51
25
  return `rgba(${r}, ${g}, ${b}, ${alpha})`;
52
26
  }
53
- exports.hexToRgbaWith10PercentAlpha = hexToRgbaWith10PercentAlpha;
54
27
  function Columns({ columns, data, theme }) {
55
- return ((0, jsx_runtime_1.jsx)("div", { style: {
28
+ return (_jsx("div", { style: {
56
29
  display: 'flex',
57
30
  flexDirection: 'row',
58
31
  // overflowX: 'scroll',
59
32
  // overflowY: 'hidden',
60
33
  overflow: 'scroll',
61
34
  height: '100%',
62
- }, children: columns.map((elem) => ((0, jsx_runtime_1.jsx)(Column, { column: elem, data: data, theme: theme }, elem.field))) }));
35
+ }, children: columns.map((elem) => (_jsx(Column, { column: elem, data: data, theme: theme }, elem.field))) }));
63
36
  }
64
37
  function Column({ column, data, theme }) {
65
- return ((0, jsx_runtime_1.jsxs)("div", { style: {
38
+ return (_jsxs("div", { style: {
66
39
  paddingLeft: 20,
67
40
  paddingRight: 20,
68
41
  // width: 'max-content',
69
42
  display: 'inline-flex',
70
43
  flexDirection: 'column',
71
44
  whiteSpace: 'nowrap',
72
- }, children: [(0, jsx_runtime_1.jsx)("div", { style: {
45
+ }, children: [_jsx("div", { style: {
73
46
  height: 40,
74
47
  minHeight: 40,
75
48
  color: theme?.primaryTextColor,
@@ -77,10 +50,10 @@ function Column({ column, data, theme }) {
77
50
  fontFamily: theme?.chartLabelFontFamily || theme?.fontFamily,
78
51
  fontSize: theme?.fontSizeSmall || '0.875rem',
79
52
  fontWeight: theme?.fontWeightMedium || '500',
80
- }, children: column.label }), data.map((elem) => ((0, jsx_runtime_1.jsx)(Cell, { item: elem[column.field], theme: theme })))] }));
53
+ }, children: column.label }), data.map((elem) => (_jsx(Cell, { item: elem[column.field], theme: theme })))] }));
81
54
  }
82
55
  function Cell({ item, theme }) {
83
- return ((0, jsx_runtime_1.jsx)("div", { style: {
56
+ return (_jsx("div", { style: {
84
57
  height: 40,
85
58
  minHeight: 40,
86
59
  whiteSpace: 'nowrap',
@@ -90,18 +63,18 @@ function Cell({ item, theme }) {
90
63
  color: theme?.chartLabelColor,
91
64
  }, children: item }));
92
65
  }
93
- const TableChart = react_1.default.forwardRef((props, ref) => {
66
+ const TableChart = React.forwardRef((props, ref) => {
94
67
  const { data = [], yAxisFields, containerStyle, theme, ...other } = props;
95
68
  // const widths = getWidthsFromValues(
96
69
  // data.map(item => item[yAxisFields[0].field])
97
70
  // );
98
71
  const NUM_TO_SHOW = Math.floor(containerStyle?.height / 40) - 1 || 6;
99
- const memoizedData = (0, react_1.useMemo)(() => {
72
+ const memoizedData = useMemo(() => {
100
73
  return data.slice(0, NUM_TO_SHOW).map((item) => {
101
74
  const fieldsWithFormattedValues = {};
102
75
  for (const field of yAxisFields) {
103
76
  const value = item[field.field];
104
- fieldsWithFormattedValues[field.field] = (0, Chart_1.valueFormatter)({
77
+ fieldsWithFormattedValues[field.field] = valueFormatter({
105
78
  value,
106
79
  field: field.field,
107
80
  fields: yAxisFields,
@@ -111,7 +84,7 @@ const TableChart = react_1.default.forwardRef((props, ref) => {
111
84
  });
112
85
  }, [data, NUM_TO_SHOW]);
113
86
  if (!memoizedData.length) {
114
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, style: {
87
+ return (_jsx("div", { ref: ref, style: {
115
88
  // width: '100%',
116
89
  boxSizing: 'content-box',
117
90
  height: '100%',
@@ -126,7 +99,7 @@ const TableChart = react_1.default.forwardRef((props, ref) => {
126
99
  justifyContent: 'space-between',
127
100
  }, ...other }));
128
101
  }
129
- return ((0, jsx_runtime_1.jsxs)("div", { style: {
102
+ return (_jsxs("div", { style: {
130
103
  boxSizing: 'content-box',
131
104
  height: containerStyle?.height || '100%',
132
105
  marginTop: 20,
@@ -135,7 +108,7 @@ const TableChart = react_1.default.forwardRef((props, ref) => {
135
108
  marginLeft: '1rem',
136
109
  flexDirection: 'column',
137
110
  // justifyContent: 'space-between',
138
- }, children: [(0, jsx_runtime_1.jsx)(Columns, { columns: yAxisFields, data: memoizedData, theme: theme }), data.length > NUM_TO_SHOW && ((0, jsx_runtime_1.jsxs)("div", { style: {
111
+ }, children: [_jsx(Columns, { columns: yAxisFields, data: memoizedData, theme: theme }), data.length > NUM_TO_SHOW && (_jsxs("div", { style: {
139
112
  color: theme?.chartLabelColor,
140
113
  boxSizing: 'content-box',
141
114
  fontFamily: theme?.chartLabelFontFamily || theme?.fontFamily,
@@ -314,5 +287,4 @@ const TableChart = react_1.default.forwardRef((props, ref) => {
314
287
  // </div>
315
288
  // );
316
289
  });
317
- exports.default = TableChart;
318
- //# sourceMappingURL=TableChart.js.map
290
+ export default TableChart;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const ArrowDownHeadIcon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [(0, jsx_runtime_1.jsx)("path", { fill: "none", d: "M0 0h24v24H0z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z" })] }));
5
- exports.default = ArrowDownHeadIcon;
6
- //# sourceMappingURL=ArrowDownHeadIcon.js.map
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const ArrowDownHeadIcon = ({ ...props }) => (_jsx("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: _jsx("path", { fill: "currentColor", d: "M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z" }) }));
3
+ export default ArrowDownHeadIcon;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const ArrowDownIcon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [(0, jsx_runtime_1.jsx)("path", { fill: "none", d: "M0 0h24v24H0z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M13 16.172l5.364-5.364 1.414 1.414L12 20l-7.778-7.778 1.414-1.414L11 16.172V4h2v12.172z" })] }));
5
- exports.default = ArrowDownIcon;
6
- //# sourceMappingURL=ArrowDownIcon.js.map
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const ArrowDownIcon = ({ ...props }) => (_jsxs("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [_jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), _jsx("path", { fill: "currentColor", d: "M13 16.172l5.364-5.364 1.414 1.414L12 20l-7.778-7.778 1.414-1.414L11 16.172V4h2v12.172z" })] }));
3
+ export default ArrowDownIcon;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const ArrowDownRightIcon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [(0, jsx_runtime_1.jsx)("path", { fill: "none", d: "M0 0h24v24H0z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M14.59 16.004L5.982 7.397l1.414-1.414 8.607 8.606V7.004h2v11h-11v-2z" })] }));
5
- exports.default = ArrowDownRightIcon;
6
- //# sourceMappingURL=ArrowDownRightIcon.js.map
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const ArrowDownRightIcon = ({ ...props }) => (_jsxs("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [_jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), _jsx("path", { fill: "currentColor", d: "M14.59 16.004L5.982 7.397l1.414-1.414 8.607 8.606V7.004h2v11h-11v-2z" })] }));
3
+ export default ArrowDownRightIcon;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const ArrowLeftHeadIcon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [(0, jsx_runtime_1.jsx)("path", { fill: "none", d: "M0 0h24v24H0z" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z" })] }));
5
- exports.default = ArrowLeftHeadIcon;
6
- //# sourceMappingURL=ArrowLeftHeadIcon.js.map
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const ArrowLeftHeadIcon = ({ ...props }) => (_jsxs("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [_jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), _jsx("path", { d: "M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z" })] }));
3
+ export default ArrowLeftHeadIcon;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const ArrowRightHeadIcon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [(0, jsx_runtime_1.jsx)("path", { fill: "none", d: "M0 0h24v24H0z" }), (0, jsx_runtime_1.jsx)("path", { d: "M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z" })] }));
5
- exports.default = ArrowRightHeadIcon;
6
- //# sourceMappingURL=ArrowRightHeadIcon.js.map
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const ArrowRightHeadIcon = ({ ...props }) => (_jsxs("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [_jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), _jsx("path", { d: "M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z" })] }));
3
+ export default ArrowRightHeadIcon;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const ArrowRightIcon = ({ ...props }) => ((0, jsx_runtime_1.jsxs)("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [(0, jsx_runtime_1.jsx)("path", { fill: "none", d: "M0 0h24v24H0z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z" })] }));
5
- exports.default = ArrowRightIcon;
6
- //# sourceMappingURL=ArrowRightIcon.js.map
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const ArrowRightIcon = ({ ...props }) => (_jsxs("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", children: [_jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), _jsx("path", { fill: "currentColor", d: "M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z" })] }));
3
+ export default ArrowRightIcon;