@budibase/shared-core 2.11.39 → 2.11.41

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.js CHANGED
@@ -4241,6 +4241,7 @@ __export(src_exports, {
4241
4241
  ValidColumnNameRegex: () => ValidColumnNameRegex,
4242
4242
  ValidQueryNameRegex: () => ValidQueryNameRegex,
4243
4243
  canBeDisplayColumn: () => canBeDisplayColumn,
4244
+ canBeSortColumn: () => canBeSortColumn,
4244
4245
  dataFilters: () => filters_exports,
4245
4246
  helpers: () => helpers_exports,
4246
4247
  sdk: () => sdk_exports,
@@ -5023,9 +5024,30 @@ var allowDisplayColumnByType = {
5023
5024
  ["json" /* JSON */]: false,
5024
5025
  ["bb_reference" /* BB_REFERENCE */]: false
5025
5026
  };
5027
+ var allowSortColumnByType = {
5028
+ ["string" /* STRING */]: true,
5029
+ ["longform" /* LONGFORM */]: true,
5030
+ ["options" /* OPTIONS */]: true,
5031
+ ["number" /* NUMBER */]: true,
5032
+ ["datetime" /* DATETIME */]: true,
5033
+ ["auto" /* AUTO */]: true,
5034
+ ["internal" /* INTERNAL */]: true,
5035
+ ["barcodeqr" /* BARCODEQR */]: true,
5036
+ ["bigint" /* BIGINT */]: true,
5037
+ ["boolean" /* BOOLEAN */]: true,
5038
+ ["json" /* JSON */]: true,
5039
+ ["formula" /* FORMULA */]: false,
5040
+ ["attachment" /* ATTACHMENT */]: false,
5041
+ ["array" /* ARRAY */]: false,
5042
+ ["link" /* LINK */]: false,
5043
+ ["bb_reference" /* BB_REFERENCE */]: false
5044
+ };
5026
5045
  function canBeDisplayColumn(type) {
5027
5046
  return !!allowDisplayColumnByType[type];
5028
5047
  }
5048
+ function canBeSortColumn(type) {
5049
+ return !!allowSortColumnByType[type];
5050
+ }
5029
5051
  // Annotate the CommonJS export names for ESM import in node:
5030
5052
  0 && (module.exports = {
5031
5053
  BuilderSocketEvent,
@@ -5037,6 +5059,7 @@ function canBeDisplayColumn(type) {
5037
5059
  ValidColumnNameRegex,
5038
5060
  ValidQueryNameRegex,
5039
5061
  canBeDisplayColumn,
5062
+ canBeSortColumn,
5040
5063
  dataFilters,
5041
5064
  helpers,
5042
5065
  sdk,