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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.global.js +16 -12
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1644,6 +1644,14 @@ var AGG_TYPES = {
|
|
|
1644
1644
|
fn: import_d3_array2.max,
|
|
1645
1645
|
sqlFn: (columnName) => `max(${columnName})`
|
|
1646
1646
|
}),
|
|
1647
|
+
MEDIAN: new AggType({
|
|
1648
|
+
type: "MEDIAN" /* MEDIAN */,
|
|
1649
|
+
displayName: "Median",
|
|
1650
|
+
tooltip: "<strong>Median:</strong> The median (middle) value will be shown for all data points with same label.",
|
|
1651
|
+
// symbol: 'Median',
|
|
1652
|
+
icon: "median",
|
|
1653
|
+
fn: import_d3_array2.median
|
|
1654
|
+
}),
|
|
1647
1655
|
COUNT: new AggType({
|
|
1648
1656
|
type: "COUNT" /* COUNT */,
|
|
1649
1657
|
displayName: "Count",
|
|
@@ -1670,14 +1678,6 @@ var AGG_TYPES = {
|
|
|
1670
1678
|
},
|
|
1671
1679
|
sqlFn: (columnName) => `count(distinct ${columnName})`
|
|
1672
1680
|
}),
|
|
1673
|
-
MEDIAN: new AggType({
|
|
1674
|
-
type: "MEDIAN" /* MEDIAN */,
|
|
1675
|
-
displayName: "Median",
|
|
1676
|
-
tooltip: "The median (middle) value will be shown for all data points with same label.",
|
|
1677
|
-
// symbol: 'Median',
|
|
1678
|
-
icon: "median",
|
|
1679
|
-
fn: import_d3_array2.median
|
|
1680
|
-
}),
|
|
1681
1681
|
STD_DEV: new AggType({
|
|
1682
1682
|
type: "STD_DEV" /* STD_DEV */,
|
|
1683
1683
|
displayName: "Std Dev",
|
|
@@ -2309,8 +2309,12 @@ var getDateNoQuotes = (date) => {
|
|
|
2309
2309
|
return date.replace(/\'/g, "");
|
|
2310
2310
|
};
|
|
2311
2311
|
var isISODate = (str) => {
|
|
2312
|
+
if (!str) {
|
|
2313
|
+
return false;
|
|
2314
|
+
}
|
|
2312
2315
|
var dateString = str;
|
|
2313
2316
|
dateString = getDateNoQuotes(dateString);
|
|
2317
|
+
dateString = dateString.trim();
|
|
2314
2318
|
if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
|
|
2315
2319
|
return false;
|
|
2316
2320
|
}
|
|
@@ -6060,16 +6064,16 @@ var LIGHT_THEME = {
|
|
|
6060
6064
|
var DARK_THEME = {
|
|
6061
6065
|
"accent-color": "#193a48",
|
|
6062
6066
|
"accent-color-secondary": "#1ea0d8",
|
|
6063
|
-
"background-color-primary": "#
|
|
6064
|
-
"background-color-secondary": "#
|
|
6067
|
+
"background-color-primary": "#15191c",
|
|
6068
|
+
"background-color-secondary": "#1d222b",
|
|
6065
6069
|
"background-color-tertiary": "#292929",
|
|
6066
6070
|
"background-color-switch-input": "#252525",
|
|
6067
6071
|
"background-color-switch-thumb": "#ececec",
|
|
6068
6072
|
"background-color-checkbox": "#292929",
|
|
6069
6073
|
"background-color-disabled": "#5d6167",
|
|
6070
6074
|
"background-color-disabled-dark": "#857d83",
|
|
6071
|
-
"table-border-color": "#
|
|
6072
|
-
"border-color": "#
|
|
6075
|
+
"table-border-color": "#2c2e32",
|
|
6076
|
+
"border-color": "#43464b",
|
|
6073
6077
|
"hover-color": "#4a4f56",
|
|
6074
6078
|
"text-color-primary": "#ececec",
|
|
6075
6079
|
"text-color-secondary": "#bababa",
|