autoql-fe-utils 1.10.18 → 1.10.20

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
@@ -211,7 +211,7 @@ declare const DEFAULT_CHART_CONFIG: {
211
211
  declare const MONTH_NAMES: string[];
212
212
  declare const DEFAULT_DATA_PAGE_SIZE = 50000;
213
213
  declare const MAX_DATA_PAGE_SIZE = 50000;
214
- declare const MAX_CHART_ELEMENTS = 5000;
214
+ declare const MAX_CHART_ELEMENTS = 2000;
215
215
  declare const WEEKDAY_NAMES_MON: string[];
216
216
  declare const WEEKDAY_NAMES_SUN: string[];
217
217
  declare const DOW_STYLES: string[];
@@ -1321,15 +1321,6 @@ declare const extractOperatorFromValue: (value: any, defaultOperator?: string |
1321
1321
  operator: string;
1322
1322
  cleanValue: string;
1323
1323
  } | null;
1324
- /**
1325
- * Parse a header filter value intended for numeric columns.
1326
- * Returns `{ value, operator }` where `value` is a normalized numeric string
1327
- * (commas removed) and `operator` is the parsed or default operator.
1328
- *
1329
- * Note: by default this function treats bare numeric input as a `like` (substring)
1330
- * filter when used in the UI flow; callers may adjust behavior via operator
1331
- * extraction in `formatFiltersForAPI`.
1332
- */
1333
1324
  declare const formatNumberFilterValue: (headerValue?: string) => {
1334
1325
  value: string;
1335
1326
  operator: string;
package/dist/index.d.ts CHANGED
@@ -211,7 +211,7 @@ declare const DEFAULT_CHART_CONFIG: {
211
211
  declare const MONTH_NAMES: string[];
212
212
  declare const DEFAULT_DATA_PAGE_SIZE = 50000;
213
213
  declare const MAX_DATA_PAGE_SIZE = 50000;
214
- declare const MAX_CHART_ELEMENTS = 5000;
214
+ declare const MAX_CHART_ELEMENTS = 2000;
215
215
  declare const WEEKDAY_NAMES_MON: string[];
216
216
  declare const WEEKDAY_NAMES_SUN: string[];
217
217
  declare const DOW_STYLES: string[];
@@ -1321,15 +1321,6 @@ declare const extractOperatorFromValue: (value: any, defaultOperator?: string |
1321
1321
  operator: string;
1322
1322
  cleanValue: string;
1323
1323
  } | null;
1324
- /**
1325
- * Parse a header filter value intended for numeric columns.
1326
- * Returns `{ value, operator }` where `value` is a normalized numeric string
1327
- * (commas removed) and `operator` is the parsed or default operator.
1328
- *
1329
- * Note: by default this function treats bare numeric input as a `like` (substring)
1330
- * filter when used in the UI flow; callers may adjust behavior via operator
1331
- * extraction in `formatFiltersForAPI`.
1332
- */
1333
1324
  declare const formatNumberFilterValue: (headerValue?: string) => {
1334
1325
  value: string;
1335
1326
  operator: string;
@@ -15592,7 +15592,7 @@
15592
15592
  ];
15593
15593
  var DEFAULT_DATA_PAGE_SIZE = 5e4;
15594
15594
  var MAX_DATA_PAGE_SIZE = 5e4;
15595
- var MAX_CHART_ELEMENTS = 5e3;
15595
+ var MAX_CHART_ELEMENTS = 2e3;
15596
15596
  var WEEKDAY_NAMES_MON = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
15597
15597
  var WEEKDAY_NAMES_SUN = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
15598
15598
  var DOW_STYLES = ["NUM_1_MON", "NUM_1_SUN", "NUM_0_MON", "NUM_0_SUN", "ALPHA_MON", "ALPHA_SUN"];
@@ -17118,8 +17118,8 @@
17118
17118
  var formatNumberFilterValue = (headerValue = "") => {
17119
17119
  var _a, _b;
17120
17120
  const trimmed = String(headerValue != null ? headerValue : "").trim();
17121
- const extracted = extractOperatorFromValue(trimmed, "like");
17122
- const operator = (_a = extracted == null ? void 0 : extracted.operator) != null ? _a : "like";
17121
+ const extracted = extractOperatorFromValue(trimmed, "=");
17122
+ const operator = (_a = extracted == null ? void 0 : extracted.operator) != null ? _a : "=";
17123
17123
  const rest = (_b = extracted == null ? void 0 : extracted.cleanValue) != null ? _b : trimmed;
17124
17124
  const re2 = /^([+-]?\d+(?:\.\d+)?)$/;
17125
17125
  const m = re2.exec(rest.replace(/,/g, ""));
@@ -17172,8 +17172,10 @@
17172
17172
  if (!operatorExtracted) {
17173
17173
  const formatted = formatNumberFilterValue(stringValue);
17174
17174
  if (formatted.value !== "") {
17175
- filterObj.operator = formatted.operator;
17176
17175
  filterObj.value = formatted.value;
17176
+ if ((filter3 == null ? void 0 : filter3.operator) === void 0) {
17177
+ filterObj.operator = formatted.operator;
17178
+ }
17177
17179
  }
17178
17180
  }
17179
17181
  }