@quillsql/react 2.11.5 → 2.11.8

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 (127) hide show
  1. package/dist/cjs/BarList.d.ts +1 -0
  2. package/dist/cjs/BarList.d.ts.map +1 -1
  3. package/dist/cjs/BarList.js +55 -46
  4. package/dist/cjs/Chart.d.ts +4 -0
  5. package/dist/cjs/Chart.d.ts.map +1 -1
  6. package/dist/cjs/Chart.js +25 -19
  7. package/dist/cjs/ChartBuilder.d.ts +5 -3
  8. package/dist/cjs/ChartBuilder.d.ts.map +1 -1
  9. package/dist/cjs/ChartBuilder.js +236 -196
  10. package/dist/cjs/ChartEditor.d.ts +3 -1
  11. package/dist/cjs/ChartEditor.d.ts.map +1 -1
  12. package/dist/cjs/ChartEditor.js +17 -2
  13. package/dist/cjs/Context.d.ts +1 -1
  14. package/dist/cjs/Context.d.ts.map +1 -1
  15. package/dist/cjs/Context.js +33 -3
  16. package/dist/cjs/Dashboard.d.ts +2 -1
  17. package/dist/cjs/Dashboard.d.ts.map +1 -1
  18. package/dist/cjs/Dashboard.js +4 -4
  19. package/dist/cjs/PieChart.d.ts +1 -1
  20. package/dist/cjs/PieChart.d.ts.map +1 -1
  21. package/dist/cjs/PieChart.js +95 -357
  22. package/dist/cjs/QuillProvider.d.ts +1 -3
  23. package/dist/cjs/QuillProvider.d.ts.map +1 -1
  24. package/dist/cjs/QuillProvider.js +2 -2
  25. package/dist/cjs/ReportBuilder.d.ts +11 -3
  26. package/dist/cjs/ReportBuilder.d.ts.map +1 -1
  27. package/dist/cjs/ReportBuilder.js +224 -99
  28. package/dist/cjs/SQLEditor.d.ts +4 -2
  29. package/dist/cjs/SQLEditor.d.ts.map +1 -1
  30. package/dist/cjs/SQLEditor.js +9 -6
  31. package/dist/cjs/components/Chart/BarChart.d.ts +2 -1
  32. package/dist/cjs/components/Chart/BarChart.d.ts.map +1 -1
  33. package/dist/cjs/components/Chart/BarChart.js +9 -5
  34. package/dist/cjs/components/Chart/ChartError.js +1 -1
  35. package/dist/cjs/components/Chart/ChartSkeleton.js +2 -2
  36. package/dist/cjs/components/Chart/LineChart.d.ts +2 -1
  37. package/dist/cjs/components/Chart/LineChart.d.ts.map +1 -1
  38. package/dist/cjs/components/Chart/LineChart.js +10 -3
  39. package/dist/cjs/components/Dashboard/TableComponent.d.ts +1 -1
  40. package/dist/cjs/components/Dashboard/TableComponent.d.ts.map +1 -1
  41. package/dist/cjs/components/Dashboard/TableComponent.js +1 -1
  42. package/dist/cjs/components/QuillTable.js +1 -1
  43. package/dist/cjs/components/ReportBuilder/AddColumnPopover.d.ts.map +1 -1
  44. package/dist/cjs/components/ReportBuilder/AddColumnPopover.js +2 -2
  45. package/dist/cjs/components/ReportBuilder/AddSortPopover.d.ts +3 -0
  46. package/dist/cjs/components/ReportBuilder/AddSortPopover.d.ts.map +1 -0
  47. package/dist/cjs/components/ReportBuilder/AddSortPopover.js +62 -0
  48. package/dist/cjs/components/ReportBuilder/convert.d.ts.map +1 -1
  49. package/dist/cjs/components/ReportBuilder/convert.js +3 -2
  50. package/dist/cjs/components/ReportBuilder/ui.d.ts +1 -0
  51. package/dist/cjs/components/ReportBuilder/ui.d.ts.map +1 -1
  52. package/dist/cjs/components/ReportBuilder/ui.js +12 -5
  53. package/dist/cjs/components/ReportBuilder/util.js +2 -2
  54. package/dist/cjs/components/UiComponents.d.ts +12 -2
  55. package/dist/cjs/components/UiComponents.d.ts.map +1 -1
  56. package/dist/cjs/components/UiComponents.js +7 -6
  57. package/dist/cjs/internals/ReportBuilder/PivotModal.d.ts +2 -1
  58. package/dist/cjs/internals/ReportBuilder/PivotModal.d.ts.map +1 -1
  59. package/dist/cjs/internals/ReportBuilder/PivotModal.js +47 -56
  60. package/dist/cjs/utils/aggregate.js +2 -2
  61. package/dist/cjs/utils/color.d.ts +25 -0
  62. package/dist/cjs/utils/color.d.ts.map +1 -1
  63. package/dist/cjs/utils/color.js +164 -1
  64. package/dist/esm/BarList.d.ts +1 -0
  65. package/dist/esm/BarList.d.ts.map +1 -1
  66. package/dist/esm/BarList.js +55 -46
  67. package/dist/esm/Chart.d.ts +4 -0
  68. package/dist/esm/Chart.d.ts.map +1 -1
  69. package/dist/esm/Chart.js +25 -19
  70. package/dist/esm/ChartBuilder.d.ts +5 -3
  71. package/dist/esm/ChartBuilder.d.ts.map +1 -1
  72. package/dist/esm/ChartBuilder.js +234 -195
  73. package/dist/esm/ChartEditor.d.ts +3 -1
  74. package/dist/esm/ChartEditor.d.ts.map +1 -1
  75. package/dist/esm/ChartEditor.js +19 -4
  76. package/dist/esm/Context.d.ts +1 -1
  77. package/dist/esm/Context.d.ts.map +1 -1
  78. package/dist/esm/Context.js +33 -3
  79. package/dist/esm/Dashboard.d.ts +2 -1
  80. package/dist/esm/Dashboard.d.ts.map +1 -1
  81. package/dist/esm/Dashboard.js +4 -4
  82. package/dist/esm/PieChart.d.ts +1 -1
  83. package/dist/esm/PieChart.d.ts.map +1 -1
  84. package/dist/esm/PieChart.js +93 -334
  85. package/dist/esm/QuillProvider.d.ts +1 -3
  86. package/dist/esm/QuillProvider.d.ts.map +1 -1
  87. package/dist/esm/QuillProvider.js +2 -2
  88. package/dist/esm/ReportBuilder.d.ts +11 -3
  89. package/dist/esm/ReportBuilder.d.ts.map +1 -1
  90. package/dist/esm/ReportBuilder.js +229 -104
  91. package/dist/esm/SQLEditor.d.ts +4 -2
  92. package/dist/esm/SQLEditor.d.ts.map +1 -1
  93. package/dist/esm/SQLEditor.js +9 -6
  94. package/dist/esm/components/Chart/BarChart.d.ts +2 -1
  95. package/dist/esm/components/Chart/BarChart.d.ts.map +1 -1
  96. package/dist/esm/components/Chart/BarChart.js +9 -5
  97. package/dist/esm/components/Chart/ChartError.js +1 -1
  98. package/dist/esm/components/Chart/ChartSkeleton.js +2 -2
  99. package/dist/esm/components/Chart/LineChart.d.ts +2 -1
  100. package/dist/esm/components/Chart/LineChart.d.ts.map +1 -1
  101. package/dist/esm/components/Chart/LineChart.js +10 -3
  102. package/dist/esm/components/Dashboard/TableComponent.d.ts +1 -1
  103. package/dist/esm/components/Dashboard/TableComponent.d.ts.map +1 -1
  104. package/dist/esm/components/Dashboard/TableComponent.js +1 -1
  105. package/dist/esm/components/QuillTable.js +1 -1
  106. package/dist/esm/components/ReportBuilder/AddColumnPopover.d.ts.map +1 -1
  107. package/dist/esm/components/ReportBuilder/AddColumnPopover.js +2 -2
  108. package/dist/esm/components/ReportBuilder/AddSortPopover.d.ts +3 -0
  109. package/dist/esm/components/ReportBuilder/AddSortPopover.d.ts.map +1 -0
  110. package/dist/esm/components/ReportBuilder/AddSortPopover.js +57 -0
  111. package/dist/esm/components/ReportBuilder/convert.d.ts.map +1 -1
  112. package/dist/esm/components/ReportBuilder/convert.js +3 -2
  113. package/dist/esm/components/ReportBuilder/ui.d.ts +1 -0
  114. package/dist/esm/components/ReportBuilder/ui.d.ts.map +1 -1
  115. package/dist/esm/components/ReportBuilder/ui.js +11 -5
  116. package/dist/esm/components/ReportBuilder/util.js +2 -2
  117. package/dist/esm/components/UiComponents.d.ts +12 -2
  118. package/dist/esm/components/UiComponents.d.ts.map +1 -1
  119. package/dist/esm/components/UiComponents.js +7 -6
  120. package/dist/esm/internals/ReportBuilder/PivotModal.d.ts +2 -1
  121. package/dist/esm/internals/ReportBuilder/PivotModal.d.ts.map +1 -1
  122. package/dist/esm/internals/ReportBuilder/PivotModal.js +47 -56
  123. package/dist/esm/utils/aggregate.js +2 -2
  124. package/dist/esm/utils/color.d.ts +25 -0
  125. package/dist/esm/utils/color.d.ts.map +1 -1
  126. package/dist/esm/utils/color.js +160 -0
  127. package/package.json +1 -1
@@ -1,160 +1,16 @@
1
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;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
4
  };
25
5
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.findComplementaryAndAnalogousColors = exports.DonutChartTooltip = exports.ChartTooltipRow = exports.ChartTooltipFrame = exports.parseLabelInput = exports.parseData = exports.sumNumericArray = exports.defaultValueFormatter = void 0;
6
+ exports.DonutChartTooltip = exports.ChartTooltipRow = exports.ChartTooltipFrame = exports.parseLabelInput = exports.parseData = exports.sumNumericArray = exports.defaultValueFormatter = void 0;
27
7
  const jsx_runtime_1 = require("react/jsx-runtime");
28
8
  /* eslint-disable @typescript-eslint/ban-ts-comment */
29
9
  /* eslint-disable react/display-name */
30
10
  // @ts-nocheck
31
- const react_1 = __importStar(require("react"));
11
+ const react_1 = __importDefault(require("react"));
32
12
  const recharts_1 = require("recharts");
33
- // const data = [
34
- // {
35
- // name: 'Project Nile',
36
- // pct_of_the_total: 0.208266213458027,
37
- // },
38
- // {
39
- // name: 'GA_Columbus',
40
- // pct_of_the_total: 0.102192710707096,
41
- // },
42
- // {
43
- // name: 'IN_Indianapolis',
44
- // pct_of_the_total: 0.0965229750772778,
45
- // },
46
- // {
47
- // name: 'MO_St Louis',
48
- // pct_of_the_total: 0.0732235559304729,
49
- // },
50
- // {
51
- // name: 'AL_Birmingham',
52
- // pct_of_the_total: 0.0555956813239389,
53
- // },
54
- // {
55
- // name: 'FL_Fort Myers',
56
- // pct_of_the_total: 0.0479532568651074,
57
- // },
58
- // {
59
- // name: 'GA_Macon',
60
- // pct_of_the_total: 0.0431507654834117,
61
- // },
62
- // {
63
- // name: 'NC_Charlotte',
64
- // pct_of_the_total: 0.034166792944838,
65
- // },
66
- // {
67
- // name: 'AL_Montgomery',
68
- // pct_of_the_total: 0.0298663023800594,
69
- // },
70
- // {
71
- // name: 'TN_Memphis',
72
- // pct_of_the_total: 0.0292140477651036,
73
- // },
74
- // {
75
- // name: 'SC_Greenville',
76
- // pct_of_the_total: 0.0288115667542858,
77
- // },
78
- // {
79
- // name: 'SC_Columbia',
80
- // pct_of_the_total: 0.0285805316472631,
81
- // },
82
- // {
83
- // name: 'NC_Fayetteville',
84
- // pct_of_the_total: 0.0279000448849207,
85
- // },
86
- // {
87
- // name: 'SC_Spartanburg',
88
- // pct_of_the_total: 0.0260196308313896,
89
- // },
90
- // {
91
- // name: 'NC_Greensboro',
92
- // pct_of_the_total: 0.0169521323221251,
93
- // },
94
- // {
95
- // name: 'FL_Orlando',
96
- // pct_of_the_total: 0.0167433815522564,
97
- // },
98
- // {
99
- // name: 'FL_Tampa',
100
- // pct_of_the_total: 0.0155513189530513,
101
- // },
102
- // {
103
- // name: 'NC_Raleigh',
104
- // pct_of_the_total: 0.0154308010765727,
105
- // },
106
- // {
107
- // name: 'FL_Jacksonville',
108
- // pct_of_the_total: 0.0152275224173022,
109
- // },
110
- // {
111
- // name: 'GA_LaGrange',
112
- // pct_of_the_total: 0.00867900369362145,
113
- // },
114
- // {
115
- // name: 'GA_Augusta',
116
- // pct_of_the_total: 0.0084582649800033,
117
- // },
118
- // {
119
- // name: 'TX_San Antonio',
120
- // pct_of_the_total: 0.00682971823492258,
121
- // },
122
- // {
123
- // name: 'FL_North Port',
124
- // pct_of_the_total: 0.00637954051173961,
125
- // },
126
- // {
127
- // name: 'No Portfolio',
128
- // pct_of_the_total: 0.00522734435854761,
129
- // },
130
- // ];
131
- const useOnWindowResize = (handler, initialWindowSize) => {
132
- const [windowSize, setWindowSize] = (0, react_1.useState)(initialWindowSize);
133
- (0, react_1.useEffect)(() => {
134
- const handleResize = () => {
135
- setWindowSize(window.innerWidth);
136
- handler();
137
- };
138
- handleResize();
139
- window.addEventListener('resize', handleResize);
140
- return () => window.removeEventListener('resize', handleResize);
141
- }, [handler, windowSize]);
142
- };
143
- const ChartLegend = (categories, colors) => {
144
- const legendRef = (0, react_1.useRef)(null);
145
- // useOnWindowResize(() => {
146
- // const calculateHeight = (height: number | undefined) =>
147
- // height
148
- // ? Number(height) + 20 // 20px extra padding
149
- // : 60; // default height
150
- // setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
151
- // });
152
- return ((0, jsx_runtime_1.jsx)("div", { ref: legendRef, className: "qq-flex qq-items-center qq-justify-end", children: (0, jsx_runtime_1.jsx)(recharts_1.Legend
153
- // @ts-ignore
154
- , {
155
- // @ts-ignore
156
- categories: categories, colors: colors }) }));
157
- };
13
+ const color_1 = require("./utils/color");
158
14
  const iconVariantValues = [
159
15
  'simple',
160
16
  'light',
@@ -213,16 +69,6 @@ const defaultValueFormatter = (value) => (value * 1).toFixed(1) + '%';
213
69
  exports.defaultValueFormatter = defaultValueFormatter;
214
70
  const sumNumericArray = (arr) => arr.reduce((prefixSum, num) => prefixSum + num, 0);
215
71
  exports.sumNumericArray = sumNumericArray;
216
- // export const parseData = (data: any[], colors: any[]) =>
217
- // data.map((dataPoint: any, idx: number) => {
218
- // const baseColor = idx < colors.length ? colors[idx] : BaseColors.Gray;
219
- // const hexCode = hexColors[baseColor ?? BaseColors.Gray];
220
- // return {
221
- // ...dataPoint,
222
- // color: colors[idx],
223
- // fill: colors[idx],
224
- // };
225
- // });
226
72
  // @ts-ignore
227
73
  const parseData = (data, colors, categoryKey, valueKey) => {
228
74
  const maxItems = 20;
@@ -274,17 +120,14 @@ const ChartTooltipFrame = ({ children, theme, }) => ((0, jsx_runtime_1.jsx)("div
274
120
  exports.ChartTooltipFrame = ChartTooltipFrame;
275
121
  const ChartTooltipRow = ({ value, name, color, theme, }) => ((0, jsx_runtime_1.jsxs)("div", { style: {
276
122
  display: 'flex',
123
+ gap: 8,
277
124
  alignItems: 'center',
278
125
  justifyContent: 'space-between',
279
126
  minWidth: 120,
280
- // minHeight: 27,
281
- // margin: '0 2rem',
282
127
  }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
283
128
  display: 'flex',
284
129
  alignItems: 'center',
285
130
  justifyContent: 'space-between',
286
- // margin: '0 0.5rem',
287
- // minWidth: 120,
288
131
  }, children: [(0, jsx_runtime_1.jsx)("span", { style: {
289
132
  background: color,
290
133
  borderWidth: 2,
@@ -295,12 +138,7 @@ const ChartTooltipRow = ({ value, name, color, theme, }) => ((0, jsx_runtime_1.j
295
138
  boxShadow: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
296
139
  borderRadius: '9999px',
297
140
  marginRight: 5,
298
- } }), (0, jsx_runtime_1.jsx)("p", {
299
- // className={twMerge(
300
- // 'font-medium tabular-nums text-right whitespace-nowrap',
301
- // 'text-[#212121] !important'
302
- // )}
303
- style: {
141
+ } }), (0, jsx_runtime_1.jsx)("p", { style: {
304
142
  marginTop: 0,
305
143
  marginBottom: 0,
306
144
  fontFamily: theme?.fontFamily,
@@ -325,10 +163,7 @@ exports.ChartTooltipRow = ChartTooltipRow;
325
163
  const DonutChartTooltip = ({ active, payload, valueFormatter, theme, }) => {
326
164
  if (active && payload[0]) {
327
165
  const payloadRow = payload[0];
328
- return ((0, jsx_runtime_1.jsx)(exports.ChartTooltipFrame, { theme: theme, children: (0, jsx_runtime_1.jsx)("div", {
329
- // style={{ transform: 'translateX(-120px)' }}
330
- // className={twMerge('qq-px-4', 'qq-py-2')}
331
- style: {
166
+ return ((0, jsx_runtime_1.jsx)(exports.ChartTooltipFrame, { theme: theme, children: (0, jsx_runtime_1.jsx)("div", { style: {
332
167
  paddingLeft: '1rem',
333
168
  paddingRight: '1rem',
334
169
  paddingTop: '8px',
@@ -338,174 +173,105 @@ const DonutChartTooltip = ({ active, payload, valueFormatter, theme, }) => {
338
173
  return null;
339
174
  };
340
175
  exports.DonutChartTooltip = DonutChartTooltip;
341
- // @ts-ignore
342
- function findComplementaryAndAnalogousColors(color1, color2) {
343
- // Calculate the hue of the first color
344
- const color1HSL = rgbToHsl(hexToRgb(color1));
345
- const color2HSL = rgbToHsl(hexToRgb(color2));
346
- const color1Hue = color1HSL.h;
347
- // Calculate the complementary color of the first color
348
- const complementaryHue = (color1Hue + 180) % 360;
349
- const complementaryColor = hslToRgb({
350
- h: complementaryHue,
351
- s: color1HSL.s,
352
- l: color1HSL.l,
353
- });
354
- // Find an analogous hue to the first color
355
- const analogousHue1 = (color1Hue + 30) % 360;
356
- const analogousHue2 = (color1Hue - 30 + 360) % 360;
357
- // Convert the analogous hues back to RGB colors
358
- const analogousColor1 = hslToRgb({
359
- h: analogousHue1,
360
- s: color1HSL.s,
361
- l: color1HSL.l,
362
- });
363
- const analogousColor2 = hslToRgb({
364
- h: analogousHue2,
365
- s: color1HSL.s,
366
- l: color1HSL.l,
367
- });
368
- // Calculate the average hue between the two colors
369
- const avgHue = (color1HSL.h + color2HSL.h) / 2;
370
- // Generate a new HSL object with the average hue and the same saturation and lightness as color1
371
- const analogousHsl = { h: avgHue, s: color1HSL.s, l: color1HSL.l };
372
- return [
373
- color1,
374
- color2,
375
- rgbToHex(hslToRgb(analogousHsl)),
376
- // rgbToHex(complementaryColor),
377
- // rgbToHex(analogousColor1),
378
- // rgbToHex(analogousColor2),
379
- ];
380
- }
381
- exports.findComplementaryAndAnalogousColors = findComplementaryAndAnalogousColors;
382
- // @ts-ignore
383
176
  function hexToRgb(hex) {
384
177
  const r = parseInt(hex.substring(1, 3), 16);
385
178
  const g = parseInt(hex.substring(3, 5), 16);
386
179
  const b = parseInt(hex.substring(5, 7), 16);
387
180
  return { r, g, b };
388
181
  }
389
- // @ts-ignore
390
182
  function rgbToHex(rgb) {
391
183
  const rHex = rgb.r.toString(16).padStart(2, '0');
392
184
  const gHex = rgb.g.toString(16).padStart(2, '0');
393
185
  const bHex = rgb.b.toString(16).padStart(2, '0');
394
186
  return `#${rHex}${gHex}${bHex}`;
395
187
  }
396
- // @ts-ignore
397
- function rgbToHsl(rgb) {
398
- const r = rgb.r / 255;
399
- const g = rgb.g / 255;
400
- const b = rgb.b / 255;
401
- const max = Math.max(r, g, b);
402
- const min = Math.min(r, g, b);
403
- let h = 0, s = 0, l = (max + min) / 2;
404
- if (max !== min) {
405
- const d = max - min;
406
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
407
- switch (max) {
408
- case r:
409
- h = (g - b) / d + (g < b ? 6 : 0);
410
- break;
411
- case g:
412
- h = (b - r) / d + 2;
413
- break;
414
- case b:
415
- h = (r - g) / d + 4;
416
- break;
417
- }
418
- h /= 6;
419
- }
420
- return { h: h * 360, s: s * 100, l: l * 100 };
188
+ function colorToHSL(color) {
189
+ const colorHex = (0, color_1.namedColorToHex)(color);
190
+ const { r, g, b } = hexToRgb(colorHex);
191
+ return (0, color_1.rgbToHsl)(r, g, b);
421
192
  }
422
- // @ts-ignore
423
- function hslToRgb(hsl) {
424
- const h = hsl.h / 360;
425
- const s = hsl.s / 100;
426
- const l = hsl.l / 100;
427
- let r, g, b;
428
- if (s === 0) {
429
- r = g = b = l;
430
- }
431
- else {
432
- // @ts-ignore
433
- const hue2rgb = (p, q, t) => {
434
- if (t < 0)
435
- t += 1;
436
- if (t > 1)
437
- t -= 1;
438
- if (t < 1 / 6)
439
- return p + (q - p) * 6 * t;
440
- if (t < 1 / 2)
441
- return q;
442
- if (t < 2 / 3)
443
- return p + (q - p) * (2 / 3 - t) * 6;
444
- return p;
445
- };
446
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
447
- const p = 2 * l - q;
448
- r = hue2rgb(p, q, h + 1 / 3);
449
- g = hue2rgb(p, q, h);
450
- b = hue2rgb(p, q, h - 1 / 3);
451
- }
452
- return {
453
- r: Math.round(r * 255),
454
- g: Math.round(g * 255),
455
- b: Math.round(b * 255),
456
- };
193
+ /**
194
+ * Interpolates between two colors using HSL color space.
195
+ * @param leftColor - The left color in hexadecimal format.
196
+ * @param rightColor - The right color in hexadecimal format.
197
+ * @param length - The number of interpolated colors to generate between the
198
+ * left and right colors.
199
+ */
200
+ function interpolateBetween(leftColor, rightColor, length = 3) {
201
+ const [h, s, _l] = colorToHSL(leftColor);
202
+ const [h2, s2, _l2] = colorToHSL(rightColor);
203
+ const hues = linspace(h, h2, length);
204
+ const saturations = linspace(s, s2, length);
205
+ const lightnesses = linspace(_l, _l2, length);
206
+ return Array.from({ length }).map((_, i) => {
207
+ const [r, g, b] = (0, color_1.HSLtoRGB)(hues[i], saturations[i], lightnesses[i]);
208
+ return rgbToHex({ r: Math.round(r), g: Math.round(g), b: Math.round(b) });
209
+ });
457
210
  }
458
- // @ts-ignore
459
- function generateColorGradientSteps(n, colors) {
460
- const numColors = colors.length;
461
- // If there are fewer than two colors, return the original array
462
- if (numColors < 2) {
463
- return colors;
211
+ /**
212
+ * Generates monochromatic interpolation of a given color.
213
+ * @param color - The base color in hexadecimal format.
214
+ * @param length - The number of interpolated colors to generate.
215
+ */
216
+ function monochromaticInterpolation(color, length) {
217
+ const [h, s, _l] = colorToHSL(color);
218
+ const hues = linspace(h, h, length);
219
+ const saturations = linspace(s, s, length);
220
+ const lightnesses = linspace(0.6, 0.9, length);
221
+ return Array.from({ length }).map((_, i) => {
222
+ const [r, g, b] = (0, color_1.HSLtoRGB)(hues[i], saturations[i], lightnesses[i]);
223
+ return rgbToHex({ r: Math.round(r), g: Math.round(g), b: Math.round(b) });
224
+ });
225
+ }
226
+ /**
227
+ * Generates an array of colors by interpolating between colors in the given array.
228
+ * @param colors - The array of colors to interpolate between.
229
+ * @param length - The desired length of the resulting array.
230
+ */
231
+ function generateArrayFromColor(colors, length) {
232
+ if (typeof colors === 'string') {
233
+ return monochromaticInterpolation(colors, length);
464
234
  }
465
- // Initialize the output array with the first color
466
- const output = [colors[0]];
467
- // Calculate the number of gradient steps between each pair of colors
468
- const stepsPerPair = Math.floor(n / (numColors - 1));
469
- // Generate the gradient steps for each pair of colors
470
- for (let i = 1; i < numColors; i++) {
471
- const color1 = colors[i - 1];
472
- const color2 = colors[i];
473
- const gradientSteps = generateGradientSteps(color1, color2, stepsPerPair);
474
- output.push(...gradientSteps);
235
+ if (colors.length === 1) {
236
+ return monochromaticInterpolation(colors[0], length);
475
237
  }
476
- // If there are remaining steps, add the last color as a stopgap measure
477
- while (output.length < n) {
478
- output.push(colors[numColors - 1]);
238
+ const pairs = colors.length - 1;
239
+ const needed = length - colors.length;
240
+ const baseAmount = Math.floor(needed / pairs);
241
+ const extras = needed % pairs;
242
+ let result = [];
243
+ let i = 0;
244
+ let j = 1;
245
+ while (j < colors.length) {
246
+ const additional = i < extras ? 1 : 0;
247
+ const interpLength = 2 + baseAmount + additional;
248
+ const interp = interpolateBetween(colors[i], colors[j], interpLength);
249
+ const lastIndex = j === colors.length - 1 ? undefined : -1;
250
+ result = result.concat(interp.slice(0, lastIndex));
251
+ i++;
252
+ j++;
479
253
  }
480
- return output;
254
+ return result;
481
255
  }
482
- //@ts-ignore
483
- function generateGradientSteps(color1, color2, n) {
484
- // Convert the colors to RGB objects
485
- const rgb1 = hexToRgb(color1);
486
- const rgb2 = hexToRgb(color2);
487
- // Calculate the RGB color difference between the two colors
488
- const diffR = rgb2.r - rgb1.r;
489
- const diffG = rgb2.g - rgb1.g;
490
- const diffB = rgb2.b - rgb1.b;
491
- // Calculate the RGB gradient step size between the two colors
492
- const stepR = diffR / (n + 1);
493
- const stepG = diffG / (n + 1);
494
- const stepB = diffB / (n + 1);
495
- // Generate the RGB gradient steps
496
- const gradientSteps = [];
497
- for (let i = 1; i <= n; i++) {
498
- const r = Math.round(rgb1.r + stepR * i);
499
- const g = Math.round(rgb1.g + stepG * i);
500
- const b = Math.round(rgb1.b + stepB * i);
501
- gradientSteps.push(rgbToHex({ r, g, b }));
256
+ /**
257
+ * Generates an array of numbers linearly spaced between start and end.
258
+ * @param start - The starting number of the sequence.
259
+ * @param end - The end number of the sequence.
260
+ * @param num - The number of samples to generate.
261
+ */
262
+ function linspace(start, end, num) {
263
+ if (num <= 1)
264
+ return [start];
265
+ const step = (end - start) / (num - 1);
266
+ const result = new Array(num);
267
+ for (let i = 0; i < num; i++) {
268
+ result[i] = start + step * i;
502
269
  }
503
- return gradientSteps;
270
+ return result;
504
271
  }
505
272
  const PieChartWrapper = react_1.default.forwardRef((props, ref) => {
506
- const { category = 'pct_of_the_total', index = 'status', data, colors = [], variant = 'donut', valueFormatter = exports.defaultValueFormatter, label, showLabel = true, showAnimation = true, showTooltip = true, className, containerStyle, theme, ...other } = props;
273
+ const { category = 'pct_of_the_total', index = 'status', data, colors = [], colorMap = {}, variant = 'donut', valueFormatter = exports.defaultValueFormatter, label, showLabel = true, showAnimation = true, showTooltip = true, className, containerStyle, theme, ...other } = props;
507
274
  const isDonut = variant == 'donut';
508
- const parsedLabelInput = (0, exports.parseLabelInput)(label, valueFormatter, data, category);
509
275
  if (!data || data.length === 0) {
510
276
  return ((0, jsx_runtime_1.jsx)("div", { style: {
511
277
  display: 'flex',
@@ -516,52 +282,24 @@ const PieChartWrapper = react_1.default.forwardRef((props, ref) => {
516
282
  alignItems: 'center',
517
283
  fontSize: 13,
518
284
  color: theme.secondaryTextColor,
285
+ ...containerStyle,
519
286
  }, children: "No results found for specified time period." }));
520
287
  }
521
- // const newColors = generateColorGradientSteps(
522
- // data.length,
523
- // findComplementaryAndAnalogousColors(colors[0], colors[1])
524
- // );
525
288
  return ((0, jsx_runtime_1.jsx)("div", { ref: ref, style: {
526
- ...containerStyle,
527
289
  width: '100%',
528
- // height: '100%',
529
290
  display: 'flex',
530
291
  flexDirection: 'row',
531
292
  alignItems: 'center',
532
293
  boxSizing: 'content-box',
533
- }, ...other, children: (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.PieChart, { children: [(0, jsx_runtime_1.jsx)(recharts_1.Pie
534
- // style={{ transform: 'translateX(-120px)' }}
535
- , {
536
- // style={{ transform: 'translateX(-120px)' }}
537
- data: (0, exports.parseData)(data, colors.length >= data.length
538
- ? colors
539
- : generateColorGradientSteps(Math.min(21, data.length), [
540
- ...findComplementaryAndAnalogousColors(colors[0], colors[1]),
541
- ...colors.slice(2),
542
- ]), index, category), cx: "50%", cy: "50%", startAngle: 90, endAngle: -270, innerRadius: isDonut ? '70%' : '0%', outerRadius: "100%", paddingAngle: 0, dataKey: category, nameKey: index, isAnimationActive: true }), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { wrapperStyle: {
294
+ ...containerStyle,
295
+ }, ...other, children: (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.PieChart, { children: [(0, jsx_runtime_1.jsx)(recharts_1.Pie, { data: (0, exports.parseData)(data, (colorMap[category] &&
296
+ generateArrayFromColor(colorMap[category], data.length)) ??
297
+ (colors.length >= data.length
298
+ ? colors
299
+ : generateArrayFromColor(colors.slice(0, 2), data.length)), index, category), cx: "50%", cy: "50%", startAngle: 90, endAngle: -270, innerRadius: isDonut ? '70%' : '0%', outerRadius: "100%", paddingAngle: 0, dataKey: category, nameKey: index, isAnimationActive: true }), (0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { wrapperStyle: {
543
300
  outline: 'none',
544
- }, content: ({ active, payload }) => ((0, jsx_runtime_1.jsx)(exports.DonutChartTooltip, { active: active, payload: payload, valueFormatter: valueFormatter, theme: theme })) })] }) }) }));
301
+ }, content: ({ active, payload }) => {
302
+ return ((0, jsx_runtime_1.jsx)(exports.DonutChartTooltip, { active: active, payload: payload, valueFormatter: valueFormatter, theme: theme }));
303
+ } })] }) }) }));
545
304
  });
546
- function Legend2({ payload, colors }) {
547
- return ((0, jsx_runtime_1.jsx)("div", { children: payload.map((item, idx) => {
548
- if (idx > 9) {
549
- return null;
550
- }
551
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: {
552
- height: 8,
553
- width: 8,
554
- borderRadius: 8,
555
- background: colors[idx],
556
- marginRight: 8,
557
- marginTop: 2,
558
- } }), (0, jsx_runtime_1.jsx)("div", { style: {
559
- whiteSpace: 'nowrap',
560
- overflow: 'hidden',
561
- textOverflow: 'ellipsis',
562
- display: 'block',
563
- maxWidth: 120,
564
- }, children: item.value })] }, item.value));
565
- }) }));
566
- }
567
305
  exports.default = PieChartWrapper;
@@ -10,14 +10,12 @@ interface WithOrganizationId extends BaseQuillProviderProps {
10
10
  queryEndpoint?: never;
11
11
  queryHeaders?: never;
12
12
  withCredentials?: boolean;
13
- databaseType: string;
14
13
  }
15
14
  interface WithQueryEndpoint extends BaseQuillProviderProps {
16
15
  organizationId?: string;
17
16
  queryEndpoint: string;
18
17
  queryHeaders: object;
19
18
  withCredentials?: boolean;
20
- databaseType: string;
21
19
  }
22
20
  type QuillProviderProps = WithOrganizationId | WithQueryEndpoint;
23
21
  export interface QuillTheme {
@@ -57,6 +55,6 @@ export declare const defaultQuillTheme: {
57
55
  loadingStateBackgroundColor: string;
58
56
  hoverBackgroundColor: string;
59
57
  };
60
- declare const QuillProvider: ({ organizationId, publicKey, queryEndpoint, queryHeaders, environment, children, databaseType, theme, withCredentials, }: QuillProviderProps) => import("react/jsx-runtime").JSX.Element;
58
+ declare const QuillProvider: ({ organizationId, publicKey, queryEndpoint, queryHeaders, environment, children, theme, withCredentials, }: QuillProviderProps) => import("react/jsx-runtime").JSX.Element;
61
59
  export default QuillProvider;
62
60
  //# sourceMappingURL=QuillProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuillProvider.d.ts","sourceRoot":"","sources":["../../src/Qu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IACvB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAwB7B,CAAC;AAEF,QAAA,MAAM,aAAa,+GAShB,kBAAkB,4CAcpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -28,7 +28,7 @@ exports.defaultQuillTheme = {
28
28
  loadingStateBackgroundColor: '#F9F9FA',
29
29
  hoverBackgroundColor: '#F4F4F5',
30
30
  };
31
- const QuillProvider = ({ organizationId, publicKey, queryEndpoint = 'https://quill-344421.uc.r.appspot.com/cloud', queryHeaders, environment, children, databaseType, theme = exports.defaultQuillTheme, withCredentials = false, }) => {
32
- return ((0, jsx_runtime_1.jsx)(Context_1.ContextProvider, { initialTheme: theme, publicKey: publicKey, environment: environment, customerId: organizationId, queryEndpoint: queryEndpoint, queryHeaders: queryHeaders, withCredentials: withCredentials, databaseType: databaseType, children: children }));
31
+ const QuillProvider = ({ organizationId, publicKey, queryEndpoint = 'https://quill-344421.uc.r.appspot.com/cloud', queryHeaders, environment, children, theme = exports.defaultQuillTheme, withCredentials = false, }) => {
32
+ return ((0, jsx_runtime_1.jsx)(Context_1.ContextProvider, { initialTheme: theme, publicKey: publicKey, environment: environment, customerId: organizationId, queryEndpoint: queryEndpoint, queryHeaders: queryHeaders, withCredentials: withCredentials, children: children }));
33
33
  };
34
34
  exports.default = QuillProvider;
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonComponentProps, HeaderProps, LabelProps, MemoizedPopoverProps, TextProps } from './components/UiComponents';
1
3
  /**
2
4
  * Quill Report Builder
3
5
  *
@@ -6,13 +8,13 @@
6
8
  * they can click a button and add that report to their dashboard or export it
7
9
  * as a CSV.
8
10
  */
9
- export default function ReportBuilder({ initialTableName, onAddToDashboardComplete, destinationDashboard, organizationName, Button, SecondaryButton, TextInput, Select, Table, Popover, Tabs, Checkbox, Sidebar, Container, HandleButton, SelectColumn, DraggableColumn, ButtonLoadingState, TableLoadingState, SidebarHeading, SidebarSubHeading, FilterPopover, admin, }: {
11
+ export default function ReportBuilder({ initialTableName, onAddToDashboardComplete, destinationDashboard, organizationName, Button, SecondaryButton, TextInput, Select, Table, Popover, Tabs, Checkbox, Sidebar, Container, HandleButton, SelectColumn, DraggableColumn, ButtonLoadingState, TableLoadingState, SidebarHeading, SidebarSubHeading, FilterPopover, SortPopover, Label, Header, Text, PivotPopover, admin, hideAi, }: {
10
12
  initialTableName: string;
11
13
  onAddToDashboardComplete: () => void;
12
14
  destinationDashboard?: string;
13
15
  organizationName?: string;
14
- Button?: any;
15
- SecondaryButton?: any;
16
+ Button?: (props: ButtonComponentProps) => JSX.Element;
17
+ SecondaryButton?: (props: ButtonComponentProps) => JSX.Element;
16
18
  TextInput?: any;
17
19
  Select?: any;
18
20
  Table?: any;
@@ -29,6 +31,12 @@ export default function ReportBuilder({ initialTableName, onAddToDashboardComple
29
31
  SidebarHeading?: any;
30
32
  SidebarSubHeading?: any;
31
33
  FilterPopover?: any;
34
+ SortPopover?: any;
35
+ Label?: (props: LabelProps) => JSX.Element;
36
+ Header?: (props: HeaderProps) => JSX.Element;
37
+ Text?: (props: TextProps) => JSX.Element;
38
+ PivotPopover?: (props: MemoizedPopoverProps) => JSX.Element;
32
39
  admin?: boolean;
40
+ hideAi?: boolean;
33
41
  }): import("react/jsx-runtime").JSX.Element;
34
42
  //# sourceMappingURL=ReportBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReportBuilder.d.ts","sourceRoot":"","sources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