@budibase/frontend-core 2.8.7 → 2.8.9

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.8.7",
3
+ "version": "2.8.9",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
7
7
  "svelte": "src/index.js",
8
8
  "dependencies": {
9
- "@budibase/bbui": "2.8.7",
10
- "@budibase/shared-core": "2.8.7",
9
+ "@budibase/bbui": "2.8.9",
10
+ "@budibase/shared-core": "2.8.9",
11
11
  "dayjs": "^1.11.7",
12
12
  "lodash": "^4.17.21",
13
13
  "socket.io-client": "^4.6.1",
14
14
  "svelte": "^3.46.2"
15
15
  },
16
- "gitHead": "206e88894f65fc2454852193c86ad07ec1040e24"
16
+ "gitHead": "2f4705aa45c71425b41b0401ba00a115d635e534"
17
17
  }
@@ -37,8 +37,12 @@
37
37
  $: sortedBy = column.name === $sort.column
38
38
  $: canMoveLeft = orderable && idx > 0
39
39
  $: canMoveRight = orderable && idx < $renderedColumns.length - 1
40
- $: ascendingLabel = column.schema?.type === "number" ? "low-high" : "A-Z"
41
- $: descendingLabel = column.schema?.type === "number" ? "high-low" : "Z-A"
40
+ $: ascendingLabel = ["number", "bigint"].includes(column.schema?.type)
41
+ ? "low-high"
42
+ : "A-Z"
43
+ $: descendingLabel = ["number", "bigint"].includes(column.schema?.type)
44
+ ? "high-low"
45
+ : "Z-A"
42
46
 
43
47
  const editColumn = () => {
44
48
  dispatch("edit-column", column.schema)
@@ -18,6 +18,7 @@ const TypeIconMap = {
18
18
  link: "DataCorrelated",
19
19
  formula: "Calculator",
20
20
  json: "Brackets",
21
+ bigint: "TagBold",
21
22
  }
22
23
 
23
24
  export const getColumnIcon = column => {
@@ -155,7 +155,7 @@ export default class DataFetch {
155
155
  let sortType = "string"
156
156
  if (sortColumn) {
157
157
  const type = schema?.[sortColumn]?.type
158
- sortType = type === "number" ? "number" : "string"
158
+ sortType = type === "number" || type === "bigint" ? "number" : "string"
159
159
  }
160
160
  this.options.sortType = sortType
161
161