@budibase/frontend-core 2.8.4 → 2.8.6-alpha.0

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.4",
3
+ "version": "2.8.6-alpha.0",
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.4",
10
- "@budibase/shared-core": "2.8.4",
9
+ "@budibase/bbui": "2.8.6-alpha.0",
10
+ "@budibase/shared-core": "2.8.6-alpha.0",
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": "aa31749f40ba5bfc2cfb24ad6bf83ec58cff8929"
16
+ "gitHead": "43fca2ee511a8fe07fbe5db7ce8c6554e6448806"
17
17
  }
@@ -33,7 +33,7 @@
33
33
  <Tooltip
34
34
  direction={tooltipDirection}
35
35
  textWrapping
36
- text={user.email}
36
+ text={helpers.getUserLabel(user)}
37
37
  size="S"
38
38
  />
39
39
  </div>
@@ -46,13 +46,15 @@
46
46
  position: relative;
47
47
  }
48
48
  .tooltip {
49
- display: none;
50
49
  position: absolute;
51
50
  top: 0;
52
51
  left: 50%;
53
52
  white-space: nowrap;
53
+ pointer-events: none;
54
+ opacity: 0;
55
+ transition: opacity 130ms ease-out;
54
56
  }
55
57
  .user-avatar:hover .tooltip {
56
- display: block;
58
+ opacity: 1;
57
59
  }
58
60
  </style>
@@ -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)
@@ -258,7 +258,7 @@
258
258
  class:wrap={editable || contentLines > 1}
259
259
  on:wheel={e => (focused ? e.stopPropagation() : null)}
260
260
  >
261
- {#each value || [] as relationship, idx}
261
+ {#each value || [] as relationship}
262
262
  {#if relationship.primaryDisplay}
263
263
  <div class="badge">
264
264
  <span
@@ -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 => {
@@ -2,16 +2,9 @@
2
2
  import { getContext } from "svelte"
3
3
  import { GutterWidth } from "../lib/constants"
4
4
 
5
- const {
6
- columns,
7
- resize,
8
- renderedColumns,
9
- stickyColumn,
10
- isReordering,
11
- scrollLeft,
12
- } = getContext("grid")
5
+ const { resize, renderedColumns, stickyColumn, isReordering, scrollLeft } =
6
+ getContext("grid")
13
7
 
14
- $: cutoff = $scrollLeft + GutterWidth + ($columns[0]?.width || 0)
15
8
  $: offset = GutterWidth + ($stickyColumn?.width || 0)
16
9
  $: activeColumn = $resize.column
17
10
 
@@ -30,8 +30,9 @@ export const deriveStores = context => {
30
30
  ([$users, $focusedCellId]) => {
31
31
  let map = {}
32
32
  $users.forEach(user => {
33
- if (user.focusedCellId && user.focusedCellId !== $focusedCellId) {
34
- map[user.focusedCellId] = user
33
+ const cellId = user.gridMetadata?.focusedCellId
34
+ if (cellId && cellId !== $focusedCellId) {
35
+ map[cellId] = user
35
36
  }
36
37
  })
37
38
  return map
@@ -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