@quillsql/react 2.15.12 → 2.15.14
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 +24 -0
- package/dist/index.js +24 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1171,6 +1171,11 @@ var primaryRangeCustomIntervals = [
|
|
|
1171
1171
|
value: 6,
|
|
1172
1172
|
unit: "months"
|
|
1173
1173
|
},
|
|
1174
|
+
{
|
|
1175
|
+
type: "relative",
|
|
1176
|
+
value: 12,
|
|
1177
|
+
unit: "months"
|
|
1178
|
+
},
|
|
1174
1179
|
{
|
|
1175
1180
|
type: "relative",
|
|
1176
1181
|
value: 1,
|
|
@@ -1397,6 +1402,12 @@ var convertPresetOptionsToSelectableList = (customIntervals, defaultIntervals) =
|
|
|
1397
1402
|
value: 6,
|
|
1398
1403
|
unit: "months"
|
|
1399
1404
|
};
|
|
1405
|
+
} else if (interval2.label === "Last 12 months") {
|
|
1406
|
+
return {
|
|
1407
|
+
type: "relative",
|
|
1408
|
+
value: 12,
|
|
1409
|
+
unit: "months"
|
|
1410
|
+
};
|
|
1400
1411
|
} else {
|
|
1401
1412
|
throw new Error("Invalid interval");
|
|
1402
1413
|
}
|
|
@@ -1532,6 +1543,9 @@ var PRIMARY_RANGE = {
|
|
|
1532
1543
|
LAST_6_MONTHS: convertCustomIntervalToDateRange(
|
|
1533
1544
|
primaryRangeCustomIntervals[6]
|
|
1534
1545
|
),
|
|
1546
|
+
LAST_12_MONTHS: convertCustomIntervalToDateRange(
|
|
1547
|
+
primaryRangeCustomIntervals[7]
|
|
1548
|
+
),
|
|
1535
1549
|
ALL_TIME: { startDate: void 0, endDate: void 0 }
|
|
1536
1550
|
};
|
|
1537
1551
|
var COMPARISON_OPTIONS = [
|
|
@@ -1618,6 +1632,12 @@ var defaultOptionsV2 = [
|
|
|
1618
1632
|
startDate: PRIMARY_RANGE["LAST_6_MONTHS"].startDate,
|
|
1619
1633
|
endDate: PRIMARY_RANGE["LAST_6_MONTHS"].endDate
|
|
1620
1634
|
},
|
|
1635
|
+
{
|
|
1636
|
+
value: "LAST_12_MONTHS",
|
|
1637
|
+
label: "Last 12 months",
|
|
1638
|
+
startDate: PRIMARY_RANGE["LAST_12_MONTHS"].startDate,
|
|
1639
|
+
endDate: PRIMARY_RANGE["LAST_12_MONTHS"].endDate
|
|
1640
|
+
},
|
|
1621
1641
|
{
|
|
1622
1642
|
value: "ALL_TIME",
|
|
1623
1643
|
label: "All time",
|
|
@@ -22344,6 +22364,10 @@ var ContextProvider = ({
|
|
|
22344
22364
|
newSectionOrder = newSectionOrder.map((section) => {
|
|
22345
22365
|
if (section.section === report.section && !section.reportOrder.includes(report.id)) {
|
|
22346
22366
|
section.reportOrder.push(report.id);
|
|
22367
|
+
} else if (section.section !== report.section && section.reportOrder.includes(report.id)) {
|
|
22368
|
+
section.reportOrder = section.reportOrder.filter(
|
|
22369
|
+
(id2) => id2 !== report.id
|
|
22370
|
+
);
|
|
22347
22371
|
}
|
|
22348
22372
|
return section;
|
|
22349
22373
|
});
|
package/dist/index.js
CHANGED
|
@@ -1168,6 +1168,11 @@ var primaryRangeCustomIntervals = [
|
|
|
1168
1168
|
value: 6,
|
|
1169
1169
|
unit: "months"
|
|
1170
1170
|
},
|
|
1171
|
+
{
|
|
1172
|
+
type: "relative",
|
|
1173
|
+
value: 12,
|
|
1174
|
+
unit: "months"
|
|
1175
|
+
},
|
|
1171
1176
|
{
|
|
1172
1177
|
type: "relative",
|
|
1173
1178
|
value: 1,
|
|
@@ -1394,6 +1399,12 @@ var convertPresetOptionsToSelectableList = (customIntervals, defaultIntervals) =
|
|
|
1394
1399
|
value: 6,
|
|
1395
1400
|
unit: "months"
|
|
1396
1401
|
};
|
|
1402
|
+
} else if (interval2.label === "Last 12 months") {
|
|
1403
|
+
return {
|
|
1404
|
+
type: "relative",
|
|
1405
|
+
value: 12,
|
|
1406
|
+
unit: "months"
|
|
1407
|
+
};
|
|
1397
1408
|
} else {
|
|
1398
1409
|
throw new Error("Invalid interval");
|
|
1399
1410
|
}
|
|
@@ -1529,6 +1540,9 @@ var PRIMARY_RANGE = {
|
|
|
1529
1540
|
LAST_6_MONTHS: convertCustomIntervalToDateRange(
|
|
1530
1541
|
primaryRangeCustomIntervals[6]
|
|
1531
1542
|
),
|
|
1543
|
+
LAST_12_MONTHS: convertCustomIntervalToDateRange(
|
|
1544
|
+
primaryRangeCustomIntervals[7]
|
|
1545
|
+
),
|
|
1532
1546
|
ALL_TIME: { startDate: void 0, endDate: void 0 }
|
|
1533
1547
|
};
|
|
1534
1548
|
var COMPARISON_OPTIONS = [
|
|
@@ -1615,6 +1629,12 @@ var defaultOptionsV2 = [
|
|
|
1615
1629
|
startDate: PRIMARY_RANGE["LAST_6_MONTHS"].startDate,
|
|
1616
1630
|
endDate: PRIMARY_RANGE["LAST_6_MONTHS"].endDate
|
|
1617
1631
|
},
|
|
1632
|
+
{
|
|
1633
|
+
value: "LAST_12_MONTHS",
|
|
1634
|
+
label: "Last 12 months",
|
|
1635
|
+
startDate: PRIMARY_RANGE["LAST_12_MONTHS"].startDate,
|
|
1636
|
+
endDate: PRIMARY_RANGE["LAST_12_MONTHS"].endDate
|
|
1637
|
+
},
|
|
1618
1638
|
{
|
|
1619
1639
|
value: "ALL_TIME",
|
|
1620
1640
|
label: "All time",
|
|
@@ -22356,6 +22376,10 @@ var ContextProvider = ({
|
|
|
22356
22376
|
newSectionOrder = newSectionOrder.map((section) => {
|
|
22357
22377
|
if (section.section === report.section && !section.reportOrder.includes(report.id)) {
|
|
22358
22378
|
section.reportOrder.push(report.id);
|
|
22379
|
+
} else if (section.section !== report.section && section.reportOrder.includes(report.id)) {
|
|
22380
|
+
section.reportOrder = section.reportOrder.filter(
|
|
22381
|
+
(id2) => id2 !== report.id
|
|
22382
|
+
);
|
|
22359
22383
|
}
|
|
22360
22384
|
return section;
|
|
22361
22385
|
});
|