@quillsql/react 2.16.52 → 2.16.53

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
@@ -61073,16 +61073,19 @@ function normalizePivotChartForDisplay(chart) {
61073
61073
  if (!row || typeof row !== "object") {
61074
61074
  return row;
61075
61075
  }
61076
- const raw = row[pivotDisplayRowField];
61077
- if (raw === void 0 || raw === null) {
61076
+ const record = row;
61077
+ const displayValue = record[pivotDisplayRowField];
61078
+ if (displayValue === void 0 || displayValue === null) {
61078
61079
  return row;
61079
61080
  }
61080
- const asString = String(raw).trim();
61081
+ const asString = String(displayValue).trim();
61081
61082
  if (!asString || pivotDateRowMonthLabelRe.test(asString)) {
61082
61083
  return row;
61083
61084
  }
61085
+ const rawDate = record.__quillRawDate;
61086
+ const formatInput = rawDate !== void 0 && rawDate !== null && rawDate !== "" && rawDate !== 0 ? rawDate : displayValue;
61084
61087
  const formatted = quillFormat({
61085
- value: raw,
61088
+ value: formatInput,
61086
61089
  format: pivotDisplayDateFormat
61087
61090
  });
61088
61091
  if (!formatted || !String(formatted).trim()) {
package/dist/index.js CHANGED
@@ -61285,16 +61285,19 @@ function normalizePivotChartForDisplay(chart) {
61285
61285
  if (!row || typeof row !== "object") {
61286
61286
  return row;
61287
61287
  }
61288
- const raw = row[pivotDisplayRowField];
61289
- if (raw === void 0 || raw === null) {
61288
+ const record = row;
61289
+ const displayValue = record[pivotDisplayRowField];
61290
+ if (displayValue === void 0 || displayValue === null) {
61290
61291
  return row;
61291
61292
  }
61292
- const asString = String(raw).trim();
61293
+ const asString = String(displayValue).trim();
61293
61294
  if (!asString || pivotDateRowMonthLabelRe.test(asString)) {
61294
61295
  return row;
61295
61296
  }
61297
+ const rawDate = record.__quillRawDate;
61298
+ const formatInput = rawDate !== void 0 && rawDate !== null && rawDate !== "" && rawDate !== 0 ? rawDate : displayValue;
61296
61299
  const formatted = quillFormat({
61297
- value: raw,
61300
+ value: formatInput,
61298
61301
  format: pivotDisplayDateFormat
61299
61302
  });
61300
61303
  if (!formatted || !String(formatted).trim()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.52",
3
+ "version": "2.16.53",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {