autoql-fe-utils 1.0.115 → 1.0.117

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.
@@ -16418,8 +16418,9 @@
16418
16418
  return tableConfig;
16419
16419
  };
16420
16420
  var isColumnIndexConfigValid = ({ response, columnIndexConfig, columns, displayType }) => {
16421
- var _a, _b, _c, _d, _e;
16421
+ var _a, _b, _c, _d;
16422
16422
  if (!columns || !((_c = (_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.data) == null ? void 0 : _b.rows) == null ? void 0 : _c.length)) {
16423
+ console.debug("Invalid Config: either no columns or no data were provided to table config validation");
16423
16424
  return false;
16424
16425
  }
16425
16426
  try {
@@ -16464,7 +16465,10 @@
16464
16465
  );
16465
16466
  return false;
16466
16467
  }
16467
- if (numberIndicesArraysOverlap(columnIndexConfig)) {
16468
+ if (displayType === "scatterplot" /* SCATTERPLOT */ && columnIndexConfig.numberColumnIndex === columnIndexConfig.numberColumnIndex2) {
16469
+ console.debug("Both x and y axes reference the same number column index");
16470
+ return false;
16471
+ } else if (numberIndicesArraysOverlap(columnIndexConfig)) {
16468
16472
  console.debug("Both axes reference one or more of the same number column index");
16469
16473
  return false;
16470
16474
  }
@@ -16473,24 +16477,6 @@
16473
16477
  return false;
16474
16478
  }
16475
16479
  }
16476
- const areNumberColumnsValid = columnIndexConfig.numberColumnIndices.every((index) => {
16477
- return columns[index] && isColumnNumberType(columns[index]);
16478
- });
16479
- if (!areNumberColumnsValid) {
16480
- console.debug("Saved number indices are not number columns: ", {
16481
- numberColumnIndices: columnIndexConfig.numberColumnIndices
16482
- });
16483
- return false;
16484
- }
16485
- const areSecondNumberColumnsValid = !((_e = columnIndexConfig.numberColumnIndices2) == null ? void 0 : _e.length) || columnIndexConfig.numberColumnIndices2.every((index) => {
16486
- return columns[index] && isColumnNumberType(columns[index]);
16487
- });
16488
- if (!areSecondNumberColumnsValid) {
16489
- console.debug("Saved second number indices are not number columns:", {
16490
- numberColumnsIndices2: columnIndexConfig.numberColumnIndices2
16491
- });
16492
- return false;
16493
- }
16494
16480
  if (!columnIndexConfig.numberColumnIndices2) {
16495
16481
  const { numberColumnIndices2, numberColumnIndex2 } = getNumberColumnIndices(columns, usePivotData);
16496
16482
  columnIndexConfig.numberColumnIndices2 = numberColumnIndices2;
@@ -28996,7 +28982,8 @@
28996
28982
  subject,
28997
28983
  page_size: numRows,
28998
28984
  source,
28999
- date_format: "ISO8601"
28985
+ date_format: "ISO8601",
28986
+ time_zone: getCurrentTimezone()
29000
28987
  };
29001
28988
  return axios_default.post(url2, data, config).then((response) => Promise.resolve(response)).catch((error) => Promise.reject(error));
29002
28989
  };