autoql-fe-utils 1.11.2 → 1.11.4

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.mjs CHANGED
@@ -1126,6 +1126,14 @@ var AGG_TYPES = {
1126
1126
  fn: max,
1127
1127
  sqlFn: (columnName) => `max(${columnName})`
1128
1128
  }),
1129
+ MEDIAN: new AggType({
1130
+ type: "MEDIAN" /* MEDIAN */,
1131
+ displayName: "Median",
1132
+ tooltip: "<strong>Median:</strong> The median (middle) value will be shown for all data points with same label.",
1133
+ // symbol: 'Median',
1134
+ icon: "median",
1135
+ fn: median
1136
+ }),
1129
1137
  COUNT: new AggType({
1130
1138
  type: "COUNT" /* COUNT */,
1131
1139
  displayName: "Count",
@@ -1152,14 +1160,6 @@ var AGG_TYPES = {
1152
1160
  },
1153
1161
  sqlFn: (columnName) => `count(distinct ${columnName})`
1154
1162
  }),
1155
- MEDIAN: new AggType({
1156
- type: "MEDIAN" /* MEDIAN */,
1157
- displayName: "Median",
1158
- tooltip: "The median (middle) value will be shown for all data points with same label.",
1159
- // symbol: 'Median',
1160
- icon: "median",
1161
- fn: median
1162
- }),
1163
1163
  STD_DEV: new AggType({
1164
1164
  type: "STD_DEV" /* STD_DEV */,
1165
1165
  displayName: "Std Dev",
@@ -1791,8 +1791,12 @@ var getDateNoQuotes = (date) => {
1791
1791
  return date.replace(/\'/g, "");
1792
1792
  };
1793
1793
  var isISODate = (str) => {
1794
+ if (!str) {
1795
+ return false;
1796
+ }
1794
1797
  var dateString = str;
1795
1798
  dateString = getDateNoQuotes(dateString);
1799
+ dateString = dateString.trim();
1796
1800
  if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
1797
1801
  return false;
1798
1802
  }
@@ -5542,16 +5546,16 @@ var LIGHT_THEME = {
5542
5546
  var DARK_THEME = {
5543
5547
  "accent-color": "#193a48",
5544
5548
  "accent-color-secondary": "#1ea0d8",
5545
- "background-color-primary": "#20252A",
5546
- "background-color-secondary": "#3B3F46",
5549
+ "background-color-primary": "#15191c",
5550
+ "background-color-secondary": "#1d222b",
5547
5551
  "background-color-tertiary": "#292929",
5548
5552
  "background-color-switch-input": "#252525",
5549
5553
  "background-color-switch-thumb": "#ececec",
5550
5554
  "background-color-checkbox": "#292929",
5551
5555
  "background-color-disabled": "#5d6167",
5552
5556
  "background-color-disabled-dark": "#857d83",
5553
- "table-border-color": "#53565c",
5554
- "border-color": "#53565c",
5557
+ "table-border-color": "#2c2e32",
5558
+ "border-color": "#43464b",
5555
5559
  "hover-color": "#4a4f56",
5556
5560
  "text-color-primary": "#ececec",
5557
5561
  "text-color-secondary": "#bababa",