@quillsql/react 2.16.65 → 2.16.67
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 +20 -7
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39092,6 +39092,7 @@ function GaugeChart({
|
|
|
39092
39092
|
xAxisField,
|
|
39093
39093
|
xAxisFormat,
|
|
39094
39094
|
containerStyle,
|
|
39095
|
+
className,
|
|
39095
39096
|
colors,
|
|
39096
39097
|
isAnimationActive = true
|
|
39097
39098
|
}) {
|
|
@@ -39105,6 +39106,7 @@ function GaugeChart({
|
|
|
39105
39106
|
percentage: normalizedPercentage,
|
|
39106
39107
|
xAxisFormat,
|
|
39107
39108
|
containerStyle: { ...containerStyle },
|
|
39109
|
+
className,
|
|
39108
39110
|
colors,
|
|
39109
39111
|
isAnimationActive
|
|
39110
39112
|
}
|
|
@@ -39113,6 +39115,7 @@ function GaugeChart({
|
|
|
39113
39115
|
function D3Gauge({
|
|
39114
39116
|
percentage,
|
|
39115
39117
|
containerStyle,
|
|
39118
|
+
className,
|
|
39116
39119
|
xAxisFormat,
|
|
39117
39120
|
colors,
|
|
39118
39121
|
isAnimationActive
|
|
@@ -39281,7 +39284,8 @@ function D3Gauge({
|
|
|
39281
39284
|
"div",
|
|
39282
39285
|
{
|
|
39283
39286
|
ref: containerRef,
|
|
39284
|
-
style: { width: "100%",
|
|
39287
|
+
style: { width: "100%", ...containerStyle },
|
|
39288
|
+
className
|
|
39285
39289
|
}
|
|
39286
39290
|
);
|
|
39287
39291
|
}
|
|
@@ -40371,6 +40375,7 @@ var ChartDisplay = ({
|
|
|
40371
40375
|
xAxisField: config?.xAxisField ?? "",
|
|
40372
40376
|
xAxisFormat: config?.xAxisFormat ?? "whole_number",
|
|
40373
40377
|
containerStyle,
|
|
40378
|
+
className,
|
|
40374
40379
|
colors: chartColors,
|
|
40375
40380
|
isAnimationActive
|
|
40376
40381
|
}
|
|
@@ -43578,7 +43583,8 @@ function StaticChart(props) {
|
|
|
43578
43583
|
onClickLegendElement,
|
|
43579
43584
|
containerStyle,
|
|
43580
43585
|
showLegend,
|
|
43581
|
-
className
|
|
43586
|
+
className,
|
|
43587
|
+
hideTableChartOuterBorder = true
|
|
43582
43588
|
} = props;
|
|
43583
43589
|
const {
|
|
43584
43590
|
report,
|
|
@@ -43637,7 +43643,14 @@ function StaticChart(props) {
|
|
|
43637
43643
|
showLegend,
|
|
43638
43644
|
onPageChange: useLocalPivotTablePagination ? void 0 : onPageChange,
|
|
43639
43645
|
tableRowsLoading: useLocalPivotTablePagination ? false : pageLoading,
|
|
43640
|
-
onSortChange: useLocalPivotTablePagination ? void 0 : onSortChange
|
|
43646
|
+
onSortChange: useLocalPivotTablePagination ? void 0 : onSortChange,
|
|
43647
|
+
tableChartWrapperBorders: hideTableChartOuterBorder && report?.chartType === "table" ? {
|
|
43648
|
+
borderRadius: 0,
|
|
43649
|
+
borderLeft: "none",
|
|
43650
|
+
borderRight: "none",
|
|
43651
|
+
borderTop: "none",
|
|
43652
|
+
borderBottom: "none"
|
|
43653
|
+
} : void 0
|
|
43641
43654
|
}
|
|
43642
43655
|
);
|
|
43643
43656
|
}
|
|
@@ -65217,7 +65230,6 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65217
65230
|
() => stableSerializeForQueryKey(effectiveReportBuilderState),
|
|
65218
65231
|
[effectiveReportBuilderState]
|
|
65219
65232
|
);
|
|
65220
|
-
const createdBootstrapStateMatchesEffectiveState = isCreatedReportBootstrapLoad && stableSerializeForQueryKey(initialReportBuilderStateForLoad) === effectiveReportBuilderStateHash;
|
|
65221
65233
|
const prevPaginationResetStateHashRef = (0, import_react61.useRef)(null);
|
|
65222
65234
|
(0, import_react61.useEffect)(() => {
|
|
65223
65235
|
const prevHash = prevPaginationResetStateHashRef.current;
|
|
@@ -65351,7 +65363,7 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65351
65363
|
rowCountOnly: true
|
|
65352
65364
|
});
|
|
65353
65365
|
}),
|
|
65354
|
-
enabled:
|
|
65366
|
+
enabled: isCreatedReportBootstrapLoad && Boolean(client) && !reportOverride,
|
|
65355
65367
|
retry: false
|
|
65356
65368
|
});
|
|
65357
65369
|
(0, import_react61.useEffect)(() => {
|
|
@@ -65361,13 +65373,15 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65361
65373
|
setSourceReport(report);
|
|
65362
65374
|
}, [effectiveReportId, tableRefreshQuery.data, tableRefreshQueryEnabled]);
|
|
65363
65375
|
(0, import_react61.useEffect)(() => {
|
|
65364
|
-
if (!createdBootstrapStateMatchesEffectiveState) return;
|
|
65365
65376
|
const countReport = createdBootstrapRowCountQuery.data?.report;
|
|
65366
65377
|
if (createdBootstrapRowCountQuery.data?.error || !countReport) return;
|
|
65367
65378
|
setSourceReport((currentReport) => {
|
|
65368
65379
|
if (!currentReport || currentReport.id !== effectiveReportId) {
|
|
65369
65380
|
return currentReport;
|
|
65370
65381
|
}
|
|
65382
|
+
if (stableSerializeForQueryKey(currentReport.reportBuilderState) !== stableSerializeForQueryKey(countReport.reportBuilderState)) {
|
|
65383
|
+
return currentReport;
|
|
65384
|
+
}
|
|
65371
65385
|
if (currentReport.rowCount === countReport.rowCount) {
|
|
65372
65386
|
return currentReport;
|
|
65373
65387
|
}
|
|
@@ -65375,7 +65389,6 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65375
65389
|
});
|
|
65376
65390
|
}, [
|
|
65377
65391
|
createdBootstrapRowCountQuery.data,
|
|
65378
|
-
createdBootstrapStateMatchesEffectiveState,
|
|
65379
65392
|
effectiveReportId,
|
|
65380
65393
|
sourceReport?.id
|
|
65381
65394
|
]);
|
package/dist/index.d.cts
CHANGED
|
@@ -2722,6 +2722,8 @@ interface StaticChartBaseProps {
|
|
|
2722
2722
|
onClickChartElement?: (data: any) => void;
|
|
2723
2723
|
onClickLegendElement?: (data: any) => void;
|
|
2724
2724
|
showLegend?: boolean;
|
|
2725
|
+
/** Strip QuillTable's outer frame when chart type is `table` (cell borders unchanged). */
|
|
2726
|
+
hideTableChartOuterBorder?: boolean;
|
|
2725
2727
|
}
|
|
2726
2728
|
type StaticChartProps = (StaticChartBaseProps & {
|
|
2727
2729
|
className: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2722,6 +2722,8 @@ interface StaticChartBaseProps {
|
|
|
2722
2722
|
onClickChartElement?: (data: any) => void;
|
|
2723
2723
|
onClickLegendElement?: (data: any) => void;
|
|
2724
2724
|
showLegend?: boolean;
|
|
2725
|
+
/** Strip QuillTable's outer frame when chart type is `table` (cell borders unchanged). */
|
|
2726
|
+
hideTableChartOuterBorder?: boolean;
|
|
2725
2727
|
}
|
|
2726
2728
|
type StaticChartProps = (StaticChartBaseProps & {
|
|
2727
2729
|
className: string;
|
package/dist/index.js
CHANGED
|
@@ -39188,6 +39188,7 @@ function GaugeChart({
|
|
|
39188
39188
|
xAxisField,
|
|
39189
39189
|
xAxisFormat,
|
|
39190
39190
|
containerStyle,
|
|
39191
|
+
className,
|
|
39191
39192
|
colors,
|
|
39192
39193
|
isAnimationActive = true
|
|
39193
39194
|
}) {
|
|
@@ -39201,6 +39202,7 @@ function GaugeChart({
|
|
|
39201
39202
|
percentage: normalizedPercentage,
|
|
39202
39203
|
xAxisFormat,
|
|
39203
39204
|
containerStyle: { ...containerStyle },
|
|
39205
|
+
className,
|
|
39204
39206
|
colors,
|
|
39205
39207
|
isAnimationActive
|
|
39206
39208
|
}
|
|
@@ -39209,6 +39211,7 @@ function GaugeChart({
|
|
|
39209
39211
|
function D3Gauge({
|
|
39210
39212
|
percentage,
|
|
39211
39213
|
containerStyle,
|
|
39214
|
+
className,
|
|
39212
39215
|
xAxisFormat,
|
|
39213
39216
|
colors,
|
|
39214
39217
|
isAnimationActive
|
|
@@ -39377,7 +39380,8 @@ function D3Gauge({
|
|
|
39377
39380
|
"div",
|
|
39378
39381
|
{
|
|
39379
39382
|
ref: containerRef,
|
|
39380
|
-
style: { width: "100%",
|
|
39383
|
+
style: { width: "100%", ...containerStyle },
|
|
39384
|
+
className
|
|
39381
39385
|
}
|
|
39382
39386
|
);
|
|
39383
39387
|
}
|
|
@@ -40467,6 +40471,7 @@ var ChartDisplay = ({
|
|
|
40467
40471
|
xAxisField: config?.xAxisField ?? "",
|
|
40468
40472
|
xAxisFormat: config?.xAxisFormat ?? "whole_number",
|
|
40469
40473
|
containerStyle,
|
|
40474
|
+
className,
|
|
40470
40475
|
colors: chartColors,
|
|
40471
40476
|
isAnimationActive
|
|
40472
40477
|
}
|
|
@@ -43681,7 +43686,8 @@ function StaticChart(props) {
|
|
|
43681
43686
|
onClickLegendElement,
|
|
43682
43687
|
containerStyle,
|
|
43683
43688
|
showLegend,
|
|
43684
|
-
className
|
|
43689
|
+
className,
|
|
43690
|
+
hideTableChartOuterBorder = true
|
|
43685
43691
|
} = props;
|
|
43686
43692
|
const {
|
|
43687
43693
|
report,
|
|
@@ -43740,7 +43746,14 @@ function StaticChart(props) {
|
|
|
43740
43746
|
showLegend,
|
|
43741
43747
|
onPageChange: useLocalPivotTablePagination ? void 0 : onPageChange,
|
|
43742
43748
|
tableRowsLoading: useLocalPivotTablePagination ? false : pageLoading,
|
|
43743
|
-
onSortChange: useLocalPivotTablePagination ? void 0 : onSortChange
|
|
43749
|
+
onSortChange: useLocalPivotTablePagination ? void 0 : onSortChange,
|
|
43750
|
+
tableChartWrapperBorders: hideTableChartOuterBorder && report?.chartType === "table" ? {
|
|
43751
|
+
borderRadius: 0,
|
|
43752
|
+
borderLeft: "none",
|
|
43753
|
+
borderRight: "none",
|
|
43754
|
+
borderTop: "none",
|
|
43755
|
+
borderBottom: "none"
|
|
43756
|
+
} : void 0
|
|
43744
43757
|
}
|
|
43745
43758
|
);
|
|
43746
43759
|
}
|
|
@@ -65429,7 +65442,6 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65429
65442
|
() => stableSerializeForQueryKey(effectiveReportBuilderState),
|
|
65430
65443
|
[effectiveReportBuilderState]
|
|
65431
65444
|
);
|
|
65432
|
-
const createdBootstrapStateMatchesEffectiveState = isCreatedReportBootstrapLoad && stableSerializeForQueryKey(initialReportBuilderStateForLoad) === effectiveReportBuilderStateHash;
|
|
65433
65445
|
const prevPaginationResetStateHashRef = useRef24(null);
|
|
65434
65446
|
useEffect31(() => {
|
|
65435
65447
|
const prevHash = prevPaginationResetStateHashRef.current;
|
|
@@ -65563,7 +65575,7 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65563
65575
|
rowCountOnly: true
|
|
65564
65576
|
});
|
|
65565
65577
|
}),
|
|
65566
|
-
enabled:
|
|
65578
|
+
enabled: isCreatedReportBootstrapLoad && Boolean(client) && !reportOverride,
|
|
65567
65579
|
retry: false
|
|
65568
65580
|
});
|
|
65569
65581
|
useEffect31(() => {
|
|
@@ -65573,13 +65585,15 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65573
65585
|
setSourceReport(report);
|
|
65574
65586
|
}, [effectiveReportId, tableRefreshQuery.data, tableRefreshQueryEnabled]);
|
|
65575
65587
|
useEffect31(() => {
|
|
65576
|
-
if (!createdBootstrapStateMatchesEffectiveState) return;
|
|
65577
65588
|
const countReport = createdBootstrapRowCountQuery.data?.report;
|
|
65578
65589
|
if (createdBootstrapRowCountQuery.data?.error || !countReport) return;
|
|
65579
65590
|
setSourceReport((currentReport) => {
|
|
65580
65591
|
if (!currentReport || currentReport.id !== effectiveReportId) {
|
|
65581
65592
|
return currentReport;
|
|
65582
65593
|
}
|
|
65594
|
+
if (stableSerializeForQueryKey(currentReport.reportBuilderState) !== stableSerializeForQueryKey(countReport.reportBuilderState)) {
|
|
65595
|
+
return currentReport;
|
|
65596
|
+
}
|
|
65583
65597
|
if (currentReport.rowCount === countReport.rowCount) {
|
|
65584
65598
|
return currentReport;
|
|
65585
65599
|
}
|
|
@@ -65587,7 +65601,6 @@ function useReport(reportIdArg, options = {}) {
|
|
|
65587
65601
|
});
|
|
65588
65602
|
}, [
|
|
65589
65603
|
createdBootstrapRowCountQuery.data,
|
|
65590
|
-
createdBootstrapStateMatchesEffectiveState,
|
|
65591
65604
|
effectiveReportId,
|
|
65592
65605
|
sourceReport?.id
|
|
65593
65606
|
]);
|