@quillsql/react 2.16.31 → 2.16.33
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 +21 -12
- package/dist/index.js +21 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21472,10 +21472,20 @@ async function saveReport({
|
|
|
21472
21472
|
adminMode,
|
|
21473
21473
|
// Never send draft session keys on persist — create-report should update the real item.
|
|
21474
21474
|
draftSessionId: _omitDraftSessionId,
|
|
21475
|
-
...
|
|
21475
|
+
...reportRest
|
|
21476
21476
|
} = report;
|
|
21477
|
-
const
|
|
21478
|
-
|
|
21477
|
+
const isCreateReportTask = Boolean(reportBuilderState && !adminMode);
|
|
21478
|
+
let reportToSave = reportRest;
|
|
21479
|
+
if (isCreateReportTask) {
|
|
21480
|
+
const {
|
|
21481
|
+
itemQuery: _omitItemQuery,
|
|
21482
|
+
pivotQuery: _omitPivotQuery,
|
|
21483
|
+
comparisonPivotQuery: _omitComparisonPivotQuery,
|
|
21484
|
+
...strippedReportRest
|
|
21485
|
+
} = reportRest;
|
|
21486
|
+
reportToSave = strippedReportRest;
|
|
21487
|
+
}
|
|
21488
|
+
const task = isCreateReportTask ? "create-report" : "create";
|
|
21479
21489
|
const isCreateTask = task === "create";
|
|
21480
21490
|
const { data } = await quillFetch({
|
|
21481
21491
|
client,
|
|
@@ -39745,8 +39755,8 @@ function DashboardSection({
|
|
|
39745
39755
|
listStyleType: "none",
|
|
39746
39756
|
display: "grid",
|
|
39747
39757
|
gap: 40,
|
|
39748
|
-
|
|
39749
|
-
|
|
39758
|
+
alignItems: "start",
|
|
39759
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
39750
39760
|
},
|
|
39751
39761
|
children
|
|
39752
39762
|
}
|
|
@@ -42805,8 +42815,8 @@ var styles = {
|
|
|
42805
42815
|
listStyleType: "none",
|
|
42806
42816
|
display: "grid",
|
|
42807
42817
|
gap: 40,
|
|
42808
|
-
|
|
42809
|
-
|
|
42818
|
+
alignItems: "start",
|
|
42819
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
42810
42820
|
},
|
|
42811
42821
|
emptyCard: {
|
|
42812
42822
|
backgroundColor: "#ffffff",
|
|
@@ -42819,7 +42829,6 @@ var styles = {
|
|
|
42819
42829
|
},
|
|
42820
42830
|
chartCard: {
|
|
42821
42831
|
boxSizing: "content-box",
|
|
42822
|
-
height: "100%",
|
|
42823
42832
|
minHeight: 400,
|
|
42824
42833
|
borderRadius: 8,
|
|
42825
42834
|
cursor: "pointer"
|
|
@@ -43277,7 +43286,7 @@ function DashboardContent({
|
|
|
43277
43286
|
});
|
|
43278
43287
|
}, [sections, sectionOrder]);
|
|
43279
43288
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { style: styles.contentWrap, children: [
|
|
43280
|
-
metricReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children:
|
|
43289
|
+
metricReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children: metricReports.map((report) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
43281
43290
|
"div",
|
|
43282
43291
|
{
|
|
43283
43292
|
onClick: () => onClickReport(report),
|
|
@@ -43294,8 +43303,8 @@ function DashboardContent({
|
|
|
43294
43303
|
]
|
|
43295
43304
|
},
|
|
43296
43305
|
report.id
|
|
43297
|
-
)) })
|
|
43298
|
-
chartReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children:
|
|
43306
|
+
)) }),
|
|
43307
|
+
chartReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: styles.splitGrid, children: chartReports.map((report) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
43299
43308
|
"div",
|
|
43300
43309
|
{
|
|
43301
43310
|
onClick: () => onClickReport(report),
|
|
@@ -43312,7 +43321,7 @@ function DashboardContent({
|
|
|
43312
43321
|
]
|
|
43313
43322
|
},
|
|
43314
43323
|
report.id
|
|
43315
|
-
)) })
|
|
43324
|
+
)) }),
|
|
43316
43325
|
tableReports.length === 0 && orderedNonRootSectionEntries.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { style: styles.splitGrid, children: [
|
|
43317
43326
|
tableReports.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("section", { style: styles.tableColumn, children: tableReports.map((report) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
43318
43327
|
"div",
|
package/dist/index.js
CHANGED
|
@@ -21476,10 +21476,20 @@ async function saveReport({
|
|
|
21476
21476
|
adminMode,
|
|
21477
21477
|
// Never send draft session keys on persist — create-report should update the real item.
|
|
21478
21478
|
draftSessionId: _omitDraftSessionId,
|
|
21479
|
-
...
|
|
21479
|
+
...reportRest
|
|
21480
21480
|
} = report;
|
|
21481
|
-
const
|
|
21482
|
-
|
|
21481
|
+
const isCreateReportTask = Boolean(reportBuilderState && !adminMode);
|
|
21482
|
+
let reportToSave = reportRest;
|
|
21483
|
+
if (isCreateReportTask) {
|
|
21484
|
+
const {
|
|
21485
|
+
itemQuery: _omitItemQuery,
|
|
21486
|
+
pivotQuery: _omitPivotQuery,
|
|
21487
|
+
comparisonPivotQuery: _omitComparisonPivotQuery,
|
|
21488
|
+
...strippedReportRest
|
|
21489
|
+
} = reportRest;
|
|
21490
|
+
reportToSave = strippedReportRest;
|
|
21491
|
+
}
|
|
21492
|
+
const task = isCreateReportTask ? "create-report" : "create";
|
|
21483
21493
|
const isCreateTask = task === "create";
|
|
21484
21494
|
const { data } = await quillFetch({
|
|
21485
21495
|
client,
|
|
@@ -39840,8 +39850,8 @@ function DashboardSection({
|
|
|
39840
39850
|
listStyleType: "none",
|
|
39841
39851
|
display: "grid",
|
|
39842
39852
|
gap: 40,
|
|
39843
|
-
|
|
39844
|
-
|
|
39853
|
+
alignItems: "start",
|
|
39854
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
39845
39855
|
},
|
|
39846
39856
|
children
|
|
39847
39857
|
}
|
|
@@ -42907,8 +42917,8 @@ var styles = {
|
|
|
42907
42917
|
listStyleType: "none",
|
|
42908
42918
|
display: "grid",
|
|
42909
42919
|
gap: 40,
|
|
42910
|
-
|
|
42911
|
-
|
|
42920
|
+
alignItems: "start",
|
|
42921
|
+
gridTemplateColumns: "repeat(auto-fill,minmax(400px, 1fr))"
|
|
42912
42922
|
},
|
|
42913
42923
|
emptyCard: {
|
|
42914
42924
|
backgroundColor: "#ffffff",
|
|
@@ -42921,7 +42931,6 @@ var styles = {
|
|
|
42921
42931
|
},
|
|
42922
42932
|
chartCard: {
|
|
42923
42933
|
boxSizing: "content-box",
|
|
42924
|
-
height: "100%",
|
|
42925
42934
|
minHeight: 400,
|
|
42926
42935
|
borderRadius: 8,
|
|
42927
42936
|
cursor: "pointer"
|
|
@@ -43379,7 +43388,7 @@ function DashboardContent({
|
|
|
43379
43388
|
});
|
|
43380
43389
|
}, [sections, sectionOrder]);
|
|
43381
43390
|
return /* @__PURE__ */ jsxs43("div", { style: styles.contentWrap, children: [
|
|
43382
|
-
metricReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children:
|
|
43391
|
+
metricReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children: metricReports.map((report) => /* @__PURE__ */ jsxs43(
|
|
43383
43392
|
"div",
|
|
43384
43393
|
{
|
|
43385
43394
|
onClick: () => onClickReport(report),
|
|
@@ -43396,8 +43405,8 @@ function DashboardContent({
|
|
|
43396
43405
|
]
|
|
43397
43406
|
},
|
|
43398
43407
|
report.id
|
|
43399
|
-
)) })
|
|
43400
|
-
chartReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children:
|
|
43408
|
+
)) }),
|
|
43409
|
+
chartReports.length === 0 ? null : /* @__PURE__ */ jsx60("div", { style: styles.splitGrid, children: chartReports.map((report) => /* @__PURE__ */ jsxs43(
|
|
43401
43410
|
"div",
|
|
43402
43411
|
{
|
|
43403
43412
|
onClick: () => onClickReport(report),
|
|
@@ -43414,7 +43423,7 @@ function DashboardContent({
|
|
|
43414
43423
|
]
|
|
43415
43424
|
},
|
|
43416
43425
|
report.id
|
|
43417
|
-
)) })
|
|
43426
|
+
)) }),
|
|
43418
43427
|
tableReports.length === 0 && orderedNonRootSectionEntries.length === 0 ? null : /* @__PURE__ */ jsxs43("div", { style: styles.splitGrid, children: [
|
|
43419
43428
|
tableReports.length === 0 ? null : /* @__PURE__ */ jsx60("section", { style: styles.tableColumn, children: tableReports.map((report) => /* @__PURE__ */ jsxs43(
|
|
43420
43429
|
"div",
|