@quillsql/react 2.16.40 → 2.16.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -32479,7 +32479,7 @@ function QuillTable({
32479
32479
  {
32480
32480
  xmlns: "http://www.w3.org/2000/svg",
32481
32481
  viewBox: "0 0 20 20",
32482
- fill: theme?.chartLabelFontFamily || theme?.fontFamily,
32482
+ fill: theme?.primaryTextColor ?? "#111827",
32483
32483
  height: "16px",
32484
32484
  width: "16px",
32485
32485
  children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
@@ -32511,7 +32511,7 @@ function QuillTable({
32511
32511
  {
32512
32512
  xmlns: "http://www.w3.org/2000/svg",
32513
32513
  viewBox: "0 0 20 20",
32514
- fill: theme?.chartLabelFontFamily || theme?.fontFamily,
32514
+ fill: theme?.primaryTextColor ?? "#111827",
32515
32515
  height: "16px",
32516
32516
  width: "16px",
32517
32517
  children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
@@ -60649,7 +60649,10 @@ function normalizePivotChartForDisplay(chart) {
60649
60649
  format: resolveYAxisFormat(field, aggregation)
60650
60650
  };
60651
60651
  });
60652
- const yAxisFields = yAxisFromAggregations.length > 0 || yAxisFromPivotRowFields.length > 0 ? [...yAxisFromAggregations, ...yAxisFromPivotRowFields] : (withResolvedXAxis.pivotColumns ?? []).slice(1).map((column) => ({
60652
+ const supplementalYAxisFromPivotRowFields = yAxisFromAggregations.length > 0 ? yAxisFromPivotRowFields.filter(
60653
+ (axis) => Boolean(findAggregationForFieldStrict(axis.field, aggregations))
60654
+ ) : yAxisFromPivotRowFields;
60655
+ const yAxisFields = yAxisFromAggregations.length > 0 ? [...yAxisFromAggregations, ...supplementalYAxisFromPivotRowFields] : supplementalYAxisFromPivotRowFields.length > 0 ? supplementalYAxisFromPivotRowFields : (withResolvedXAxis.pivotColumns ?? []).slice(1).map((column) => ({
60653
60656
  field: column.field,
60654
60657
  label: column.label ?? column.field,
60655
60658
  format: column.format ?? yAxisFallbackFormat
package/dist/index.js CHANGED
@@ -32514,7 +32514,7 @@ function QuillTable({
32514
32514
  {
32515
32515
  xmlns: "http://www.w3.org/2000/svg",
32516
32516
  viewBox: "0 0 20 20",
32517
- fill: theme?.chartLabelFontFamily || theme?.fontFamily,
32517
+ fill: theme?.primaryTextColor ?? "#111827",
32518
32518
  height: "16px",
32519
32519
  width: "16px",
32520
32520
  children: /* @__PURE__ */ jsx29(
@@ -32546,7 +32546,7 @@ function QuillTable({
32546
32546
  {
32547
32547
  xmlns: "http://www.w3.org/2000/svg",
32548
32548
  viewBox: "0 0 20 20",
32549
- fill: theme?.chartLabelFontFamily || theme?.fontFamily,
32549
+ fill: theme?.primaryTextColor ?? "#111827",
32550
32550
  height: "16px",
32551
32551
  width: "16px",
32552
32552
  children: /* @__PURE__ */ jsx29(
@@ -60859,7 +60859,10 @@ function normalizePivotChartForDisplay(chart) {
60859
60859
  format: resolveYAxisFormat(field, aggregation)
60860
60860
  };
60861
60861
  });
60862
- const yAxisFields = yAxisFromAggregations.length > 0 || yAxisFromPivotRowFields.length > 0 ? [...yAxisFromAggregations, ...yAxisFromPivotRowFields] : (withResolvedXAxis.pivotColumns ?? []).slice(1).map((column) => ({
60862
+ const supplementalYAxisFromPivotRowFields = yAxisFromAggregations.length > 0 ? yAxisFromPivotRowFields.filter(
60863
+ (axis) => Boolean(findAggregationForFieldStrict(axis.field, aggregations))
60864
+ ) : yAxisFromPivotRowFields;
60865
+ const yAxisFields = yAxisFromAggregations.length > 0 ? [...yAxisFromAggregations, ...supplementalYAxisFromPivotRowFields] : supplementalYAxisFromPivotRowFields.length > 0 ? supplementalYAxisFromPivotRowFields : (withResolvedXAxis.pivotColumns ?? []).slice(1).map((column) => ({
60863
60866
  field: column.field,
60864
60867
  label: column.label ?? column.field,
60865
60868
  format: column.format ?? yAxisFallbackFormat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.40",
3
+ "version": "2.16.41",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {