autoql-fe-utils 1.11.23 → 1.11.24

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 CHANGED
@@ -96,6 +96,7 @@ declare enum CustomColumnValues {
96
96
  RIGHT_BRACKET = "RIGHT_BRACKET",
97
97
  PERCENT_OF_TOTAL = "PERCENT_OF_TOTAL",
98
98
  RANK = "RANK",
99
+ MEDIAN = "MEDIAN",
99
100
  MOVING_AVG = "MOVING_AVG",
100
101
  CUMULATIVE_SUM = "CUMULATIVE_SUM",
101
102
  CUMULATIVE_PERCENT = "CUMULATIVE_PERCENT",
@@ -1665,6 +1666,11 @@ declare const OPERATORS: {
1665
1666
  label: string;
1666
1667
  js: any;
1667
1668
  };
1669
+ MEDIAN: {
1670
+ value: string;
1671
+ label: string;
1672
+ js: any;
1673
+ };
1668
1674
  MOVING_AVG: {
1669
1675
  value: string;
1670
1676
  label: string;
package/dist/index.d.ts CHANGED
@@ -96,6 +96,7 @@ declare enum CustomColumnValues {
96
96
  RIGHT_BRACKET = "RIGHT_BRACKET",
97
97
  PERCENT_OF_TOTAL = "PERCENT_OF_TOTAL",
98
98
  RANK = "RANK",
99
+ MEDIAN = "MEDIAN",
99
100
  MOVING_AVG = "MOVING_AVG",
100
101
  CUMULATIVE_SUM = "CUMULATIVE_SUM",
101
102
  CUMULATIVE_PERCENT = "CUMULATIVE_PERCENT",
@@ -1665,6 +1666,11 @@ declare const OPERATORS: {
1665
1666
  label: string;
1666
1667
  js: any;
1667
1668
  };
1669
+ MEDIAN: {
1670
+ value: string;
1671
+ label: string;
1672
+ js: any;
1673
+ };
1668
1674
  MOVING_AVG: {
1669
1675
  value: string;
1670
1676
  label: string;
@@ -14333,6 +14333,7 @@
14333
14333
  CustomColumnValues2["RIGHT_BRACKET"] = "RIGHT_BRACKET";
14334
14334
  CustomColumnValues2["PERCENT_OF_TOTAL"] = "PERCENT_OF_TOTAL";
14335
14335
  CustomColumnValues2["RANK"] = "RANK";
14336
+ CustomColumnValues2["MEDIAN"] = "MEDIAN";
14336
14337
  CustomColumnValues2["MOVING_AVG"] = "MOVING_AVG";
14337
14338
  CustomColumnValues2["CUMULATIVE_SUM"] = "CUMULATIVE_SUM";
14338
14339
  CustomColumnValues2["CUMULATIVE_PERCENT"] = "CUMULATIVE_PERCENT";
@@ -21166,6 +21167,7 @@
21166
21167
  var FUNCTION_OPERATORS = [
21167
21168
  "PERCENT_OF_TOTAL",
21168
21169
  "RANK",
21170
+ "MEDIAN",
21169
21171
  "MOVING_AVG",
21170
21172
  "CUMULATIVE_SUM",
21171
21173
  "CUMULATIVE_PERCENT",
@@ -21226,6 +21228,11 @@
21226
21228
  label: "Rank",
21227
21229
  js: void 0
21228
21230
  },
21231
+ MEDIAN: {
21232
+ value: "MEDIAN",
21233
+ label: "Median",
21234
+ js: void 0
21235
+ },
21229
21236
  MOVING_AVG: {
21230
21237
  value: "MOVING_AVG",
21231
21238
  label: "Moving Avg",
@@ -21558,11 +21565,11 @@
21558
21565
  };
21559
21566
  var getCleanColumnName = (colName) => {
21560
21567
  var _a2;
21561
- return (_a2 = colName.replace(/\b(sum|avg|min|max|count|distinct|stddev)\b\(([^()]+)\)/g, "$2")) == null ? void 0 : _a2.trim();
21568
+ return (_a2 = colName.replace(/\b(sum|avg|median|min|max|count|distinct|stddev)\b\(([^()]+)\)/g, "$2")) == null ? void 0 : _a2.trim();
21562
21569
  };
21563
21570
  var buildPlainColumnArrayFn = (columnName) => {
21564
21571
  try {
21565
- const extractOperatorsRegex = /(sum|avg|min|max|count|distinct|stddev)\([^()]*\)|[a-zA-Z0-9_.]+|[+\-*/()]|\s+/g;
21572
+ const extractOperatorsRegex = /(sum|avg|median|min|max|count|distinct|stddev)\([^()]*\)|[a-zA-Z0-9_.]+|[+\-*/()]|\s+/g;
21566
21573
  const operators = columnName.match(extractOperatorsRegex) || [];
21567
21574
  return operators.filter((op) => op.trim() !== "");
21568
21575
  } catch (error) {