autoql-fe-utils 1.0.83 → 1.0.85

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.
@@ -13566,7 +13566,7 @@
13566
13566
  return capitalized;
13567
13567
  };
13568
13568
  var isNumber = (str) => {
13569
- return /^-?\d+$/.test(str);
13569
+ return /^\d+$/.test(str);
13570
13570
  };
13571
13571
  var getTitleCase = (str) => {
13572
13572
  if ((str == null ? void 0 : str.length) < 2) {
@@ -16015,7 +16015,13 @@
16015
16015
  );
16016
16016
  };
16017
16017
  var getNumberOfGroupables = (columns) => {
16018
- if (columns.find((col) => col.groupable && !col.is_visible) || columns.find((col) => !col.groupable)) {
16018
+ if (!(columns == null ? void 0 : columns.length)) {
16019
+ return 0;
16020
+ }
16021
+ if (columns.find((col) => col.groupable && !col.is_visible)) {
16022
+ return 0;
16023
+ }
16024
+ if (!columns.find((col) => !col.groupable)) {
16019
16025
  return 0;
16020
16026
  }
16021
16027
  let numberOfGroupables = 0;
@@ -16677,7 +16683,7 @@
16677
16683
  };
16678
16684
  var formatDateType = (element, column, config = dataFormattingDefault) => {
16679
16685
  if (isNumber(element)) {
16680
- if ((element == null ? void 0 : element.length) === 4) {
16686
+ if ((element == null ? void 0 : element.length) <= 9) {
16681
16687
  return element;
16682
16688
  }
16683
16689
  return formatEpochDate(element, column, config);